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

[linux-lvm] removing a failed disk from VG



I had a VG scsi_vg consisting of 4 PV's (sda1, sdb1, hdb1,hdc1). 
Now /dev/sdb1 failed and was no longer recogniced by th SCSI-
controller. I had to remove it.

vgscan now fails with the following error:

vgscan -- ERROR "vg_read_with_pv_and_lv(): current PV" can't get data 
of volume group "scsi_vg" from physical volume(s)
vgscan -- reading all physical volumes (this may take a while...)
vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
vgscan -- WARNING: This program does not do a VGDA backup of your 
volume group
 
vgchange -ay gives
-- no volume group found

The remaining PV's seem to be ok and the failed disk was only 4Gb 
large.

Here is the output of pvdisplay:

--- Physical volume ---
PV Name               /dev/sda1
VG Name               scsi_vg
PV Size               4.04 GB [8466192 secs] / NOT usable 1.88 MB 
[LVM: 125 KB]
PV#                   1
PV Status             available
Allocatable           yes (but full)
Cur LV                1
PE Size (KByte)       4096
Total PE              1033
Free PE               0
Allocated PE          1033
PV UUID               pJsMFv-ci9Q-orNK-3cRr-2aTl-w1N9-TEHDI1


--- Physical volume ---
PV Name               /dev/hdb1
VG Name               scsi_vg
PV Size               76.69 GB [160826652 secs] / NOT usable 4.25 MB 
[LVM: 200 KB]
PV#                   3
PV Status             available
Allocatable           yes (but full)
Cur LV                2
PE Size (KByte)       4096
Total PE              19631
Free PE               0
Allocated PE          19631
PV UUID               u5I40y-Op34-nnVV-aInj-Jekc-VJT7-s2q8OK


--- Physical volume ---
PV Name               /dev/hdc1
VG Name               scsi_vg
PV Size               19.01 GB [39873267 secs] / NOT usable 4.18 MB 
[LVM: 143 KB]
PV#                   5
PV Status             available
Allocatable           yes
Cur LV                1
PE Size (KByte)       4096
Total PE              4866
Free PE               2040
Allocated PE          2826
PV UUID               3PCGsY-hUr6-QEUt-MkoJ-fKlX-24vG-pS0HJY

What can I do? How can I remove the no longer existing PV sdb1 from 
scsi_vg?

Any help will be appreciated.
Regards
Alois




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