Ceph RBD Online Resize
laurentbarbe
Extend rbd drive with libvirt and XFS ¶
First, resize the device on the physical host.
Get the current size :
1
|
|
Be careful, you must specify a bigger size, shrink a volume is destructive for the FS.
1
|
|
List device define for myVM :
1
|
|
Resize libvirt blockdevice :
1 2 |
|
Extend xfs on guest :
1
|
|
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 :
1
|
|
Just do :
1 2 |
|
Also, since cuttlefish you can’t shrink a bloc device without specify additional option (–allow-shrink)