Difference between revisions of "Ceph:Install Storage Cluster"

From Define Wiki
Jump to navigation Jump to search
 
Line 31: Line 31:
 
exit
 
exit
 
</syntaxhighlight>
 
</syntaxhighlight>
 
  
 
* Install the OSDs
 
* Install the OSDs
Line 46: 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 health

MDSs

  • Create a MDS
ceph-deploy mds create {ceph-node}


Monitors

Adding second monitor is used for HA.

ceph-deploy mon create {ceph-node}