RobH has submitted this change and it was merged.

Change subject: Adding new partman recipe for 4 disks raid10 with lvm
......................................................................


Adding new partman recipe for 4 disks raid10 with lvm

Change-Id: I57ddf912f74d1f2ef10e3becf8920d0e022cc0d5
---
A modules/install_server/files/autoinstall/partman/raid10-gpt-srv-lvm-ext4.cfg
1 file changed, 65 insertions(+), 0 deletions(-)

Approvals:
  RobH: Looks good to me, approved
  jenkins-bot: Verified



diff --git 
a/modules/install_server/files/autoinstall/partman/raid10-gpt-srv-lvm-ext4.cfg 
b/modules/install_server/files/autoinstall/partman/raid10-gpt-srv-lvm-ext4.cfg
new file mode 100644
index 0000000..2954956
--- /dev/null
+++ 
b/modules/install_server/files/autoinstall/partman/raid10-gpt-srv-lvm-ext4.cfg
@@ -0,0 +1,65 @@
+# Automatic software RAID partitioning
+#
+# * four disks, sda, sdb, sdc, sdd
+# * primary partitions, with LVM
+# * GPT layout (large disks, > 2TB)
+# * layout:
+#      - / :   ext4, RAID10, 50GB
+#      - /srv: ext4,  RAID10, rest of the space
+
+
+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 all the 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 }  \
+                       .                                       \
+                       50000   8000    50000   raid            \
+                               $primary{ } method{ raid }      \
+                               $lvmignore{}                            \
+                       .                                       \
+                       1000    1000    -1      raid            \
+                               $primary{ } method{ raid }      \
+                               $lvmignore{} \
+                       .                                                       
        \
+                       64 1000 10000000 ext4           \
+                               $primary{ }             \
+                               method{ format }        \
+                               format{ }               \
+                               use_filesystem{ }       \
+                               filesystem{ ext4 }      \
+                               lv_name{ data }         \
+                               $defaultignore{ }       \
+                               $lvmok{ }               \
+                               mountpoint{ /srv }      \
+                       .                                                       
\
+
+
+# Parameters are:
+# <raidtype> <devcount> <sparecount> <fstype> <mountpoint> \
+#                 <devices> <sparedevices>
+d-i partman-auto-raid/recipe   string  \
+               10      4       0       ext4    /       \
+                       /dev/sda2#/dev/sdb2#/dev/sdc2#/dev/sdd2 \
+               .       \
+               10      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/275738
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I57ddf912f74d1f2ef10e3becf8920d0e022cc0d5
Gerrit-PatchSet: 3
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Papaul <[email protected]>
Gerrit-Reviewer: RobH <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to