Pool Delete

ceph의 pool 을 삭제하려면 monitor node의 pool delete 속성을 먼저 true로 변경하여야 한다.

변경하지 않고 그냥 삭제를 시도하면 아래와 같은 메세지가 나오면서 삭제가 되지 않는다.

[root@ceph2 ~]# ceph osd pool delete default.rgw.buckets.data default.rgw.buckets.data --yes-i-really-really-mean-it
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

이런 경우 아래처럼 해당 mon_allow_pool_delete 속성을 true 로 변경한 후 삭제하면 된다.

$ ceph tell mon.\* injectargs '--mon-allow-pool-delete=true'
또는
$ ceph config set mon mon_allow_pool_delete true

$ ceph osd pool rm test-pool test-pool --yes-i-really-really-mean-it

삭제 후 해당 속성을 원래대로 복구하여 준다.

ceph tell mon.\* injectargs '--mon-allow-pool-delete=false'
또는
ceph config set mon mon_allow_pool_delete false
로그인하면 댓글을 남길 수 있습니다.
  • pool_delete.txt
  • 마지막으로 수정됨: 2022/04/08 07:44
  • 저자 koov