From 2cc2bbe604a78475bffb93c80a201029f9cd3c3c Mon Sep 17 00:00:00 2001 From: yidong0635 Date: Tue, 26 Mar 2019 14:40:52 -0400 Subject: [PATCH] scripts/ceph: reduce ceph_raw.img from 10G to 4G When testing on VM using a 10G .img file is problematic due to size - sometimes there is not enough space. Decreasing the size should improve this issue. Change-Id: I7be91aaa56a4e7f60cfdffc67f85ae8b3f42b650 Signed-off-by: yidong0635 Signed-off-by: Karol Latecki Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/449167 Tested-by: SPDK CI Jenkins Reviewed-by: Darek Stojaczyk --- scripts/ceph/start.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/ceph/start.sh b/scripts/ceph/start.sh index fbb2e83d1..2c164d18c 100755 --- a/scripts/ceph/start.sh +++ b/scripts/ceph/start.sh @@ -27,7 +27,7 @@ mkdir ${base_dir} cp ${script_dir}/ceph.conf $ceph_conf if [ ! -e $image ]; then - fallocate -l 10G $image + fallocate -l 4G $image fi mknod ${dev_backend} b 7 200 || true @@ -39,9 +39,9 @@ SGDISK="sgdisk" echo "Partitioning ${dev}" ${PARTED} ${dev} mktable gpt sleep 2 -${PARTED} ${dev} mkpart primary 0% 5GiB -${PARTED} ${dev} mkpart primary 5GiB 100% +${PARTED} ${dev} mkpart primary 0% 2GiB +${PARTED} ${dev} mkpart primary 2GiB 100% partno=0 echo "Setting name on ${dev}"