OMV6 is Unable to sleep/standby

  • Hi,

    I am unable to set the system to sleep/standby.

    The action does not have any effect.


    Logs from syslog:

    My fstab:


    I am using the flashmemory plugin as I did on OMV5. On such OS (same hardware) I was able to set the system to sleep. What has changed now?

    OMV BUILD - MY NAS KILLER - OMV 6.x + omvextrasorg (updated automatically every week)

    NAS Specs: Core i3-8300 - ASRock H370M-ITX/ac - 16GB RAM - Sandisk Ultra Flair 32GB (OMV), 256GB NVME SSD (Docker Apps), 2x16TB HDDs w/ SnapRAID - Fractal Design Node 304 - Be quiet! Pure Power 11 350W


    My all-in-one SnapRAID script!

  • Hi I am referring to the system standby/sleep, not to disks spindown. The latter can be accomplished with hd-idle, I wrote a guide on this forum.

    OMV BUILD - MY NAS KILLER - OMV 6.x + omvextrasorg (updated automatically every week)

    NAS Specs: Core i3-8300 - ASRock H370M-ITX/ac - 16GB RAM - Sandisk Ultra Flair 32GB (OMV), 256GB NVME SSD (Docker Apps), 2x16TB HDDs w/ SnapRAID - Fractal Design Node 304 - Be quiet! Pure Power 11 350W


    My all-in-one SnapRAID script!

  • extended the swap partition.

    I'm curious regarding this issue and solution.

    What was the original size of swap partition?

    Was RAM size changed after installation?

    Maybe a check should be added to UI given the results in issue https://github.com/openmediavault/openmediavault/issues/66

    omv 6.9.6-2 (Shaitan) on RPi CM4/4GB with 64bit Kernel 6.1.21-v8+

    2x 6TB 3.5'' HDDs (CMR) formatted with ext4 via 2port PCIe SATA card with ASM1061R chipset providing hardware supported RAID1


    omv 6.9.3-1 (Shaitan) on RPi4/4GB with 32bit Kernel 5.10.63 and WittyPi 3 V2 RTC HAT

    2x 3TB 3.5'' HDDs (CMR) formatted with ext4 in Icy Box IB-RD3662-C31 / hardware supported RAID1

    For Read/Write performance of SMB shares hosted on this hardware see forum here

  • I have installed OMV6 on a USB stick, as I did for OMV5. (specs in my signature)

    However the install didn't go very smoothly - issue here - but I don't know if It had a direct impact.


    The original size of the swap was very little, just under 1 GB.

    The RAM was not changed after the install. I always had 8 GB RAM installed on this setup.


    The previous OMV5 install had the correct size swap partition, but I can't remember if I did something to it since it was installed on February 2020.


    By the way, if the RAM content has to be copied to the swap partition, do you know why the sleep process is so fast?


    My system on average uses 2.5 to 3 GB RAM and the sleep process takes literally a handful of seconds, but my USB stick isn't that fast. How is this possible? I'm not complaining, I just don't understand how is accomplished.

    OMV BUILD - MY NAS KILLER - OMV 6.x + omvextrasorg (updated automatically every week)

    NAS Specs: Core i3-8300 - ASRock H370M-ITX/ac - 16GB RAM - Sandisk Ultra Flair 32GB (OMV), 256GB NVME SSD (Docker Apps), 2x16TB HDDs w/ SnapRAID - Fractal Design Node 304 - Be quiet! Pure Power 11 350W


    My all-in-one SnapRAID script!

  • install didn't go very smoothly

    do you remember the kernel version that got installed? the linked picture would let me assume a 5.14 kernel (but only indirectly).

    LTS kernels considered good are 5.10 and 5.15

    the kernel version is visible in dashboard/system information or by CLI uname -a

    omv 6.9.6-2 (Shaitan) on RPi CM4/4GB with 64bit Kernel 6.1.21-v8+

    2x 6TB 3.5'' HDDs (CMR) formatted with ext4 via 2port PCIe SATA card with ASM1061R chipset providing hardware supported RAID1


    omv 6.9.3-1 (Shaitan) on RPi4/4GB with 32bit Kernel 5.10.63 and WittyPi 3 V2 RTC HAT

    2x 3TB 3.5'' HDDs (CMR) formatted with ext4 in Icy Box IB-RD3662-C31 / hardware supported RAID1

    For Read/Write performance of SMB shares hosted on this hardware see forum here

  • do you remember the kernel version that got installed? the linked picture would let me assume a 5.14 kernel (but only indirectly).

    LTS kernels considered good are 5.10 and 5.15

    the kernel version is visible in dashboard/system information or by CLI uname -a

    Indeed, I think 5.14 was installed.

    After the install I ran the command omv-upgrade so I'm running the latest and greatest 5.16.


    By the way I have discovered the root cause of this issue: the OMV GUI has moved from systemctl suspend to systemctl hybernate. I will create a new thread to discuss this.

    OMV BUILD - MY NAS KILLER - OMV 6.x + omvextrasorg (updated automatically every week)

    NAS Specs: Core i3-8300 - ASRock H370M-ITX/ac - 16GB RAM - Sandisk Ultra Flair 32GB (OMV), 256GB NVME SSD (Docker Apps), 2x16TB HDDs w/ SnapRAID - Fractal Design Node 304 - Be quiet! Pure Power 11 350W


    My all-in-one SnapRAID script!

  • Hello everyone, I am having a similar issue with putting OMV6 to sleep-hibernate-suspend (on my Intel NUC NUC7PJYHN with a Pentium Silver J5005 CPU) in order to wake it later via WOL.


    Currently running latest OMV 6.9.16-1 booting from USB stick; RAM is 8GB; main data on the SATA drive (one partition) and using the Flash Memory plugin (seemingly running just fine since day one). BIOS settings are default, no deep-sleep set S4/S5 etc. and WoL works well (in terms of LAN port, BIOS etc.). Note: Per past tradition in OMV4 and OMV5, I have disabled the swap partition in /etc/fstab


    1. When I run/send the command from my other computer:


    ssh -i ~/.ssh/id_rsa root@192.168.1.200 sudo systemctl suspend


    ...the NUC goes to sleep, with the power LED breathing/pulsating. But when I press any key on the keyboard, its power button or send a WoL packet to wake it up, it goes into some bizarre freezing mode, no HDMI output (to see what is happening) and nothing happens at all (I did wait for some time, then was forced to hard-reset it so I can reboot again and do fsck etc.). Not sure what BIOS setting may prevent it from working correctly. By the way, RAM modules seem fine, had run MemTest86 in the past.


    Note: On my other previous Intel NUC6CAYH running OMV6 (latest) remotely, this method works fine without issues... It has an Intel Celeron J3455 CPU, if that matters.


    2. When I run/send this other command:


    ssh -i ~/.ssh/id_rsa root@192.168.1.200 sudo systemctl hibernate


    ...the NUC takes some time (seems to write something to the SSD) but completely stops (hibernates) with no LED pulsating on the front. However, this works like 50% of the times, I need to reboot OMV to "refresh" its condition.


    Note: I have tried with and without the swap file declared/enabled in /etc/fstab and have mixed results. I remember that when the swap file was enabled, and it did not hibernate, the error was to some "not enough space" and I read there in this thread about the need to make the swap partition larger etc. but haven't got into it yet.


    I also see that there exists systemctl suspend-then-hibernate but never tried it, not sure how it behaves.


    Not sure if it's related to BIOS, to the CPU and the OMV6 kernel, or the fact I boot from USB..., any ideas anyone? Thanks in advance.

    OpenMediaVault 6.9.13-1 • Intel NUC NUC6CAYH • Intel Celeron J3455 • 2x4GB RAM • Samsung 870 QVO 4TB • USB Boot (System)

  • Hi macom  ryecoaaron apologies to tag you, perhaps you could offer your insight and experience?


    When sending the above systemctl command to this OMV6 via SSH, I see that it fails, and entering via root in CLI I get the following:

    For info, I have commented/disabled the swap partition of the USB boot stick in /etc/fstab as enabling it didn't really change the outcome in my tests. What is funny is that when I reboot OMV6, and send the hibernate command, it works... it's just after hours or days that it won't work again.


    Here's some more logs, if they help?

    Although my USB stick is not ideal to save/dump memory or swapping etc. I am wondering where does this error "Failed to suspend system. System resumed again: No space left on device" comes from, it refers to the missing swap partition or the space on the boot partition itself?


    Thank you, your time is appreciated.


    P.S. The swap partition is the one created by the OMV6 installer i.e. 977M Linux "swap" and never touched/increased etc.

    P.S. I rebooted the server and hibernate worked, as before... the question is for how long (without rebooting again) <shrug>

    OpenMediaVault 6.9.13-1 • Intel NUC NUC6CAYH • Intel Celeron J3455 • 2x4GB RAM • Samsung 870 QVO 4TB • USB Boot (System)

    Edited 2 times, last by Konsti ().

  • With a USB stick you should disable the swap partition and eventually move it to a "swap file" on a SSD if you have it. That's what I've done.

    "Failed to suspend system. System resumed again: No space left on device" comes from, it refers to the missing swap partition or the space on the boot partition itself?

    It could be either a missing swap partition or a small swap partition.

    I don't use hybernation, just standby (suspend to ram)

    OMV BUILD - MY NAS KILLER - OMV 6.x + omvextrasorg (updated automatically every week)

    NAS Specs: Core i3-8300 - ASRock H370M-ITX/ac - 16GB RAM - Sandisk Ultra Flair 32GB (OMV), 256GB NVME SSD (Docker Apps), 2x16TB HDDs w/ SnapRAID - Fractal Design Node 304 - Be quiet! Pure Power 11 350W


    My all-in-one SnapRAID script!

  • LOL fbeye well the OMV NAS has to sleep... and conserve energy... and a few Euros in my pocket ^^


    Hi auanasgheps thanks for your tips. Indeed, on my USB installations the swap file is disabled as I wrote.


    However, on my Intel NUC, putting to standby does go to sleep, I get breathing power LED but upon waking, it freezes (nothing on HDMI either to see) hence why I tried hibernate... but it doesn't make sense. If I reboot, the machine can hibernate. If I leave it for hours or days without rebooting, then hibernate fails...


    Anyway booted on a parallel USB to PartedMagic, shrunk main OMV partition and expanded swap partition to a little over 4GB. Rebooted, all seems to have gone well. I have re-enabled the swap partition in /etc/fstab and did sudo swapoff -a; sudo swapon -a just in case (and see if there are errors) so time and use will tell if this was the reason. I will report back.


    However, I read online that the "formula" for computing swap size is twice the amount of the system's RAM... not sure if this remains the case for OMV and why the 1GB partition is created with the installer, regardless of RAM detected on the system during installation ?(


    P.S. For info, the correct partition UUID is validated between /etc/initramfs-tools/conf.d/resume and /etc/fstab and swappiness and cache pressure remain default per OMV installation:

    Thanks.

    OpenMediaVault 6.9.13-1 • Intel NUC NUC6CAYH • Intel Celeron J3455 • 2x4GB RAM • Samsung 870 QVO 4TB • USB Boot (System)

Participate now!

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