Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Removing pool 'mon_allow_pool_delete config option to true before you can destroy a pool1_U (500)

Tags:

ceph

proxmox

I'm running proxmox and I try to remove a pool which I created wrong. However it keeps giving this error:

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

But:

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

So that's my full config. Any idea why I am unable to delete my pools?

like image 340
Florius Avatar asked Jul 10 '17 13:07

Florius


1 Answers

You can set the config via the CLI or via the dashboard of Ceph under Cluster -> Configuration (advanced settings).

Ceph dashboard configuration page

The CLI command is the following:

ceph config set mon mon_allow_pool_delete true

like image 167
Devpool Avatar answered Oct 06 '22 00:10

Devpool