Solved “Error EPERM: pool deletion is disabled you must first set the mon_allow_pool_delete config option to true” when Delete Pool on Ceph Cluster

Ach.Chusnul Chikam
2 min readOct 25, 2021

--

Pool deletion fails with the following error:

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

Administrators will need to set the mon_allow_pool_delete configuration option before deleting pools. Perform the following operations from leader MON node if you don’t want to restart mons because of the simple operation and you don’t want to live with this option enabled, Ceph supports ‘runtime argument injection’

Set mon_allow_pool_delete configuration to true

[root@ceph-01 ~]# ceph tell mon.* injectargs --mon_allow_pool_delete true
mon.ceph-01: {}
mon.ceph-01: mon_allow_pool_delete = 'true'
mon.ceph-02: {}
mon.ceph-02: mon_allow_pool_delete = 'true'
mon.ceph-03: {}
mon.ceph-03: mon_allow_pool_delete = 'true'

Alternatively, use this commandceph config set mon_allow_pool_delete true

Now delete pool with name “my-pool” for example

[root@ceph-01 ~]# ceph osd pool delete my-pool my-pool --yes-i-really-really-mean-it
pool 'my-pool' removed

Set mon_allow_pool_delete configuration to false again or use this commandceph config set mon_allow_pool_delete false

[root@ceph-01 ~]# ceph tell mon.* injectargs --mon_allow_pool_delete false
mon.ceph-01: {}
mon.ceph-01: mon_allow_pool_delete = 'false'
mon.ceph-02: {}
mon.ceph-02: mon_allow_pool_delete = 'false'
mon.ceph-03: {}
mon.ceph-03: mon_allow_pool_delete = 'false'

That’s all. Everything will be great

See other content

References :

#CEPH #Storage #CentOS8 #SDS

--

--

Ach.Chusnul Chikam

Cloud Consultant | RHCSA | CKA | AWS SAA | OpenStack Certified | OpenShift Certified | Google Cloud ACE | LinkedIn: https://www.linkedin.com/in/achchusnulchikam