Ceph叢集中如何摘除一個包含mon、osd和mds的節點

來源:互聯網
上載者:User

標籤:ceph osd mon mds

步驟如下:

1、摘除mon

[[email protected] ~]# ceph mon remove bgw-os-node153

removed mon.bgw-os-node153 at 10.240.216.153:6789/0, there are now 2 monitors

2、摘除此節點上所有的osd

1)、查看此節點的osd

[[email protected] ~]# ceph osd tree 

-4      1.08                    host bgw-os-node153

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

2)、把上面的節點的osd進程停掉

[[email protected] ~]# /etc/init.d/ceph stop osd

=== osd.10 === 

Stopping Ceph osd.10 on bgw-os-node153...kill 2251...done

=== osd.9 === 

Stopping Ceph osd.9 on bgw-os-node153...kill 2023...kill 2023...done

=== osd.8 === 

Stopping Ceph osd.8 on bgw-os-node153...kill 1724...kill 1724...done

=== osd.11 === 

Stopping Ceph osd.11 on bgw-os-node153...kill 1501...done

3)、再次查看ceph osd狀態

[[email protected] ~]# ceph osd tree

-4      1.08                    host bgw-os-node153

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

[[email protected] ~]# ceph osd rm 8

removed osd.8

[[email protected] ~]# ceph osd rm 9

removed osd.9

[[email protected] ~]# ceph osd rm 10

^[[Aremoved osd.10

[[email protected] ~]# ceph osd rm 11

removed osd.11

5)、刪除所有osd的crush map 

[[email protected] ~]# ceph osd crush rm osd.8

removed item id 8 name ‘osd.8‘ from crush map

[[email protected]w-os-node153 ~]# ceph osd crush rm osd.9

removed item id 9 name ‘osd.9‘ from crush map

[[email protected] ~]# ceph osd crush rm osd.10

^[[Aremoved item id 10 name ‘osd.10‘ from crush map

[[email protected] ~]# ceph osd crush rm osd.11

removed item id 11 name ‘osd.11‘ from crush map

6)、刪除所有osd的認證

[[email protected] ~]# ceph auth del osd.8

updated

[[email protected] ~]# ceph auth del osd.9

updated

[[email protected] ~]# ceph auth del osd.10

updated

[[email protected] ~]# ceph auth del osd.11

updated

7)、在ceph osd tree中刪除此機器host的crush map

[[email protected] ~]# ceph osd crush rm  bgw-os-node153

removed item id -4 name ‘bgw-os-node153‘ from crush map

8)、卸載所有掛載在osd的硬碟

[[email protected] ~]# umount /var/lib/ceph/osd/ceph-8

[[email protected] ~]# umount /var/lib/ceph/osd/ceph-9

[[email protected] ~]# umount /var/lib/ceph/osd/ceph-10

[[email protected] ~]# umount /var/lib/ceph/osd/ceph-11


3、摘掉mds

1、直接關閉此節點的mds進程

[[email protected] ~]# /etc/init.d/ceph stop mds

=== mds.bgw-os-node153 === 

Stopping Ceph mds.bgw-os-node153 on bgw-os-node153...kill 4981...done

[[email protected] ~]# 

2、刪除此mds的認證

[[email protected] ~]# ceph auth del mds.bgw-os-node153

updated

本文出自 “zhangdh開放空間” 部落格,請務必保留此出處http://linuxblind.blog.51cto.com/7616603/1710188

Ceph叢集中如何摘除一個包含mon、osd和mds的節點

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.