Two scenarios:
1. I upgraded pve8 to pve9
When i run pve8to9 --full, I was asked to run "/usr/share/pve-manager/migrations/pve-rbd-storage-configure-keyring", what the script does is it added a rbd pool conf file under /etc/pve/priv/ceph/poolname.conf. So now you have /etc/pve/priv/ceph/poolname.conf and /etc/pve/priv/ceph/poolname.keyring.
[global]
keyring = /etc/pve/priv/ceph/poolname.keyring
Doing this will result in RBD Issue, existing rbd pool mounted will die immediately. Deleting the new config /etc/pve/priv/ceph/poolname.conf will bring back the RBD pool to active.
Then I rerun "/usr/share/pve-manager/migrations/pve-rbd-storage-configure-keyring", it will put back the /etc/pve/priv/ceph/poolname.conf and I proceed to upgrade from pve8 to pve9. The server was successfully upgraded to pve9, but the RBD pool was not active. Googling for answers, It stated that i need to put the keyring into /etc/pve/storage.cfg
rbd: poolname
disable
content images
keyring /etc/pve/priv/ceph/poolname.keyring
krbd 0
monhost xxx.xxx.xxx.xxx
pool poolname
username admin
Then i tried to enable the rbd pool again but I am still having issue mounting it.
I have no issue doing rbd listing inside the server. I can see the listing.
rbd ls -m xxx.xxx.xxx.xxx -p poolname --id admin --keyring /etc/pve/priv/ceph/poolname.keyring
inside /etc/pve/ceph.conf and /etc/ceph/ceph.conf, I only have one global settings which previously work on pve8 connecting to a remote rbd (pve8) configured with ms_crc_data = False.
root@xxx:~# cat /etc/pve/ceph.conf
[global]
ms_crc_data = False
root@xxx:~#'
The Question.... does pve9 have issue connecting to remote rbd running on pve8? Why this is happening and how to fix it?
2. I installed a brand new pve9, connecting to remote RBD running on PVE8
Trying to add rbd storage will automatically have the following
/etc/pve/priv/ceph/poolname.conf and /etc/pve/priv/ceph/poolname.keyring.
But still I cannot bring the rbd storage to active. I also added the keyring under. Tested with or without the keyring line both does not work
/etc/pve/storage.cfg
rbd: poolname
disable
content images
keyring /etc/pve/priv/ceph/poolname.keyring
krbd 0
monhost xxx.xxx.xxx.xxx
pool poolname
username admin
Why this is happening and how to fix it? What other settings needed?
PVE9 Client Server
root@pve9-test:~# pveversion
pve-manager/9.1.9/ee7bad0a3d1546c9 (running kernel: 6.17.13-4-pve)
root@pve9-test:~#
root@pve9-test:~# apt list --installed | grep -i ceph
ceph-common/stable,now 19.2.3-pve4 amd64 [installed]
ceph-fuse/stable,now 19.2.3-pve4 amd64 [installed]
libcephfs2/stable,now 19.2.3-pve4 amd64 [installed]
python3-ceph-argparse/stable,now 19.2.3-pve4 all [installed]
python3-ceph-common/stable,now 19.2.3-pve4 all [installed]
python3-cephfs/stable,now 19.2.3-pve4 amd64 [installed]
root@pve9-test:~#
root@pve9-test:~# apt list --installed | grep -i rbd
librbd1/stable,now 19.2.3-pve4 amd64 [installed]
python3-rbd/stable,now 19.2.3-pve4 amd64 [installed]
root@pve9-test:~#
Remote RBD
root@xxx:~# pveversion
pve-manager/8.4.16/368e3c45c15b895c (running kernel: 6.8.12-18-pve)
root@sgrc-kv-pmox-05:~#
root@xxx:~# ceph -v
ceph version 19.2.3 (aaa9a618206bc71cd6f7f12af2a12247d827305a) squid (stable)
root@xxx:~#
1. I upgraded pve8 to pve9
When i run pve8to9 --full, I was asked to run "/usr/share/pve-manager/migrations/pve-rbd-storage-configure-keyring", what the script does is it added a rbd pool conf file under /etc/pve/priv/ceph/poolname.conf. So now you have /etc/pve/priv/ceph/poolname.conf and /etc/pve/priv/ceph/poolname.keyring.
[global]
keyring = /etc/pve/priv/ceph/poolname.keyring
Doing this will result in RBD Issue, existing rbd pool mounted will die immediately. Deleting the new config /etc/pve/priv/ceph/poolname.conf will bring back the RBD pool to active.
Then I rerun "/usr/share/pve-manager/migrations/pve-rbd-storage-configure-keyring", it will put back the /etc/pve/priv/ceph/poolname.conf and I proceed to upgrade from pve8 to pve9. The server was successfully upgraded to pve9, but the RBD pool was not active. Googling for answers, It stated that i need to put the keyring into /etc/pve/storage.cfg
rbd: poolname
disable
content images
keyring /etc/pve/priv/ceph/poolname.keyring
krbd 0
monhost xxx.xxx.xxx.xxx
pool poolname
username admin
Then i tried to enable the rbd pool again but I am still having issue mounting it.
I have no issue doing rbd listing inside the server. I can see the listing.
rbd ls -m xxx.xxx.xxx.xxx -p poolname --id admin --keyring /etc/pve/priv/ceph/poolname.keyring
inside /etc/pve/ceph.conf and /etc/ceph/ceph.conf, I only have one global settings which previously work on pve8 connecting to a remote rbd (pve8) configured with ms_crc_data = False.
root@xxx:~# cat /etc/pve/ceph.conf
[global]
ms_crc_data = False
root@xxx:~#'
The Question.... does pve9 have issue connecting to remote rbd running on pve8? Why this is happening and how to fix it?
2. I installed a brand new pve9, connecting to remote RBD running on PVE8
Trying to add rbd storage will automatically have the following
/etc/pve/priv/ceph/poolname.conf and /etc/pve/priv/ceph/poolname.keyring.
But still I cannot bring the rbd storage to active. I also added the keyring under. Tested with or without the keyring line both does not work
/etc/pve/storage.cfg
rbd: poolname
disable
content images
keyring /etc/pve/priv/ceph/poolname.keyring
krbd 0
monhost xxx.xxx.xxx.xxx
pool poolname
username admin
Why this is happening and how to fix it? What other settings needed?
PVE9 Client Server
root@pve9-test:~# pveversion
pve-manager/9.1.9/ee7bad0a3d1546c9 (running kernel: 6.17.13-4-pve)
root@pve9-test:~#
root@pve9-test:~# apt list --installed | grep -i ceph
ceph-common/stable,now 19.2.3-pve4 amd64 [installed]
ceph-fuse/stable,now 19.2.3-pve4 amd64 [installed]
libcephfs2/stable,now 19.2.3-pve4 amd64 [installed]
python3-ceph-argparse/stable,now 19.2.3-pve4 all [installed]
python3-ceph-common/stable,now 19.2.3-pve4 all [installed]
python3-cephfs/stable,now 19.2.3-pve4 amd64 [installed]
root@pve9-test:~#
root@pve9-test:~# apt list --installed | grep -i rbd
librbd1/stable,now 19.2.3-pve4 amd64 [installed]
python3-rbd/stable,now 19.2.3-pve4 amd64 [installed]
root@pve9-test:~#
Remote RBD
root@xxx:~# pveversion
pve-manager/8.4.16/368e3c45c15b895c (running kernel: 6.8.12-18-pve)
root@sgrc-kv-pmox-05:~#
root@xxx:~# ceph -v
ceph version 19.2.3 (aaa9a618206bc71cd6f7f12af2a12247d827305a) squid (stable)
root@xxx:~#