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



On Sun, 08 Oct 2006 02:40:36 +0000, Ohmster wrote this:

noi <noi@xxxxxxxx> wrote in
news:tOXVg.9983$GR.5153@xxxxxxxxxxxxxxxxxxxxxxxxxx:

Dam you are a good dude, noi. You stuck with me, everyone else is gone
now.

Well. I'm also confused as to which of your volgroups is on which hd.
I'm thinking but maybe you could retrace what you've done from begining
to see if you've overlooked a step. And avoid Webmin for now.

Retrace. I have an FC3 install on a 200Gb IDE hard disk. The install
utilizes LVM2 and created 2 partitions on the disk, at the time, /dev/hda1
for boot partition with vmlinuz and all system maps stuff as an ext3
partition. /dev/hda2 was an LVM partition that held the root file system.
/dev/hda1 was

I removed that drive, installed another new 200Gb IDE drive and installed
FC5, the install came out exactly the same format, with the same partition
layout and LVM for root file system. Here is the current system and what
it looks like, same was for FC3.

[root@ohmster ~]# fdisk -l /dev/hda

Disk /dev/hda: 200.0 GB, 200049647616 bytes 255 heads, 63 sectors/track,
24321 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux /dev/hda2
14 24321 195254010 8e Linux LVM [root@ohmster ~]#


FC3 is now on /dev/hdb, here is what it looks like:

[root@ohmster ~]# fdisk -l /dev/hdb

Disk /dev/hdb: 203.9 GB, 203928109056 bytes 255 heads, 63 sectors/track,
24792 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 13 104391 83 Linux /dev/hdb2
14 24792 199037317+ 8e Linux LVM [root@ohmster ~]#

It is pretty much the same. Both systems use VolGroup00 as the LVM
partition, a real problem as both could not be mounted with the same name.
I got impatient with trying to get at the data with the weekend coming to
a close and with webmin, decided to create a new logical volume on the
drive, thinking that somehow I could access the data that way, I saw a
warning that all data would be lost and tried to kill the process quickly.
Too late, the logical volumes on the drive were now lost. I also renamed
the volume group to 01. Now I have /dev/hdb2 as VolGroup01 with a physical
volume but no logical volumes on it. Oh they are there I am sure, but with
no FAT or whatever LVM uses to track the files, they are inaccessible and
nonexistent to the system.


Yep apparently a case of haste makes waste. I almost got caught moving
when I cloned my hda to sda. It's dual boot so the XP went without
problem. Then I formatted ext3 the Linux partitions, and copied the
everything cp -p except I had linked hda to ~/sda/hda so the damn copy wnt
into loops copying itself. After booting Knoppix and Ubuntu I realized
the problem but had accidently changed ownership on hda so neither booted
linux. It took a week to figure out to fix the installation. .

IIUYC, you're ready for more experiments? Just be careful not to write
to you FC3 drive or change file permissions, ownership on FC3.

Hell yah, gotta do more experiments, how else can I get my *** back?

Here's the thing IMO you could change your bios to "not installed" for
hda and change the boot sequence to CDROM,IDE-1 or however your bios
determines the hd boot drive.

Not necessary, the case is open and I can pull the IDE cables and
rearrange them at will to make the drives appear as I wish.

I'm sure you can download and install packages to LiveCDs but those
packages go away once you reboot the LiveCD. So, if you want to install
LVM to the Knoppix LiveCD try instructions at

http://www.knoppix.net/wiki/LVM2

Yeah, will have that as a last resort I guess.

Maybe with just the FC3 drive, Knoppix LiveCD and install of LVM to
Knoppix you could try

first to mount the FC3 volgroup and backup your data

If that fails that try the recovery procedures from the previous html
links.

First I'd try to download and install LVM for the Knoppix LiveCD.
Although it did mount the FC5 LVM volumes didn't it? Maybe the LVM2
tools are already on the CD and you can try the recovery using Knoppix
and just the FC3 drive.


No, knoppix 3.2 failed to mount the LVM volumes on both disks. Non
specified format, mount failed. The root partitions mounted and were
accessible, /dev/hda1 and /dev/hdb1 but not the 2nd 8e, LVM partitions.
Why the hell don't live CDs include LVM2 *** since that is where these
modern distros appear to be headed. ...sigh.

If I had the money, I would send out the drive for recovery, but money,
what is that and who has it? :P

Well, no offense but it's just stuff.

Ok so the vg on hdb has been renamed and now we're hoping to recover the
logical volume which should be logvol01?

Try that apt-get for Knoppix on the wiki to install LVM2 then you can
try mounting the LVM under Knoppix.




.