--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: lvm2: Snapshotting the root logical volume crashes the machine, makes it unbootable, and the snapshot can't even be removed when booting from a recovery system
- From: Sam Morris <sam@robots.org.uk>
- Date: Fri, 23 Jun 2006 14:07:37 +0100
- Message-id: <20060623130737.9845.34474.reportbug@xerces>
Package: lvm2
Severity: critical
Justification: breaks the whole system
I unwittingly ran into bug #288354 today. Creating the snapshot froze my
machine, as described in that bug report.
After a while I rebooted the machine, but it will no longer boot up:
device-mapper: 4.1.0-ioctl (2003-12-10) initialised: dm@uk.sistina.com
Can't expand LV: Snapshot support missing from kernel?
2 logical volume(s) in volume group "main" now active
pivot_root: No sKernel panic: Attempted to kill init!
uch file or dire ctory
/sbin/init: 432: cannot open dev/console: No such file
I booted into a recovery system and the various filesystems and volumes
seemed fine:
rescue:~# lvdisplay
--- Logical volume ---
LV Name /dev/main/root
VG Name main
LV UUID x6pkSm-EeXo-a5Mq-B4Qh-JC9K-kxEy-yhtHua
LV Write Access read/write
LV snapshot status source of
/dev/main/rootbackup [active]
LV Status available
# open 0
LV Size 5.00 GB
Current LE 1280
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:3
--- Logical volume ---
LV Name /dev/main/home
VG Name main
LV UUID mMAlEY-4w0M-rhxD-Er2R-0Z8S-K1nG-CuBBzC
LV Write Access read/write
LV Status available
# open 0
LV Size 5.00 GB
Current LE 1280
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:4
--- Logical volume ---
LV Name /dev/main/srv
VG Name main
LV UUID 3DoKN8-foaO-AkYv-XVyh-x59G-n1zT-OV8LBP
LV Write Access read/write
LV Status available
# open 0
LV Size 10.00 GB
Current LE 2560
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:5
--- Logical volume ---
LV Name /dev/main/rootbackup
VG Name main
LV UUID Zg7bQo-iQT3-w2Sq-voLN-Yj2H-6Owo-Cmjii6
LV Write Access read/write
LV snapshot status active destination for /dev/main/root
LV Status available
# open 0
LV Size 5.00 GB
Current LE 1280
Segments 1
Snapshot chunk size 8.00 KB
Allocated to snapshot 0.01%
Allocation inherit
Read ahead sectors 0
Block device 253:2
However, when I try to remove the rootbackup snapshot:
rescue:~# lvremove -v /dev/main/rootbackup
Using logical volume(s) on command line
Do you really want to remove active logical volume "rootbackup"? [y/n]: y
Archiving volume group "main" metadata.
Found volume group "main"
Loading main-root-real
Loading main-rootbackup-cow
Loading main-rootbackup
At this point, the machine crashes as before. I can still ping it, but
user space seems totally dead.
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (530, 'testing'), (520, 'unstable'), (510, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-k7
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
--- End Message ---
--- Begin Message ---
Source: initramfs-tools
Source-Version: 0.65b
We believe that the bug you reported is fixed in the latest version of
initramfs-tools, which is due to be installed in the Debian FTP archive:
initramfs-tools_0.65b.dsc
to pool/main/i/initramfs-tools/initramfs-tools_0.65b.dsc
initramfs-tools_0.65b.tar.gz
to pool/main/i/initramfs-tools/initramfs-tools_0.65b.tar.gz
initramfs-tools_0.65b_all.deb
to pool/main/i/initramfs-tools/initramfs-tools_0.65b_all.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 375342@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
maximilian attems <maks@sternwelten.at> (supplier of updated initramfs-tools package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Mon, 26 Jun 2006 14:54:30 +0200
Source: initramfs-tools
Binary: initramfs-tools
Architecture: source all
Version: 0.65b
Distribution: unstable
Urgency: low
Maintainer: Debian kernel team <debian-kernel@lists.debian.org>
Changed-By: maximilian attems <maks@sternwelten.at>
Description:
initramfs-tools - tools for generating an initramfs
Closes: 375342 375442
Changes:
initramfs-tools (0.65b) unstable; urgency=low
.
* scripts/local-top/lvm: Load snapshot and mirror modules. (Closes: #375342)
.
* scripts/local-top/lvm: Fix a wrong substitution for the lilo test.
(Closes: #375442)
Files:
8afeb211d00889a9b9ee86c512b85ad9 625 utils optional initramfs-tools_0.65b.dsc
9ddb0e744320bf2f9c99fd286804b8d0 39704 utils optional initramfs-tools_0.65b.tar.gz
1cb3bd71c8fa460d5a352c7b3cbe383c 45832 utils optional initramfs-tools_0.65b_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
iD8DBQFEoAK2XKRQ3lK3SH4RAs9cAKCANWunfQrhiRGtuJVN2iwkcT1WzACgycT2
bQWClP70y5xtGa7IAcZ75lo=
=DYDF
-----END PGP SIGNATURE-----
--- End Message ---