![LVM 输入/输出错误](https://linux22.com/image/795119/LVM%20%E8%BE%93%E5%85%A5%2F%E8%BE%93%E5%87%BA%E9%94%99%E8%AF%AF.png)
当我运行 lvdisplay 时,它显示以下错误...
/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 ---
...
每次出现错误时我仍然可以看到我的卷,有什么想法吗?
答案1
如果驱动器支持 smartctl,您还可以使用 对其进行简单读取smartctl -H /dev/sdb
。 smartctl -a /dev/sdb
这将为您提供更多信息;SMART 属性数据结构非常值得一看。您还可以使用smartctl -t
在驱动器上运行测试,其中一些测试可以在系统正常运行时运行(尽管它们会影响性能);执行man smartctl
以了解更多信息。
答案2
/dev/sdb 硬盘似乎出现了硬件故障。运行dmesg
以检查是否存在其他内核错误。
运行制造商的硬盘诊断软件对磁盘进行检查,以确定实际故障。