From bea3956ee912abaa2950dc8b3de58092fba0fea1 Mon Sep 17 00:00:00 2001 From: Stefan Dinescu Date: Mon, 24 Sep 2018 15:21:34 +0300 Subject: [PATCH] Change backup partition size for small disks Minimum backup partition size is calculated as the sum between the sizes of the glance and database partitions, as well as a 20GB overhead. This fix increase the default backup size partition to 40GB to be in line with the above calculations, considering the database and the glance partitions are 10GB each by default. This also increases the minimum disk requirements from 120GB to 130GB. Change-Id: I5cfc329870a84a6245d868b4c4990829e702e886 Closes-bug: 1793543 Signed-off-by: Stefan Dinescu --- bsp-files/kickstarts/pre_disk_aio.cfg | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/bsp-files/kickstarts/pre_disk_aio.cfg b/bsp-files/kickstarts/pre_disk_aio.cfg index 1d0995a5..ddabdb5c 100755 --- a/bsp-files/kickstarts/pre_disk_aio.cfg +++ b/bsp-files/kickstarts/pre_disk_aio.cfg @@ -36,7 +36,7 @@ ## DEFAULT_SMALL_IMAGE_STOR_SIZE = 10 ## DEFAULT_SMALL_DATABASE_STOR_SIZE = 10 ## DEFAULT_SMALL_IMG_CONVERSION_STOR_SIZE = 10 -## DEFAULT_SMALL_BACKUP_STOR_SIZE = 30 +## DEFAULT_SMALL_BACKUP_STOR_SIZE = 40 ## ## LOG_VOL_SIZE = 8192 ## SCRATCH_VOL_SIZE = 8192 @@ -47,8 +47,8 @@ ## GNOCCHI = 5120 ## RESERVED_PE = 16 (based on pesize=32768) ## -## CGCS_PV_SIZE = 10240 + 2*10240 + 10240 + 30720 + 8192 + -## 8192 + 2048 + 2048 + 1024 + 1024 + 5120 +16 = 99344 +## CGCS_PV_SIZE = 10240 + 2*10240 + 10240 + 40960 + 8192 + +## 8192 + 2048 + 2048 + 1024 + 1024 + 5120 +16 = 109584 ## ## NOTE: To maintain upgrade compatability within the volume group, keep the ## undersized LOG_VOL_SIZE and SCRATCH_VOL_SIZE, but size the minimally size @@ -74,12 +74,12 @@ sz=$(blockdev --getsize64 $(get_disk $rootfs_device)) if [ $sz -le $((240*$gb)) ] ; then # Round CGCS_PV_SIZE to the closest upper valued - # that can be divided by 1024. 99344/1024= 97.01 so - # CGCS_PV_SIZE=98*1024=100352 - # Using a disk with a size under 120GB as install + # that can be divided by 1024. 109584/1024= 107.01 so + # CGCS_PV_SIZE=108*1024=110592 + # Using a disk with a size under 130GB as install # disk will allow the system to install, but # config_controller will fail - CGCS_PV_SIZE=100352 + CGCS_PV_SIZE=110592 else CGCS_PV_SIZE=150544 fi