Originally Posted by
bbaccsi
yep, and i wanted to ask why its log file has the following outcome:
...
07:49:16: Disk first used after 1200 seconds
08:10:21: Cooled down...
08:10:51: Disk first used after 1200 seconds
08:31:56: Cooled down...
08:32:26: Disk first used after 1200 seconds
08:53:31: Cooled down...
...
syslog didn't write to disk that time, I guess only samba was running.
and swap of course...
That depends on many things... for example, mount options.
My log is not quite different:
...
19:04:49: Disk first used after 750 seconds
19:25:27: Cooled down...
20:19:10: Disk first used after 4380 seconds
20:39:15: Cooled down...
21:05:23: Disk first used after 2730 seconds
21:25:28: Cooled down...
23:20:55: Disk first used after 8070 seconds
...
Maybe some day I'll fix everything...
P.S. Found some mistakes in the script
If you have gawk package installed then just "awk" points by default to /opt/bin/awk and that is HDD.
All occurrences of "awk" should be changed to "/usr/bin/awk".
The same with "grep" too if you have grep package installed. Should be changed to "/bin/grep".
Maybe it'll be better to specify full path for every executable used in the script.
To change:
Code:
sed -i 's/awk/\/usr\/bin\/awk/g' scsi-stop.sh
sed -i 's/grep/\/bin\/grep/g' scsi-stop.sh
P.P.S. I've changed the script in the recovered tutorial.