Bug#757818: partman-lvm: Refuses to reinstall if it find old lvm volume
Package: partman-lvm
Version: 91
After the parted API change and fixes, I ran into a new problem when
testing Debian Edu based on Jessie. The installation hang and the log
report that something is waiting on a prompt. I normally test in a
virtual machine, and reuse the hard drive every time. After
<URL: https://bugs.debian.org/757417 > and related bugs were fixed in
partman, reinstallation hang. These are the last few messages in the
syslog before the hang:
Aug 11 15:00:50 main-menu[174]: INFO: Menu item 'clock-setup' selected
Aug 11 15:00:51 clock-setup: rdate called using NTP server 0.debian.pool.ntp.org.
Aug 11 15:00:52 clock-setup: Mon Aug 11 15:00:52 UTC 2014
Aug 11 15:00:52 clock-setup: rdate: adjust local clock by 0.844679 seconds
Aug 11 15:00:52 main-menu[174]: DEBUG: resolver (download-installer): package doesn't exist (ignored)
Aug 11 15:00:52 main-menu[174]: DEBUG: resolver (kbd-chooser): package doesn't exist (ignored)
Aug 11 15:00:52 main-menu[174]: INFO: Menu item 'disk-detect' selected
Aug 11 15:00:53 net/hw-detect.hotplug: Detected hotpluggable network interface eth0
Aug 11 15:00:53 net/hw-detect.hotplug: Detected hotpluggable network interface lo
Aug 11 15:00:54 check-missing-firmware: /dev/.udev/firmware-missing does not exist, skipping
Aug 11 15:00:54 check-missing-firmware: /run/udev/firmware-missing does not exist, skipping
Aug 11 15:00:54 check-missing-firmware: no missing firmware in /dev/.udev/firmware-missing /run/udev/firmware-missing
Aug 11 15:00:55 check-missing-firmware: /dev/.udev/firmware-missing does not exist, skipping
Aug 11 15:00:55 check-missing-firmware: /run/udev/firmware-missing does not exist, skipping
Aug 11 15:00:55 check-missing-firmware: no missing firmware in /dev/.udev/firmware-missing /run/udev/firmware-missing
Aug 11 15:00:55 main-menu[174]: (process:6729): modprobe: invalid option -- 'l'
Aug 11 15:00:56 main-menu[174]: DEBUG: resolver (download-installer): package doesn't exist (ignored)
Aug 11 15:00:56 main-menu[174]: DEBUG: resolver (kbd-chooser): package doesn't exist (ignored)
Aug 11 15:00:56 main-menu[174]: INFO: Menu item 'partman-base' selected
Aug 11 15:00:56 anna-install: Installing partman-auto-crypto
Aug 11 15:00:56 anna[6972]: DEBUG: resolver (cdebconf-udeb): package doesn't exist (ignored)
Aug 11 15:00:56 anna[6972]: DEBUG: resolver (di-utils): package doesn't exist (ignored)
Aug 11 15:00:56 anna[6972]: DEBUG: resolver (kernel-image-3.14-2-486-di): package doesn't exist (ignored)
Aug 11 15:00:56 anna[6972]: DEBUG: resolver (core-modules-3.14-2-486-di): package doesn't exist (ignored)
Aug 11 15:00:56 anna[6972]: DEBUG: resolver (fat-modules): package doesn't exist (ignored)
Aug 11 15:00:56 anna[6972]: DEBUG: resolver (libdebian-installer4-udeb): package doesn't exist (ignored)
Aug 11 15:00:56 anna[6972]: DEBUG: resolver (archdetect): package doesn't exist (ignored)
Aug 11 15:00:56 anna[6972]: DEBUG: resolver (hw-detect): package doesn't exist (ignored)
Aug 11 15:00:56 anna[6972]: DEBUG: retrieving partman-auto-crypto 22
Aug 11 15:00:56 anna[6972]: DEBUG: retrieving partman-crypto 73
Aug 11 15:00:58 kernel: [ 264.456049] raid6: mmxx1 3417 MB/s
Aug 11 15:00:58 kernel: [ 264.524053] raid6: mmxx2 4166 MB/s
Aug 11 15:00:58 kernel: [ 264.592072] raid6: sse1x1 2430 MB/s
Aug 11 15:00:58 kernel: [ 264.660058] raid6: sse1x2 3220 MB/s
Aug 11 15:00:58 kernel: [ 264.728048] raid6: sse2x1 4583 MB/s
Aug 11 15:00:58 kernel: [ 264.796047] raid6: sse2x2 5833 MB/s
Aug 11 15:00:58 kernel: [ 264.796051] raid6: using algorithm sse2x2 (5833 MB/s)
Aug 11 15:00:58 kernel: [ 264.796052] raid6: using intx1 recovery algorithm
Aug 11 15:00:58 kernel: [ 264.797192] xor: measuring software checksum speed
Aug 11 15:00:58 kernel: [ 264.836043] pIII_sse : 9827.000 MB/sec
Aug 11 15:00:58 kernel: [ 264.876042] prefetch64-sse: 11519.000 MB/sec
Aug 11 15:00:58 kernel: [ 264.876046] xor: using function: prefetch64-sse (11519.000 MB/sec)
Aug 11 15:00:58 kernel: [ 264.885429] bio: create slab <bio-1> at 1
Aug 11 15:00:58 kernel: [ 264.885539] Btrfs loaded
Aug 11 15:00:58 kernel: [ 264.924234] JFS: nTxBlock = 4007, nTxLock = 32061
Aug 11 15:00:58 kernel: [ 264.950440] SGI XFS with ACLs, security attributes, realtime, large block/inode numbers, no debug enabled
Aug 11 15:00:58 md-devices: mdadm: No arrays found in config file or automatically
Aug 11 15:00:59 kernel: [ 265.540598] device-mapper: uevent: version 1.0.3
Aug 11 15:00:59 kernel: [ 265.541012] device-mapper: ioctl: 4.27.0-ioctl (2013-10-30) initialised: dm-devel@redhat.com
Aug 11 15:00:59 partman: PV /dev/sda5 VG vg_system lvm2 [29.04 GiB / 4.12 GiB free]
Aug 11 15:00:59 partman: Total: 1 [29.04 GiB] / in use: 1 [29.04 GiB] / in no VG: 0 [0 ]
Aug 11 15:00:59 partman: Reading all physical volumes. This may take a while...
Aug 11 15:00:59 partman: Found volume group "vg_system" using metadata type lvm2
Aug 11 15:00:59 kernel: [ 265.644500] bio: create slab <bio-2> at 2
Aug 11 15:00:59 partman-lvm: 7 logical volume(s) in volume group "vg_system" now active
Aug 11 15:01:03 partman-lvm: Logical volume "root" successfully removed
Aug 11 15:01:04 partman-lvm: Logical volume "skole+backup" successfully removed
Aug 11 15:01:04 partman-lvm: Logical volume "skole+tjener+home0" successfully removed
Aug 11 15:01:04 partman-lvm: Logical volume "swap_1" successfully removed
Aug 11 15:01:04 partman-lvm: Logical volume "usr" successfully removed
Aug 11 15:01:04 partman-lvm: Logical volume "var" successfully removed
Aug 11 15:01:05 partman-lvm: Logical volume "var+spool+squid" successfully removed
Aug 11 15:01:05 partman-lvm: 0 logical volume(s) in volume group "vg_system" now active
Aug 11 15:01:05 partman-lvm: Volume group "vg_system" successfully removed
Aug 11 15:01:05 partman-lvm: Labels on physical volume "/dev/sda5" successfully wiped
Aug 11 15:01:08 partman-lvm: Physical volume "/dev/sda5" successfully created
Aug 11 15:01:08 partman-lvm: Volume group "vg_system" successfully created
Aug 11 15:01:09 kernel: [ 275.503852] bio: create slab <bio-2> at 2
Aug 11 15:01:09 partman-lvm: Logical volume "root" created
Aug 11 15:01:09 partman-lvm: Logical volume "usr" created
Aug 11 15:01:10 partman-lvm: Logical volume "var" created
Aug 11 15:01:10 partman-lvm: WARNING: swap signature detected on /dev/vg_system/swap_1. Wipe it? [y/n]
Checking ps show that lvcreate is hanging, with a call looklike like
this: "lvcreate -l 255 -n swap_1 vg_system" from partman-lvm.
Looking in the partman-lvm source, I find the code in
<URL:http://sources.debian.net/src/partman-lvm/91/lib/lvm-base.sh/?hl=480#L480>,
which I suspect is the cause of this hang:
# Create a LV
lv_create() {
local vg lv extents
vg="$1"
lv="$2"
extents="$3"
log-output -t partman-lvm lvcreate -l "$extents" -n "$lv" $vg
return $?
}
Could the old behaviour where reinstallation work be reintroduced?
--
Happy hacking
Petter Reinholdtsen
Reply to: