LVM showming so many error messages


#lvdisplay
/dev/sda: read failed after 0 of 4096 at 0: Input/output error
/dev/sda: read failed after 0 of 4096 at 37580898304: Input/output error
/dev/sda: read failed after 0 of 4096 at 37580955648: Input/output error
/dev/sda: read failed after 0 of 4096 at 4096: Input/output error
/dev/sdc: read failed after 0 of 4096 at 0: Input/output error
/dev/sdc: read failed after 0 of 4096 at 37580898304: Input/output error
/dev/sdc: read failed after 0 of 4096 at 37580955648: Input/output error
/dev/sdc: read failed after 0 of 4096 at 4096: Input/output error
/dev/sdf: read failed after 0 of 4096 at 0: Input/output error
/dev/sdf: read failed after 0 of 4096 at 37580898304: Input/output error
/dev/sdf: read failed after 0 of 4096 at 37580955648: Input/output error
/dev/sdf: read failed after 0 of 4096 at 4096: Input/output error
/dev/sdh: read failed after 0 of 4096 at 0: Input/output error
/dev/sdh: read failed after 0 of 4096 at 37580898304: Input/output error
/dev/sdh: read failed after 0 of 4096 at 37580955648: Input/output error
/dev/sdh: read failed after 0 of 4096 at 4096: Input/output error
/dev/sdi: read failed after 0 of 4096 at 0: Input/output error
/dev/sdi: read failed after 0 of 4096 at 2199023190016: Input/output error
/dev/sdi: read failed after 0 of 4096 at 2199023247360: Input/output error
/dev/sdi: read failed after 0 of 4096 at 4096: Input/output error
/dev/sdj: read failed after 0 of 4096 at 0: Input/output error
/dev/sdj: read failed after 0 of 4096 at 32212189184: Input/output error
/dev/sdj: read failed after 0 of 4096 at 32212246528: Input/output error
/dev/sdj: read failed after 0 of 4096 at 4096: Input/output error
/dev/sdl: read failed after 0 of 4096 at 0: Input/output error
/dev/sdl: read failed after 0 of 4096 at 32212189184: Input/output error
/dev/sdl: read failed after 0 of 4096 at 32212246528: Input/output error
/dev/sdl: read failed after 0 of 4096 at 4096: Input/output error
/dev/sdm: read failed after 0 of 4096 at 0: Input/output error
/dev/sdm: read failed after 0 of 4096 at 2199023190016: Input/output error
/dev/sdm: read failed after 0 of 4096 at 2199023247360: Input/output error
/dev/sdm: read failed after 0 of 4096 at 4096: Input/output error
/dev/sdn: read failed after 0 of 4096 at 0: Input/output error
/dev/sdn: read failed after 0 of 4096 at 32212189184: Input/output error
/dev/sdn: read failed after 0 of 4096 at 32212246528: Input/output error
/dev/sdn: read failed after 0 of 4096 at 4096: Input/output error


--- Physical volume ---
PV Name /dev/sdq
VG Name vgvol
PV Size 35.00 GiB / not usable 4.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 8959
Free PE 0
Allocated PE 8959
PV UUID CCnnnt-NLtP-rvIm-kZkX-Fv7H-gqIQ-n9YuFM

--- Physical volume ---
PV Name /dev/sdr
VG Name vgvol
PV Size 35.00 GiB / not usable 4.00 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 8959
Free PE 1279
Allocated PE 7680
PV UUID n2606u-rVVw-SdZa-ylvP-hn7C-o7qz-xWGDo2



Answer: I have filtered the required disks which was required for me.
[root@gfscluster1 ~]# cat /etc/lvm/lvm.conf | grep -i "filter\|type"
    filter = [ "a/dev/mapper/.*/", "a/dev/sda3$/", "a/dev/sdq$/", "a/dev/sdr$/", "r/.*/" ]
   types = [ "device-mapper", 1]


Example 2: # pvdisplay
/dev/sda: read failed after 0 of 4096 at 0: Input/output error
/dev/sda: read failed after 0 of 4096 at 37580898304: Input/output error
/dev/sda: read failed after 0 of 4096 at 37580955648: Input/output error
/dev/sda: read failed after 0 of 4096 at 4096: Input/output error
/dev/sdb: read failed after 0 of 4096 at 0: Input/output error
/dev/sdb: read failed after 0 of 4096 at 5497558073344: Input/output error
/dev/sdb: read failed after 0 of 4096 at 5497558130688: Input/output error
/dev/sdb: read failed after 0 of 4096 at 4096: Input/output error
/dev/sdd: read failed after 0 of 4096 at 0: Input/output error
/dev/sdd: read failed after 0 of 4096 at 2199023190016: Input/output error
/dev/sdd: read failed after 0 of 4096 at 2199023247360: Input/output error
/dev/sdd: read failed after 0 of 4096 at 4096: Input/output error
/dev/sdg: read failed after 0 of 4096 at 0: Input/output error
/dev/sdg: read failed after 0 of 4096 at 5497558073344: Input/output error
/dev/sdg: read failed after 0 of 4096 at 5497558130688: Input/output error
/dev/sdg: read failed after 0 of 4096 at 4096: Input/output error
/dev/sdi: read failed after 0 of 4096 at 0: Input/output error
/dev/sdi: read failed after 0 of 4096 at 37580898304: Input/output error
/dev/sdi: read failed after 0 of 4096 at 37580955648: Input/output error
/dev/sdi: read failed after 0 of 4096 at 4096: Input/output error
/dev/sdj: read failed after 0 of 4096 at 0: Input/output error
/dev/sdj: read failed after 0 of 4096 at 5497558073344: Input/output error
/dev/sdj: read failed after 0 of 4096 at 5497558130688: Input/output error
/dev/sdj: read failed after 0 of 4096 at 4096: Input/output error
/dev/sdl: read failed after 0 of 4096 at 0: Input/output error
/dev/sdl: read failed after 0 of 4096 at 2199023190016: Input/output error
/dev/sdl: read failed after 0 of 4096 at 2199023247360: Input/output error
/dev/sdl: read failed after 0 of 4096 at 4096: Input/output error
--- Physical volume ---
PV Name /dev/sdm2
VG Name VolGroup
PV Size 1.63 TiB / not usable 0
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 427431
Free PE 0
Allocated PE 427431
PV UUID PaPekP-YBm1-NdWl-ubJf-vR7S-fAuN-CVGXwZ

--- Physical volume ---
PV Name /dev/sde
VG Name vgvol_gfscluster2
PV Size 35.00 GiB / not usable 4.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 8959
Free PE 0
Allocated PE 8959
PV UUID QEsEz4-2jyf-SHcm-iW9G-3rKI-vrXf-otz3EG


Answer : change follow in lvm.conf
filter = [ "a/dev/mapper/.*/", "a/dev/sde$/", "a/dev/sdm/", "r/.*/" ]
types = [ "device-mapper", 1]

Comments

Popular posts from this blog

How to delete SEA in VIOS

More VIOS commands

Webmin configuration for LDAP