Broken LVM
GyroTech
gyrotech at freakinabox.com
Sun Jul 8 21:04:42 UTC 2007
I have been using an LVM spanning multiple drives just to dump files on
for a while and it's been great. Unfortunately, one of the drives has
died a death (not even BIOS detects it any more) and I can't figure out
how I remove the PV from the VG :
# pvdisplay
/dev/mapper/Error|lvm2|LVMDriveSpan|pv1: read failed after 0 of 4096
at 0: Input/output error
/dev/mapper/Error|lvm2|LVMDriveSpan|pv1: read failed after 0 of 4096
at 123518189568: Input/output error
/dev/mapper/Error|lvm2|LVMDriveSpan|pv1: read failed after 0 of 4096
at 0: Input/output error
Couldn't find device with uuid 'ZLFY1R-TA5z-gpY5-Yezh-0lxZ-47h6-du9VDm'.
/dev/mapper/Error|lvm2|LVMDriveSpan|pv1: read failed after 0 of 4096
at 0: Input/output error
Couldn't find device with uuid 'ZLFY1R-TA5z-gpY5-Yezh-0lxZ-47h6-du9VDm'.
/dev/mapper/Error|lvm2|LVMDriveSpan|pv1: read failed after 0 of 4096
at 0: Input/output error
/dev/mapper/Error|lvm2|LVMDriveSpan|pv1: read failed after 0 of 4096
at 0: Input/output error
Couldn't find device with uuid 'ZLFY1R-TA5z-gpY5-Yezh-0lxZ-47h6-du9VDm'.
/dev/mapper/Error|lvm2|LVMDriveSpan|pv1: read failed after 0 of 4096
at 0: Input/output error
Couldn't find device with uuid 'ZLFY1R-TA5z-gpY5-Yezh-0lxZ-47h6-du9VDm'.
--- Physical volume ---
PV Name /dev/mapper/hdd1
VG Name LVMDriveSpan
PV Size 152.66 GB / not usable 0
Allocatable yes (but full)
PE Size (KByte) 4096
Total PE 39081
Free PE 0
Allocated PE 39081
PV UUID nc8g3X-d7SW-CPnO-7mpy-nS5N-VkVI-40ZLxv
--- Physical volume ---
PV Name unknown device
VG Name LVMDriveSpan
PV Size 115.04 GB / not usable 0
Allocatable yes (but full)
PE Size (KByte) 4096
Total PE 29449
Free PE 0
Allocated PE 29449
PV UUID ZLFY1R-TA5z-gpY5-Yezh-0lxZ-47h6-du9VDm
--- Physical volume ---
PV Name /dev/mapper/hda6
VG Name LVMDriveSpan
PV Size 31.71 GB / not usable 0
Allocatable yes (but full)
PE Size (KByte) 4096
Total PE 8118
Free PE 0
Allocated PE 8118
PV UUID JK9DZr-gZ6M-QgjY-2Nvl-DzDd-mMUU-0gq844
# vgremove LVMDriveSpan
/dev/mapper/Error|lvm2|LVMDriveSpan|pv1: read failed after 0 of 4096
at 0: Input/output error
/dev/mapper/Error|lvm2|LVMDriveSpan|pv1: read failed after 0 of 4096
at 123518189568: Input/output error
/dev/mapper/Error|lvm2|LVMDriveSpan|pv1: read failed after 0 of 4096
at 0: Input/output error
Couldn't find device with uuid 'ZLFY1R-TA5z-gpY5-Yezh-0lxZ-47h6-du9VDm'.
Couldn't find all physical volumes for volume group LVMDriveSpan.
/dev/mapper/Error|lvm2|LVMDriveSpan|pv1: read failed after 0 of 4096
at 0: Input/output error
Couldn't find device with uuid 'ZLFY1R-TA5z-gpY5-Yezh-0lxZ-47h6-du9VDm'.
Couldn't find all physical volumes for volume group LVMDriveSpan.
/dev/mapper/Error|lvm2|LVMDriveSpan|pv1: read failed after 0 of 4096
at 0: Input/output error
/dev/mapper/Error|lvm2|LVMDriveSpan|pv1: read failed after 0 of 4096
at 0: Input/output error
Couldn't find device with uuid 'ZLFY1R-TA5z-gpY5-Yezh-0lxZ-47h6-du9VDm'.
Couldn't find all physical volumes for volume group LVMDriveSpan.
/dev/mapper/Error|lvm2|LVMDriveSpan|pv1: read failed after 0 of 4096
at 0: Input/output error
Couldn't find device with uuid 'ZLFY1R-TA5z-gpY5-Yezh-0lxZ-47h6-du9VDm'.
Couldn't find all physical volumes for volume group LVMDriveSpan.
Volume group "LVMDriveSpan" not found
The second device is obviously the one that failed and is actually
/dev/hdc1 . Running pvremove /dev/hdc1 produces no output and doesn't
change the results of pvdisplay so I doubt it's doing anything at all.
No data on the LVM matters, as it was just a temporary storage solution,
but without being able to clear out the LVM data, I can't replace the
faulty drive and re-create a new VG or LV as the two healthy partitons
(/devhda6 and /dev/hdd1) both still want to belong to LVMDriveSpan.
Any thoughts on this??
More information about the ubuntu-users
mailing list