S.M.A.R.T.
http://sysadm.pp.ua/?s=S.M.A.R.T
No RAID
smartctl --scan
smartctl -t long /dev/sda #Полный тест диска
smartctl -a /dev/sda|less #Проверяем
В цикле запустить:
for i in a b c d ; do smartctl -t long /dev/sd$i ; done;
for i in a b c d ; do smartctl -a /dev/sd$i ; done;
for i in a b c d ; do echo "===sd$i==="; smartctl -a /dev/sd$i | egrep '^(Self-test|Serial|Device M| (5|8|9)|196|197|User|# (1|2))|result|remaining|defect' ; done;
MegaRAID
smartctl -d megaraid,0 /dev/sg0 #обращение к первому жесткому диску в массиве
smartctl -d megaraid,х /dev/sg0 #обращение к х-диску
smartctl -d megaraid,0 -t long /dev/sg0 #пустить длинный SMART на первый диск в массиве
smartctl -d megaraid,0 -a /dev/sg0|less #инфа по смарту первого диска
В цикле запустить:
for i in 0 1 2 3 ; do smartctl -d megaraid,$i -t long /dev/sg0 ; done;
for i in 0 1 2 3 ; do smartctl -a -d megaraid,$i /dev/sg0 | egrep '^(Self-test|Serial|Device M| (5|8|9)|196|197|User|# (1|2))|result|remaining|defect' ; done;
for i in `seq 0 3` ; do echo ===megaraid,$i===; smartctl -a -d megaraid,$i /dev/sg0 | egrep '^(Self-test|Serial|Device M| (5|8|9)|196|197|User|# (1|2))|result|remaining|defect' ; done;
Подсветить:
megacli -PDList -aAll | egrep "Enclosure Device ID:|Slot Number:"
E - Enclosure N/A
S - Slot
megacli -PdLocate -start -PhysDrv [E:S] -a0
Hewlett-Packard
smartctl -d cciss,0 /dev/sg0 #обращение к первому жесткому диску в массиве
smartctl -d cciss,х /dev/sg0 #обращение к х-диску
smartctl -d cciss,0 -t long /dev/sg0 #пустить длинный SMART на первый диск в массиве
smartctl -d cciss,0 -a /dev/sg0|less #инфа по смарту первого диска
/dev/sda -d scsi # /dev/sda, SCSI device
В цикле запустить:
for i in `seq 0 11` ; do smartctl -d cciss,$i -t long /dev/sg0 ; done;
for i in `seq 0 11` ; do smartctl -d cciss,$i -a /dev/sg0 | egrep '^(Self-test|Serial|Device M| (5|8|9)|196|197|User|# (1|2))|result|remaining|defect' ; done;
for i in `seq 0 11` ; do echo ===cciss,$i===; smartctl -d cciss,$i -a /dev/sg0 | egrep '^(Self-test|Serial|Device M| (5|8|9)|196|197|User|# (1|2))|result|remaining|defect' ; done;
Все ли хорошо:
hpacucli ctrl all show config
hpacucli ctrl all show config detail | grep -E "(Controller Status|Battery/Capacitor Status|Battery/Capacitor Count|Status:)"
hpacucli ctrl all show status #на каком слоту
hpacucli ctrl slot=3 pd all show #смотреть диски
hpacucli ctrl slot=3 ld all show #какой рейд собран
smartctl -a -d cciss,0 /dev/sg0
smartctl --all -d ata /dev/sda
smartctl -d cciss,0 -a /dev/sg0
smartctl -s on -o on -S on -d cciss,0 /dev/sg0
smartctl -a -d ata /dev/sda, /dev/sg0
smartctl -a -d sat+cciss,0 /dev/cciss/c0d0
for i in `seq 0 11` ; do echo ===cciss,$i===; smartctl -a -d sat+cciss,$i /dev/cciss/c0d0 | egrep '^(Self-test|Serial|Device M| (5|8|9)|196|197|User|# (1|2))|result|remaining|defect' ; done;
smartctl -d cciss,6 -i /dev/cciss/c0d0 #этот диск в lsblk будет c0d6pX, где p номер раздела
Adaptec AAC-RAID
lspci | egrep -i 'raid|adaptec'
smartctl -d sat --all /dev/sg1
smartctl -t long -d sat /dev/sg1
#Start test all disks
for i in 0 1 2 3 4 5 6 ; do smartctl -t long -d sat /dev/sg$i ; done
#Check test remaining
for i in 0 1 2 3 4 5 6 ; do smartctl -d sat,0 -a /dev/sg$i ; done | grep "of test remaining"
Intel NVME SSD
nvme list
nvme smart-log /dev/nvme0
nvme intel smart-log-add /dev/nvme0 ## Print the Intel Additional SMART log page in a human readable format