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@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@mickey ~]#
The first two contain the running system. The third one, /dev/md125 is my lvm physical volume.
[root@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@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
On 03/07/2013 10:10 PM, Stephen Harris wrote:
On Thu, Mar 07, 2013 at 09:54:59PM -0500, Harold Pritchett wrote:
What other information do I need which may be available?
What does 'vgscan' say? 'vgchange -a y' ?
After the 'vchange -a y' you 'ls /dev/LVM_GRP_NAME/' to get the mount points then
mount /dev/LVM_GRP_NAME/VOL_NAME /mnt/whatever
At least that is what I do for regular LVM partitions that I need to rescue.
On 3/7/2013 10:10 PM, Stephen Harris wrote:
On Thu, Mar 07, 2013 at 09:54:59PM -0500, Harold Pritchett wrote:
What other information do I need which may be available?
What does 'vgscan' say? 'vgchange -a y' ?
[root@mickey www]# vgscan Reading all physical volumes. This may take a while... Found volume group "VolGroup00" using metadata type lvm2 [root@mickey www]# vgchange -a y 2 logical volume(s) in volume group "VolGroup00" now active [root@mickey www]#
On 03/07/2013 10:54 PM, Harold Pritchett wrote:
On 3/7/2013 10:10 PM, Stephen Harris wrote:
On Thu, Mar 07, 2013 at 09:54:59PM -0500, Harold Pritchett wrote:
What other information do I need which may be available?
What does 'vgscan' say? 'vgchange -a y' ?
[root@mickey www]# vgscan Reading all physical volumes. This may take a while... Found volume group "VolGroup00" using metadata type lvm2 [root@mickey www]# vgchange -a y 2 logical volume(s) in volume group "VolGroup00" now active [root@mickey www]#
Now
ls /dev/VolGroup00/
On Thu, Mar 7, 2013 at 10:54 PM, Harold Pritchett harold@uga.edu wrote:
On 3/7/2013 10:10 PM, Stephen Harris wrote:
On Thu, Mar 07, 2013 at 09:54:59PM -0500, Harold Pritchett wrote:
What other information do I need which may be available?
What does 'vgscan' say? 'vgchange -a y' ?
[root@mickey www]# vgscan Reading all physical volumes. This may take a while... Found volume group "VolGroup00" using metadata type lvm2
Do both Volume Groups on those two sets of disks have the same name? VolGroup00
That's odd /dev/md125 doesn't have a VG name associated with it... * You might consider booting to a rescue environment with the 2TB disks in a separate system. Find out what the VG name is and maybe even just recover the data you need from the rescue environment ... rsync is your friend.
[root@mickey www]# vgchange -a y 2 logical volume(s) in volume group "VolGroup00" now active [root@mickey www]#
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On 03/08/2013 08:07 AM, SilverTip257 wrote:
On Thu, Mar 7, 2013 at 10:54 PM, Harold Pritchett harold@uga.edu wrote:
On 3/7/2013 10:10 PM, Stephen Harris wrote:
On Thu, Mar 07, 2013 at 09:54:59PM -0500, Harold Pritchett wrote:
What other information do I need which may be available?
What does 'vgscan' say? 'vgchange -a y' ?
[root@mickey www]# vgscan Reading all physical volumes. This may take a while... Found volume group "VolGroup00" using metadata type lvm2
Do both Volume Groups on those two sets of disks have the same name? VolGroup00
This is all to common an issue. I make a point that all LVMs are uniquely named.
That's odd /dev/md125 doesn't have a VG name associated with it...
- You might consider booting to a rescue environment with the 2TB disks in
a separate system. Find out what the VG name is and maybe even just recover the data you need from the rescue environment ... rsync is your friend.
[root@mickey www]# vgchange -a y 2 logical volume(s) in volume group "VolGroup00" now active [root@mickey www]#
On 3/8/2013 8:57 AM, Robert Moskowitz wrote:
On 03/08/2013 08:07 AM, SilverTip257 wrote:
On Thu, Mar 7, 2013 at 10:54 PM, Harold Pritchett harold@uga.edu wrote:
On 3/7/2013 10:10 PM, Stephen Harris wrote:
On Thu, Mar 07, 2013 at 09:54:59PM -0500, Harold Pritchett wrote:
What other information do I need which may be available?
What does 'vgscan' say? 'vgchange -a y' ?
[root@mickey www]# vgscan Reading all physical volumes. This may take a while... Found volume group "VolGroup00" using metadata type lvm2
Do both Volume Groups on those two sets of disks have the same name? VolGroup00
This is all to common an issue. I make a point that all LVMs are uniquely named.
Actually, no. The VolGroup00 name is associated with the running system. It's the default name when you install CentOS with the default option. The vol group on the other disks is "vg0" and is the name I used when I created the system several years ago.
Harold
On 03/08/2013 09:21 AM, Harold Pritchett wrote:
On 3/8/2013 8:57 AM, Robert Moskowitz wrote:
On 03/08/2013 08:07 AM, SilverTip257 wrote:
On Thu, Mar 7, 2013 at 10:54 PM, Harold Pritchett harold@uga.edu wrote:
On 3/7/2013 10:10 PM, Stephen Harris wrote:
On Thu, Mar 07, 2013 at 09:54:59PM -0500, Harold Pritchett wrote:
What other information do I need which may be available?
What does 'vgscan' say? 'vgchange -a y' ?
[root@mickey www]# vgscan Reading all physical volumes. This may take a while... Found volume group "VolGroup00" using metadata type lvm2
Do both Volume Groups on those two sets of disks have the same name? VolGroup00
This is all to common an issue. I make a point that all LVMs are uniquely named.
Actually, no. The VolGroup00 name is associated with the running system. It's the default name when you install CentOS with the default option. The vol group on the other disks is "vg0" and is the name I used when I created the system several years ago.
I would have expected that to show as a result of the vgscan and vgchange commands. Does RAID change things wrt LVM appareance to the system?
On Fri, Mar 8, 2013 at 9:37 AM, Robert Moskowitz rgm@htt-consult.comwrote:
On 03/08/2013 09:21 AM, Harold Pritchett wrote:
On 3/8/2013 8:57 AM, Robert Moskowitz wrote:
On 03/08/2013 08:07 AM, SilverTip257 wrote:
On Thu, Mar 7, 2013 at 10:54 PM, Harold Pritchett harold@uga.edu
wrote:
On 3/7/2013 10:10 PM, Stephen Harris wrote:
On Thu, Mar 07, 2013 at 09:54:59PM -0500, Harold Pritchett wrote: > What other information do I need which may be available? What does 'vgscan' say? 'vgchange -a y' ?
[root@mickey www]# vgscan Reading all physical volumes. This may take a while... Found volume group "VolGroup00" using metadata type lvm2
Do both Volume Groups on those two sets of disks have the same name? VolGroup00
This is all to common an issue. I make a point that all LVMs are uniquely named.
Actually, no. The VolGroup00 name is associated with the running
system. It's the default name when you install CentOS with the default option. The vol group on the other disks
is "vg0" and is the name I used when I created the system several years
ago.
I would have expected that to show as a result of the vgscan and
I would have expected the same after vgchange.
vgchange commands. Does RAID change things wrt LVM appareance to the system?
No.
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On 3/8/2013 10:08 AM, SilverTip257 wrote:
On Fri, Mar 8, 2013 at 9:37 AM, Robert Moskowitz rgm@htt-consult.comwrote:
On 03/08/2013 09:21 AM, Harold Pritchett wrote:
On 3/8/2013 8:57 AM, Robert Moskowitz wrote:
On 03/08/2013 08:07 AM, SilverTip257 wrote:
On Thu, Mar 7, 2013 at 10:54 PM, Harold Pritchett harold@uga.edu
wrote:
On 3/7/2013 10:10 PM, Stephen Harris wrote: > On Thu, Mar 07, 2013 at 09:54:59PM -0500, Harold Pritchett wrote: >> What other information do I need which may be available? > What does 'vgscan' say? 'vgchange -a y' ? > [root@mickey www]# vgscan Reading all physical volumes. This may take a while... Found volume group "VolGroup00" using metadata type lvm2
Do both Volume Groups on those two sets of disks have the same name? VolGroup00
This is all to common an issue. I make a point that all LVMs are uniquely named.
Actually, no. The VolGroup00 name is associated with the running
system. It's the default name when you install CentOS with the default option. The vol group on the other disks
is "vg0" and is the name I used when I created the system several years
ago.
I would have expected that to show as a result of the vgscan and
I would have expected the same after vgchange.
vgchange commands. Does RAID change things wrt LVM appareance to the system?
No.
OK, I have just written off the disks as corrupt. I put in another pair with yet another raid LV on them. This time I was able to successfully mount the data.
Something like this:
After assembling the raid array from the two disks with
mdadm --assemble /dev/md125 /dev/sdc3 /dev/sdd3
[root@mickey ~]# cat /proc/mdstat Personalities : [raid1] md125 : active raid1 sdc3[0] sdd3[1] 2925020024 blocks super 1.0 [2/2] [UU] [=>...................] resync = 8.5% (249426816/2925020024) finish=357.5min speed=124707K/sec
unused devices: <none>
[root@mickey ~]# vgscan Reading all physical volumes. This may take a while... Found volume group "rvg" using metadata type lvm2 Found volume group "VolGroup00" using metadata type lvm2
[root@mickey ~]# vgchange -a y 10 logical volume(s) in volume group "rvg" now active 2 logical volume(s) in volume group "VolGroup00" now active
[root@mickey ~]# pvscan PV /dev/md125 VG rvg lvm2 [2.72 TB / 1.66 TB free] PV /dev/sda2 VG VolGroup00 lvm2 [465.66 GB / 0 free] PV /dev/sdb1 VG VolGroup00 lvm2 [465.75 GB / 0 free] Total: 3 [3.63 TB] / in use: 3 [3.63 TB] / in no VG: 0 [0 ]
[root@mickey ~]# lvscan inactive '/dev/rvg/lv00' [1.00 GB] inherit inactive '/dev/rvg/lv08' [10.00 GB] inherit inactive '/dev/rvg/lv09' [1000.00 GB] inherit inactive '/dev/rvg/lv04' [20.00 GB] inherit inactive '/dev/rvg/lv03' [2.00 GB] inherit inactive '/dev/rvg/lv02' [4.00 GB] inherit inactive '/dev/rvg/lv06' [40.00 GB] inherit inactive '/dev/rvg/lv07' [10.00 GB] inherit inactive '/dev/rvg/lv01' [5.00 GB] inherit inactive '/dev/rvg/lv05' [512.00 MB] inherit ACTIVE '/dev/VolGroup00/LogVol00' [925.75 GB] inherit ACTIVE '/dev/VolGroup00/LogVol01' [5.66 GB] inherit
[root@mickey ~]# ls /dev/rvg lv00 lv01 lv02 lv03 lv04 lv05 lv06 lv07 lv08 lv09
[root@mickey ~]# mount /dev/rvg/lv00 /mnt
[root@mickey ~]# ls /mnt big dev lib media opt sbin sys usr bin etc lib64 misc proc selinux tftpboot var boot home lost+found mnt root srv tmp
[root@mickey ~]#
On Fri, Mar 8, 2013 at 11:17 AM, Harold Pritchett harold@uga.edu wrote:
[root@mickey ~]# vgscan Reading all physical volumes. This may take a while... Found volume group "rvg" using metadata type lvm2 Found volume group "VolGroup00" using metadata type lvm2
[root@mickey ~]# vgchange -a y 10 logical volume(s) in volume group "rvg" now active 2 logical volume(s) in volume group "VolGroup00" now active
Try "vgchange -a y vg0" since you already know the name of the volume group.
[root@mickey ~]# pvscan PV /dev/md125 VG rvg lvm2 [2.72 TB / 1.66 TB free] PV /dev/sda2 VG VolGroup00 lvm2 [465.66 GB / 0 free] PV /dev/sdb1 VG VolGroup00 lvm2 [465.75 GB / 0 free] Total: 3 [3.63 TB] / in use: 3 [3.63 TB] / in no VG: 0 [0 ]
[root@mickey ~]# lvscan inactive '/dev/rvg/lv00' [1.00 GB] inherit inactive '/dev/rvg/lv08' [10.00 GB] inherit inactive '/dev/rvg/lv09' [1000.00 GB] inherit inactive '/dev/rvg/lv04' [20.00 GB] inherit inactive '/dev/rvg/lv03' [2.00 GB] inherit inactive '/dev/rvg/lv02' [4.00 GB] inherit inactive '/dev/rvg/lv06' [40.00 GB] inherit inactive '/dev/rvg/lv07' [10.00 GB] inherit inactive '/dev/rvg/lv01' [5.00 GB] inherit inactive '/dev/rvg/lv05' [512.00 MB] inherit ACTIVE '/dev/VolGroup00/LogVol00' [925.75 GB] inherit ACTIVE '/dev/VolGroup00/LogVol01' [5.66 GB] inherit
[root@mickey ~]# ls /dev/rvg lv00 lv01 lv02 lv03 lv04 lv05 lv06 lv07 lv08 lv09
[root@mickey ~]# mount /dev/rvg/lv00 /mnt
[root@mickey ~]# ls /mnt big dev lib media opt sbin sys usr bin etc lib64 misc proc selinux tftpboot var boot home lost+found mnt root srv tmp
[root@mickey ~]#
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos