Difference between revisions of "Ceph:Install Storage Cluster"
Jump to navigation
Jump to search
(Created page with "== Create A Cluster == * Add and Install the ndoes <syntaxhighlight> ceph-deploy new {initial-monitor-node(s)} # Add the new node ceph-deploy install {ceph-node}[{ceph-node} ...] # In...") |
(→OSDs) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 16: | Line 16: | ||
| − | This will create a number of files in your | + | This will create a number of files in your current directory. |
| − | |||
== OSDs == | == OSDs == | ||
| Line 32: | Line 31: | ||
exit | exit | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| − | |||
* Install the OSDs | * Install the OSDs | ||
| Line 47: | Line 45: | ||
sudo chmod +r /etc/ceph/ceph.client.admin.keyring | sudo chmod +r /etc/ceph/ceph.client.admin.keyring | ||
ceph health | ceph health | ||
| + | </syntaxhighlight> | ||
| + | |||
| + | == MDSs == | ||
| + | |||
| + | * Create a MDS | ||
| + | |||
| + | <syntaxhighlight> | ||
| + | ceph-deploy mds create {ceph-node} | ||
| + | </syntaxhighlight> | ||
| + | |||
| + | |||
| + | == Monitors == | ||
| + | |||
| + | Adding second monitor is used for HA. | ||
| + | |||
| + | <syntaxhighlight> | ||
| + | ceph-deploy mon create {ceph-node} | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Latest revision as of 12:07, 24 February 2014
Create A Cluster
- Add and Install the ndoes
ceph-deploy new {initial-monitor-node(s)} # Add the new node
ceph-deploy install {ceph-node}[{ceph-node} ...] # Install New Node- Add the Monitors
ceph-deploy mon create-initial
This will create a number of files in your current directory.
OSDs
- Add the OSDs (using a directory rather than an entire disk for daemon). Lginto the nodes and create the ods driecotry:
ssh node2
sudo mkdir /var/local/osd0
exit
ssh node3
sudo mkdir /var/local/osd1
exit- Install the OSDs
ceph-deploy osd prepare {ceph-node}:/path/to/directory
ceph-deploy osd activate {ceph-node}:/path/to/directory- Copy the configuarions Files to teh ndoes
ceph-deploy admin {ceph-node}
sudo chmod +r /etc/ceph/ceph.client.admin.keyring
ceph healthMDSs
- Create a MDS
ceph-deploy mds create {ceph-node}
Monitors
Adding second monitor is used for HA.
ceph-deploy mon create {ceph-node}