View previous topic :: View next topic |
Author |
Message |
Tatsh Apprentice
Joined: 22 Jul 2007 Posts: 187
|
Posted: Tue Aug 18, 2015 10:16 pm Post subject: Suspend + LUKS, LVM, ext4 |
|
|
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 |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21633
|
Posted: Tue Aug 18, 2015 11:39 pm Post subject: |
|
|
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 |
|
|
Tatsh Apprentice
Joined: 22 Jul 2007 Posts: 187
|
Posted: Tue Aug 18, 2015 11:40 pm Post subject: |
|
|
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 |
|
|
Tatsh Apprentice
Joined: 22 Jul 2007 Posts: 187
|
Posted: Wed Aug 19, 2015 7:10 am Post subject: |
|
|
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 |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21633
|
Posted: Thu Aug 20, 2015 1:28 am Post subject: |
|
|
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 |
|
|
Tatsh Apprentice
Joined: 22 Jul 2007 Posts: 187
|
Posted: Thu Aug 20, 2015 1:35 am Post subject: |
|
|
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 |
|
|
|