我正在运行proxmox,并尝试删除我创建错误的池。 但它不断给出这个错误:
mon_command failed - pool deletion is disabled; you must first set the mon_allow_pool_delete config option to true before you can destroy a pool1_U (500)
OK
可是:
root@kvm-01:~# ceph -n mon.0 --show-config | grep mon_allow_pool_delete
mon_allow_pool_delete = true
root@kvm-01:~# ceph -n mon.1 --show-config | grep mon_allow_pool_delete
mon_allow_pool_delete = true
root@kvm-01:~# ceph -n mon.2 --show-config | grep mon_allow_pool_delete
mon_allow_pool_delete = true
root@kvm-01:~# cat /etc/ceph/ceph.conf
[global]
auth client required = cephx
auth cluster required = cephx
auth service required = cephx
cluster network = 10.0.0.0/24
filestore xattr use omap = true
fsid = 41fa3ff6-e751-4ebf-8a76-3f4a445823d2
keyring = /etc/pve/priv/$cluster.$name.keyring
osd journal size = 5120
osd pool default min size = 1
public network = 10.0.0.0/24
[osd]
keyring = /var/lib/ceph/osd/ceph-$id/keyring
[mon.0]
host = kvm-01
mon addr = 10.0.0.1:6789
mon allow pool delete = true
[mon.2]
host = kvm-03
mon addr = 10.0.0.3:6789
mon allow pool delete = true
[mon.1]
host = kvm-02
mon addr = 10.0.0.2:6789
mon allow pool delete = true
这就是我的完整配置。知道为什么我无法删除我的游泳池吗?
答案 0 :(得分:18)
另一种方法:
ceph tell mon.\* injectargs '--mon-allow-pool-delete=true'
ceph osd pool rm test-pool test-pool --yes-i-really-really-mean-it
答案 1 :(得分:2)
你需要这样做:
systemctl restart ceph-mon.target
否则,您可以无限次地重启服务器并且没有任何反应
答案 2 :(得分:0)
编辑配置后,您需要重启节点。重启后一切顺利!
答案 3 :(得分:0)
将以下行添加到/etc/ceph/ceph.conf或/etc/ceph/ceph.d/ceph.conf并重新启动ceph.target servivce后,问题仍然存在。
[mon.1]
host = kvm-02
mon addr = 10.11.110.112:6789
mon allow pool delete = true
答案 4 :(得分:0)