Bug#568877: lvm2: Hibernation with swap in LVM (but not root partition) fail
fboiteux at calistel.com
Mon Feb 8 14:22:40 UTC 2010
On a Debian Squeeze up to date, the hibertation (suspend to disk) fails with my
disk partition setup :
I have the root partition on a 'standard' partition, whereas the swap
(and other partitions) are located in a LVM2 partition.
When I hibernate, the image is correctly written in swap, but at restart,
the swap isn't detected when looking for resuming, and so a standard boot is run
instead of resuming hibernated system.
my /etc/initramfs-tools/conf.d/resume contains :
I suspect /usr/share/initramfs-tools/scripts/local-top/lvm2 to fail detecting
it's on a LVM2 partition ; if I boot hibernated image with 'debug break=mount'
kernel arguments, and then at initramfs prompt, I do :
lvm vgchange -aly
then the LVM partitions are detected, and the system do the resume.
Perhaps the problem comes from usage of UUID, but I'm not sure (and the Debian
Installer automatically built the RESUME=UUID=xxx conf. file.
i'm not enough familiar with lvm2 to propose a patch, sorry.
-- System Information:
Debian Release: squeeze/sid
APT prefers squeeze
APT policy: (990, 'squeeze'), (990, 'testing'), (800, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages lvm2 depends on:
ii dmsetup 2:1.02.39-1 The Linux Kernel Device Mapper use
ii libc6 2.10.2-2 GNU C Library: Shared libraries
ii libdevmapper1.02.1 2:1.02.39-1 The Linux Kernel Device Mapper use
ii libreadline5 5.2-7 GNU readline and history libraries
ii lsb-base 3.2-23 Linux Standard Base 3.2 init scrip
lvm2 recommends no packages.
lvm2 suggests no packages.
-- no debconf information
More information about the pkg-lvm-maintainers