Description of problem: I have four 2Tb WD Caviar Green hard drives (WDC WD20EARS-00MVWB0) in my Fedora 18 HTPC/home server in software raid5. I use tuned powersave profile. The raid partition is accessed only when i play movies, so 90% of time hard drives are idle (i have a separate disk for OS and user home). These WD caviar green are not spin down anymore while some version ago this used to work. I do not know from which version it stopped working. The problem seems to be the -B hdparm switch that is not supported by this disk model (smartctl reports: "APM feature is: Unavailable"). Version-Release number of selected component (if applicable): tuned-2.2.2-1.fc18.noarch How reproducible: Activate powersave profile in a system with WD Caviar Green drives. Steps to Reproduce: 1. Activate powersave profile 2. Wait tuned data collection 3. Actual results: WD drives do not spin down, no error is reported in normal use Expected results: WD drives spin down after some idle minutes Additional info: running tuned -D shows this disk related errors: 2013-06-21 11:06:44,047 DEBUG tuned.plugins.plugin_disk: tuning level changed to 3 (power 165, spindown 210) 2013-06-21 11:06:44,047 DEBUG tuned.utils.commands: Executing ['hdparm', '-S210', '-B165', u'/dev/sdd']. 2013-06-21 11:06:44,063 ERROR tuned.utils.commands: Executing hdparm error: HDIO_DRIVE_CMD failed: Input/output error 2013-06-21 11:06:44,063 DEBUG tuned.plugins.plugin_disk: sdd load: read 0.00, write 0.00 2013-06-21 11:06:44,064 DEBUG tuned.plugins.plugin_disk: sdd idle: read 8, write 8, level 3 2013-06-21 11:06:44,064 DEBUG tuned.plugins.plugin_disk: tuning level changed to 3 (power 165, spindown 210) 2013-06-21 11:06:44,065 DEBUG tuned.utils.commands: Executing ['hdparm', '-S210', '-B165', u'/dev/sde']. 2013-06-21 11:06:44,075 ERROR tuned.utils.commands: Executing hdparm error: HDIO_DRIVE_CMD failed: Input/output error 2013-06-21 11:06:44,076 DEBUG tuned.plugins.plugin_disk: sde load: read 0.00, write 0.00 2013-06-21 11:06:44,076 DEBUG tuned.plugins.plugin_disk: sde idle: read 8, write 8, level 3 2013-06-21 11:06:44,077 DEBUG tuned.plugins.plugin_disk: tuning level changed to 3 (power 165, spindown 210) 2013-06-21 11:06:44,077 DEBUG tuned.utils.commands: Executing ['hdparm', '-S210', '-B165', u'/dev/sda']. 2013-06-21 11:06:44,092 ERROR tuned.utils.commands: Executing hdparm error: HDIO_DRIVE_CMD failed: Input/output error 2013-06-21 11:06:44,093 DEBUG tuned.plugins.plugin_disk: sda load: read 0.00, write 0.00 2013-06-21 11:06:44,093 DEBUG tuned.plugins.plugin_disk: sda idle: read 8, write 8, level 3 2013-06-21 11:06:44,094 DEBUG tuned.plugins.plugin_disk: tuning level changed to 3 (power 165, spindown 210) 2013-06-21 11:06:44,094 DEBUG tuned.utils.commands: Executing ['hdparm', '-S210', '-B165', u'/dev/sdb']. 2013-06-21 11:06:44,109 ERROR tuned.utils.commands: Executing hdparm error: HDIO_DRIVE_CMD failed: Input/output error 2013-06-21 11:06:44,110 DEBUG tuned.plugins.plugin_disk: sdb load: read 0.00, write 0.00 2013-06-21 11:06:44,110 DEBUG tuned.plugins.plugin_disk: sdb idle: read 8, write 8, level 3 2013-06-21 11:06:44,110 DEBUG tuned.plugins.plugin_disk: tuning level changed to 3 (power 165, spindown 210) 2013-06-21 11:06:44,111 DEBUG tuned.utils.commands: Executing ['hdparm', '-S210', '-B165', u'/dev/sdc']. 2013-06-21 11:06:44,126 ERROR tuned.utils.commands: Executing hdparm error: HDIO_DRIVE_CMD failed: Input/output error 2013-06-21 11:06:44,127 DEBUG tuned.plugins.plugin_disk: sdc load: read 0.00, write 0.00 2013-06-21 11:06:44,127 DEBUG tuned.plugins.plugin_disk: sdc idle: read 8, write 8, level 3
Created attachment 763734 [details] Patch that splits hdparm -B and -S command execution By splitting the hdparm execution the spindown setting will be applied while the unsupported APM will be ignored.
Thanks for the report. I will probably not use command split. I will probably add the drive capabilities check to the init and later use only the supported commands.
(In reply to Jaroslav Škarvada from comment #2) > Thanks for the report. I will probably not use command split. I will > probably add the drive capabilities check to the init and later use only the > supported commands. Thank you Jaroslav! :)
Moving to rawhide. I will try to address this in tuned-2.3.1.
Ou, missed 2.4.0 update, sorry, tagging for 2.4.1.
tuned-2.4.1-1.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/FEDORA-2014-12032/tuned-2.4.1-1.fc21
tuned-2.4.1-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/FEDORA-2014-11985/tuned-2.4.1-1.fc20
Package tuned-2.4.1-1.fc21: * should fix your issue, * was pushed to the Fedora 21 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing tuned-2.4.1-1.fc21' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-12032/tuned-2.4.1-1.fc21 then log in and leave karma (feedback).
tuned-2.4.1-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.
tuned-2.4.1-1.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.