XEN host operations (advanced)

XFS grow

Extend the size of a sparse image file (by adding some zeroes to it),

dd if=/dev/zero bs=1G count=10 >> suricat.img

Shutdown the guest, mount its fs and grow it, and bring it back,

xl shu suricat

mkdir lala
mount -o loop suricat.img lala
df -h
xfs_growfs /data/guests/suricat/lala
df -h
umount lala
rmdir lala

xl create suricat

Ref. https://superuser.com/questions/693158/can-i-expand-the-size-of-a-file-based-disk-image