Expanding the overcloud-full filesystem 61/15661/1
authorDan Radez <dradez@redhat.com>
Wed, 15 Jun 2016 21:29:10 +0000 (17:29 -0400)
committerDan Radez <dradez@redhat.com>
Wed, 15 Jun 2016 21:29:10 +0000 (17:29 -0400)
Change-Id: Idc5731380a57e227c989c23521e9283859ea1686
Signed-off-by: Dan Radez <dradez@redhat.com>
build/overcloud-full.sh

index 1a8d846..6f401a6 100755 (executable)
@@ -18,6 +18,11 @@ if [ ! -d images/ ]; then mkdir images; fi
 tar -xf cache/overcloud-full.tar -C images/
 mv -f images/overcloud-full.qcow2 images/overcloud-full_build.qcow2
 
+# Add extra space to the overcloud image
+qemu-img resize images/overcloud-full_build.qcow2 +1G
+LIBGUESTFS_BACKEND=direct virt-customize -a images/overcloud-full_build.qcow2 \
+                                         --run-command 'resize2fs /dev/sda'
+
 ##########################################################
 #####  Prep initial overcloud image with common deps #####
 ##########################################################