Skip to contentSkip to conversation

LVM Down After Disk Failure

linux-lvm Sebastian Walter 1 participant 2 messages Apr 3, 2006

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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!

Quoted 63 lines · Sebastian Walter

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
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/