Skip to content

Instantly share code, notes, and snippets.

Created July 1, 2013 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/c1d6df5b99302d1c53d6 to your computer and use it in GitHub Desktop.
Save anonymous/c1d6df5b99302d1c53d6 to your computer and use it in GitHub Desktop.
I have 6 storage nodes, 6 osds per node (disks for OSD are sdb-sdg) - vm-ds-0N
2 hypervisor nodes - vm-hv-0N
ceph-deploy -v install vm-hv-0{1,2} vm-ds-0{1,2,3,4,5,6}
ceph-deploy -v new vm-ds-0{1,2,3}
[ ensure an odd number of mons - I went for 3 ]
ceph-deploy -v mon create vm-ds-0{1,2,3}
[wait!! some key creation is happening, can take a minute]
ceph-deploy -v gatherkeys vm-ds-01
for n in 1 2 3 4 5 6
do
ceph-deploy -v osd create --zap-disk vm-ds-0$n:/dev/sdb vm-ds-0$n:/dev/sdc vm-ds-0$n:/dev/sdd vm-ds-0$n:/dev/sde vm-ds-0$n:/dev/sdf vm-ds-0$n:/dev/sdg
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment