Auto-Spindown of hdd's does not work on OMV6

  • Hi there,

    just a short (bug?) report


    autospindown on my hdd's does not work on my system

    parameters are set correct

    hdparm.conf looks fine

    using hdparm -y /dev/sdx works fine, just the auto-spinoff does not.


    i had to install hd-idle to send the hdd's to sleep

    my /etc/default/hd-idle (time is unlike to hdparm in seconds here)

  • Agricola

    Approved the thread.
  • wsxws

    Added the Label OMV 6.x (beta)
  • his drive have been working i a synology-nas and standby worked fine

    afterwards they have been used in unraid and standyby worked fine

    now they are used in omv6 the automatic standy does not work fine

    when i use hdparm -y /dev/sdxx the go down

    but some time later they are running again

  • his drive have been working i a synology-nas and standby worked fine

    afterwards they have been used in unraid and standyby worked fine

    now they are used in omv6 the automatic standy does not work fine

    when i use hdparm -y /dev/sdxx the go down

    but some time later they are running again

    I have the same problem and I just tried -y and it worked. But I've had this problem in OMV 5.x too, although at some earlier point in 5.x it worked. Then it did not. After upgrading to 6.x it still doesn't work. Since I was fixing some other issues, it brought be me, and I am going to try using hd-idle.

  • Same here using sdparm (external usb drives), drives no longer spindown and if I force it it randomly spin up again


    sdparm throws this now

    Code
    mode sense command: Illegal request
    change_mode_page: failed fetching page: Background control (SBC)

    It was working fine on OMV5


    Should probably do a clean install of OMV 6


    EDIT : Weird, going back to OMV5 the error still shows up but drives spindown as expected

  • I can confirm that hdd spindown doesn't work anymore on a fresh install of OMV 6. It worked perfectly on OMV 4. I skipped OMV 5.


    1. Altering the drive settings through the OMV interface does nothing and nothing gets stored in the hdparm.conf either. Don't know if this is expected behaviour.


    2. Manually editing the hdparm.conf with my previous settings does nothing:


    • Official Post

    Just tried in a VM. hdparm.conf was modified when applying the changes. Can you post a screenshot of your settings?


    This settings

    resulted in this:


    Code
    17:23:24 root@omv6:~# 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-QEMU_HARDDISK_QM00003 {
        apm = 127
        spindown_time = 120
        write_cache = off
    }
    17:23:33 root@omv6:~# 
  • After a fresh installation of OMV 6 I can confirm that changes in the OMV interface got properly reflected in the hdparm.conf this time though I can't get the drives to spindown no matter the settings. My previous settings which worked perfectly for years in OMV 4.x don't work either. I tried to not activate S.M.A.R.T. and deactivated monitoring and basically kept the OMV installation as unaltered as possible. Basically I just tried to get proper spindown without configuring anything else beforehand but without success. I am using a german OMV setup btw. if that helps to debug.


    "omv-showkey hdparm" does nothing ("command not found") if I run in the terminal or where am I supposed to run this?

    • Official Post

    Back in OMV2 (I think) I was not able to spindown WD reds with hdparm. Since then I am using hd-idle on all systems. Might be a workaround for you as well.


    EDIT: not on all systems. I have a HC2 where the usb-to-sata controller takes care of spindown.

  • Was hadparm working for you with OMV5 and the same drives?

    I'm using OMV5 for about 2 year.

    RPi4 + USB HUB + 4 WD USB HDD.

    OMV5: Auto spin down work great, SMART inform show: APM 1.

    Same devices with fresh install of OMV6: APM settings don't apply to drives.

    My Settings in OMV6:

    APM: 1
    AAM: Disabled
    Time: 10 min
    Caché: ON

    S.M.A.R.T inform:
    AAM: Disabled
    APM: 128


    OMV6 hdparam.conf

    Code
    # 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/usb-WD_Elements_2620_57583132443630324154564A-0:0 {
    apm = 1
    spindown_time = 120
    write_cache = on
    }

    SMART inform:

  • I have the same problem: no auto spindown on fresh OMV6. Is there already a solution?



    Code
    root@OMV:~# 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-SAMSUNG_HD103SI_S1Y5J9CZ109589 {
    apm = 127
    spindown_time = 240
    write_cache = off
    }
  • Here's what else I've noticed. Maybe it helps with troubleshooting?


    When I manually spindown the HDD via hdparm -y and it comes up again it stays up.


    If I manually put the drive into spindown and then it wakes up again, it stays awake. It no longer goes into spindown.


    But if I then read the hard disk information and status via hdparm -I and hdparm -C, it goes into spindown after a short time. Strange, isn't it?

  • Hi


    I have 2 ODROIDN2 installed with OMV. The first one is the version 5 and the other one the version 6. On the OMV6 the spindown works only for one HD, the other doesn't spin down. On the OMV5 auto spin down works fine. HD cases are the same on both odroid and same size (2*4*8TB)

    I checked in the hdparm.conf and it's looks like fine.

  • The only reliable way to spin down drives seems to be hd-idle as of now. My new WD Red Pro 12 TB drive would also not spin down on OMV 5 using hdparm while all other WD drives (greens and blues) would spin down reliably. Using hd-idle the drives reliably spin down on OMV 5 and OMV 6 including the brand new WD Red Pro.


    Tinkering with hdparm seems to be pointless at this point.


    On a fresh OMV 6 install you will need to install gnupg2 before you can install hd-idle through the adelolmo repo as explained in the linked tutorial below:

    Code
    sudo apt-get install gnupg2


  • I didn't need to install gnupg2. But, yes true words. tinkering with hdparm seems to be pointless at the moment.


    I also had spindown issues with my 8 WD Red 10TB disks. In my case not all drives made the spindown, here an example:


    Sometimes I saw 7 of my 8 disks in standby. Why not all disks? I don't understand this.


    The following command always brought all 8 disks to standby:


    Code
    hdparm -y /dev/sd[abcdefgh]


    My hdparm.conf was configured through OMV6 web interface and looked as follows for all eight disks:


    Code
    /dev/disk/by-id/... { 
    apm = 127 
    spindown_time = 120 
    write_cache = off
    }

    Played around with the hdparm settings by the omv web interface, but it didn't get better.


    So I installed hd-idle and it seems to do what is expected. Thanks for the link to the good How-To.


    Regards Hoppel

    ----------------------------------------------------------------------------------
    openmediavault 6 | proxmox kernel | zfs | docker | kvm
    supermicro x11ssh-ctf | xeon E3-1240L-v5 | 64gb ecc | 8x10tb wd red | digital devices max s8
    ---------------------------------------------------------------------------------------------------------------------------------------

  • My impression is also that SMART monitoring keeps waking up my Red Pro drive, no matter how the SMART monitoring is being configured. This seems also to be the case when using hd-idle instead of hdparm. This is not the case with all my other WD drives.

  • After 5 days with hd-idle I can say that it works in my environment

    ----------------------------------------------------------------------------------
    openmediavault 6 | proxmox kernel | zfs | docker | kvm
    supermicro x11ssh-ctf | xeon E3-1240L-v5 | 64gb ecc | 8x10tb wd red | digital devices max s8
    ---------------------------------------------------------------------------------------------------------------------------------------

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!