Skip to contentSkip to conversation

Any way to recover "logical volumes"

linux-lvm Dan Elder 2 participants 3 messages Jan 5, 2006

lore
Share & tools
lore

Dan Elder

author
#0 lore raw

Hi All, yesterday my main system drive crashed, leaving me with two 400GB LVM drives with data on them that I need to access. When I run pvscan I get the following info on a brand new system install with the LVM drives attached:

 PV /dev/sda1   VG VolGroup00   lvm2 [372.59 GB / 372.59 GB free]
 PV /dev/sdb1   VG VolGroup00   lvm2 [372.59 GB / 372.59 GB free]

Total: 2 [745.19 GB] / in use: 2 [745.19 GB] / in no VG: 0 [0 ]

so I'm guessing(and hoping) that the data is still there, but I can't figure out the proper way to access or mount this. The VG says there are 0 logical volumes, is there a way to add the existing disks to this VG as logical volumes? I've been reading all of the howto's & forums & haven't found anything that works yet.

Thanks in advance

#1 lore raw

vgscan
lvscan

which your startup scripts should be doing for you. pvscan just finds/shows pv's

Quoted 16 lines · --On January 5, 2006 10:08:01 AM -0800 Dan Elder <[email protected]> wrote:

Hi All, yesterday my main system drive crashed, leaving me with two 400GB LVM drives with data on them that I need to access. When I run pvscan I get the following info on a brand new system install with the LVM drives attached:

 PV /dev/sda1   VG VolGroup00   lvm2 [372.59 GB / 372.59 GB free]
 PV /dev/sdb1   VG VolGroup00   lvm2 [372.59 GB / 372.59 GB free]

Total: 2 [745.19 GB] / in use: 2 [745.19 GB] / in no VG: 0 [0 ]

so I'm guessing(and hoping) that the data is still there, but I can't figure out the proper way to access or mount this. The VG says there are 0 logical volumes, is there a way to add the existing disks to this VG as logical volumes? I've been reading all of the howto's & forums & haven't found anything that works yet.

Quoted 8 lines

Thanks in advance

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

--
"Genius might be described as a supreme capacity for getting its possessors into trouble of all kinds."
-- Samuel Butler

author
#2 lore raw

when I run those I get the following:

[root@localhost dev]# lvscan
Volume group "VolGroup00" is exported
[root@localhost dev]# vgscan
Reading all physical volumes. This may take a while... Found exported volume group "VolGroup00" using metadata type lvm2

But I don't know what steps to take after that to get to the data on the disks.

when I posted this originally I noticed the following:

Quoted 2 lines
 PV /dev/sda1   VG VolGroup00   lvm2 [372.59 GB / 372.59 GB free]
 PV /dev/sdb1   VG VolGroup00   lvm2 [372.59 GB / 372.59 GB free]

which is reading each disk as if it does not have any data on it, am I reading this right? could the data have also been wiped out?

-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Michael Loftis
Sent: Thursday, January 05, 2006 10:31 AM
To: LVM general discussion and development
Subject: Re: [linux-lvm] Any way to recover "logical volumes"

vgscan
lvscan

which your startup scripts should be doing for you. pvscan just finds/shows pv's

--On January 5, 2006 10:08:01 AM -0800 Dan Elder <[email protected]>

Quoted 16 lines · wrote:

Hi All, yesterday my main system drive crashed, leaving me with two 400GB LVM drives with data on them that I need to access. When I run pvscan I get the following info on a brand new system install with the LVM drives attached:

 PV /dev/sda1   VG VolGroup00   lvm2 [372.59 GB / 372.59 GB free]
 PV /dev/sdb1   VG VolGroup00   lvm2 [372.59 GB / 372.59 GB free]

Total: 2 [745.19 GB] / in use: 2 [745.19 GB] / in no VG: 0 [0 ]

so I'm guessing(and hoping) that the data is still there, but I can't figure out the proper way to access or mount this. The VG says there are 0 logical volumes, is there a way to add the existing disks to this VG as logical volumes? I've been reading all of the howto's & forums & haven't found anything that works yet.

Quoted 8 lines

Thanks in advance

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

--
"Genius might be described as a supreme capacity for getting its possessors into trouble of all kinds."
-- Samuel Butler

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/