ceph删除pool

[root@k8s-master ~]# ceph osd pool rm cephfs_data cephfs_data  --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权限

cd /etc/ceph/
cat /etc/ceph/ceph.conf 
[global]
mon_allow_pool_delete = true

分发配置文件

[cephadmin@k8s-master ceph-cluster]$ ceph-deploy --overwrite-conf config push k8s-master k8s-node1 k8s-node2

重启所有节点的mon和mgr服务

[root@k8s-node1 ~]# systemctl restart ceph-mgr@k8s-node1.service
[root@k8s-node1 ~]# systemctl restart ceph-mon@k8s-node1.service

 

posted @ 2022-01-04 15:56  流年晕开时光  阅读(1439)  评论(0编辑  收藏  举报