LVM input/output error

filesystemslvm

When I run the lvdisplay, it showed the following error…

/usr/sbin/lvdisplay
    /dev/sdb: read failed after 0 of 2048 at 0: Input/output error
    /dev/sdb1: read failed after 0 of 2048 at 0: Input/output error
    /dev/sdb2: read failed after 0 of 2048 at 0: Input/output error
    /dev/sdb3: read failed after 0 of 2048 at 0: Input/output error
--- Logical volume ---
...

I can still see my volumes, when the error is showing everytime, any idea?

Best Answer

If the drive supports smartctl, you can also get a trivial read on it with smartctl -H /dev/sdb. smartctl -a /dev/sdb will give you more information; the SMART attributes data structure is well worth a look. You can also use smartctl -t to run tests on the drive, some of which can be run with the system in normal operation (though they will impact performance); do a man smartctl to find out more.

Related Topic