How to mount an LVM volume? (was lvm2 problem)
Kapil Hari Paranjape
kapil at imsc.res.in
Tue Sep 23 05:30:50 UTC 2008
Hello,
On Tue, 23 Sep 2008, Eric wrote:
> If I then go and physically reconnect the second drive (the old FC5
> drive), there is no lvm command that will allow me to see both drives
> AND see their UIDs... the only command that will let me see the UID is
> vgscan, and that one will only see the boot drive (the first instance of
> VolGroup00), not the old FC5 drive (the second instance of VolGroup00).
You _could_ boot a qemu/kvm/user-mode-linux which only has access (ro)
to /dev/sdb2 and run "vgs -v" inside that to get the UUID of the older
volume group.
Something like the following:
blockdev --setro /dev/sdb2
qemu -boot d -cdrom livcd.iso -hdb /dev/sdb2
...wait for qemu to boot and then run "vgs -v"
in a terminal and note down the UUID.
exit from qemu
blockdev --setrw /dev/sdb2
vgrename the_uuid_you_found new_vg_name
I haven't tried this myself but it should work.
Kapil.
--
More information about the fedora-list
mailing list