Repository navigation
CLOUDSTACK-6181: Allow RBD volumes to be resized - #281
Conversation
We don't need an external script to investigate the format of the RBD volume, we only have to ask Libvirt to resize the volume and that will ask librbd to do so. Backport for 4.4, original commit: 173909e
|
cloudstack-pull-requests #198 SUCCESS |
|
You may want to be careful with this. We ran into issues with corruption by asking libvirt to resize the qcow2 images and reverted back to the script. |
|
@mlsorensen did you revert in master? What was the issue and did you resolve it yet? @remibergsma , holding of on this one. |
|
But I understand this exact code is present in 4.5 ? Is this also a "risk" ? |
|
Agree. Let's figure out if this works OK or not. But also make sure it is either merged in all branches or removed from all.
|
|
It was fixed for QCOW2 and LVM, back in January or February (unless something has changed since then). It may be fine for RBD, I just wanted to bring it up as a caution. My impression was that there might be an issue with the java bindings, either a bug or a missing call. If I remember correctly, there are two things, there's libvirt managing volumes, and libvirt managing block devices attached to VMs, and they are not the same thing. Resizing a libvirt volume didn't necessarily notify any VM process using that volume of the change, nor resize the block device attached to the live VM. 'virsh blockresize' does this correctly at both the libvirt volume and VM block, though, so we just went back to the script rather than trying to figure out how to patch the java libvirt bindings. Just make sure the existing behavior is not changed and test that you can stop/start and read/write the root disk fine post a resize. |
|
What do we want to do with this PR? As far as I can tell it is included in 4.5.1 and master. Just checked master and it has not been reverted. Let me know what we want to do. @andrijapanic requested a backport here http://markmail.org/thread/gau2xngqjpq5cza7. |
|
Daan Hoogland on dev@cloudstack.apache.org replies: Op ma 25 mei 2015 om 14:47 schreef remibergsma git@git.apache.org: |
|
Just make sure someone has actually used it to resize a volume with data. On Mon, May 25, 2015 at 5:47 AM, Remi Bergsma notifications@github.com
|
|
@andrijapanic do you still want this? I expect you to test it when we make an RC! |
|
Daan, will test today/tomorow (Im in a little bit specific situation right now)... Thx for backporting this. |
Fixes #281 Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com> Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
We don't need an external script to investigate the format of the RBD volume,
we only have to ask Libvirt to resize the volume and that will ask librbd to
do so.
Backport for 4.4, original commit: 173909e
Requested by Andrija Panić http://markmail.org/thread/gau2xngqjpq5cza7