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