删除ceph文件系统和存储池

删除ceph文件系统和存储池

[root@ceph-1 ~]# ceph fs rm cephfs --yes-i-really-mean-it				#删除ceph文件系统,cephfs为文件系统名称,--yes-i-really-mean-it为必选参数,删除文件系统需要将所有mds
[root@ceph-1 ceph]# ceph osd pool delete cephfs_data2 cephfs_data2 --yes-i-really-really-mean-it
Error EPERM: pool deletion is disabled; you must first set the mon_allow_pool_delete config option to true before you can destroy a pool														#删除存储池报错,需执行以下操作后再次操作
[mon]
mon allow pool delete = true											#在ceph-deploy节点ceph.conf文件添加这两行,

ceph-deploy向各个节点推送配置

[root@ceph-1 ceph]# ceph-deploy --overwrite-conf config push ceph-1 ceph-2 ceph-3			#--overwrite-conf:覆盖原有配置

重启所有mon节点

[root@ceph-1 ceph]# systemctl restart ceph-mon.target

删除存储池

[root@ceph-1 ceph]# ceph osd pool delete cephfs_data2 cephfs_data2 --yes-i-really-really-mean-it		#存储池名称需要书写两遍,--yes-i-really-really-mean-it参数必选

你可能感兴趣的:(linux,运维)