Today i've added a way to create LVMs for auto installs.
David, can you add this somewhere in your doc for 9.0? Please :-)
Here are some examples of use:
LVM:
partitions => [
...
{ mntpoint => 'vg_a', size => 400 << 11, type => 0x8e, hd => 'sda' },
{ mntpoint => 'vg_b', size => 400 << 11, type => 0x8e, hd => 'sdb', ratio => 1
},
{ VG_name => 'pixVG', parts => 'vg_a vg_b' },
{ mntpoint => '/home', size => 500 << 11, type => 0x183, hd => 'pixVG' },
],
software raid:
partitions => [
...
{ mntpoint => 'raid_a', size => 400 << 11, type => 0xfd, hd => 'sda', ratio =>
1 },
{ mntpoint => 'raid_b', size => 400 << 11, type => 0xfd, hd => 'sdb', ratio =>
1 },
{ mntpoint => 'raid_c', size => 400 << 11, type => 0xfd, hd => 'sdc', ratio =>
1 },
{ mntpoint => 'raid_d', size => 400 << 11, type => 0xfd, hd => 'sdd', ratio =>
1 },
{ mntpoint => '/home', type => 0x483, hd => 'md1', level => 1, parts =>
'raid_a raid_b' },
],
LVM on software raid:
partitions => [
...
{ mntpoint => 'raid_a', size => 400 << 11, type => 0xfd, hd => 'sda', ratio =>
1 },
{ mntpoint => 'raid_b', size => 400 << 11, type => 0xfd, hd => 'sdb', ratio =>
1 },
{ mntpoint => 'raid_c', size => 400 << 11, type => 0xfd, hd => 'sdc', ratio =>
1 },
{ mntpoint => 'raid_d', size => 400 << 11, type => 0xfd, hd => 'sdd', ratio =>
1 },
{ mntpoint => 'vg_a', type => 0x8e, hd => 'md1', level => 1, parts => 'raid_a
raid_b' },
{ mntpoint => 'vg_b', type => 0x8e, hd => 'md2', level => 1, parts => 'raid_c
raid_d' },
{ VG_name => 'pixVG', parts => 'vg_a vg_b' },
{ mntpoint => '/home', size => 500 << 11, type => 0x183, hd => 'pixVG' },
],
NB: if "parts" field is omitted, it will take any PVs available