雑だけどこんな感じ
必要:smartctrl
無い場合は
apt-get install smartmontools
で入れる
コード ブロック | ||
---|---|---|
| ||
for a in `cat /proc/mdstat |grep ^md|grep -o "sd."`; do echo "=========================================";smartctl -i /dev/$a|grep -E "(Model|Serial)"; smartctl -a /dev/$a|grep -iE "(err|real)";done |
...