Ceph - How can I change or reset the pool id number in Ceph?

Solution Verified - Updated -

Environment

  • Red Hat Ceph Storage 1.x
  • Red Hat Ceph Storage 2.x
  • Red Hat Ceph Storage 3.x

Issue

  • After deleting pools and adding new ones, I want to change the pool ID numbers to be more sequential. How do I do this?
[root@mon1 ~]# ceph osd lspools
1 rbd, 6 openstack, 8 pool3456, 9 testpool,

Resolution

  • When a new pool is created, Ceph increments to the next number.

  • The next available pool id is tracked by the monitor nodes and there is no way to reset it within an existing cluster. The only way to reset the pool id would be to destroy and re-deploy the entire cluster.

  • The pool id is not used in any configuration throughout the cluster (it is for internal accounting/data routing only). Therefore, there is no need to change it.

  • A pool can be deleted and re-created. As long as the same pool name is re-used, the access will be the same no matter the pool id. There will be no additional config changes required on the client.

  • There is no plan to change this behavior in Ceph, as it is a means to help track part of the cluster's history.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.