Red Hat Topics - Recovering data from a a possibly good LVM physical volume

This is Interesting: Free IT Magazines  
Home > Archive > Red Hat Topics > February 2006 > Recovering data from a a possibly good LVM physical volume





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Recovering data from a a possibly good LVM physical volume
Siddharth Patel

2006-02-07, 5:48 pm

Hi there,
At this moment, I have following configuration.
I would like to recover data from hda3 (which was a fedora 4 vloumn).

I now install a new core without lvm.

hda2 as boot.
hdb10 as root
hdb7 as home
hdb8 as opt

Disk /dev/hda: 60.0 GB, 60022480896 bytes
255 heads, 63 sectors/track, 7297 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 3824 30716248+ 7 HPFS/NTFS
/dev/hda2 3825 3837 104422+ 83 Linux
/dev/hda3 3838 7297 27792450 8e Linux LVM

Disk /dev/hdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 4035 32411106 c W95 FAT32 (LBA)
/dev/hdb2 4036 19457 123877215 f W95 Ext'd (LBA)
/dev/hdb5 4036 8086 32539626 b W95 FAT32
/dev/hdb6 16179 19457 26338536 7 HPFS/NTFS
/dev/hdb7 8087 10045 15735636 83 Linux
/dev/hdb8 10046 10698 5245191 83 Linux
/dev/hdb9 10699 10960 2104483+ 82 Linux swap / Solaris
/dev/hdb10 10961 13571 20972826 83 Linux

Thanks,
Sid
Jan Gerrit Kootstra

2006-02-07, 5:48 pm

Siddharth Patel wrote:
> Hi there,
> At this moment, I have following configuration.
> I would like to recover data from hda3 (which was a fedora 4 vloumn).
>
> I now install a new core without lvm.
>
> hda2 as boot.
> hdb10 as root
> hdb7 as home
> hdb8 as opt
>
> Disk /dev/hda: 60.0 GB, 60022480896 bytes
> 255 heads, 63 sectors/track, 7297 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
>
> Device Boot Start End Blocks Id System
> /dev/hda1 * 1 3824 30716248+ 7 HPFS/NTFS
> /dev/hda2 3825 3837 104422+ 83 Linux
> /dev/hda3 3838 7297 27792450 8e Linux LVM
>
> Disk /dev/hdb: 160.0 GB, 160041885696 bytes
> 255 heads, 63 sectors/track, 19457 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
>
> Device Boot Start End Blocks Id System
> /dev/hdb1 * 1 4035 32411106 c W95 FAT32 (LBA)
> /dev/hdb2 4036 19457 123877215 f W95 Ext'd (LBA)
> /dev/hdb5 4036 8086 32539626 b W95 FAT32
> /dev/hdb6 16179 19457 26338536 7 HPFS/NTFS
> /dev/hdb7 8087 10045 15735636 83 Linux
> /dev/hdb8 10046 10698 5245191 83 Linux
> /dev/hdb9 10699 10960 2104483+ 82 Linux swap /
> Solaris
> /dev/hdb10 10961 13571 20972826 83 Linux
>
> Thanks,
> Sid

Sid,


1) vgscan
2) vgdisplay -v|more
{write down the volumegroup(s) and the logical volumegroups}
3) mount each logicalvolume on a mountpoint
4) if you want to keep using the logical volumes, add them to your
/etc/fstab like the /dev/hda2, /dev/hdb10, /dev/hdb7 and /dev/hdb8
entries. The devicefile for a logical volume is of the form:
/dev/Volgroup00/LogVol00


Kind regrads,


Jan Gerrit Kootstra RHCE
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com