Changes

From Amahi Wiki
Jump to: navigation, search
Answer ''yes''. The <code>-cn</code> option we're using can safely be used on mounted file systems.
==Power Down Hard Drives==
Ensure Low power is a good thing to have in servers. If you do not use your server very often, you may want to force the hard drives to spin down faster than the default. Here is how. First ensure ''hdparm'' package is installed:
sudo dnf install hdparm
Add To force to spin down after 10 minutes of being idle, add these lines to <code>/etc/rc.local</code>:
<pre>
#power drives down after 10 minutes idle
/sbin/hdparm -S120 /dev/sda
/sbin/hdparm -S120 /dev/sdb
...
</pre>
This Most drives will power down on their own without doing this. Once stopped, the drive may take as long as 30 seconds to respond to a subsequent disk access, though most drives down after 10 are much quicker. The encoding of the -S timeout value is somewhat peculiar. A value of zero means "timeouts are disabled": the device will not automatically enter standby mode. Values from 1 to 240 specify multiples of 5 seconds, yielding timeouts from 5 seconds to 20 minutes. Values from 241 to 251 specify from 1 to 11 units of 30 minutes, yielding timeouts from 30 minutes to 5.5 hours. A value of 252 signifies a timeout of 21 minutes. A value of 253 sets a vendor-defined timeout period between 8 and 12 hours, and the value 254 is reserved. 255 is interpreted as 21 minutesplus 15 seconds. Note that some older drives may have very different interpretations of these values.  It makes may make the system run much cooler and power efficient (especially on a Home Server you are rarely using all of the pool drives at the same time).
=Troubleshooting=
Trusted, Bots, Bureaucrats, emailconfirmed, Administrators
4,146

edits