Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Suspend + LUKS, LVM, ext4
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Tatsh
Apprentice
Apprentice


Joined: 22 Jul 2007
Posts: 187

PostPosted: Tue Aug 18, 2015 10:16 pm    Post subject: Suspend + LUKS, LVM, ext4 Reply with quote

I have a partition setup like so:

Code:

NAME           MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda              8:0    0 232.9G  0 disk 
├─sda1           8:1    0    64M  0 part  /boot/efi
├─sda2           8:2    0    64M  0 part  /boot
└─sda3           8:3    0 232.8G  0 part 
  └─root       253:1    0 232.8G  0 crypt
    ├─vg0-root 253:2    0   160G  0 lvm   /
    └─vg0-home 253:3    0 538.5G  0 lvm   /home/tatsh
sdb              8:16   0 465.8G  0 disk 
└─home         253:0    0 465.8G  0 crypt
  └─vg0-home   253:3    0 538.5G  0 lvm   /home/tatsh


/ is encrypted with LUKS, and sdb as a full disk is encrypted as well. Then the two are merged in a JBOD-fashion with LVM. Both LVM partitions are formatted to ext4.

Is this safe to resume to? Anything to be concerned about?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21633

PostPosted: Tue Aug 18, 2015 11:39 pm    Post subject: Reply with quote

S3 suspend should be fine with that. S5 hibernate will be fine if you can get to the stored hibernation image without the resume kernel changing anything on the volumes. Where are you storing the hibernation image?
Back to top
View user's profile Send private message
Tatsh
Apprentice
Apprentice


Joined: 22 Jul 2007
Posts: 187

PostPosted: Tue Aug 18, 2015 11:40 pm    Post subject: Reply with quote

Hu wrote:
S3 suspend should be fine with that. S5 hibernate will be fine if you can get to the stored hibernation image without the resume kernel changing anything on the volumes. Where are you storing the hibernation image?


To be honest, I did not plan on using hibernation. What would be a good place to store that image?
Back to top
View user's profile Send private message
Tatsh
Apprentice
Apprentice


Joined: 22 Jul 2007
Posts: 187

PostPosted: Wed Aug 19, 2015 7:10 am    Post subject: Reply with quote

Thanks for the reply. Suspend seems to be working great. I had to enable it in the kernel and adjust KDE for it to be recognised.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21633

PostPosted: Thu Aug 20, 2015 1:28 am    Post subject: Reply with quote

Hibernation images are always stored in swap. If you have a swap partition, it is easier to write it there. You can store it to a swap file, but that is more complicated to set up. You can, and if you have an encrypted filesystem probably should, use an encrypted swap area so that the hibernated image is encrypted.
Back to top
View user's profile Send private message
Tatsh
Apprentice
Apprentice


Joined: 22 Jul 2007
Posts: 187

PostPosted: Thu Aug 20, 2015 1:35 am    Post subject: Reply with quote

I did have an issue today and I'm not sure if it is directly caused by sleeping. I left my system suspended for about 10 hours, then turned it on for about two hours, left it on screen saver, and then I came back and for some reason Ksshaskpass kept crashing. I logged out of KDE forcibly (to not save the possibly bad session) and logged back in and KDE was rendering on both of my monitors as if they were one. For some reason in that process Quassel client reset my settings (luckily I keep most of $HOME under Git control).

Also, Chrome seems to need to re-render an open window after resuming. I minimise and maximise it and then it works again.

Does it seem like memory corruption (not including video issues) could be a problem? I restarted the system and everything is working fine now. I feel like the only way to know is perhaps to sleep without X running at all and resume hours later, try to emerge gcc or something similar. That would easily fail if memory was corrupted in some unrepairable way.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum