[linux-lvm] Has the failed drive been removed from the vg?

Jongitech jongitech at gmail.com
Sun Jun 15 19:01:20 UTC 2014


Hi,

I have a 1.5TB drive (/dev/sda) that failed but may have started failing 
over the the previous week (there was a point where the system did a 
fsck on the vg which I thought was related to the system rebooting after 
a power failure). I didn't notice anything untoward until today when I 
gather the drive finally failed.

The thing is that when I run the various commands, there is nothing to 
suggest that this drive is part of the vg yet I know it was

# vgdisplay
   /dev/sda: read failed after 0 of 1024 at 0: Input/output error
   /dev/sda: read failed after 0 of 1024 at 4141940736: Input/output error
   /dev/sda: read failed after 0 of 1024 at 4142043136: Input/output error
   /dev/sda: read failed after 0 of 1024 at 4096: Input/output error
   /dev/sda: read failed after 0 of 2048 at 0: Input/output error
   --- Volume group ---
   VG Name               mythtv
   System ID
   Format                lvm2
   Metadata Areas        3
   Metadata Sequence No  2
   VG Access             read/write
   VG Status             resizable
   MAX LV                0
   Cur LV                1
   Open LV               1
   Max PV                0
   Cur PV                3
   Act PV                3
   VG Size               6.77 TiB
   PE Size               4.00 MiB
   Total PE              1775136
   Alloc PE / Size       1775136 / 6.77 TiB
   Free  PE / Size       0 / 0
   VG UUID               634Wwa-MmIs-MWXO-zm7v-7Hhf-bX27-kO3WMg

# pvdisplay -v
     Scanning for physical volume names
   /dev/sda: read failed after 0 of 1024 at 0: Input/output error
   /dev/sda: read failed after 0 of 1024 at 4141940736: Input/output error
   /dev/sda: read failed after 0 of 1024 at 4142043136: Input/output error
     /dev/sda: read failed after 0 of 1024 at 0: Input/output error
   /dev/sda: read failed after 0 of 1024 at 4096: Input/output error
   /dev/sda: read failed after 0 of 2048 at 0: Input/output error
   --- Physical volume ---
   PV Name               /dev/sdb4
   VG Name               mythtv
   PV Size               2.68 TiB / not usable 4.00 MiB
   Allocatable           yes (but full)
   PE Size               4.00 MiB
   Total PE              702042
   Free PE               0
   Allocated PE          702042
   PV UUID               Mv8MD7-Lfmn-A5Gh-dGrD-jnlA-9XI0-cPcTdg

   --- Physical volume ---
   PV Name               /dev/sdc1
   VG Name               mythtv
   PV Size               1.36 TiB / not usable 4.88 MiB
   Allocatable           yes (but full)
   PE Size               4.00 MiB
   Total PE              357698
   Free PE               0
   Allocated PE          357698
   PV UUID               Yw0lux-Wndt-50np-8HNy-ZE0T-apn0-KbvT8P

   --- Physical volume ---
   PV Name               /dev/sdd1
   VG Name               mythtv
   PV Size               2.73 TiB / not usable 3.00 MiB
   Allocatable           yes (but full)
   PE Size               4.00 MiB
   Total PE              715396
   Free PE               0
   Allocated PE          715396
   PV UUID               1BF9Mi-p2F3-oicD-A9C9-G2X0-LGcW-Eizc7e

 From the above I should be able to physically remove the drive and add 
a new one (to the VG) using the standard procedures?

Thanks in advance,
Jongi




More information about the linux-lvm mailing list