Re: [linux-lvm] recovering a bad physical volume

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jul 16, 2002 at 01:02:08AM +0100, Matthew Johnson wrote:
> Hi, I have just got lvm setup on my machine - and it works fine. However,
> I had a problem with my root partition (not lvm) and when it came back up
> one of the 2 lvm partitions on that disk said it wasn't a valid physical
> volume. The otherone was fine, and the logical volumes that weren't on the
> first physical volume (it wasn't striped) mounted OK. The one that was
> partially on that first pv didn't, though - it said the device was not a
> valid block device.
> 
> The question is, can I easily get the partition back so it mounts OK, and
> failing that can I recover all (or any) of the data. all my /usr is on
> there, plus some other less critical stuff, so I really could do with it.
> 
> more system details: Debian woody, with a custom 2.4.19 kernel with lvm
> compiled in. The fs's all run reiserfs. THe volume group contains
> /dev/hde6 /dev/hde7 & /dev/hda5. e7 & a5 are OK when I run pvdisplay, and
> /dev/lvm1/var and /dev/lvm1/utils mount fine. /dev/lvm1/music doesn't
> mount - I get errors reading superblock etc, and when I pvdisplay
> /dev/hde6 it says it is not a valid physical volume.

# pvcreate /dev/hde6
# vgcfgrestore -n lvm1 /dev/hde6
# vgscan

should recover the volume group for you.


-- 

patrick


_______________________________________________
linux-lvm mailing list
linux-lvm@sistina.com
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux