From b4e6813ed6786be717dd70559ce7ae32f0739b79 Mon Sep 17 00:00:00 2001 From: Eric Ernst Date: Mon, 11 Nov 2019 17:44:52 +0000 Subject: [PATCH] devmapper: update to be functional, usable base_image_size is effectively the max size of the thinpool snapshot, and this is static (does not resize). If you are running containers with larger individual layers, this will fail. (elastic is a good test for this). The thinpool should be 10GB, not 1GB (to align with the .img's defined earlier in file). Fixes: #266 Signed-off-by: Eric Ernst --- clr-k8s-examples/containerd_devmapper_setup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clr-k8s-examples/containerd_devmapper_setup.sh b/clr-k8s-examples/containerd_devmapper_setup.sh index 0c5b225..928a3ef 100755 --- a/clr-k8s-examples/containerd_devmapper_setup.sh +++ b/clr-k8s-examples/containerd_devmapper_setup.sh @@ -44,18 +44,18 @@ sudo systemctl enable --now containerd-devmapper # no. of feature arguments # Skip zeroing blocks for new volumes. sudo dmsetup create contd-thin-pool \ - --table "0 2097152 thin-pool /dev/loop21 /dev/loop20 512 32768 1 skip_block_zeroing" + --table "0 20971520 thin-pool /dev/loop21 /dev/loop20 512 32768 1 skip_block_zeroing" sudo mkdir -p /etc/containerd/ if [ -f /etc/containerd/config.toml ] then - sudo sed -i 's|^\(\[plugins\]\).*|\1\n \[plugins.devmapper\]\n pool_name = \"contd-thin-pool\"\n base_image_size = \"512MB\"|' /etc/containerd/config.toml + sudo sed -i 's|^\(\[plugins\]\).*|\1\n \[plugins.devmapper\]\n pool_name = \"contd-thin-pool\"\n base_image_size = \"4096MB\"|' /etc/containerd/config.toml else cat<