2014-11-05から1日間の記事一覧
dmesg | egrep "exception Emask|failed command|Unrecovered read error|I/O error"参考 http://kledgeb.blogspot.jp/2013/07/ubuntu-6-hdd.html cat /etc/cron.daily/chkdmesg.sh #!/bin/bash cd `/usr/bin/dirname $0` dmesg | egrep "exception Emask|fa…
cat bin/smartchk.sh cd `dirname $0` if [ $# -ne 1 ]; then echo $0" need disk device" exit 1 fi smartctl -A $1 | awk '$2=="Raw_Read_Error_Rate"||$2=="Reallocated_Sector_Ct"||$2=="Reallocated_Event_Count"||$2=="Current_Pending_Sector"||$2=="…