LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 12-08-2020, 03:24 AM   #1
lpwevers
Member
 
Registered: Apr 2005
Location: The Netherlands
Distribution: SuSE, CentOS
Posts: 181

Rep: Reputation: 21
Service systemd-hibernate-resume fails on virtual machine after upgrade


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/swap
And 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,
Louis
 
Old 12-09-2020, 12:44 PM   #2
Sauerland
Member
 
Registered: Jul 2017
Distribution: openSUSE Leap
Posts: 194

Rep: Reputation: Disabled
See here, maybe it can help:
https://wiki.archlinux.org/index.php..._and_hibernate
 
Old 12-09-2020, 01:57 PM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
You don't need this on a virtual machine, disable and, if necessary, mask it.
 
Old 12-11-2020, 02:24 AM   #4
lpwevers
Member
 
Registered: Apr 2005
Location: The Netherlands
Distribution: SuSE, CentOS
Posts: 181

Original Poster
Rep: Reputation: 21
Thanks for the replies. Agreed, I don't need it on a VM. I tried masking it, but it still tries to start it:
Code:
digs218:~ # systemctl --failed
  UNIT                                             LOAD   ACTIVE SUB    DESCRIPTION
● systemd-hibernate-resume@dev-rootvg-swap.service masked failed failed systemd-hibernate-resume@dev-rootvg-swap.service
But I did find the cause of it. As expected, it's caused by the upgrade. The old OpenSuSE 13.2 system used the "old" kernelspace method, basically echoing "disk" into /sys/power/state. While after the upgrade the "new" userspace method, handled by the commands s2disk and resume is used. But I guess it never removed the links to the old method.

I've now solved this by changing the resume=/dev/... to noresume in /etc/default/grub and regenerating the grub menu. That prevents the system from trying to resume and thus doesn't try to start this service.
 
  


Reply

Tags
hibernate, systemd



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Buggy nouveau driver in recent kernels; resume from hibernate fails ordealbyfire83 Linux From Scratch 22 10-31-2015 12:25 PM
[SOLVED] Why do nVida drivers hose suspend/resume or hibernate/resume? taylorkh Linux - Hardware 3 06-23-2011 01:09 PM
cli hibernate works but gnome panel hibernate fails BCarey Linux - Desktop 1 06-08-2007 10:21 AM
X Server loads then halts after resume from hibernate boulderjams Linux - Laptop and Netbook 1 02-20-2007 11:39 AM
no fan control after hibernate resume on NC6000 jlinkels Linux - Laptop and Netbook 5 03-17-2006 06:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 11:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration