ceph osd pool delete ecpool ecpool –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 字段所致,解决办法就是到mon节点进行相应的设置。
解决方案:
注:1-3步的操作必须在mon节点上执行 打开mon节点的配置文件:
[root@node1 ceph]# vi /etc/ceph/ceph.conf
1.在配置文件中添加如下内容:
[mon]
mon allow pool delete = true
2.重启ceph-mon服务:
[root@node1 ceph]# systemctl restart ceph-mon.target 多节点:systemctl restart ceph-mon@mon1.service
3.执行删除pool命令: [
root@node3 ~]# ceph osd pool delete ecpool ecpool –yes-i-really-really-mean-it pool ‘ecpool’ removed
请珍惜劳动成果,支持原创,欢迎点赞或者关注收藏,你每一次的点赞和收藏都是作者的动力,内容如有问题请私信随时联系作者,谢谢!