Filippo Giunchedi has uploaded a new change for review.
https://gerrit.wikimedia.org/r/187663
Change subject: introduce graphite raid10-lvm configuration
......................................................................
introduce graphite raid10-lvm configuration
Bug: T85909
Change-Id: I68d13a75e443123e9d4d0ada7f9f6b20dd39fa3e
---
M modules/install-server/files/autoinstall/netboot.cfg
A modules/install-server/files/autoinstall/partman/raid10-lvm.cfg
2 files changed, 54 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/63/187663/1
diff --git a/modules/install-server/files/autoinstall/netboot.cfg
b/modules/install-server/files/autoinstall/netboot.cfg
index b2e4929..6848f14 100755
--- a/modules/install-server/files/autoinstall/netboot.cfg
+++ b/modules/install-server/files/autoinstall/netboot.cfg
@@ -61,7 +61,7 @@
cp1008) echo partman/raid1-varnish.cfg ;; \
d-i-test) echo partman/flat.cfg ;; \
antimony|arsenic|caesium|erbium|gadolinium|heze|magnesium|neodymium|palladium|promethium|rubidium|strontium|terbium)
echo partman/lvm.cfg ;; \
- graphite[12]00*) echo partman/lvm.cfg ;; \
+ graphite[12]001) echo partman/raid10-lvm.cfg ;; \
lvs[1-6]|lvs[12]00*) echo partman/flat.cfg ;; \
lvs[34]00*) echo partman/raid1-lvm.cfg ;; \
eeden) echo partman/raid1-1partition.cfg ;; \
diff --git a/modules/install-server/files/autoinstall/partman/raid10-lvm.cfg
b/modules/install-server/files/autoinstall/partman/raid10-lvm.cfg
new file mode 100644
index 0000000..f6b81ae
--- /dev/null
+++ b/modules/install-server/files/autoinstall/partman/raid10-lvm.cfg
@@ -0,0 +1,53 @@
+# Automatic software RAID 10 with LVM partitioning
+#
+# * two disks, sd[abcd]
+# * layout:
+# - / : ext3, RAID10, 50GB
+# - swap: RAID10, 1GB, on LVM
+# - free space for the rest under RAID10/LVM
+
+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-auto/disk string /dev/sda /dev/sdb /dev/sdc /dev/sdd
+
+# Define physical partitions
+d-i partman-auto/expert_recipe string \
+ multiraid :: \
+ 5000 8000 50000 raid \
+ $primary{ } method{ raid } \
+ $lvmignore{ } \
+ . \
+ 1000 1000 -1 raid \
+ $primary{ } method{ raid } \
+ $lvmignore{ } \
+ . \
+ 1000 1000 1000 linux-swap \
+ $defaultignore{ } \
+ $lvmok{ } lv_name{ swap } \
+ method{ swap } \
+ format{ } \
+ .
+
+# Parameters are:
+# <raidtype> <devcount> <sparecount> <fstype> <mountpoint> \
+# <devices> <sparedevices>
+d-i partman-auto-raid/recipe string \
+ 10 4 0 ext3 / \
+ /dev/sda1#/dev/sdb1#/dev/sdc1#/dev/sdd1 \
+ . \
+ 10 4 0 lvm - \
+ /dev/sda2#/dev/sdb2#/dev/sdc2#/dev/sdd2 \
+ .
+
+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
--
To view, visit https://gerrit.wikimedia.org/r/187663
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I68d13a75e443123e9d4d0ada7f9f6b20dd39fa3e
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Filippo Giunchedi <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits