Default power save location / settings for hard drives in CentOS 7?

Issues related to hardware problems
Post Reply
Locane
Posts: 25
Joined: 2014/09/05 00:40:12

Default power save location / settings for hard drives in CentOS 7?

Post by Locane » 2017/04/29 00:28:59

I have a system with some FireCuda consumer drives in it, ST2000LX001. Under CentOS 7.3, the screen is spammed with drive offline errors and "."s over and over again for a few minutes until all of the connected FireCuda drives are rejected as being offline.

Ubuntu doesn't have an issue running them, and in fact, when I load Ubuntu on the system, subsequent loads of a CentOS LiveCD work fine and don't have the error. Ubuntu is altering the drives somehow to turn off power save.

When power is removed from the system, the problem comes back ... until Ubuntu loads again and "fixes" them.

To be clear, this is default Ubuntu 16.04.2; no changes have been made to it.

So I'm trying to found out where the power management settings are in CentOS 7.3 - how do I tell it to turn power management on drives completely off, always?

I can do it with "hdparm -B 255 /dev/sdX", but I feel like that's a hack, and there's a better way.

Does anyone know?

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: Default power save location / settings for hard drives in CentOS 7?

Post by hunter86_bg » 2017/04/29 15:44:03

I've done this on a CentOS 7.0 - just create the hdparm.conf and enter your settings - it will load them.

Locane
Posts: 25
Joined: 2014/09/05 00:40:12

Re: Default power save location / settings for hard drives in CentOS 7?

Post by Locane » 2017/05/01 18:38:03

Where does hdparm.conf go? What directory?

What is the syntax that goes in it? I'd need to run "hdparm -B 255" on all devices matching model number ST2000LX001. I have a script that does this, but I don't know how hdparm.conf works or what it's expecting.

Thank you!

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: Default power save location / settings for hard drives in CentOS 7?

Post by hunter86_bg » 2017/05/03 04:50:53

I used a guide for debian...
I think the exact location is '/etc/hdparm.conf'.About the syntax - I was using a debian man page... And it did work.I'm not sure if I had to create a systemd service file... It was a long time ago.

Edit: Of course, you can make a simple 'one-shot' service and not bother with a config that is not shipped with the distro.

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Default power save location / settings for hard drives in CentOS 7?

Post by TrevorH » 2017/05/03 06:12:24

I'm pretty sure it won't work out of the box as the hdparm package does not contain a systemd unit file.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply