I have configured hibernate, its working, just to make sure it will not fail sometime - this question.
I have two swap files on different devices, first is small swap on SSD, second as big as ram on HDD. Hibernate configured to small one. It works fine for now, as hibernate not always requires too much(not everything written or compressed, I don't known).
How to configure hibernate to use both swaps? Or it process them automatically and nothing need to do? At kernel options I have setup for first small swap, and its good if it will use it first(as fastest) and then second.
I don't want to make SSD swap larger as SSD is small.
leonid@DevSSD:~$ grep resume < /etc/default/grub GRUB_CMDLINE_LINUX_DEFAULT="no_console_suspend initcall_debug resume=UUID=050f8852-d8f6-4979-a4e4-c3d9b981bee9 resume_offset=34816"
UUID=050f8852-d8f6-4979-a4e4-c3d9b981bee9 / ext4 relatime,grpquota,data=ordered,usrquota,rw,errors=remount-ro,quota 0 1 UUID=3bcf1591-7033-416a-addf-9cf8e2e10c93 /home/leonid/hdd ext4 defaults,rw,errors=remount-ro 0 1 /swapfile none swap sw 0 0 /home/leonid/hdd/swapfile none swap sw 0 0 UUID=26DA-1C76 /boot/efi vfat defaults 0 1
Update: I have make even smaller swap for testing and setup priority. Hibernating not goes to swap with higher priority:
leonid@DevSSD:~$ swapon NAME TYPE SIZE USED PRIO /swap64k file 60K 0B 1 /home/leonid/hdd/swapfile file 8G 0B 100 leonid@DevSSD:~$ systemctl hibernate Failed to hibernate system via logind: Sleep verb not supported