Re: LVM Down After Disk Failure

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

 



Does anybody know how to force lvm to remove a PV or a LV from a PV
(even if the VG is not accessible)? Probably it still is present somehow
in the  vgda and lvm tries to access it.... thanks!


Sebastian Walter wrote:
> Dear list,
>
> after a power failure we had troubles with a hard drive, it went down
> unrecoverably. So I removed the LV's wich had PE's on this disk by
> executing, and I got this error:
>
> [root@xxx root]# lvremove /dev/xxx/data5
> lvremove -- do you really want to remove "/dev/vghrsc/data5"? [y/n]: y
> lvremove -- ERROR "vg_write(): write" storing data of volume group
> "vghrsc" on disks
>
> then I got another strange error:
>
> Message from syslogd@xxx at Mon Apr  3 12:14:39 2006 ...
> xxx kernel: journal commit I/O error
>
> therefore I decided to reboot the system. After the reboot, I couldn't
> manage to get the system up and running again, I got error messages
> about vgchange not finding any VG's.
>
> I even ran vgcfgrestore, but it succeeded without giving me a hint about
> errors.
>
> vgscan now gives me:
>
> [root@xxx root]# vgscan
> vgscan -- reading all physical volumes (this may take a while...)
> vgscan -- ERROR "vg_read_with_pv_and_lv(): current PV" can't get data of
> volume group "vghrsc" from physical volume(s)
> vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
> vgscan -- WARNING: This program does not do a VGDA backup of your volume
> group
>
> pvscan gives me (I had to remove the scsi disk, before I got some sense
> key errors here):
>
> [root@mex root]# pvscan
> pvscan -- reading all physical volumes (this may take a while...)
> pvscan -- inactive PV "/dev/sdb1"  is associated to unknown VG "vghrsc"
> (run vgscan)
> pvscan -- inactive PV "/dev/sdc1"  is associated to unknown VG "vghrsc"
> (run vgscan)
> pvscan -- inactive PV "/dev/sdd1"  is associated to unknown VG "vghrsc"
> (run vgscan)
> pvscan -- inactive PV "/dev/sde1"  is associated to unknown VG "vghrsc"
> (run vgscan)
> pvscan -- inactive PV "/dev/sdf1"  is associated to unknown VG "vghrsc"
> (run vgscan)
> pvscan -- total: 5 [6.84 TB] / in use: 5 [6.84 TB] / in no VG: 0 [0]
>
> /dev/sdf1 is the scsi drive I removed in the meanwhile and which is not
> present anymore.
>
> I would really appreciate any help! Thanks in advance,
> Sebastian
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>   

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

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

  Powered by Linux