標簽(空格分隔): ceph,ceph運維,pool
問題描述:
刪除pool的時候提示下面的錯誤:
[root@node3 ~]# 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節點上執行
1. 打開mon節點的配置文件:
[root@node1 ceph]# vi /etc/ceph/ceph.conf
2. 在配置文件中添加如下內容:
[mon]
mon allow pool delete = true
3. 重啟ceph-mon服務:
[root@node1 ceph]# systemctl restart ceph-mon.target
4. 執行刪除pool命令:
[root@node3 ~]# ceph osd pool delete ecpool ecpool --yes-i-really-really-mean-it
pool 'ecpool' removed
