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 <stefan.dinescu@windriver.com>
This commit is contained in:
Stefan Dinescu 2018-09-24 15:21:34 +03:00
parent 6a5e10492c
commit bea3956ee9
1 changed files with 7 additions and 7 deletions

View File

@ -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