Alexandros Kosiaris has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/173307

Change subject: Change xenon,cerium,praseodium raid scheme
......................................................................

Change xenon,cerium,praseodium raid scheme

Introduce a GPT based (although not strictly needed), RAID0 LV, RAID1
for /boot scheme

Change-Id: I7a5e36e04962e88c6f34750dacc306067ffd166d
RT: 8529
---
M modules/install-server/files/autoinstall/netboot.cfg
A modules/install-server/files/autoinstall/partman/raid0-lvm.cfg
2 files changed, 74 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/07/173307/1

diff --git a/modules/install-server/files/autoinstall/netboot.cfg 
b/modules/install-server/files/autoinstall/netboot.cfg
index ea4326e..44e52d1 100755
--- a/modules/install-server/files/autoinstall/netboot.cfg
+++ b/modules/install-server/files/autoinstall/netboot.cfg
@@ -81,7 +81,8 @@
                search[0-9]*) echo partman/search.cfg ;; \
                snapshot[1-4]|snapshot100[1-4]) echo partman/snapshot.cfg ;; \
                stat1002) echo partman/lvm-noraid-large.a.cfg ;; \
-               
argon|bast4001|cerium|copper|neon|praseodymium|ruthenium|ssl[1-3]0[0-9][0-9]|ssl[0-9]|titanium|ytterbium|xenon|zirconium)
 echo partman/raid1-lvm.cfg ;; \
+               
argon|bast4001|copper|neon|ruthenium|ssl[1-3]0[0-9][0-9]|ssl[0-9]|titanium|ytterbium|zirconium)
 echo partman/raid1-lvm.cfg ;; \
+               cerium|praseodymium|xenon) echo partman/raid0-lvm.cfg ;; \
                virt[5-9]|virt1[0-1]) echo partman/virt-raid10-cisco.cfg ;; \
                virt100[1-9]) echo partman/virt-raid10-cisco.cfg ;; \
                labnet1001) echo partman/lvm.cfg ;; \
diff --git a/modules/install-server/files/autoinstall/partman/raid0-lvm.cfg 
b/modules/install-server/files/autoinstall/partman/raid0-lvm.cfg
new file mode 100644
index 0000000..53fd4ed
--- /dev/null
+++ b/modules/install-server/files/autoinstall/partman/raid0-lvm.cfg
@@ -0,0 +1,72 @@
+# Automatic software RAID partitioning
+#
+# * 4 disks, sda, sdb, sdc, sddd
+# * LVM
+# * GPT layout (large disks, > 2TB)
+# * layout:
+#   - /boot:      RAID1, 500MB
+#   - /        :   ext3, RAID0, 50GB on LVM
+#   - swap:      RAID0, 1G on LVM
+#   - rest is lvm RAID0
+
+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
+
+# Use the first two disks
+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 ::    \
+                       1       1       1       grub            \
+                               $primary{ } method{ biosgrub }  \
+                       .                                       \
+                       500     1       500     raid            \
+                               $primary{ } method{ raid }      \
+                       .                                       \
+                       500     2       -1      raid            \
+                               $primary{ } method{ raid }      \
+                               $lvmignore{ }                   \
+                       .                                       \
+                       50000   4       50000  ext3             \
+                                       $lvmok{ }               \
+                                       $defaultignore{ }       \
+                                       lv_name{ root }         \
+                                       method{ format }        \
+                                       format{ }               \
+                                       use_filesystem{ }       \
+                                       filesystem{ ext3 }      \
+                                       mountpoint{ / }         \
+                       .                                       \
+                       1000    3       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          \
+               1       4       0       ext3    /boot   \
+                       /dev/sda2#/dev/sdb2#/dev/sdc2#/dev/sdd2         \
+               .                                       \
+               0       4       0       lvm     -       \
+                       /dev/sda3#/dev/sdb3#/dev/sdc3#/dev/sdd3         \
+               .
+
+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/173307
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7a5e36e04962e88c6f34750dacc306067ffd166d
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Alexandros Kosiaris <akosia...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to