On Fri, Dec 11, 2020 at 11:46:46PM +0000, Mark Fletcher wrote:
I would like to understand how to move a LVM VG from one machine to another, when the disk to be moved contains filesystems key to the source system. I have read section 13.6 of the LVM HOWTO which talks about moving VGs.
...
I feel like I can't follow the instructions in the HOWTO because it wants me to unmount the file systems, export the LVs and so on, on the old machine before moving the disk, and I don't see how I can do that on a system that is expecting to use those file systems to operate.
you must have missed:"vgexport/vgimport is not necessary to move drives from one system to another. It is an administrative policy tool to prevent access to volumes in the time it takes to move them."
Just move the disk and the lvm stuff will show up like normal. The only potential gotcha is if you used the same volume group names on both systems, then that would need to be resolved (by renaming one of them)