Bug#776313: [installation-guide] Installation manual should warn about the use of LVM partition types
Drake Wilson <drake@dasyatidae.net> wrote:
> 1. The starting conditions: I've pared them down to two small disks,
> tested in a QEMU+KVM virtual machine. Both have GPT partition
> tables, per [[STARTING-TABLES]] below. Take note of disk 2,
> partition 3, which is marked with an LVM type code (applied via
> setting 8e00 in gdisk) but in fact contains a LUKS volume which
> contains an LVM PV.
>
> (gdisk doesn't have an obvious type code for "Linux LUKS volume",
> and a straw poll of another Linux sysadmin says they do the same
> thing I do and use the underlying type. Maybe "Linux reserved"
> would be more accurate?)
[...]
> Outcome: all attached LVM+LUKS+GPT volumes were destroyed. :-( :-(
> :-(
I have prepared a patch, to add a warning about this to the guide.
Comments welcome!
diff --git a/en/using-d-i/modules/partman-lvm.xml b/en/using-d-i/modules/partman-lvm.xml
index 89b32b958..4a5378c0d 100644
--- a/en/using-d-i/modules/partman-lvm.xml
+++ b/en/using-d-i/modules/partman-lvm.xml
@@ -41,7 +41,18 @@ to be used as physical volumes for LVM. This is done in the
<menuchoice> <guimenu>Use as:</guimenu> <guimenuitem>physical volume
for LVM</guimenuitem> </menuchoice>.
-</para><para>
+</para><warning><para>
+
+Be aware: the new LVM setup will destroy all data on all partitions marked with
+an LVM type code. So, if you already have an LVM on some of your disks, and
+want to install Debian additionally to that machine, the old (already existing)
+LVM will be wiped out! The same counts for partitions, which are (for any
+reason) misleadingly marked with an LVM type code, but contain something
+different (like an encrypted volume). You need to remove such disks from the
+system, before performing a new LVM setup! And - as always - you need to have
+backups of your data. You made that backups, as we already told you, right?
+
+</para></warning><para>
When you return to the main <command>partman</command> screen, you will see
a new option <guimenuitem>Configure the Logical Volume Manager</guimenuitem>.
--
============================================================
Created with Sylpheed 3.5.1 under
D E B I A N L I N U X 9 " S T R E T C H " .
Registered Linux User #311290 - https://linuxcounter.net/
============================================================
Reply to: