[CentOS] recover lvm from pv

Harold Pritchett

harold at uga.edu
Fri Mar 8 02:54:59 UTC 2013


I have a vanilla CentOS 5.9 system.  I have a pair of 2Tb sata drives with a RAID 1 array on them.  This array contains an LVM physical volume.  I have added these two drives to my 
system and now need to access the volume group on this physical volume.  This volume group, vg0, contains 10 ext3 file systems and I need to get the data from them.

What do I know:

[root at mickey ~]# pvscan
   PV /dev/sda2    VG VolGroup00      lvm2 [465.66 GB / 0    free]
   PV /dev/sdb1    VG VolGroup00      lvm2 [465.75 GB / 0    free]
   PV /dev/md125                      lvm2 [1.81 TB]
   Total: 3 [2.72 TB] / in use: 2 [931.41 GB] / in no VG: 1 [1.81 TB]
[root at mickey ~]#

The first two contain the running system.  The third one, /dev/md125 is my lvm physical volume.

[root at mickey ~]# pvdisplay
--------- snip first two pvs -------
   "/dev/md125" is a new physical volume of "1.81 TB"
   --- NEW Physical volume ---
   PV Name               /dev/md125
   VG Name
   PV Size               1.81 TB
   Allocatable           NO
   PE Size (KByte)       0
   Total PE              0
   Free PE               0
   Allocated PE          0
   PV UUID UB2Zs1-2bau-frhn-TdQb-hXNi-H6c1-OgA6XZ

[root at mickey ~]#

I have spent the last 8 hours or so searching the web for the next command(s) I need to enter to mount this vg and the 10 filesystems in it.

What other information do I need which may be available?

Help!

Thanks

Harold





More information about the CentOS mailing list