Bug 5382 - Installer failed mount encrypted LVM, div zero, Gtk-CRITICAL
Summary: Installer failed mount encrypted LVM, div zero, Gtk-CRITICAL
Status: RESOLVED DUPLICATE of bug 5330
Alias: None
Product: Mageia
Classification: Unclassified
Component: Installer (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-13 01:19 CEST by Morgan Leijström
Modified: 2012-04-15 15:10 CEST (History)
2 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments

Description Morgan Leijström 2012-04-13 01:19:00 CEST
Background:
Tried fresh network install
Disk partiitonned as a small /boot, and rest encryptedn used for LVM, and in that /, /home, and swap.

Installation failed in such way not even grub worked, maybe because many failed packages during install.

So now i tried install again, thinkingi can remount partitions and it can install missing packages.  I have done that before sucessfully but maybe not on encrypted LVM.

Result: when i in diskdrake select the encrypted partiton it asks for password, i give it, but then it complains that it seem already mounted.

Ctrl-Alt-F3 i see: (typing on another computer looking at that screen):
* running: cryptsetup luksOpen /dev/sdb5 crypt_sdb5 --key-file /tmp/.dmcrypt_key-674
* running: udevadm settle
* running: demsetup table crypt_sdb5
* running: blkid - udev -p /dev/mapper/crypt_sdb5
* blkid gave <an UUID i do not care type here...>
* dmcrypt: found mapper/crypt_sdb5 type ext4 with rootDevice sdb5
* running: lvm2 vgscan
* running: lvm2 vgchange -a -y
* running: lvm2 pvcreate -y -ff /dev/dm-0
* error: pvcreate failed: Can't open /dev/dm-0 exclusively.  Mounted filesystem?



(The following may score for a separate bug report, but the above is the only way i have seen it triggered)

Then I clicked expert mode, and dialog came up saying division by zero

Then it is back at selecting partitioning method, and i select custom.
Then i see the graphical installer borders etc dimmed, no text anywhere, and a empty white rounded square in center, maybe intended message dialog.

Ctrl-Alt-F1, and i see "Gtk-CRITICAL ** gtk_cell_view_set_cell_data: assertion 'cell_view->priv->displayed_row != NULL' failed at /usr/lib/libDrakX/interactive/gtk.pm line 520.

Versions: Network install an hour ago, DrakX v14.4
Comment 1 Morgan Leijström 2012-04-13 01:33:12 CEST
Note to self: computer "metall"
Comment 2 Morgan Leijström 2012-04-15 02:44:51 CEST
Did a fresh try, suceeded.
(only minimal system first, so i had had no packages missing)

The Gtk-CRITICAL is still there on installed updated system, so i made Bug 5406
Comment 3 Dave Hodgins 2012-04-15 05:28:54 CEST
The question, in my opinion, is why is it trying to run pvcreate,
when opening an encrypted block device that already contains
a physical volume.

CC: (none) => davidwhodgins

Comment 4 Colin Guthrie 2012-04-15 11:22:28 CEST
I think it only runs pvcreate when you click the "Add to LVM" button after unlocking the device. This is a destructive operation and will delete data. Instead, after unlocking, you should hit the more button, and select "Reread partition table" This will allow you to see the existing LVM.

I detailed this on bug #5330 as Morgan noted there.

If you can confirm this experience, I think you're right to mark it as a duplicate.

CC: (none) => mageia

Comment 5 Morgan Leijström 2012-04-15 13:09:55 CEST
Ah. Yes. Burned on same quirk again...
This method is not very apparent. I pressed "Add to LVM" as an attempt to activate it as there were no LVM visible. (IIRC)

I think diskdrake should reread partition table automatically... as you suggested here https://bugs.mageia.org/show_bug.cgi?id=5330#c5 :)
Comment 6 Colin Guthrie 2012-04-15 15:10:07 CEST
OK, let's mark it as a dupe then. You were first, but Pascal (diskdrake guru) has commented on the other bug lets do it this way round :)

*** This bug has been marked as a duplicate of bug 5330 ***

Status: NEW => RESOLVED
Resolution: (none) => DUPLICATE


Note You need to log in before you can comment on or make changes to this bug.