LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 09-01-2019, 08:11 AM   #1
husarz
Member
 
Registered: Dec 2016
Location: Poland
Distribution: Fedora/CentOS
Posts: 41

Rep: Reputation: Disabled
CentOS hibernation by systemctl


Hey, when do hibernation on CentOS 7.6.1810 with 3.10.0-957.27.2.el7.x86_64 kernel as:

Code:
# systemctl hibernate
then system successfully hibernates.

But how does kernel know where to write data from RAM when the kernel is stock CentOS and no parameter 'resume=' provided to kernel?
 
Old 09-01-2019, 08:18 AM   #2
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
Succesful hibernate does not mean succesful wake-up - does that work, too?
 
Old 09-01-2019, 08:30 AM   #3
husarz
Member
 
Registered: Dec 2016
Location: Poland
Distribution: Fedora/CentOS
Posts: 41

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
Succesful hibernate does not mean succesful wake-up - does that work, too?
Yes it works - I had hibernated, completely turned off the power for some time and after turned it on again it resumed in desired state.
 
Old 09-01-2019, 08:55 AM   #4
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
not certain, I think it is in the initramdisk

I guess it looks at metadata in swap, just a guess.
 
Old 09-10-2019, 01:53 PM   #5
husarz
Member
 
Registered: Dec 2016
Location: Poland
Distribution: Fedora/CentOS
Posts: 41

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Firerat View Post
not certain, I think it is in the initramdisk

I guess it looks at metadata in swap, just a guess.
What metadata ?
 
Old 09-10-2019, 02:01 PM   #6
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
Quote:
Originally Posted by husarz View Post
What metadata ?
when the initramdisk checks the /etc/fstab and finds the swap partition it sees that swap contains hibernation data that would fit well on system it is booting.
and so resumes it

But just a guess


Edit: I got confused with something else

all the bits of data that describe the drive

manufacture/model/serialNo., the partition IDs, the filesystem IDs, which controller they are connected to and so on

https://en.wikipedia.org/wiki/Metadata

Last edited by Firerat; 09-10-2019 at 02:05 PM.
 
  


Reply



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
Restart systemctl*daemon​ - systemctl command not found cjosephl Linux - Newbie 7 11-11-2017 04:53 PM
Centos 7 fully updated - all systemctl commands timeout rylan76 Linux - Server 10 10-06-2017 03:25 AM
Problem with MySQL install on virt CentOS,no /var/lib/mysql/mysql.sock , systemctl start mysqld.service dont run the service Positive1 CentOS 1 08-13-2016 03:33 AM
systemctl vs init.d on Centos 7 Ryanms3030 Linux - Newbie 8 11-04-2014 07:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 01:01 PM.

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