Extend rbd drive with libvirt and XFS
First, resize the device on the physical host.
Get the current size :
Be careful, you must specify a bigger size, shrink a volume is destructive for the FS.
List device define for myVM :
Resize libvirt blockdevice :
Extend xfs on guest :
Extend rbd with kernel module
You need at least kernel 3.10 on ceph client to support resizing. For previous version look at http://dachary.org/?p=2179
Get current size :
Just do :
Also, since cuttlefish you can’t shrink a bloc device without specify additional option (–allow-shrink)