lvm command line shows filesystem IO errors
after enabling multipath on a REHEL 7 server IM having errors while typing lvm command line (pvs, lvs, vgs etc ....
/dev/sdag: read failed after 0 of 4096 at 0: Input/output error
/dev/sdag: read failed after 0 of 4096 at 4398046445568: Input/output error
/dev/sdag: read failed after 0 of 4096 at 4398046502912: Input/output error
/dev/sdag: read failed after 0 of 4096 at 4096: Input/output error
/dev/sdah: read failed after 0 of 4096 at 0: Input/output error
/dev/sdah: read failed after 0 of 4096 at 5600637288448: Input/output error
/dev/sdah: read failed after 0 of 4096 at 5600637345792: Input/output error
/dev/sdah: read failed after 0 of 4096 at 4096: Input/output error
/dev/sdaa: read failed after 0 of 4096 at 0: Input/output error
/dev/sdaa: read failed after 0 of 4096 at 5199208120320: Input/output error
/dev/sdaa: read failed after 0 of 4096 at 5199208230912: Input/output error
/dev/sdaa: read failed after 0 of 4096 at 4096: Input/output error
/dev/sdab: read failed after 0 of 4096 at 0: Input/output error
/dev/sdab: read failed after 0 of 4096 at 5997937819648: Input/output error
/dev/sdab: read failed after 0 of 4096 at 5997937930240: Input/output error
/dev/sdab: read failed after 0 of 4096 at 4096: Input/output error
/dev/sdac: read failed after 0 of 4096 at 0: Input/output error
/dev/sdac: read failed after 0 of 4096 at 5998047395840: Input/output error
/dev/sdac: read failed after 0 of 4096 at 5998047453184: Input/output error
/dev/sdac: read failed after 0 of 4096 at 4096: Input/output error
/dev/sdad: read failed after 0 of 4096 at 0: Input/output error
/dev/sdad: read failed after 0 of 4096 at 4398046445568: Input/output error
/dev/sdad: read failed after 0 of 4096 at 4398046502912: Input/output error
/dev/sdad: read failed after 0 of 4096 at 4096: Input/output error
/dev/sdae: read failed after 0 of 4096 at 0: Input/output error
/dev/sdae: read failed after 0 of 4096 at 4398046445568: Input/output error
/dev/sdae: read failed after 0 of 4096 at 4398046502912: Input/output error
/dev/sdae: read failed after 0 of 4096 at 4096: Input/output error
/dev/sdaf: read failed after 0 of 4096 at 0: Input/output error
/dev/sdaf: read failed after 0 of 4096 at 4398046445568: Input/output error
/dev/sdaf: read failed after 0 of 4096 at 4398046502912: Input/output error
/dev/sdaf: read failed after 0 of 4096 at 4096: Input/output error
PV /dev/sdf VG vgssd480 lvm2 [446.10 GiB / 0 free]
PV /dev/sde VG vgsas600b lvm2 [557.86 GiB / 0 free]
PV /dev/sdd VG vgsas1200b lvm2 [1.09 TiB / 504.00 MiB free]
PV /dev/sdc VG vgsas1200a lvm2 [1.09 TiB / 816.65 GiB free]
PV /dev/mapper/mpathl VG stgpool33 lvm2 [4.00 TiB / 0 free]
PV /dev/mapper/mpathk VG stgpool32 lvm2 [4.00 TiB / 0 free]
PV /dev/mapper/mpathj VG stgpool31 lvm2 [4.00 TiB / 0 free]
PV /dev/mapper/mpathi VG stgpool42 lvm2 [5.46 TiB / 0 free]
PV /dev/mapper/mpathh VG stgpool41 lvm2 [5.46 TiB / 0 free]
PV /dev/mapper/mpathg VG stgpool23 lvm2 [4.73 TiB / 0 free]
PV /dev/mapper/mpathf VG stgpool22 lvm2 [4.00 TiB / 0 free]
PV /dev/mapper/mpathe VG stgpool21 lvm2 [4.00 TiB / 0 free]
PV /dev/mapper/mpathd VG stgpool14 lvm2 [4.00 TiB / 0 free]
PV /dev/mapper/mpathc VG stgpool13 lvm2 [4.00 TiB / 0 free]
PV /dev/mapper/mpathb VG stgpool12 lvm2 [4.00 TiB / 0 free]
PV /dev/mapper/mpatha VG stgpool11 lvm2 [4.00 TiB / 0 free]
PV /dev/sdb VG vgsas600a lvm2 [557.86 GiB / 0 free]
Responses
Have you set a filtering rule in lvm.conf file? If not, please set a rule to scan only multipath devices and exclude others. Refer this article https://access.redhat.com/solutions/57300
RHEL 7 should automatically prefer multipath devices over their component /dev/sd* devices with the default settings, but this may only happen when detecting new devices.
If you have just enabled multipathing and LVM has previously detected the disks via the /dev/sd* devices directly, it may be trying to keep using those devices.
If that's the problem, just removing the /etc/lvm/cache/.cache file and then running vgscan should be enough to fix it.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
