Rocky 9 install : existing logical volumes are not visible

Hello,
I’ve been a CentOS user since V4 and I loved it when Rocky started up.
I’ve been on Rocky since its beginning.
But I’ve now been motivated by this thread.
My home server (web/file) has gone from CentOS V4 up to Rocky 8.7.
Of course it is and old server so I decided to upgrade.
Its now on Rocky 9.1.
All of my /home content is on a LV.
After installing Rocky 9.1 fresh on the new server I did the following on the old one to move the disks over:

systemctl stop httpd smb
umount /home
vgchange -an vg_home
vgexport vg_home

I then removed the drives and installed them on the new server and did:

systemctl stop httpd
pvscan

And NOTHING of these drives was visible.

found I could use gdisk and see them but LVM couldn’t see anything.
So before I reformatted them I ran across this thread and used the

lvmdevices --adddev /dev/sd<1>
lvmdevices --adddev /dev/sd<2>

After that, pvscan could see them and i was able to vgimport, vgchange and mount it.

Saved recovering 7TB of data.

So LVM has more rules about what it can and can’t pay attention to, at least between Rock 8.7 and 9.1 (RHEL 8.7 RHEL 9.1).

Thanks to All of you for the FANTASTIC work.

1 Like