Changes

From Amahi Wiki
Jump to: navigation, search
</div>
:'''NOTE:''' <code>yum</code> (deprecated) has been replaced with <code>dnf</code> as the package manager for Fedora 23 and greater package manager.
Ubuntu
<div style="border: 1px solid #A3B1BF; padding: .5em 1em; color: #000; background-color: #E6F2FF; margin: 3px 3px 1em 3px; text-align: left">
If all drives mounted successfully, it should look something like this (Ubuntu):
:EXAMPLE:[[File:Gstreet_greyhole_pool.png|options|caption]]
==Bad Blocks==
Answer ''yes''. The <code>-cn</code> option we're using can safely be used on mounted file systems.
==Spin Down Hard Drives==
 
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
 
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>
 
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 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 minutes plus 15 seconds. Note that some older drives may have very different interpretations of these values.
 
It may make the system run cooler and power efficient (especially on a Home Server you are rarely using all of the pool drives at the same time).
=Troubleshooting=
12,424

edits