systemctl restart ceph-mon@$(hostname -s)
ex: systemctl restart ceph-mon@ceph1
systemctl restart ceph-osd@
ex: systemctl restart ceph-osd@1
umount /var/lib/ceph-osd
lsblk
ceph-disk activate /dev/sdx1
ceph osd set noout
ceph osd set nodown
ceph osd pool create kido 128
ceph osd pool get kido size
ceph osd pool get kido min_size
ceph osd pool get kido min_size 1
ceph osd pool get kido size 1
ceph osd lspools
rbd create kido/test1 --size 1024 --image-feature layering
rbd -p kido ls
rbd -p kido du
rbd showmapped
rbdmap map kido/test1
ls /dev/rbd*
rbdmap unmap
systemctl restart rbdmap
mkfs.xfs -i size=1024 -f /dev/rbd0
/etc/fstab --> noauto (do not partition)
rbd resize kido/test1 --size 2048
xfs_growfs /home/test1
rbd resize kido/test1 --size 1576 --allow-shrink
ceph osd crush add-bucket qoo rack
ceph osd crush add-bucket urpapa host
ceph osd crush move urpapa rack=qoo
ceph osd crush move qoo root=default
ceph osd crush set osd.2 0.00728 host=ceph2 (temporarily)
============osd removal process=============
ceph osd out osd.
systemctl stop ceph-osd@
ceph -w
ceph osd crush remove osd.
ceph auth del osd.
ceph osd rm osd.
============osd removal process=============
沒有留言:
張貼留言