Article 5BC6A Service systemd-hibernate-resume fails on virtual machine after upgrade

Service systemd-hibernate-resume fails on virtual machine after upgrade

by
lpwevers
from LinuxQuestions.org on (#5BC6A)
Hi,

I recently upgraded an old server of ours from OpenSuSE 13.2 to 15.2. Upgrade went find and all is working as it should. Except for the fact that every time I reboot it (e.g. for a kernel update) my monitoring complains that it has one failed systemd service.

So, looking at the server I have:
Code:digs218:~ # systemctl --failed
UNIT LOAD ACTIVE SUB DESCRIPTION
systemd-hibernate-resume@dev-rootvg-swap.service loaded failed failed Resume from hibernation using device /dev/rootvg/swapAnd looking at the status of the service I get this:
Code:digs218:~ # systemctl status systemd-hibernate-resume@dev-rootvg-swap.service
systemd-hibernate-resume@dev-rootvg-swap.service - Resume from hibernation using device /dev/rootvg/swap
Loaded: loaded (/usr/lib/systemd/system/systemd-hibernate-resume@.service; static; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2020-12-08 09:57:11 CET; 11min ago
Docs: man:systemd-hibernate-resume@.service(8)
Main PID: 384 (code=exited, status=1/FAILURE)

Dec 08 09:57:11 digs218 systemd[1]: Starting Resume from hibernation using device /dev/rootvg/swap...
Dec 08 09:57:11 digs218 systemd-hibernate-resume[384]: Failed to write '254:1' to /sys/power/resume: Permission denied
Dec 08 09:57:11 digs218 systemd[1]: systemd-hibernate-resume@dev-rootvg-swap.service: Main process exited, code=exited, status=1/FAILURE
Dec 08 09:57:11 digs218 systemd[1]: Failed to start Resume from hibernation using device /dev/rootvg/swap.
Dec 08 09:57:11 digs218 systemd[1]: systemd-hibernate-resume@dev-rootvg-swap.service: Unit entered failed state.
Dec 08 09:57:11 digs218 systemd[1]: systemd-hibernate-resume@dev-rootvg-swap.service: Failed with result 'exit-code'.Indeed, /sys/power/resume does not exist. And if I try the echo command manually as root I also get the permission denied error.

Now I don't care about hibernating this server at all, so I just tried disabling the service, but it always magically re-enables itself again at each reboot. Is there a way I can get rid of this service? Or fix it; either way is fine for me. The only work-around I have at this moment is running 'systemctl reset-failed' after each reboot.

Kind regards,
Louislatest?d=yIl2AUoC8zA latest?i=9G8FqgxKtVc:EiVBGrv3-j8:F7zBnMy latest?i=9G8FqgxKtVc:EiVBGrv3-j8:V_sGLiP latest?d=qj6IDK7rITs latest?i=9G8FqgxKtVc:EiVBGrv3-j8:gIN9vFw9G8FqgxKtVc
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments