From 3dbae3e7762ed88c00785b30ccb94508d93587c1 Mon Sep 17 00:00:00 2001 From: Nicolas MASSE Date: Fri, 14 Jul 2017 17:45:21 +0200 Subject: [PATCH] fix partition sizes --- roles/docker/templates/docker-storage-setup | 24 ++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/roles/docker/templates/docker-storage-setup b/roles/docker/templates/docker-storage-setup index 8519c7f..0b624c9 100644 --- a/roles/docker/templates/docker-storage-setup +++ b/roles/docker/templates/docker-storage-setup @@ -1,9 +1,27 @@ STORAGE_DRIVER=devicemapper DOCKER_ROOT_VOLUME=yes -{% if docker_storage_disk is defined %} -DEVS={{ docker_storage_disk }} -{% endif %} {% if docker_storage_vg is defined %} VG={{ docker_storage_vg }} {% endif %} + +# Enable automatic extension of pool by lvm. lvm can monitor +# the pool and automatically extend it when pool is getting full. +AUTO_EXTEND_POOL=true + +# Determines the pool extension threshold in terms of percentage +# of pool size. For example, if threshold is 60, that means when +# pool is 60% full, threshold has been hit. +POOL_AUTOEXTEND_THRESHOLD=80 + +# Determines the amount by which pool needs to be grown. This is +# specified in terms of % of pool size. So a value of 20 means +# that when threshold is hit, pool will be grown by 20% of existing +# pool size. +POOL_AUTOEXTEND_PERCENT=20 + +# Create a Logical Volume of 20G for /var/lib/docker +DOCKER_ROOT_VOLUME_SIZE=20G + +# Create a Thinpool Logical Volume of 50G for Container Storage +DATA_SIZE=50G