删除pool error

删除pool的时候提示下面的错误:

[root@node205 /etc/ganesha]# ceph osd pool rm nfs-ganesha nfs-ganesha  --yes-i-really-really-mean-it-not-faking
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节点上执行

  1. 打开mon节点的配置文件:
[root@node1 ceph]# vi /etc/ceph/ceph.conf 
  1. 在配置文件中添加如下内容:
[mon]
mon allow pool delete = true
  1. 重启ceph-mon服务:
[root@node1 ceph]# systemctl restart ceph-mon.target

然后删除

[root@node205 /etc/ganesha]# ceph osd pool rm nfs-ganesha nfs-ganesha  --yes-i-really-really-mean-it-not-faking
pool 'nfs-ganesha' removed
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。