Skip to content

CLOUDSTACK-6181: Allow RBD volumes to be resized - #281

Merged
asfgit merged 1 commit into
apache:4.4from
remibergsma:4.4_cepth_resize_backport
May 26, 2015
Merged

asfgit merged 1 commit into
apache:4.4from
remibergsma:4.4_cepth_resize_backport

Conversation

@remibergsma

Copy link
Copy Markdown
Contributor

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

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
@asfbot

asfbot commented May 21, 2015

Copy link
Copy Markdown

cloudstack-pull-requests #198 SUCCESS
This pull request looks good

@mlsorensen

Copy link
Copy Markdown
Contributor

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.

@DaanHoogland

Copy link
Copy Markdown
Contributor

@mlsorensen did you revert in master? What was the issue and did you resolve it yet?

@remibergsma , holding of on this one.

@andrijapanic-dont-use-this-one

Copy link
Copy Markdown

But I understand this exact code is present in 4.5 ? Is this also a "risk" ?

@remibergsma

Copy link
Copy Markdown
Contributor Author

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.

On 22 May 2015, at 09:40, Daan Hoogland notifications@github.com wrote:

@mlsorensen did you revert in master? What was the issue and did you resolve it yet?

@remibergsma , holding of on this one.

—
Reply to this email directly or view it on GitHub.

@mlsorensen

Copy link
Copy Markdown
Contributor

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.

@remibergsma

Copy link
Copy Markdown
Contributor Author

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.

@asfbot

asfbot commented May 25, 2015

Copy link
Copy Markdown

Daan Hoogland on dev@cloudstack.apache.org replies:
Let's pull back to 4.4.4 and fix forward when issues (as Marcus suspects)
arise

Op ma 25 mei 2015 om 14:47 schreef remibergsma git@git.apache.org:

@mlsorensen

Copy link
Copy Markdown
Contributor

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
wrote:

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 https://github.com/andrijapanic
requested a backport here http://markmail.org/thread/gau2xngqjpq5cza7.

—
Reply to this email directly or view it on GitHub
#281 (comment).

@DaanHoogland

Copy link
Copy Markdown
Contributor

@andrijapanic do you still want this? I expect you to test it when we make an RC!

@andrijapanic-dont-use-this-one

Copy link
Copy Markdown

Daan, will test today/tomorow (Im in a little bit specific situation right now)... Thx for backporting this.

@asfgit
asfgit merged commit a26bbc2 into apache:4.4 May 26, 2015
yadvr pushed a commit that referenced this pull request Jan 20, 2021
Fixes #281

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants