EXT4-fs 错误和 sd 错误。拒绝对离线设备进行 I/O

EXT4-fs 错误和 sd 错误。拒绝对离线设备进行 I/O

系统配置:

  • Ubuntu 12.04 服务器 64 位
  • HP Proliant dl140 g3
  • 32GB 内存
  • 英特尔 X5365 四核 3GHz
  • LSI SAS1068
  • 2 个 WD 黑色 2TB SATA HDD,RAID 1

错误:

[ 2044.430919] EXT4-fs (sda1): previous I/O error to superblock detected
[ 2044.436018] sd 4:1:1:0: rejecting I/O to offline device
[ 2044.441364] EXT4-fs error (device sda1): __ext4_get_inode_loc:3683: inode #86663229: block 346555939: comm du: unable to read itable block
[ 2044.452399] sd 4:1:1:0: rejecting I/O to offline device
[ 2044.457844] sd 4:1:1:0: rejecting I/O to offline device
[ 2044.462877] sd 4:1:1:0: rejecting I/O to offline device
[ 2044.467606] sd 4:1:1:0: rejecting I/O to offline device
[ 2044.472357] sd 4:1:1:0: rejecting I/O to offline device
[ 2044.477110] sd 4:1:1:0: rejecting I/O to offline device
[ 2044.481844] sd 4:1:1:0: rejecting I/O to offline device
[ 2044.486613] sd 4:1:1:0: rejecting I/O to offline device
[ 2044.491372] sd 4:1:1:0: rejecting I/O to offline device
[ 2044.496131] sd 4:1:1:0: rejecting I/O to offline device
[ 2044.500872] EXT4-fs (sda1): previous I/O error to superblock detected
[ 2044.506010] sd 4:1:1:0: rejecting I/O to offline device
[ 2044.511376] EXT4-fs error (device sda1): __ext4_get_inode_loc:3683: inode #86671461: block 346556454: comm du: unable to read itable block
[ 2044.339461] block 346037795: comm du: unable to read itable block
[ 2044.339663] sd 4:1:1:0: rejecting I/O to offline device
[ 504.854978] EXT4-fs error (device sda1) in ext4_reserve_inode_write:4507: Journal has aborted
[ 504.826169] EXT4-fs error (device sda1) in ext4_orphan_del:2111: Journal has aborted

出现这些错误后,文件系统将变为只读,之后一切都无法正常工作。有时我甚至无法重新启动它。我尝试重新安装文件系统,但不起作用。只有重新启动才能(暂时)解决问题。

查看日志后我发现这些可能有帮助:

[   15.846694] sd 4:1:1:0: [sda] Write Protect is off
[   15.846706] sd 4:1:1:0: [sda] Mode Sense: 03 00 00 08
[   15.846918] sd 4:1:1:0: [sda] No Caching mode page found
[   15.846929] sd 4:1:1:0: [sda] Assuming drive cache: write through
[   15.847731] sd 4:1:1:0: [sda] No Caching mode page found
[   15.847736] sd 4:1:1:0: [sda] Assuming drive cache: write through
[   15.876479]  sda: sda1 sda2 < sda5 >
[   15.877403] sd 4:1:1:0: [sda] No Caching mode page found
[   15.877409] sd 4:1:1:0: [sda] Assuming drive cache: write through
[   15.877414] sd 4:1:1:0: [sda] Attached SCSI disk
[   37.460186] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
[   37.460192] EXT4-fs (sda1): write access will be enabled during recovery
[   38.929477] EXT4-fs (sda1): orphan cleanup on readonly fs
[   38.929497] EXT4-fs (sda1): ext4_orphan_cleanup: deleting unreferenced inode 86523973
[   38.930128] EXT4-fs (sda1): ext4_orphan_cleanup: deleting unreferenced inode 13572042
[   38.945392] EXT4-fs (sda1): ext4_orphan_cleanup: deleting unreferenced inode 110888306
[   38.964164] EXT4-fs (sda1): ext4_orphan_cleanup: deleting unreferenced inode 110890639
[   38.964195] EXT4-fs (sda1): ext4_orphan_cleanup: deleting unreferenced inode 73400330
[   38.964208] EXT4-fs (sda1): ext4_orphan_cleanup: deleting unreferenced inode 73400329
[   38.964218] EXT4-fs (sda1): ext4_orphan_cleanup: deleting unreferenced inode 73400328
[   38.964228] EXT4-fs (sda1): ext4_orphan_cleanup: deleting unreferenced inode 73400327
[   38.964237] EXT4-fs (sda1): ext4_orphan_cleanup: deleting unreferenced inode 73400323
[   38.964245] EXT4-fs (sda1): 9 orphan inodes deleted
[   38.964250] EXT4-fs (sda1): recovery complete
[   39.261874] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   54.271669] Adding 4190204k swap on /dev/sda5.  Priority:-1 extents:1 across:4190204k
[   54.345011] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[259523.631903] EXT4-fs (sda1): Unaligned AIO/DIO on inode 13372685 by AioMgr0-N; performance will be poor.

我尝试了以下方法:

  • Memtest。2次成功通过。
  • LSI 配置。阵列报告为最佳,并且两个驱动器均未预测到故障。
  • fsck -M -fy /dev/sdb1从 14.10 的实时 USB 来看一切正常。

任何想法/帮助都将不胜感激。

答案1

通过在硬盘、电缆和插头上使用接触清洁剂解决问题。

相关内容