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



On Fri, 06 Oct 2006 12:28:29 +0000, Ohmster wrote this:

noi <noi@xxxxxxxx> wrote in news:cFoVg.2180$NE6.1209
@newssvr11.news.prodigy.com:

[snip]
Sadly the backup lvm configuration is on the unreadable hdb2.

Really can't say about the pvscan. I thought hda and hdb were
different
sized drives.

When you look at it again could run the commands with "-v" or "-vv" ie,
pvscan -v, pvdata -v ?


Late for work but trying to get a direction to go here. pvdata is not a
recognized command but pcscan with the v o vv works, see output. Have to
run, will be back soon. Thank you so much noi.

[root@ohmster ~]# pvdata -v

Maybe it was replaced by pvdisplay

-bash: pvdata: command not found
[root@ohmster ~]# pvscan
PV /dev/hdb2 VG VolGroup01 lvm2 [189.82 GB / 189.82 GB free] PV
/dev/hda2 VG VolGroup00 lvm2 [186.19 GB / 32.00 MB free] Total: 2
[376.00 GB] / in use: 2 [376.00 GB] / in no VG: 0 [0 ]
[root@ohmster ~]# pvscan -v
Wiping cache of LVM-capable devices
Wiping internal VG cache
Walking through all physical volumes
PV /dev/hdb2 VG VolGroup01 lvm2 [189.82 GB / 189.82 GB free] PV
/dev/hda2 VG VolGroup00 lvm2 [186.19 GB / 32.00 MB free] Total: 2
[376.00 GB] / in use: 2 [376.00 GB] / in no VG: 0 [0 ]

snip -vv not very helpful.



Any more commands to shed light? There is such a thing as backup and
archive in /etc/lvm.


Thinking.

Would you have a backup that included /etc on FC3 prior to installing the
FC5? This guy used a 6 month old backup to restore his data.

http://codeworks.gnomedia.com/archives/2005/general/lvm_recovery/

Since hdb2 is now v01 have you tried to mount it as a LVM?

$ mount /dev/VolGroup01/LogVol00 /mnt/VG01/LV_FC3


root@ohmster lvm]# pwd
/etc/lvm
[root@ohmster lvm]# ls -la
total 64
drwxr-xr-x 4 root root 4096 Sep 30 16:48 . drwxr-xr-x 106 root root
12288 Oct 5 06:21 .. drwx------ 2 root root 4096 Oct 1 16:33 archive
drwx------ 2 root root 4096 Oct 1 16:33 backup -rw------- 1 root
root 1282 Oct 6 08:24 .cache -rw-r--r-- 1 root root 10538 Feb 11 2006
lvm.conf [root@ohmster lvm]#

[root@ohmster lvm]# cd backup
[root@ohmster backup]# ls -la
total 24
drwx------ 2 root root 4096 Oct 1 16:33 . drwxr-xr-x 4 root root 4096 Sep
30 16:48 .. -rw------- 1 root root 1324 Oct 1 16:33 VolGroup00 -rw-------
1 root root 717 Oct 1 16:33 VolGroup01 [root@ohmster backup]#

The VolGroup01 backup you can see is a much smaller file. This one does
not show the logical drives in hdb like the VolGroup00 does for hda. In
the archive directory, they show both VolGroups...

[root@ohmster archive]# ls -la
total 76
drwx------ 2 root root 4096 Oct 1 16:33 . drwxr-xr-x 4 root root 4096 Sep
30 16:48 .. -rw------- 1 root root 1361 Sep 30 16:48 VolGroup00_00000.vg
-rw------- 1 root root 1341 Oct 1 16:27 VolGroup00_00001.vg -rw------- 1
root root 1314 Oct 1 16:27 VolGroup00_00002.vg -rw------- 1 root root
1314 Oct 1 16:27 VolGroup00_00003.vg -rw------- 1 root root 1314 Oct 1
16:28 VolGroup00_00004.vg -rw------- 1 root root 1314 Oct 1 16:28
VolGroup00_00005.vg -rw------- 1 root root 1314 Oct 1 16:28
VolGroup00_00006.vg -rw------- 1 root root 1314 Oct 1 16:28
VolGroup00_00007.vg -rw------- 1 root root 1328 Oct 1 16:28
VolGroup00_00008.vg -rw------- 1 root root 1327 Oct 1 16:31
VolGroup00_00009.vg -rw------- 1 root root 1328 Oct 1 16:31
VolGroup00_00010.vg -rw------- 1 root root 1325 Oct 1 16:33
VolGroup00_00011.vg -rw------- 1 root root 1325 Oct 1 16:33
VolGroup00_00012.vg -rw------- 1 root root 718 Oct 1 16:33
VolGroup01_00000.vg [root@ohmster archive]#

But VolGroup01 did not exist as 01 until after the catastrophe, before
that, they were both named VolGroup00.

Gotta run! Thanks.

.