简介
删除pool时出现问题,以下为详细解决过程
[root@ceph-object-01 my-cluster]# ceph osd pool rm .log --yes-i-really-really-mean-it
Error EPERM: WARNING: this will *PERMANENTLY DESTROY* all data stored in pool .log. If you are *ABSOLUTELY CERTAIN* that is what you want, pass the pool name *twice*, followed by --yes-i-really-really-mean-it.
[root@ceph-object-01 my-cluster]# ceph osd pool rm .log .log --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
查看删除pool权限
[root@ceph-object-01 my-cluster]# ceph --show-config |grep mon_allow_pool_delete
mon_allow_pool_delete = false
开启删除pool权限
vim ceph.conf
mon_allow_pool_delete = true
覆盖配置文件
ceph-deploy --overwrite-conf admin ceph-object-01 ceph-object-02 ceph-object-03
重启mon|mgr进程
# 查看ceph服务
[root@ceph-object-01 my-cluster]# systemctl list-units --type=service|grep ceph
ceph-mgr@ceph-object-01.service loaded active running Ceph cluster manager daemon
ceph-mon@ceph-object-01.service loaded active running Ceph cluster monitor daemon
ceph-osd@0.service loaded active running Ceph object storage daemon osd.0
ceph-radosgw@rgw.ceph-object-01.service loaded active running Ceph rados gateway
# 重启服务
## ceph-object-01
systemctl restart ceph-mgr@ceph-object-01.service
systemctl restart ceph-mon@ceph-object-01.service
## ceph-object-02
systemctl restart ceph-mgr@ceph-object-02.service
systemctl restart ceph-mon@ceph-object-02.service
## ceph-object-03
systemctl restart ceph-mgr@ceph-object-03.service
systemctl restart ceph-mon@ceph-object-03.service
删除pool
[root@ceph-object-01 my-cluster]# ceph osd pool rm .log .log --yes-i-really-really-mean-it
pool '.log' removed
网友评论