partman-lvm cannot access luks-crypted newly-created partition

Bug #267048 reported by Michel D'HOOGE
12
Affects Status Importance Assigned to Milestone
partman-lvm (Debian)
Fix Released
Unknown
partman-lvm (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: partman-lvm

Trying to install Xubuntu Intrepid Ibex Alpha-5 on an EeePC 701 (4G internal + 4G SDHC memory card)

My partitioning steps are:
- sda1: use as /
- sdb1: encrypt using LUKS
- sdb1_cryptp1: replace default ext3 partition by LVM PV
- Start LVM partitioning
- - accept writing modification to sdb1_crypt

Then I get an error and console #4 reads:
partman-lvm: Can't open /dev/mapper/sdb1_crypt exclusively. Mounted filesystem?

Using console #2, I did:
# dmsetup ls
=> Reports sdb1_crypt, sdb1_cryptp1
# dmsetup remove sdb1_cryptp1
=> Then partman-lvm can start

Note: When I first encountered this problem, "dmsetup remove sdb1_cryptp1" wasn't enough so I did instead
# dmsetup remove_all
# cryptsetup luksOpen /dev/sdb1 sdb1_crypt

Then I can create my LVM partitions.

But when I tried to end partitioning and apply the changes, sdb1_cryptp1 is back and the creation fails. So maybe the problem is more with partman-crypt...

Revision history for this message
Michel D'HOOGE (michel-dhooge) wrote :

I tried to simply create an encrypted partition, without LVM and the problem is still present - so I guess the correct package is partman-crypto.

Revision history for this message
Colin Watson (cjwatson) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package partman-lvm - 61ubuntu1

---------------
partman-lvm (61ubuntu1) intrepid; urgency=low

  * Backport from trunk (Jérémy Bobbio):
    - Fix size substitution when displaying partman-lvm/lvcreate_error.
    - Don't fiddle with label on devices of type loop (e.g. RAID or crypto)
      in update.d/lvm_sync_flag. (Closes: #494910, LP: #267048)

 -- Colin Watson <email address hidden> Sun, 07 Sep 2008 20:27:57 +0100

Changed in partman-lvm:
status: New → Fix Released
Changed in partman-lvm:
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.