Filippo Giunchedi has submitted this change and it was merged. Change subject: install_server: add prometheus partman ......................................................................
install_server: add prometheus partman Inspired by graphite-dmcache.cfg Bug: T151338 Change-Id: I047b122910ed3632d8389626c9fcc092807f14da --- A modules/install_server/files/autoinstall/partman/prometheus.cfg 1 file changed, 88 insertions(+), 0 deletions(-) Approvals: Filippo Giunchedi: Looks good to me, approved jenkins-bot: Verified diff --git a/modules/install_server/files/autoinstall/partman/prometheus.cfg b/modules/install_server/files/autoinstall/partman/prometheus.cfg new file mode 100644 index 0000000..1aab662 --- /dev/null +++ b/modules/install_server/files/autoinstall/partman/prometheus.cfg @@ -0,0 +1,88 @@ +# use LVM and dm-cache to speed up read/write to spinning HDDs + +# expected hardware: +# * /dev/sda: SSD raid1 +# * /dev/sdb: spinning raid10 + +# * layout: +# - /boot: ext4 on ssd, no lvm +# - sdb: single partition to host one PV +# - two VGs: vg-data (PV: sda+sdb) and vg-sys (PV: sda) +# - swap: vg-sys 1GB +# - /: vg-sys 40GB + +d-i partman-auto/method string lvm +d-i partman-md/device_remove_md boolean true +d-i partman-lvm/device_remove_lvm boolean true + +# order is important, if not specified partitions get created on the first disk +d-i partman-auto/disk string /dev/sda /dev/sdb + +d-i partman-auto/choose_recipe lvm + +# Define physical partitions: +# regular partitions and partitions used in VGs first +# then LVs +d-i partman-auto/expert_recipe string \ + lvm :: \ + 100 300 100 ext4 \ + $primary{ } \ + $bootable{ } \ + method{ format } \ + format{ } \ + use_filesystem{ } \ + filesystem{ ext4 } \ + mountpoint{ /boot } \ + device{ /dev/sda } \ + . \ + 40000 40000 40000 ext4 \ + $defaultignore{ } \ + $primary{ } \ + method{ lvm } \ + device{ /dev/sda } \ + vg_name{ vg-sys } \ + . \ + 100000 300000 1000000000 ext4 \ + $primary{ } \ + $defaultignore{ } \ + method{ keep } \ + device{ /dev/sda } \ + . \ + 500000 300 -1 ext4 \ + $defaultignore{ } \ + $primary{ } \ + method{ lvm } \ + device{ /dev/sdb } \ + vg_name{ vg-data } \ + . \ + 1000 1000 1000 linux-swap \ + method{ swap } \ + $lvmok{ } \ + format{ } \ + in_vg{ vg-sys } \ + lv_name{ swap } \ + . \ + 40000 40000 40000 ext4 \ + $lvmok{ } \ + method{ format } \ + format{ } \ + use_filesystem{ } \ + filesystem{ ext4 } \ + mountpoint{ / } \ + in_vg{ vg-sys } \ + lv_name{ root } \ + . + +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 80% +d-i partman-lvm/confirm boolean true +d-i partman-lvm/confirm_nooverwrite boolean true + +# do not prompt for 'no filesystem on partition' +d-i partman-basicmethods/method_only boolean false -- To view, visit https://gerrit.wikimedia.org/r/323056 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I047b122910ed3632d8389626c9fcc092807f14da Gerrit-PatchSet: 2 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Filippo Giunchedi <fgiunch...@wikimedia.org> Gerrit-Reviewer: Filippo Giunchedi <fgiunch...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits