Ceph故障处理(二)-Error EPERM: pool deletion is disabled;you must first set the mon_allow_pool_delete...

459 阅读1分钟

最近在使用CEPH的过程中,删除pool的时候提示以下错误:

$ ceph osd pool delete cephrbd cephrbd --yes-i-really-really-mean-it
Error EPERM: pool deletion is disabled; you must first set the mon_allow_pool_delete config\n 
option to true before you can destroy a pool

这是由于没有配置mon节点的 mon_allow_pool_delete 字段所致,解决办法就是到mon节点进行相应的设置

解决方法:

首先打开mon节点的配置文件,命令如下:

    $ vim /etc/ceph/ceph.conf 

然后在配置文件中添加以下内容:

[mon]
mon allow pool delete = true

重启ceph-mon服务,命令如下:

    $ systemctl restart ceph-mon.target

 执行删除pool命令,命令如下:

$ ceph osd pool delete cephrbd cephrbd --yes-i-really-really-mean-it
pool 'cephrbd' removed

注:1-3步的操作必须在mon节点上执行