Re: How to mount an LVM volume? (was lvm2 problem)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
--

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux