Yes. You can use lvresize
to reduce the size of your logical volumes.
You first need to shrink the filesystems using e.g. resize2fs
(exact command depends on filesystem). See the manpage for details, but for shrinking the filesystem it needs to be unmounted, so you’ll need to do this from a live usb or something.
After that you can use lvresize
to resize the logical volumes. Pro tip: You can shrink the filesystem to e.g. 20 GiB, but shrink the partition to 30 GiB, just to make sure you’re not cutting off the filesystem due to some slight error or inexactness, and then afterwards run resize2fs
again to resize the filesystem back to fill the whole partition, which it does by default if you don’t specify any size.
Also note, since you have LVM-on-LUKS, when you boot into a live cd, you will need to first use cryptsetup
to decrypt your partition, and then run vgscan
to make lvm find the unecrypted partition.
I think the hibernation image is compressed by default (all of it). Also, some of what is in your RAM is just files from disk. I think those don’t need to be saved into the hibernation image, since they’re already on disk. For example, libc.so.6 would definitely be in RAM and in use, but it’s also on disk, so no need to save it during hibernate.
So the hibernation image should be substantially smaller than your used RAM.