Smart

De WikiMar
Dreceres ràpides: navegació, cerca


Check if a disk is sleeping

find /dev/disk/by-id/ -type l | \
grep -v -e part -e wwn | \
while read disk; do
	if [[ $(lsblk -o rota "$disk" | grep -c "1") -gt 0 ]]; then
		smartctl -d sat --nocheck=standby "$disk"
	fi
done


 grep -i 'Device' | /usr/bin/grep -i -c 'STANDBY' ) -gt 0  || \
/usr/sbin/sanoid --prune-snapshots --verbose --configdir=/etc/sanoid/

https://kimono-koans.github.io/opinionated-guide/