[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: partman does not accept lvm partition schema



"S. Schauenburg" <s.schauenburg@gmail.com> writes:

> Good morning everyone,
>
> after spending a lot of time trying to get partman to accept my LVM
> (Logical Volume Manager) partitioning schema, I still remain unsuccessful.
> Since this might very well be due my lack of experience with partman and
> d-i (Debian Installer), I'd thought I'd put it onto the mailinglist
> (already tried IRC) to ask for advice and/or feedback.

Here' one I use for pretty-much what you're after:

  d-i partman-auto/expert_recipe         string lvm-spare :: 128 512 256 ext3 $defaultignore{ } $primary{ } $bootable{ } method{ format } format{ } use_filesystem{ } filesystem{ ext3 } mountpoint{ /boot } .  70 800 280 ext3 $lvmok{ } $primary{ } $bootable{ } method{ format } format{ } use_filesystem{ } filesystem{ ext3 } mountpoint{ / } .  500 3000 5000 ext3 $lvmok{ } method{ format } format{ } use_filesystem{ } filesystem{ ext3 } mountpoint{ /usr } .  70 1500 3000 ext3 $lvmok{ } method{ format } format{ } use_filesystem{ } filesystem{ ext3 } mountpoint{ /var } .  256 1024 300% linux-swap $lvmok{ } method{ swap } format{ } .  70 1500 3000 ext3 $lvmok{ } method{ format } format{ } use_filesystem{ } filesystem{ ext3 } mountpoint{ /home } . 100 10000 1000000000 ext2 $lvmok{ } method{ keep } .

Without seeing what you're trying it's not easy to tell where you went
wrong, but the trick is to not have '$lvmok{ }' for the /boot partition.

Cheers, Phil.

P.S. That recipe also has the addition of a "keep" partition at the end
to consume the spare space, which I then remove in a late script to
leave a lot of space available in the VG -- hence the 'lvm-spare' name.

Just for completeness, the late_command tidy-up is done thus:

  db_get partman-auto-lvm/new_vg_name && lvremove -f /dev/$RET/keep_2

See:  http://hands.com/d-i/jessie/classes/partition/lvm-spare/
 and  http://hands.com/d-i/
-- 
|)|  Philip Hands  [+44 (0)20 8530 9560]  HANDS.COM Ltd.
|-|  http://www.hands.com/    http://ftp.uk.debian.org/
|(|  Hugo-Klemm-Strasse 34,   21075 Hamburg,    GERMANY

Attachment: signature.asc
Description: PGP signature


Reply to: