How to rename a ceph pool

Mar 23, 2023
7
1
1
How can I rename a ceph pool?

Using `ceph osd pool rename ceph-a_hdd_data_replicated ceph-amsterdam_hdd_replicated` storage.cfg gets not updated.

Is there a proxmox tool for doing so?

TIA, Thomas
 
Hello,

Using `ceph osd pool rename ceph-a_hdd_data_replicated ceph-amsterdam_hdd_replicated` storage.cfg gets not updated.

This is expected, since you used the `ceph` instead of `pveceph`. The command `ceph osd pool rename` doesn't care about the `/etc/pve/storage.cfg` that means you should to edit the /etc/pve/storage.cfg manually.
 
  • Like
Reactions: tkn-teamf
You changed the "pool" option for the storage right?

For example from:
Code:
rbd: myrbd
    content rootdir,images
    krbd 0
    pool myrbd

to
Code:
rbd: myrbd
    content rootdir,images
    krbd 0
    pool changedpool

The change should be used right away. Do you see the contents and usage if you click on the storage in the GUI?
 
  • Like
Reactions: tkn-teamf
Because I want to see the new pool name in proxmox gui.
That is a problem!

The name of the storage is used in every guest config that has a disk on the storage and to match the keyring to authenticate against the Ceph cluster located in /etc/pve/priv/ceph/{storage}.keyring

If no disk image is on the pool, then you only need to rename the keyring file.