Increase the partition size for docker distribution

This increases the default docker distribution partition size from
1G to 16G. This also increases the minimum disk requirements from
130G to 145G for small disk, 170G to 185G for large disk.

Story: 2004520
Task: 28526
Change-Id: I898cfac45757ff1f9e6ce7c4928bbd9a42dca77d
Signed-off-by: Angie Wang <angie.wang@windriver.com>
This commit is contained in:
Angie Wang 2018-12-14 12:32:06 -05:00
parent 9661e49411
commit 45da23bbce
1 changed files with 9 additions and 9 deletions

View File

@ -27,12 +27,12 @@
## EXTENSION = 1024
## GNOCCHI = 5120
## DOCKER = 16384 (--kubernetes)
## DOCKER_DIST = 1024 (--kubernetes)
## DOCKER_DIST = 16384 (--kubernetes)
## ETCD = 5120 (--kubernetes)
## RESERVED_PE = 16 (based on pesize=32768)
##
## CGCS_PV_SIZE = 10240 + 2*20480 + 20480 + 51200 + 8196 + 8196 + 2048 +
## 2048 + 1024 + 1024 + 5120 + 16384 + 1024 + 5120 + 16 = 173080
## 2048 + 1024 + 1024 + 5120 + 16384 + 16384 + 5120 + 16 = 188440
##
## small install - (for disks below 240GB)
## - DB size is doubled to allow for upgrades
@ -50,13 +50,13 @@
## EXTENSION = 1024
## GNOCCHI = 5120
## DOCKER = 16384 (--kubernetes)
## DOCKER_DIST = 1024 (--kubernetes)
## DOCKER_DIST = 16384 (--kubernetes)
## ETCD = 5120 (--kubernetes)
## RESERVED_PE = 16 (based on pesize=32768)
##
##
## CGCS_PV_SIZE = 10240 + 2*10240 + 10240 + 40960 + 8192 + 8192 + 2048 +
## 2048 +1024 + 1024 + 5120 + 16384 + 1024 + 5120 + 16 = 132112
## 2048 +1024 + 1024 + 5120 + 16384 + 16384 + 5120 + 16 = 147472
##
## NOTE: To maintain upgrade compatability within the volume group, keep the
## undersized LOG_VOL_SIZE and SCRATCH_VOL_SIZE, but size the minimally size
@ -82,14 +82,14 @@
sz=$(blockdev --getsize64 $(get_disk $rootfs_device))
if [ $sz -le $((240*$gb)) ] ; then
# Round CGCS_PV_SIZE to the closest upper value that can be divided by 1024.
# 132112/1024= 129.02. CGCS_PV_SIZE=130*1024=133120. Using a disk with a
# size under 130GB will fail. 120GB disks will no longer install for AIO
# 147472/1024= 144.02. CGCS_PV_SIZE=145*1024=148480. Using a disk with a
# size under 145GB will fail. 120GB disks will no longer install for AIO
# installations.
CGCS_PV_SIZE=133120
CGCS_PV_SIZE=148480
else
# Round CGCS_PV_SIZE to the closest upper value that can be divided by 1024.
# 173080/1024= 169.02. CGCS_PV_SIZE=170*1024=174080.
CGCS_PV_SIZE=174080
# 188440/1024= 184.02. CGCS_PV_SIZE=185*1024=189440.
CGCS_PV_SIZE=189440
fi
ROOTFS_SIZE=20000