Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just got home file server, and it contains 7 hard drives. I installed on it Ubuntu Server (Jaunty). What should I do to make it power down drives when they are not in use (most of the time they will not be used).

All of them are sata drives, bundled together with software RAID.

share|improve this question

closed as off-topic by HopelessN00b Mar 1 '15 at 21:05

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions on Server Fault must be about managing information technology systems in a business environment. Home and end-user computing questions may be asked on Super User, and questions about development, testing and development tools may be asked on Stack Overflow." – HopelessN00b
If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 5 down vote accepted

type man hdparm

share|improve this answer

I've answered a similar question elsewhere.

Constant cycling of the power on regular drives actually leads to premature drive failure. The drives are rated for only so many spinups/spindowns, and if you cycle them too frequently, the drive will start to exceed its rated capacity for this. Note that this assumes you're using desktop or server-style 3.5" drives, and not actual laptop drives, which are rated for a much-higher number of spin-downs.

If you plan on spinning up no more than a few times a week, you'll probably be fine. Constant spinup/spindown activity is what will kill them.

You could always go with laptop drives, which are more expensive and a bit slower, but the drives are designed with constant power cycles in mind, and can tolerate this much better than a desktop/server drive which was designed to be left on for extended periods.

Jure1873 is correct, hdparm will provide you with a tool to spin a drive down. You may also want to look at installing the smartmontools package as well, which allows the server to monitor the health of each drive (and notify you of an impending failure). Also look at the noflushd package.

share|improve this answer

Maybe I am paranoid, but I don't like the idea of powering down a RAID more than you have to. What type of RAID is it? How often will it need to power on and off?

share|improve this answer
Couple of raids. Raid1, and 2 separate Raid5. The idea is very simple - if there has been no write to disk in last 30 minutes or so - what is the point of spinning the drive? – user13185 Sep 28 '09 at 19:25
The point is, the torque required to spin up the drive quickly can consume as much energy as a few minutes of running the drive. Plus, it is greater wear on the motor and bearings. Spinning it down doesn't make sense unless it is going do be down for hours. – kmarsh Sep 28 '09 at 22:02