From c6df45a9668141d141bdec852c12796cbea2c0c1 Mon Sep 17 00:00:00 2001 From: Florent CARLI Date: Tue, 30 Apr 2024 15:32:45 +0200 Subject: [PATCH] partitioning: make initial ceph VG and LV very small There is an ansible playbook to increase those to the required sizes to be defined in the inventory Signed-off-by: Florent CARLI --- srv_fai_config/disk_config/SEAPATH_HOST | 6 +++++- srv_fai_config/disk_config/SEAPATH_RAID | 12 ++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/srv_fai_config/disk_config/SEAPATH_HOST b/srv_fai_config/disk_config/SEAPATH_HOST index 4197204..2f0df96 100644 --- a/srv_fai_config/disk_config/SEAPATH_HOST +++ b/srv_fai_config/disk_config/SEAPATH_HOST @@ -5,7 +5,8 @@ disk_config disk1 disklabel:gpt fstabkey:uuid align-at:1M primary /boot/efi 512M vfat rw -primary - 100G - - +primary - 50G - - +primary - 2G - - disk_config lvm @@ -13,3 +14,6 @@ vg vg1 disk1.2 vg1-root / 15G ext4 noatime,rw vg1-varlog /var/log 5G ext4 noatime,rw vg1-swap swap 500M swap sw + +vg vg_ceph disk1.3 +vg_ceph-lv_ceph - 1G - - diff --git a/srv_fai_config/disk_config/SEAPATH_RAID b/srv_fai_config/disk_config/SEAPATH_RAID index 057a07b..74dc0d7 100644 --- a/srv_fai_config/disk_config/SEAPATH_RAID +++ b/srv_fai_config/disk_config/SEAPATH_RAID @@ -2,19 +2,19 @@ disk_config disk1 disklabel:gpt fstabkey:uuid align-at:1M primary /boot/efi 500M vfat errors=remount-ro,nofail -primary - 40G - - -primary - 300G - - +primary - 50G - - +primary - 2G - - disk_config disk2 disklabel:gpt fstabkey:uuid align-at:1M primary /boot/efi2 500M vfat errors=remount-ro,nofail -primary - 40G - - -primary - 300G - - +primary - 50G - - +primary - 2G - - disk_config lvm vg vg1 disk1.2,disk2.2 vg1-root / 20G ext4 noatime,rw lvcreateopts="-m 1 --type raid1 --nosync" createopts="-I 256" vg1-swap swap 2G swap sw lvcreateopts="-m 1 --type raid1 --nosync" -vg1-varlog /var/log 5G ext4 defaults lvcreateopts="-m 1 --type raid1 --nosync" createopts="-I 256" +vg1-varlog /var/log 5G ext4 defaults lvcreateopts="-m 1 --type raid1 --nosync" createopts="-I 256" vg vg_ceph disk1.3,disk2.3 -vg_ceph-lv_ceph - 200G - - lvcreateopts="-m 1 --type raid1 --nosync" +vg_ceph-lv_ceph - 1G - - lvcreateopts="-m 1 --type raid1 --nosync"