Beiträge von wmd1942

    I figured out a solution. It works when "hdparm" is used with both -B and -S options in my script:


    hdparm -B 254 -S 242 /dev/sdc


    In my OMV6 GUI configuration, the APM level is set to 192, which is saved in "/etc/hdparm.conf". After reset, it looks like OMV6 will set APM level based on that configuration. Then my script will set it to 254. Just don't know why -S option has to be used together with -B option to solve my problem.

    My OMV6 is set up on a Lenovo laptop (Intel i7 based). The system is installed on NVMe drive. 2 external WD Red Plus hard drives are connected through SATA interfaces, and one of them is from the DVD drive. Both of them are set to APM level 254 (max performance without standby) through OMV6's GUI. However, the APM level setting of the hard drive connected DVD SATA connector seems to have no effect every time after reset. It will go to standby after one minute of use. If I set APM level to a different level such as 192 (intermediate power usage without standby), it will not go back to standby until the next reset. The other hard drive connected to the main SATA interface does not have this problem (never going to standby). I tried swapping hard drives and found the issue is always associated with the drive on DVD SATA interface. I thought I could solve this problem by setting APM level every time in a power-up script. Unfortunately, it didn't work. Here are the two commands I have tried and none of them works:


    hdparm -B 254 /dev/sdc


    smartctl --set=apm,254 /dev/sdc


    These commands did set APM level correctly but that hard drive still went to standby regardless. If I change APM level through OMV6 GUI, that hard drive will not be switched to standby (until next reset). I wonder what command OMV6 used. Thanks a lot for any help.

    Just to give an update on my issue. I finally figured out the frequent spin down is due to the setting of APM level. It turns out my WD Red 10GB drive does not like the setting of "255 - Disabled". If I set the value within the range of "128 - 254", both hard drives will not spin down at all.

    I used a Lenovo W540 laptop for my OMV5 server, which has a cooling pad underneath powered by a USB port. After autoshutdown plugin put the server in Suspend mode, the USB power does not get turned off and the fan continues to run. Is there a way to turn USB power off and turn it back on after OMV resumes operation (waken by WOL)? Thanks.

    If it's hardware related, that would be bad news. I like ZFS mirror setup as it has self-correction capability. If I do as you suggested, does it mean that the corrupted data file on the main drive will be copied to backup drive?

    My setup does save significant saving on electricity usage as I also turn off the LCD display, too. This laptop does have M.2 interface for M.2 SATA SSD (which could be also used for WAN card):



    Yes, I used 2 extension cables bought from Amazon:
    https://smile.amazon.com/gp/product/B003WFBFZY


    The mod does not require removing the motherboard. I just plugged 2 extension cables into SATA ports and use the glue to prevent cables from loose. I removed the optical drive and both cables come out through bay. Two hard drives are powered by a separate power supply.


    I also hate to spin down my WD Red drives but it seems I haven't found a way to stop the spinning down the drive connected to the optical drive port.

    Hi,


    I have a weird problem with one of the hard drives spin-down (going into standby mode) in 4 minutes and 30 seconds on its own and I haven't found a way to stop that.


    I'm running OMV5 on a Lenovo laptop W540. Two WD red 10TB hard drives are configured as mirror mode in ZFS. This laptop has M.2 slot and I used it for the boot drive. It has 2 SATA interfaces available, one from the original hard drive and another on the optical drive. Even though I set the same disk configuration to disable all power management on both drives. The drive that connects to the original optical drive SATA interface will always spin-down in 4 minutes and 30 seconds. The other hard drive has no problem and never spins down. I tried to swap the drive and found out the problem sticking with the physical interface (optical SATA), not with the particular hard drive.


    I'd like to get help on how to prevent that hard drive from spinning down. Thanks a lot.