message/maillog日誌提示磁盤innode、io錯誤等,掃描磁盤很多壞道
阿新 • • 發佈:2018-08-06
cal cover fig quest com str eply inb ply 1、/var/log/messages報錯。
[root@localhost ~]# tail -f /var/log/messages | grep error Aug 6 16:03:25 localhost kernel: EXT4-fs error (device dm-2): ext4_lookup: deleted inode referenced: 6032967 Aug 6 16:03:25 localhost kernel: EXT4-fs error (device dm-2): ext4_lookup: deleted inode referenced: 6032967 Aug 6 16:03:25 localhost kernel: EXT4-fs error (device dm-2): ext4_lookup: deleted inode referenced: 6032967 Aug 6 16:03:52 localhost kernel: EXT4-fs error (device dm-2): ext4_lookup: deleted inode referenced: 6032967 Aug 6 16:03:52 localhost kernel: EXT4-fs error (device dm-2): ext4_lookup: deleted inode referenced: 6032967 Aug 6 16:03:52 localhost kernel: EXT4-fs error (device dm-2): ext4_lookup: deleted inode referenced: 6032967 Aug 6 16:06:30 localhost kernel: EXT4-fs error (device dm-2): ext4_lookup: deleted inode referenced: 6032966 Aug 6 16:06:30 localhost kernel: EXT4-fs error (device dm-2): ext4_lookup: deleted inode referenced: 6032966 Aug 6 16:06:31 localhost kernel: EXT4-fs error (device dm-2): ext4_lookup: deleted inode referenced: 6032966 Aug 6 16:06:31 localhost kernel: EXT4-fs error (device dm-2): ext4_lookup: deleted inode referenced: 6032966 Aug 6 16:51:22 localhost dbus-daemon: [system] Rejected send message, 1 matched rules; type="method_call", sender=":1.25" (uid=42 pid=3675 comm="gnome-power-manager) interface="org.freedesktop.Hal.Device.LaptopPanel" member="SetBrightness" error name="(unset)" requested_reply=0 destination=":1.4" (uid=0 pid=2085 comm="hald)) Aug 6 16:51:22 localhost kernel: res 41/40:00:c8:12:9e/00:00:1d:00:00/40 Emask 0x409 (media error) <F> Aug 6 16:51:22 localhost kernel: ata1.00: error: { UNC } Aug 6 16:51:26 localhost kernel: res 41/40:00:c8:12:9e/00:00:1d:00:00/40 Emask 0x409 (media error) <F> Aug 6 16:51:26 localhost kernel: ata1.00: error: { UNC } Aug 6 16:51:29 localhost kernel: res 41/40:00:c8:12:9e/00:00:1d:00:00/40 Emask 0x409 (media error) <F> Aug 6 16:51:29 localhost kernel: ata1.00: error: { UNC } Aug 6 16:51:33 localhost kernel: res 41/40:00:c8:12:9e/00:00:1d:00:00/40 Emask 0x409 (media error) <F> Aug 6 16:51:33 localhost kernel: ata1.00: error: { UNC } Aug 6 16:51:33 localhost kernel: sd 0:0:0:0: [sda] Add. Sense: Unrecovered read error - auto reallocate failed Aug 6 16:51:33 localhost kernel: end_request: I/O error, dev sda, sector 496898760 Aug 6 16:51:33 localhost kernel: Buffer I/O error on device sda, logical block 62112345 Aug 6 16:51:36 localhost kernel: res 41/40:00:c8:12:9e/00:00:1d:00:00/40 Emask 0x409 (media error) <F> Aug 6 16:51:36 localhost kernel: ata1.00: error: { UNC } Aug 6 16:51:40 localhost kernel: res 41/40:00:c8:12:9e/00:00:1d:00:00/40 Emask 0x409 (media error) <F> Aug 6 16:51:40 localhost kernel: ata1.00: error: { UNC } Aug 6 16:51:43 localhost kernel: res 41/40:00:c8:12:9e/00:00:1d:00:00/40 Emask 0x409 (media error) <F> Aug 6 16:51:43 localhost kernel: ata1.00: error: { UNC } Aug 6 16:51:47 localhost kernel: res 41/40:00:c8:12:9e/00:00:1d:00:00/40 Emask 0x409 (media error) <F> Aug 6 16:51:47 localhost kernel: ata1.00: error: { UNC } Aug 6 16:51:50 localhost kernel: res 41/40:00:c8:12:9e/00:00:1d:00:00/40 Emask 0x409 (media error) <F> Aug 6 16:51:50 localhost kernel: ata1.00: error: { UNC } Aug 6 16:51:54 localhost kernel: res 41/40:00:c8:12:9e/00:00:1d:00:00/40 Emask 0x409 (media error) <F> Aug 6 16:51:54 localhost kernel: ata1.00: error: { UNC } Aug 6 16:51:54 localhost kernel: sd 0:0:0:0: [sda] Add. Sense: Unrecovered read error - auto reallocate failed Aug 6 16:51:54 localhost kernel: end_request: I/O error, dev sda, sector 496898760 Aug 6 16:51:54 localhost kernel: Buffer I/O error on device sda, logical block 62112345 Aug 6 16:52:08 localhost kernel: res 41/40:00:a8:c6:c2/00:00:1d:00:00/40 Emask 0x409 (media error) <F> Aug 6 16:52:08 localhost kernel: ata1.00: error: { UNC } Aug 6 16:52:12 localhost kernel: res 41/40:00:a8:c6:c2/00:00:1d:00:00/40 Emask 0x409 (media error) <F> Aug 6 16:52:12 localhost kernel: ata1.00: error: { UNC } Aug 6 16:52:12 localhost kernel: res 41/40:00:00:00:00/00:00:00:00:00/00 Emask 0x9 (media error) Aug 6 16:52:12 localhost kernel: ata1.00: error: { UNC } Aug 6 16:52:12 localhost kernel: res 41/40:00:00:00:00/00:00:00:00:00/00 Emask 0x9 (media error) Aug 6 16:52:12 localhost kernel: ata1.00: error: { UNC } Aug 6 16:52:15 localhost kernel: res 41/40:00:a8:c6:c2/00:00:1d:00:00/40 Emask 0x409 (media error) <F> Aug 6 16:52:15 localhost kernel: ata1.00: error: { UNC } Aug 6 16:52:19 localhost kernel: res 41/40:00:a8:c6:c2/00:00:1d:00:00/40 Emask 0x409 (media error) <F> Aug 6 16:52:19 localhost kernel: ata1.00: error: { UNC }
2、/var/log/maillog郵件日誌報錯
[root@localhost log]# tail -f maillog | grep error
Aug 6 16:03:52 localhost dovecot: Error: pop3([email protected])<13489><mEvet79ybgm3C8re>: Mailbox INBOX: open(test.com.cn/0/wangyao/dovecot-uidlist) failed: Input/output error Aug 6 16:03:52 localhost dovecot: Error: pop3([email protected])<13489><mEvet79ybgm3C8re>: Mailbox INBOX: open(test.com.cn/0/wangyao/dovecot-uidlist) failed: Input/output error Aug 6 16:03:52 localhost dovecot: Error: pop3([email protected])<13489><mEvet79ybgm3C8re>: Mailbox INBOX: open(test.com.cn/0/wangyao/dovecot-uidlist) failed: Input/output error Aug 6 16:03:52 localhost dovecot: pop3([email protected])<13489><mEvet79ybgm3C8re>: Error: Couldn't init INBOX: Mailbox INBOX: open(test.com.cn/0/wangyao/dovecot-uidlist) failed: Input/output error Aug 6 16:03:52 localhost dovecot: pop3([email protected])<13489><mEvet79ybgm3C8re>: Couldn't init INBOX: Mailbox INBOX: open(test.com.cn/0/wangyao/dovecot-uidlist) failed: Input/output error top=0/0, retr=0/0, del=0/0, size=0
3、dmesg命令查看
ata6: SATA link up 3.0 Gbps (SStatus 123 SControl 300) ata6.00: ACPI cmd ef/10:06:00:00:00:00 (SET FEATURES) succeeded ata6.00: ACPI cmd f5/00:00:00:00:00:00 (SECURITY FREEZE LOCK) filtered out ata6.00: ACPI cmd b1/c1:00:00:00:00:00 (DEVICE CONFIGURATION OVERLAY) filtered out ata6.00: ACPI cmd ef/10:06:00:00:00:00 (SET FEATURES) succeeded ata6.00: ACPI cmd f5/00:00:00:00:00:00 (SECURITY FREEZE LOCK) filtered out ata6.00: ACPI cmd b1/c1:00:00:00:00:00 (DEVICE CONFIGURATION OVERLAY) filtered out ata6.00: configured for UDMA/133 ata6: EH complete EXT4-fs error (device dm-2): ext4_lookup: deleted inode referenced: 6032967 EXT4-fs error (device dm-2): ext4_lookup: deleted inode referenced: 6032967 EXT4-fs error (device dm-2): ext4_lookup: deleted inode referenced: 6032967 EXT4-fs error (device dm-2): ext4_lookup: deleted inode referenced: 6032967 EXT4-fs error (device dm-2): ext4_lookup: deleted inode referenced: 6032967 EXT4-fs error (device dm-2): ext4_lookup: deleted inode referenced: 6032967 EXT4-fs error (device dm-2): ext4_lookup: deleted inode referenced: 6032967 EXT4-fs error (device dm-2): ext4_lookup: deleted inode referenced: 6032967 EXT4-fs error (device dm-2): ext4_lookup: deleted inode referenced: 6032967 EXT4-fs error (device dm-2): ext4_lookup: deleted inode referenced: 5772763 EXT4-fs error (device dm-2): ext4_lookup: deleted inode referenced: 5772763 EXT4-fs error (device dm-2): ext4_lookup: deleted inode referenced: 5772763 EXT4-fs error (device dm-2): ext4_lookup: deleted inode referenced: 6032967 EXT4-fs error (device dm-2): ext4_lookup: deleted inode referenced: 6032967 EXT4-fs error (device dm-2): ext4_lookup: deleted inode referenced: 6032967 EXT4-fs error (device dm-2): ext4_lookup: deleted inode referenced: 6032967 EXT4-fs error (device dm-2): ext4_lookup: deleted inode referenced: 6032967 EXT4-fs error (device dm-2): ext4_lookup: deleted inode referenced: 6032967 EXT4-fs error (device dm-2): ext4_lookup: deleted inode referenced: 6032967 EXT4-fs error (device dm-2): ext4_lookup: deleted inode referenced: 6032967 EXT4-fs error (device dm-2): ext4_lookup: deleted inode referenced: 6032967 EXT4-fs error (device dm-2): ext4_lookup: deleted inode referenced: 6032966 EXT4-fs error (device dm-2): ext4_lookup: deleted inode referenced: 6032966 EXT4-fs error (device dm-2): ext4_lookup: deleted inode referenced: 6032966 EXT4-fs error (device dm-2): ext4_lookup: deleted inode referenced: 6032966 EXT4-fs error (device dm-2): ext4_lookup: deleted inode referenced: 6032967
4、掃描壞道,掃描到8%就這麽多錯誤。
[root@localhost ~]# badblocks -s -v -o /root/badblocks.log /dev/sda 正在檢查從 0 到 2930266583的塊 Checking for bad blocks (read-only test): 8.48% done, 36:38 elapsed [root@localhost log]# cat /root/badblocks.log 248405248 248405264 248405265 248405266 248405267 248446536 248446568 248446569 248446570 248446571 248447968 248449368 248449380 248449381 248449382 248449383 249651992 249652052 249652053 249652054 249652055 249652056 249652057 249652058 249652059 249652060 249652061
5、果斷換硬盤
備註:smartctl這個工具也可以掃描和修復壞道。
message/maillog日誌提示磁盤innode、io錯誤等,掃描磁盤很多壞道