标签:
一键清理:
service ceph -a stop dirs=(/var/lib/ceph/bootstrap-mds/* /var/lib/ceph/bootstrap-osd/* /var/lib/ceph/mds/* /var/lib/ceph/mon/* /var/lib/ceph/tmp/* /var/lib/ceph/osd/* /var/run/ceph/* /var/log/ceph/* /etc/ceph/*) for d in ${dirs[@]}; do rm -rf $d echo $d done done rm -rf /home/deploy/* rm -f /root/.cephdeploy.conf umount /var/lib/ceph/osd/* for disk in b1 do /root/mkfs.xfs -d agcount=1 -f -i size=2048 /dev/sd$disk done
一键部署:
cd /home/deploy ceph-deploy new `hostname` ceph-deploy --overwrite-conf mon create-initial ceph-deploy disk zap `hostname`:/dev/sdb ceph-deploy osd prepare `hostname`:/dev/sdb ceph-deploy osd activate `hostname`:/dev/sdb1
标签:
原文地址:http://my.oschina.net/itfanr/blog/402731