Re: Cannot mount old drive with LVM partition - help!



"J.O. Aho" <user@xxxxxxxxxxx> wrote in
news:4o9486FdjrdfU1@xxxxxxxxxxxxxx:


When you bott into FC3, do a df, then you should see the device name
of the LVM you are using.
---------------------------------------------------------------------
FC3 Only

[ohmster@ohmster ~]$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
193877500 39009672 145019408 22% /
/dev/hda1 101086 29651 66216 31% /boot
none 777868 0 777868 0% /dev/shm
[ohmster@ohmster ~]$
---------------------------------------------------------------------
FC5 - With old FC3 as /dev/hdb present on system

[root@ohmster ~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
187117284 4262884 173196032 3% /
/dev/hda1 101086 14122 81745 15% /boot
tmpfs 777820 0 777820 0% /dev/shm
[root@ohmster ~]#
---------------------------------------------------------------------

The problem is that they both have the same name! That is the default
Fedora installation. In FC5, /dev/mapper only shows the current volume
group, the old one on hdb does not even show up.

In this example it's /dev/mapper/lvmroot, this is the device you have
to use and not /dev/hdb2 when you boot into FC5 and have the FC3 drive
as a hdb.

If you don't get that device when you booted into FC5, then the
problem is that the LVM hasn't been activated during bootup, then take
a look at this page: http://tldp.org/HOWTO/LVM-HOWTO/activatevgs.html
(you can run vgdisplay without any options when you boot into FC3 and
get the name of the volume group, "VG Name mylvms", then
in FC5 run "vgchange -a y mylvms").

--------------------------------------------------------------------
[root@ohmster ~]# vgdisplay
--- Volume group ---
VG Name VolGroup00
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 189.81 GB
PE Size 32.00 MB
Total PE 6074
Alloc PE / Size 6073 / 189.78 GB
Free PE / Size 1 / 32.00 MB
VG UUID 3agBFX-D3N0-Bp3c-I7se-JVLY-ZIIa-fqMcIF

[root@ohmster ~]#
--------------------------------------------------------------------

That is FC3. So then:

# vgchange -a y my_volume_group

Would become

# vgchange -a y VolGroup00

I cannot do that because that is the name of the current volume group
that FC5 has chosen for the system. So there are two VolGroup00
partitions, one is the current and active FC5 partition and the other one
is the old /dev/hdb volume group. :(

How can I get that old drive to mount?

But I don't see the point why you have been using LVM on a lone
harddrive, you don't gain anything by that, the gains are when you LVM
togehter more harddrives or split up a harddrive into many smaller
LVMs (then you easier can move space to the slice you need it at).

Agreed. That is the default Fedora installation style now. It does not
seem to have any benefits over just a regular ext2 or ext3 partition and
why the hell I am stuck in VG hell is beyond me now. This reminds me of
the old days when DOS 6 and Win 3.1 ruled, when RAM and hard disk space
were at super premium prices, and Windows offered "doublespace" as a way
to stretch your hard drive dollar. Yeah I converted to doublespace, only
to find out that now my hard drive was one, super big file. And then I
had a teeny, tiny disk error, no big deal otherwise, but because it was a
single doublspace drive, the entire hard drive was ruined. No more
doublespace for me!

What now Batman, how can I get at my old FC3 drive while booted into FC5?

//Aho

Thanks Aho.

--
~Ohmster
theohmster at comcast dot net
Put "messageforohmster" in message body
to pass my spam filter.
.



Relevant Pages

  • Re: Cannot mount old drive with LVM partition - help!
    ... ext3 for new partition creation and created mount points for the others. ... Looks like I am commited now to FC5 and have no choice but to move ahead. ... I did try to rename the FC3 lvm to VolGroup01 instead of VolGroup00 like ...
    (alt.os.linux)
  • Re: Cannot mount old drive with LVM partition - help!
    ... With FC3 as the primary system, boot from the FC5 DVD ... the rescue disc scans for Fedora ... installations and does not find any, therefore it does not mount any. ...
    (alt.os.linux)
  • Re: Cannot mount old drive with LVM partition - help!
    ... intended to get the FC5 distro installed this weekend and then copy my ... mount the freaking FC3 disk. ... your case) and from rescue mode (type rescue on the boot prompt when ...
    (alt.os.linux)
  • Re: how to access remote CUPS printer?
    ... On the remote machine, FC5, I am root. ... which consists of a single FC5 box. ... The FC3 box is behind a firewall and runs CUPS. ...
    (Fedora)
  • Pen drives
    ... I have three pen drives, an elderly 128MB Lexar, a newer ... In FC5 all work as desired, giving automatic detection and a icon ... In FC3 works, but must be mounted by command line---no icon. ... In RH9 works but must be mounted by hand. ...
    (Fedora)