FS#50703 - [linux] [lvm2] resume from hibernation fails with swap on thin lvm
Attached to Project:
Arch Linux
Opened by nl6720 (nl6720) - Thursday, 08 September 2016, 11:56 GMT
Last edited by Christian Hesse (eworm) - Wednesday, 10 February 2021, 09:53 GMT
Opened by nl6720 (nl6720) - Thursday, 08 September 2016, 11:56 GMT
Last edited by Christian Hesse (eworm) - Wednesday, 10 February 2021, 09:53 GMT
|
Details
Description:
Kernel fails to load hibernation image when swap is on thin volume. Additional info: * package version(s) * config and/or log files etc. linux 4.7.2-1 lvm2 2.02.164-1 lvs output: LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert mythinpool VMStorage twi-aotz-- 29,39g 6,96 3,52 thinroot VMStorage Vwi-aotz-- 8,00g mythinpool 25,04 thinswap VMStorage Vwi-aotz-- 4,00g mythinpool 0,91 attached is output of journalctl -lk Steps to reproduce: Create thinpool with thin volumes for root and swap. Add "resume=/path/to/thinswap" to bootloader. Hibernate. Try to resume from hibernation. Fail. |
This task depends upon
Closed by Christian Hesse (eworm)
Wednesday, 10 February 2021, 09:53 GMT
Reason for closing: Won't fix
Additional comments about closing: probably limitation in linux
Wednesday, 10 February 2021, 09:53 GMT
Reason for closing: Won't fix
Additional comments about closing: probably limitation in linux
are you using a virtual machine?
EDIT: could be useful, https://01.org/blogs/rzhang/2015/best-practice-debug-linux-suspend/hibernate-issues
EDIT2: could be linked to this, https://bugs.archlinux.org/task/53422
The issue only occurs with swap on thin lvm. I don't recall ever having any issues with hibernating in real or virtual hardware before.
Resuming from hibernation works on real hardware, but in a VirtualBox VM, with the external HDD attached, resuming fails. The VM can't resume from a hibernation image created on real hardware, nor the other way around.
There were some corruption issues (once with the thin pool, the other time with the swap volume), but I don't know if those were caused by the failed resuming in the VM or maybe overprovisioning.
Some day, I'll reinstall Arch on that drive and test again.
It seems to work for me.
IMHO the section in wiki does not make much sense.
Anyway, I think it's not lvm2 being the issue here. Possibly the issue is related to the fact that the linux kernel can not handle sparse files for swap?