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 <dongx.yi@intel.com> Signed-off-by: Karol Latecki <karol.latecki@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/449167 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
This commit is contained in:
parent
2c651f101c
commit
2cc2bbe604
@ -27,7 +27,7 @@ mkdir ${base_dir}
|
|||||||
cp ${script_dir}/ceph.conf $ceph_conf
|
cp ${script_dir}/ceph.conf $ceph_conf
|
||||||
|
|
||||||
if [ ! -e $image ]; then
|
if [ ! -e $image ]; then
|
||||||
fallocate -l 10G $image
|
fallocate -l 4G $image
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mknod ${dev_backend} b 7 200 || true
|
mknod ${dev_backend} b 7 200 || true
|
||||||
@ -39,9 +39,9 @@ SGDISK="sgdisk"
|
|||||||
echo "Partitioning ${dev}"
|
echo "Partitioning ${dev}"
|
||||||
${PARTED} ${dev} mktable gpt
|
${PARTED} ${dev} mktable gpt
|
||||||
sleep 2
|
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
|
partno=0
|
||||||
echo "Setting name on ${dev}"
|
echo "Setting name on ${dev}"
|
||||||
|
Loading…
Reference in New Issue
Block a user