[linux-lvm] restore question
mauelshagen at redhat.com
Mon Aug 23 13:38:22 UTC 2004
On Sun, Aug 22, 2004 at 03:31:58PM +0200, Fraser Pringle wrote:
> I have a problem with using lvm and I'd be grateful for some advice.
> I have a data volume group "datavg" on a mirrored raid partion that was running
> fine until I experienced a system crash. After the crash the /dev/md0
> raid device was not recognised by the lvm system and neither was the
> datavg. After finding some advice on this list I ran the commands:
> pvcreate /dev/md0
> vgcfgrestore -n datavg /dev/md0
> to restore the datavg. This seemed to work, however, the volume group
> seems to have been restored to a point some time in the past, i.e. there
> are many files missing. I'm not too sure how this could have happend as
> all the reading I've done seems to suggest that the vgcfgrestore command
> should just have restored the configuration and not any data.
Right, the vgcfgrestore restored the most recent LVM metadata to the device.
This doesn't change any data content withing Logical Volumes.
> Have I
> somehow restored a snapshot of the volume group? Does anyone have any
> suggestions as to how I might retrieve my data?
Hard to tell waht happened without more information.
What does lvscan show ?
What does lvdisplay show on the LVs ?
> Any advice would be very welcome.
> lvm version: 1.0.8-4
> linux-lvm mailing list
> linux-lvm at redhat.com
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
Heinz -- The LVM Guy --
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
Heinz Mauelshagen Red Hat GmbH
Consulting Development Engineer Am Sonnenhang 11
Mauelshagen at RedHat.com +49 2626 141200
More information about the linux-lvm