您好,登錄后才能下訂單哦!
一、刪除節(jié)點包含(mon osd mds)的節(jié)點
1、摘除mon
[root@ceph01 ~]# ceph mon remove ceph01
removed mon.bgw-os-node153 at 10.240.216.153:6789/0, there are now 2 monitors
2、摘除此節(jié)點上所有的osd
1)、查看此節(jié)點的osd
[root@ceph01 ~]# ceph osd tree
-4 1.08 host ceph01
8 0.27 osd.8 up 1
9 0.27 osd.9 up 1
10 0.27 osd.10 up 1
11 0.27 osd.11 up 1
11 0.27 osd.12 up 1
2)、把上面的節(jié)點的osd進程停掉
[root@ceph01 ~]# /etc/init.d/ceph stop osd
=== osd.10 ===
Stopping Ceph osd.10 on ceph01..kill 2251...done
=== osd.9 ===
Stopping Ceph osd.9 on ceph01...kill 2023...kill 2023...done
=== osd.8 ===
Stopping Ceph osd.8 on ceph01 kill 1724...kill 1724...done
=== osd.11 ===
Stopping Ceph osd.8 on ceph01 kill 1724...kill 1724...done
=== osd.12===
Stopping Ceph osd.11 on ceph01...kill 1501...done
3)、再次查看ceph osd狀態(tài)
[root@ceph01 ~]# ceph osd tree
-4 1.08 host ceph01
8 0.27 osd.8 down 1
9 0.27 osd.9 down 1
10 0.27 osd.10 down 1
11 0.27 osd.11 down 1
4)、刪除所有的osd
[root@ceph01 ~]# ceph osd rm 8
removed osd.8
[root@ceph01 ~]# ceph osd rm 9
removed osd.9
[root@ceph01 ~]# ceph osd rm 10
^[[Aremoved osd.10
[root@ceph01 ~]# ceph osd rm 11
removed osd.11
5)、刪除所有osd的crush map
[root@ceph01~]# ceph osd crush rm osd.8
removed item id 8 name 'osd.8' from crush map
[root@ceph01 ~]# ceph osd crush rm osd.9
removed item id 9 name 'osd.9' from crush map
[root@ceph01 ~]# ceph osd crush rm osd.10
[[Aremoved item id 10 name 'osd.10' from crush map
[root@ceph01 ~]# ceph osd crush rm osd.11
removed item id 11 name 'osd.11' from crush map
6)、刪除所有osd的認證
[root@ceph01 ~]# ceph auth del osd.8
updated
[root@ceph01~]# ceph auth del osd.9
updated
[root@ceph01 ~]# ceph auth del osd.10
updated
[root@ceph01 ~]# ceph auth del osd.11
updated
7)、在ceph osd tree中刪除此機器host的crush map
[root@ceph01 ~]# ceph osd crush rm ceph01
removed item id -4 name 'ceph01' from crush map
8)、卸載所有掛載在osd的硬盤
[root@ceph01 ~]# umount /var/lib/ceph/osd/ceph-8
[root@ceph01 ~]# umount /var/lib/ceph/osd/ceph-9
[root@ceph01 ~]# umount /var/lib/ceph/osd/ceph-10
[root@ceph01 ~]# umount /var/lib/ceph/osd/ceph-11
3、刪除掉mds
1、直接關(guān)閉此節(jié)點的mds進程
[root@bgw-os-node153 ~]# /etc/init.d/ceph stop mds
=== mds.bgw-os-node153 ===
Stopping Ceph mds.ceph01 on ceph013...kill 4981...done
[root@ceph01 ~]#
2、刪除此mds的認證
[root@ceph01 ~]# ceph auth del mds.ceph01
updated
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。