Hi guys. I'd like to share my experience with the recently purchased USB disk: WD Elements 18TB.
After I purchased the disk I set the "Advanced Power Management" and the "Spindown time" in the physical disk performance menu.
I noticed, that the write speed to this disk (EXT4) was very reduced. I used the following command to test it:
Quote
dd if=/dev/zero of=/srv/dev-disk-by-uuid-XXX/nullbytes count=100000 bs=10M
The writing speed was never more than 80MB/s.
Shortly after I detected problems I set APM and Spindown to Disabled, in hope to restore the default configuration. The problem was not gone. I flashed a clean Armbian image to my Odroid N2 device, and I noticed that the problem is gone. So I gave up trying to fix it, and I reinstalled everything (clean OS image, set up OMV, and other things from beginning). The writing speed using the same command was 250-270MB/s.
Today, I wanted to set up the disk spindown time again. Right after I did it in OMV settings, I noticed that the problem with max. 80MB/s returned. After I disabled APM and everything else to Disabled, and rebooted the device - problem persisted. This time I knew that it must be OMV still doing something, so I found the following in `/etc/openmediavault/config.xml`:
Quote
<hdparm>
<uuid>X</uuid>
<devicefile>/dev/disk/by-id/usb-WD_Elements_X-0:0</devicefile>
<apm>0</apm>
<aam>0</aam>
<spindowntime>0</spindowntime>
<writecache>0</writecache>
</hdparm>
Display More
I then tried to set AAM to Max performance in order to fix it, so ended up with the following config:
Quote
<hdparm>
<uuid>X</uuid>
<devicefile>/dev/disk/by-id/usb-WD_Elements_X-0:0</devicefile>
<apm>127</apm>
<aam>254</aam>
<spindowntime>60</spindowntime>
<writecache>0</writecache>
</hdparm>
Display More
But nothing helped. 80MB/s was the max speed I was getting to that disk.
Due that setting everything to "Disabled" wasn't fixing the problem, I manually edited config.xml and removed `<hdparm></hdparm>`. Then I changed and applied some other settings in OMV panel to update the config. After reboot, the writing speed to the disk is back. So I now get 250MB/s+
I now use an external cron .sh script to set the spindown time:
Quote
/usr/sbin/hdparm -B 127 $DiskInfoElements
/usr/sbin/hdparm -S 48 $DiskInfoElements
It seems to work fine, the write speed is 250MB/s+, and the disk goes to the sleep mode after inactivity.
However, after 1-2 days these settings are reset. I used command `hdparm -I /dev/sdX | grep Advanced` to test it.
Is it possible that OMV is periodically checking these settings and resets them?
My OMV version is:
Quote
root@odroidn2:~# dpkg -l | grep openmediavault
ii openmediavault 5.6.20-1 all openmediavault - The open network attached storage solution
ii openmediavault-flashmemory 5.0.9 all folder2ram plugin for OpenMediaVault
ii openmediavault-keyring 1.0 all GnuPG archive keys of the OpenMediaVault archive
ii openmediavault-omvextrasorg 5.6.4 all OMV-Extras.org Package Repositories for OpenMediaVault
ii openmediavault-remotemount 5.0.3 all Remote mount plugin for OpenMediaVault.
Display More
I think this is a bug that hdparm is still doing something, when it's Disabled in OMV settings.