Hi,
I have read a lot of forum posts but none solved my issue. I have a WD Red plus 4TB HDD that I would like to spindown after 60min or so.
To see where my problem is located I ran the following commands and this is there output.
"sudo hdparm -B /dev/sda"
"sudo cat /etc/hdparm.conf"
# This file is auto-generated by openmediavault (https://www.openmediavault.org)
# WARNING: Do not edit this file, your changes will get lost.
/dev/disk/by-id/ata-ST4000LM016-1N2170_W8018302 {
apm = 64
force_spindown_time = 244
write_cache = on
}
/dev/disk/by-id/ata-ST4000LM016-1N2170_W8018693 {
apm = 64
force_spindown_time = 244
write_cache = on
}
Display More
"sudo omv-showkey hdparm"
<hdparm>
<uuid>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</uuid>
<devicefile>/dev/xxx</devicefile>
<apm>0 = disable|1-255<apm>
<aam>0|128|254</aam>
<spindowntime>0 = disabled|1-254</spindowntime>
<writecache>0|1</writecache>
</hdparm>
<hdparm>
<uuid>686e1a36-5728-4f0b-92e4-e1a2d477470e</uuid>
<devicefile>/dev/disk/by-id/ata-ST4000LM016-1N2170_W8018302</devicefile>
<apm>64</apm>
<aam>0</aam>
<spindowntime>244</spindowntime>
<writecache>1</writecache>
</hdparm>
<hdparm>
<uuid>60903b2d-5cd9-48bf-b44e-8ad17888997c</uuid>
<devicefile>/dev/disk/by-id/ata-ST4000LM016-1N2170_W8018693</devicefile>
<apm>64</apm>
<aam>0</aam>
<spindowntime>244</spindowntime>
<writecache>1</writecache>
</hdparm>
<hdparm>
<uuid>b79a6d9e-db86-4df1-9ebc-c6f73d4cbdd8</uuid>
<devicefile>/dev/disk/by-id/ata-WDC_WD40NDZW-11BCSS1_WD-WX22A933K747</devicefile>
<apm>64</apm>
<aam>0</aam>
<spindowntime>60</spindowntime>
<writecache>0</writecache>
</hdparm>
<hdparm>
<uuid>3bcffe20-1895-4013-8373-e23812ae692e</uuid>
<devicefile>/dev/disk/by-id/ata-WDC_WD40EFPX-68C6CN0_WD-WX32D83DHZ8A</devicefile>
<apm>127</apm>
<aam>0</aam>
<spindowntime>246</spindowntime>
<writecache>1</writecache>
</hdparm>
<hdparm>
<uuid>606cbfcf-26a7-4153-ae19-ae67ce21dda9</uuid>
<devicefile>/dev/disk/by-id/ata-WDC_WD40EFPX-68C6CN0_WD-WX62DA3C11FA</devicefile>
<apm>64</apm>
<aam>0</aam>
<spindowntime>240</spindowntime>
<writecache>1</writecache>
</hdparm>
Display More
I noticed that in the /etc/hdparm.conf file none of the active drives are listed, only old drives that are not connected anymore.
However the new drives are listed in the omv-showkey command, as well as the old drives.
I assume the old drives shouldn't be in the hdparm.conf or in the omv-showkey output and that this is my problem.
Active drive device files, these are the last 2 in the output of the omv-showkey command.
/dev/disk/by-id/ata-WDC_WD40EFPX-68C6CN0_WD-WX32D83DHZ8A
/dev/disk/by-id/ata-WDC_WD40EFPX-68C6CN0_WD-WX62DA3C11FA
Any idea how I can get this solved?
Thus this mean that before disconnecting a drive (because it is failing or getting replaced) it is necessary to disable all these settings before disconnecting?
I did notice the same thing with the smart monitoring, I first needed to disable this before disconnecting or omv would get mad at me because it could find the drive to monitor. Which is logical of course.
I am thinking to use hd-idle, looks promising. But I think getting these weird differences solved can't hurt.
Thanks in advance for ideas!!