标签:添加 ble lib object system 激活 停止 size osd out
一、添加osd:
当前ceph集群中有如下osd,现在准备新添加osd:
(1)选择一个osd节点,添加好新的硬盘:
(2)显示osd节点中的硬盘,并重置新的osd硬盘:
列出节点磁盘:ceph-deploy disk list rab1
擦净节点磁盘:ceph-deploy disk zap rab1 /dev/sbd(或者)ceph-deploy disk zap rab1:/dev/vdb1
(3)准备Object Storage Daemon:
ceph-deploy osd prepare rab1:/var/lib/ceph/osd1
(4)激活Object Storage Daemon:
ceph-deploy osd activate rab1:/var/lib/ceph/osd1
二、删除osd:
现在要将 rab1中的 osd.4 删除:
(1)把 OSD 踢出集群
ceph osd out osd.4
(2)在相应的节点,停止ceph-osd服务
systemctl stop ceph-osd@4.service
systemctl disable ceph-osd@4.service
(3)删除 CRUSH 图的对应 OSD 条目,它就不再接收数据了
ceph osd crush remove osd.4
(4)删除 OSD 认证密钥
ceph auth del osd.4
(5)删除osd.4
ceph osd rm osd.4
标签:添加 ble lib object system 激活 停止 size osd out
原文地址:https://www.cnblogs.com/itzhao/p/11336327.html