How to remove a node that contains Mon, OSD, and MDs in a ceph cluster

Source: Internet
Author: User

The steps are as follows:

1. Remove Mon

[Email protected] ~]# ceph Mon Remove bgw-os-node153

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

2. Remove all OSD on this node

1), view the OSD for this node

[[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

0.27 osd.10 up 1

0.27 osd.11 up 1

2), the above node of the OSD process to stop

[[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), check the Ceph OSD status again

[[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

0.27 osd.10 down 1

0.27 osd.11 down 1

4), delete all the 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), delete all 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 Ten name ' osd.10 ' from crush map

[Email protected] ~]# ceph OSD Crush RM osd.11

Removed item ID one name ' osd.11 ' from crush map

6), remove all OSD Certification

[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), delete the crush map of this machine host in the Ceph OSD tree

[Email protected] ~]# ceph OSD Crush RM bgw-os-node153

Removed item id-4 name ' bgw-os-node153 ' from crush map

8), uninstall all the hard drives mounted on the 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. Remove MDS

1. Directly close the MDS process for this node

[[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. Remove this MDS certification

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

Updated

This article is from the "Zhangdh Open Space" blog, so be sure to keep this source http://linuxblind.blog.51cto.com/7616603/1710188

How to remove a node that contains Mon, OSD, and MDs in a ceph cluster

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.