Feb 12 03:38:18 qht25 kernel: sd 0:0:0:0: [sda] tag#34 FAILED Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
Feb 12 03:38:18 qht25 kernel: sd 0:0:0:0: [sda] tag#34 CDB: ATA command pass through(16) 85 06 20 00 00 00 00 00 00 00 00 00 00 00 e5 00
Feb 12 03:38:18 qht25 journal: Error performing housekeeping for drive /org/freedesktop/UDisks2/drives/WDC_WD20EFAX_68FB5N0_WD_WX91A191KY59: Error updating SMART data: Error sending ATA command CHECK POWER MODE: Unexpected sense data returned:#0120000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................#0120010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................#012 (g-io-error-quark, 0)
Feb 12 03:40:01 qht25 systemd: Started Session 230 of user root.
Feb 12 03:40:01 qht25 systemd: Starting Session 230 of user root.
Feb 12 03:41:19 qht25 chronyd[1301]: Source 2604:a880:800:10::aa:f001 replaced with 2001:da8:9000::81
Feb 12 03:48:18 qht25 kernel: sd 0:0:1:0: [sdb] tag#32 FAILED Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
Feb 12 03:48:18 qht25 kernel: sd 0:0:1:0: [sdb] tag#32 CDB: ATA command pass through(16) 85 06 20 00 00 00 00 00 00 00 00 00 00 00 e5 00
Feb 12 03:48:18 qht25 journal: Error performing housekeeping for drive /org/freedesktop/UDisks2/drives/WDC_WD20EZRX_00DC0B0_WD_WCC300362644: Error updating SMART data: Error sending ATA command CHECK POWER MODE: Unexpected sense data returned:#0120000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................#0120010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................#012 (g-io-error-quark, 0)
一台centos7的log出现这些错误,将2块磁盘都换了也没有解决问题。
怀疑是bios的设置有问题触发了某个bug.
通过google查了网上的资料很少,一个有价值的url:
https://bugzilla.redhat.com/show_bug.cgi?id=1301824
提到 可以通过关闭udisk2服务来解决。
As bottom line, disable of unwanted polling of smart data can only be done the hard way: systemctl stop udisks2 # stop the udisksd daemon systemctl mask udisks2 # prevent it from restarting
关闭了之后的确没有出现错误消息了,就是不知道关闭了会不会引发其它问题,先观察段时间再说。