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

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Ach.Chusnul Chikam
Ach.Chusnul Chikam

Written by Ach.Chusnul Chikam

Cloud Consultant | Linux, Kubernetes, OpenStack, OpenShift, Ceph Certified | AWS SAA | Google Cloud ACE | LinkedIn: https://www.linkedin.com/in/achchusnulchikam

No responses yet

Write a response