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

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

 



Gene Poole wrote:
> 
> I'm not 100% sure that this will work, however it shouldn't hurt either...
> 
> As root:
> 
>         mkdir /oldboot
>         mount /dev/VolGroup00/LogVol01  /oldboot
> 
> The file systems should now be available off of /oldboot
> 
> If you want to make it available and mounted at boot time, update your
> fstab
> 
> Hope this helps...
> 
>> Good afternoon, Chris.
>>
>> My problem is related but not exactly the same.  In my case I have
>> upgraded from FC5 to F9 by doing a fresh install on a new hard drive,
>> and I need to mount the old FC5 boot disk to copy some stuff off of it.
>>
>> "mount /dev/sdb2 /driveb" doesn't work for the reasons noted
>> (/dev/sdb2 is a container and not a volume).
>>
>> So, I said "lvm vgscan" and got:
>>
>> File descriptor 20 left open
>>    Reading all physical volumes.  This may take a while...
>>    Found volume group "VolGroup00" using metadata type lvm2
>>    Found volume group "VolGroup00" using metadata type lvm2
>>
>> Then I said "pvs" and got:
>>
>> File descriptor 20 left open
>>    PV         VG         Fmt  Attr PSize   PFree
>>    /dev/sda2  VolGroup00 lvm2 a-   111.59G 32.00M
>>    /dev/sdb2  VolGroup00 lvm2 a-    76.22G 32.00M
>>
>> (Hope the formatting and column alignment on the above doesn't come
>> through all screwed up...)
>>
>> Apparently it thinks that both volumes are named VolGroup00 (instead
>> of ...00 and ...01) so things like lvm vgchange don't do any good
>> because it doesn't know which VolGroup00 to make available.

Only one of the volumegroups will currently be available, you can't have
2 conflicting /dev/VolGroup00 entries. That way lies madness.

Alternatively, remove one disk, boot F9 (or FC5, really doesn't matter
which!) with a rescue disc and rename the volumegroup.

vgrename /dev/VolGroup00 /dev/VolGroup-F9 (or something like that - man
vgrename).

(although in rescue mode, this would be lvm vgrename)

if you put the other disk back afterwards, the names will no longer clash

Regards,


Stuart
-- 
Stuart Sears RHCA etc.
"It's today!" said Piglet.
"My favourite day," said Pooh.

-- 
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]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux