*New 12.1 series Release:
2019-11-08: XigmaNAS 12.1.0.4.7091 - released!

*New 11.3 series Release:
2019-10-19: XigmaNAS 11.3.0.4.7014 - released


We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

Check if HDD has spun down?

Hard disks, HDD, RAID Hardware, disk controllers, SATA, PATA, SCSI, IDE, On Board, USB, Firewire, CF (Compact Flash)
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
kurjak
NewUser
NewUser
Posts: 1
Joined: 12 Aug 2012 12:51
Status: Offline

Check if HDD has spun down?

#1

Post by kurjak » 12 Aug 2012 13:01

How can I check if HDD has spun down?

User avatar
lux
Advanced User
Advanced User
Posts: 200
Joined: 23 Jun 2012 11:37
Location: Bielefeld, Germany
Contact:
Status: Offline

Re: Check if HDD has spun down?

#2

Post by lux » 12 Aug 2012 16:02

i use this script:

Code: Select all

#!/bin/sh

echo "Checking HDD's activity..."

for i in $(sysctl -n kern.disks);
do smartctl -n standby -q silent -H /dev/$i;
case $? in 2)msg=StandBy;;
0)
msg=Activ;;
*);;
esac;
echo $i $msg;
done
Home:11.2.x.6881/emb@32GB USB|1270v2@X9SCA-F|ECC32GB|i340-T4[lagg@GS108Tv2&smb-mch]|M1015@IT|9HDD~40TB@3xRaidZ1+1HDD+2SSD i335&i520+1xi800P@ZIL|~44W idle@SS-400FL2|Nanoxia Deep Silence 6B|24/7
Services: CIFS, FTP, TFTP, SSH, NFS, Rsync, Syncthing, Webserver, BitTorrent, VirtualBox | Extensions: OBI, TheBrig[certbot, Asterisk] | Extensions via vBox: Pi-hole & Jellyfin @DebianVM's
Test:12.x/emb@16GB USB|X3 420e@M4A88TD-V|16GB|i350-T2|M1015@IT|7xHDD+1xSSD[different Size&Brand]RaidZ1+2|for TESTing only

Post Reply

Return to “Hard disk & controller”