--- Begin Message ---
- To: submit@bugs.debian.org
- Subject: partman-lvm: Refuses to reinstall if it find old lvm volume
- From: Petter Reinholdtsen <pere@hungry.com>
- Date: Mon, 11 Aug 2014 17:39:43 +0200
- Message-id: <2fl8umvavcw.fsf@diskless.uio.no>
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
--- End Message ---
--- Begin Message ---
- To: 757818-done@bugs.debian.org
- Subject: (fwd) Accepted partman-lvm 92 (source all) into unstable
- From: Petter Reinholdtsen <pere@hungry.com>
- Date: Wed, 10 Sep 2014 07:46:23 +0200
- Message-id: <20140910054623.GS14886@ulrik.uio.no>
Version: 92
Failed to close this because of a typo in the changelog.
----- Forwarded message from Petter Reinholdtsen <pere@debian.org> -----
Date: Tue, 09 Sep 2014 22:19:55 +0000
From: Petter Reinholdtsen <pere@debian.org>
To: debian-devel-changes@lists.debian.org
Subject: Accepted partman-lvm 92 (source all) into unstable
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Wed, 10 Sep 2014 00:08:04 +0200
Source: partman-lvm
Binary: partman-lvm
Architecture: source all
Version: 92
Distribution: unstable
Urgency: low
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Petter Reinholdtsen <pere@debian.org>
Description:
partman-lvm - Adds support for LVM to partman (udeb)
Closes: 635438
Changes:
partman-lvm (92) unstable; urgency=low
.
* Add '--wipesignatures n' to the lvcreate call in lv_create() to make
sure the installer do not hang when an old swap or file system
signature is found when a new logical volume is created (Closes #757818).
* Correct error message when unable to create a volume group (Closes:
#635438). Thank you Robert Millan for the tip.
Checksums-Sha1:
d7f9c12d1d558a1ffe186bc1f17bf8f1e9bdbbcf 996 partman-lvm_92.dsc
64c7d57ec3cd2cdfd00f565ecee081bb32860e3c 370864 partman-lvm_92.tar.gz
36ba3b5a9b7b1107fc1a1a86aba07173a4214438 307796 partman-lvm_92_all.udeb
Checksums-Sha256:
59fdc9f9315f388c77adfe6a1697c681471f9b3ea57efed1675ec4b99fe86825 996 partman-lvm_92.dsc
726dea96119e98305ff2d46d714246368db85a47352699a83c34636afce7724a 370864 partman-lvm_92.tar.gz
f04759b2d90c768d0660dd0b6580e1fefc701bb13f4f2fa7a621558a054f069f 307796 partman-lvm_92_all.udeb
Files:
39de04e3b36d33f62425b9fa2c3fcd55 996 debian-installer optional partman-lvm_92.dsc
53f0d73d0489aa87d53380a991b9067b 370864 debian-installer optional partman-lvm_92.tar.gz
24991abcd8c66411f4db780abd6a033c 307796 debian-installer optional partman-lvm_92_all.udeb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iD8DBQFUD3qG20zMSyow1ykRAk2vAKCzbV7LshJ8uK8K0zVvZPAhisLDlACgoDaC
0VY6tlGblHkokKJ1L97ckWc=
=lCTe
-----END PGP SIGNATURE-----
--
To UNSUBSCRIBE, email to debian-devel-changes-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: https://lists.debian.org/E1XRTlT-0002B6-V8@franck.debian.org
----- End forwarded message -----
--- End Message ---