Alexandros Kosiaris has submitted this change and it was merged. Change subject: Create OSM labs db partitioning scheme and dhcp ......................................................................
Create OSM labs db partitioning scheme and dhcp Those boxes have a RAID6 hardware raid of 12 2T SATA disks. Configuring them with a 300Mb /boot, 8G swap and 1T /, the last two on LVM In the same commit assign their macs the respective hostnames Change-Id: Id3df153100379a838df724e43fcc54a5d3b9e826 --- M modules/install-server/files/autoinstall/netboot.cfg A modules/install-server/files/autoinstall/partman/osmlabsdb.cfg M modules/install-server/files/dhcpd/linux-host-entries.ttyS1-115200 3 files changed, 56 insertions(+), 4 deletions(-) Approvals: Alexandros Kosiaris: Looks good to me, approved jenkins-bot: Verified diff --git a/modules/install-server/files/autoinstall/netboot.cfg b/modules/install-server/files/autoinstall/netboot.cfg index 4ff407a..fa8b2ef 100755 --- a/modules/install-server/files/autoinstall/netboot.cfg +++ b/modules/install-server/files/autoinstall/netboot.cfg @@ -64,6 +64,7 @@ ms-be30[0-9][0-9]) echo partman/ceph-ssd.cfg ;; \ mw[0-9]*|srv[0-9]*) echo partman/mw.cfg ;; \ labsdb[1-3]|labsdb100[1-3]) echo partman/mw.cfg ;; \ + labsdb100[45]) echo partman/osmlabsdb.cfg ;; \ nickel) echo partman/raid1.cfg ;; \ osm-cp*) echo partman/mw.cfg ;; \ pc[1-3]|pc100[1-3]) echo partman/mw.cfg ;; \ diff --git a/modules/install-server/files/autoinstall/partman/osmlabsdb.cfg b/modules/install-server/files/autoinstall/partman/osmlabsdb.cfg new file mode 100644 index 0000000..9833734 --- /dev/null +++ b/modules/install-server/files/autoinstall/partman/osmlabsdb.cfg @@ -0,0 +1,51 @@ +# configuration to create: +# * no software RAID (either single disk or hardware raid presenting a single device) +# * 300M on /boot outside of LVM +# * the rest formatted with LVM with 80% used +# ** 8G swap +# ** 1T / + + +d-i partman-auto/method string lvm +d-i partman-auto/disk string /dev/sda + +# the install makes sure we want to wipe the lvm/raid config +d-i partman-lvm/device_remove_lvm boolean true +d-i partman-md/device_remove_md boolean true +d-i partman-lvm/confirm boolean true +d-i partman-lvm/confirm_nooverwrite true + +# This makes partman automatically partition without confirmation, provided +# that you told it what to do using one of the methods above. +d-i partman-partitioning/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/expert_recipe string osmdb :: \ + 40 300 300 ext3 \ + $primary{ } \ + $bootable{ } \ + method{ format } \ + format{ } \ + use_filesystem{ } \ + filesystem{ ext3 } \ + mountpoint{ /boot } \ + . \ + 8000 8000 8000 linux-swap \ + method{ swap } \ + $lvmok{ } \ + format{ } \ + . + 1000000 1000000 1000000 ext3 \ + $lvmok{ } \ + method{ format } \ + format{ } \ + use_filesystem{ } \ + filesystem{ ext3 } \ + mountpoint{ / } \ + . \ + +d-i partman-auto-lvm/guided_size string 80% + +d-i partman-auto/choose_recipe osmdb diff --git a/modules/install-server/files/dhcpd/linux-host-entries.ttyS1-115200 b/modules/install-server/files/dhcpd/linux-host-entries.ttyS1-115200 index 77f2574..6ed977a 100644 --- a/modules/install-server/files/dhcpd/linux-host-entries.ttyS1-115200 +++ b/modules/install-server/files/dhcpd/linux-host-entries.ttyS1-115200 @@ -1363,14 +1363,14 @@ fixed-address labstore1002.eqiad.wmnet; } -host labstore1003 { +host labsdb1004 { hardware ethernet d4:ae:52:76:66:59; - fixed-address labstore1003.eqiad.wmnet; + fixed-address labsdb1004.eqiad.wmnet; } -host labstore1004 { +host labsdb1005 { hardware ethernet d4:ae:52:76:5c:b2; - fixed-address labstore1004.eqiad.wmnet; + fixed-address labsdb1005.eqiad.wmnet; } host lanthanum { -- To view, visit https://gerrit.wikimedia.org/r/115622 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Id3df153100379a838df724e43fcc54a5d3b9e826 Gerrit-PatchSet: 1 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Alexandros Kosiaris <akosia...@wikimedia.org> Gerrit-Reviewer: Alexandros Kosiaris <akosia...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits