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
Note to self: computer "metall"
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
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
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
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 :)
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 => RESOLVEDResolution: (none) => DUPLICATE