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

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'

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

[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

References :

#CEPH #Storage #CentOS8 #SDS

--

--

Cloud Consultant | RHCSA | RHCE in Red Hat OpenStack | Google Cloud ACE | AWS SAA | LinkedIn: https://www.linkedin.com/in/achchusnulchikam

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store