昨天,OSSEC给我发了一封提醒邮件:
Jul 29 21:25:16 SVR4149 kernel: end_request: I/O error, dev sda, sector 334634969
Jul 29 21:25:16 SVR4149 kernel: sd 0:0:0:0: SCSI error: return code = 0x00040000
Jul 29 21:25:16 SVR4149 kernel: end_request: I/O error, dev sda, sector 334634977
Jul 29 21:28:28 SVR4149 kernel: sd 0:0:0:0: SCSI error: return code = 0x00040000令人惊讶的是,当时我只有/dev/sdb设备。
# fdisk -l
Disk /dev/sdb: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 13 104391 83 Linux
/dev/sdb2 14 7662 61440592+ 83 Linux
/dev/sdb3 7663 8706 8385930 82 Linux swap / Solaris
/dev/sdb4 8707 38888 242436915 5 Extended
/dev/sdb5 8707 38888 242436883+ 83 Linux在谷歌搜索之后,我找到了这链接。执行建议的命令,它会返回我的/dev/sdc:
Jul 29 22:55:45 SVR4149 kernel: ata1: hard resetting link
Jul 29 22:55:45 SVR4149 kernel: ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Jul 29 22:55:45 SVR4149 kernel: ata1.00: ATA-8: WDC WD3202ABYS-01B7A0, 02.03B02, max UDMA/133
Jul 29 22:55:45 SVR4149 kernel: ata1.00: 625142448 sectors, multi 0: LBA48 NCQ (depth 31/32)
Jul 29 22:55:45 SVR4149 kernel: ata1.00: configured for UDMA/133
Jul 29 22:55:45 SVR4149 kernel: ata1: EH complete
Jul 29 22:55:45 SVR4149 kernel: ata1.00: detaching (SCSI 0:0:0:0)
Jul 29 22:55:45 SVR4149 kernel: Vendor: ATA Model: WDC WD3202ABYS-0 Rev: 02.0
Jul 29 22:55:45 SVR4149 kernel: Type: Direct-Access ANSI SCSI revision: 05
Jul 29 22:55:45 SVR4149 kernel: SCSI device sdc: 625142448 512-byte hdwr sectors (320073 MB)
Jul 29 22:55:45 SVR4149 kernel: sdc: Write Protect is off
Jul 29 22:55:45 SVR4149 kernel: sdc: Mode Sense: 00 3a 00 00
Jul 29 22:55:45 SVR4149 kernel: SCSI device sdc: drive cache: write back
Jul 29 22:55:53 SVR4149 kernel: SCSI device sdc: 625142448 512-byte hdwr sectors (320073 MB)
Jul 29 22:55:53 SVR4149 kernel: sdc: sdc1 sdc2 sdc3 sdc4 < sdc5 >
Jul 29 22:55:53 SVR4149 kernel: sd 0:0:0:0: Attached scsi disk sdc
Jul 29 22:55:53 SVR4149 kernel: sd 0:0:0:0: Attached scsi generic sg0 type 0使用fdisk重新检查:
# fdisk -l
Disk /dev/sdb: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 13 104391 83 Linux
/dev/sdb2 14 7662 61440592+ 83 Linux
/dev/sdb3 7663 8706 8385930 82 Linux swap / Solaris
/dev/sdb4 8707 38888 242436915 5 Extended
/dev/sdb5 8707 38888 242436883+ 83 Linux
Disk /dev/sdc: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 13 104391 83 Linux
/dev/sdc2 14 7662 61440592+ 83 Linux
/dev/sdc3 7663 8706 8385930 82 Linux swap / Solaris
/dev/sdc4 8707 38888 242436915 5 Extended
/dev/sdc5 8707 38888 242436883+ 83 Linux但是我从内核日志中发现了另一个问题:
Jul 30 01:03:41 SVR4149 kernel: scsi 0:0:0:0: rejecting I/O to dead device
Jul 30 01:14:40 SVR4149 kernel: scsi 0:0:0:0: rejecting I/O to dead device
Jul 30 01:16:41 SVR4149 kernel: scsi 0:0:0:0: rejecting I/O to dead device
Jul 30 01:53:18 SVR4149 last message repeated 7 timessmartd继续打开不存在的设备:
Jul 30 10:00:57 SVR4149 smartd[3749]: Device: /dev/sda, No such device, open() failed在我的smartd.conf文件中没有特殊的:
# grep -v "^#" /etc/smartd.conf | sed '/^$/d'
DEVICESCAN -H -m root我的scsi0会“死”吗?
cat /proc/scsi/scsi
Attached devices:
Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: ATA Model: WDC WD3202ABYS-0 Rev: 02.0
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: ATA Model: WDC WD3202ABYS-0 Rev: 02.0
Type: Direct-Access ANSI SCSI revision: 05任何帮助都将不胜感激。
发布于 2011-07-30 04:54:01
看来驱动器正在掉线,然后重新连接。这表明了三件事中的一件:
希望能帮上忙..。这是个可怕的信息。
https://serverfault.com/questions/295747
复制相似问题