Press "Enter" to skip to content

ceph-deploy 清理

http://docs.ceph.com/docs/master/rados/deployment/ceph-deploy-purge/

PURGE DATA

To remove all data from /var/lib/ceph (but leave Ceph packages intact), execute the purgedata command.

ceph-deploy  purgedata {hostname} [{hostname} …]

PURGE

To remove all data from /var/lib/ceph and uninstall Ceph packages, execute the purge command.

ceph-deploy purge {hostname} [{hostname} …]

使用上面2个步骤分别在每个节点上执行来清理ceph的数据配置和应用文件。值得注意的是 OSD disk volumes or labels 不会被清理,需要使用下面步骤来清理。

ceph-deploy purge command does not clean up OSD disk volumes or labels

https://docs.oracle.com/cd/E52668_01/E96266/html/ceph-luminous-issues-27748402.html

Workaround: Remove the volume group and volume label used for the OSD on the disk. The disk can then be used to create a new volume the next time you use the ceph-deploy osd create command. For example, to remove a volume label, use the lvdisplay command to list the volume labels, and delete the label:

# lvdisplay ... 
# lvremove --force /dev/ceph-dc39f7cc-e423-48d3-a466-9701e7bf972a/osd-block-f7db38d2-...

Use the vgdisplay command to list the volume groups, and delete the group:

# vgdisplay ... 
# vgremove --force ceph-dc39f7cc-e423-48d3-a466-9701e7bf972a

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注