Page MenuHomePhabricator
Paste P3025

Draft of partition scheme
ActivePublic

Authored by elukey on May 10 2016, 1:42 PM.
Tags
None
Referenced Files
F3991345: Draft of partition scheme
May 10 2016, 1:42 PM
Subscribers
None
# Automatic software RAID partitioning
#
# Analytics Query Service
#
# * 8 SSDs, sda, sdb, sdc, sdd, sde, sdf, sdg, sdh
# * LVM
# * layout:
# - /: RAID10, 30GB
# - /srv/cassandra-a: RAID0, on sda, sdb, sdc, sdd
# - /srv/cassandra-a: RAID0, on sde, sdf, sdg, sdh
d-i partman-auto/method string raid
d-i partman-md/device_remove_md boolean true
d-i partman-lvm/device_remove_lvm boolean true
d-i partman/alignment select optimal
d-i partman-auto/disk string /dev/sda /dev/sdb /dev/sdc /dev/sdd /dev/sde /dev/sdf /dev/sdg /dev/sdh
d-i partman-auto/choose_recipe select multiraid
# Define physical partitions
d-i partman-auto/expert_recipe string \
multi-raid :: \
30000 1 30000 raid \
$primary{ } method{ raid } \
$lvmignore{ } \
. \
100000 4 -1 ext4 \
$lvmok{ } \
$defaultignore{ } \
lv_name{ srv_cassandra_a } \
method{ format } \
format{ } \
use_filesystem{ } \
filesystem{ ext4 } \
mountpoint{ /srv/cassandra-b } \
. \
100000 4 -1 ext4 \
$lvmok{ } \
$defaultignore{ } \
lv_name{ srv_cassandra_b} \
method{ format } \
format{ } \
use_filesystem{ } \
filesystem{ ext4 } \
mountpoint{ /srv/cassandra-b } \
.
# Parameters are:
# <raidtype> <devcount> <sparecount> <fstype> <mountpoint> \
# <devices> <sparedevices>
d-i partman-auto-raid/recipe string \
10 4 2 ext4 / \
/dev/sda1#/dev/sdb1#/dev/sdc1#/dev/sdd1 \
. \
0 4 0 lvm - \
/dev/sda2#/dev/sdb2#/dev/sdc2#/dev/sdd2 \
. \
0 4 0 lvm - \
/dev/sde1#/dev/sdf1#/dev/sdg1#/dev/sdh1 \
.
d-i partman-md/confirm boolean true
d-i partman-md/confirm_nooverwrite boolean true
d-i partman/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i partman-auto-lvm/guided_size string 90%
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
d-i partman-lvm/device_remove_lvm boolean true
d-i mdadm/boot_degraded boolean true