Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature-3060: enable disk discard option for qemu-kvm #65

Closed

Conversation

atodorov-storpool
Copy link
Contributor

This is proposed solution for feature in Backlog #3060 (http://dev.opennebula.org/issues/3060)

By default this feature is not touching the xml configuration for backward compatibility.

There is global VM config in vmm/remotes/kvm/kvmrc named DEFAULT_ATTACH_DISCARD that if set will enforce the discard option to all VMs if there is no configuranito per template.

It is possible to enable the discard feature per VM in their template by adding
DISCARD=unmap
to enable and
DISCARD=ignore
to disable the discard

This is proposed solution for feature in Backlog OpenNebula#3060

By default this feature is not touching the xml configuration for backward compatibility.

There is global VM config in vmm/remotes/kvm/kvmrc named 'DEFAULT_ATTACH_DISCARD' that if set
will enforce the discard option to all VMs if there is no configuranito per template.

It is possible to enable the discard feature per VM in their template by adding
DISCARD=unmap
to enable and
DISCARD=ignore
to disable the discard
@rsmontero
Copy link
Member

Now in master thanks

@rsmontero rsmontero closed this Jul 7, 2015
@atodorov-storpool
Copy link
Contributor Author

a patch slipped out bug in the discard= construction - there is an extra single comma (') slipped out that I fixed on the buld host but obviously forgot to update the git source tree.
in the patch for src/vmm/LibVirtDriverKVM.cc:
file << "' discard='";
should be:
file << " discard='";

What is the proper way? add the patch and generate the pull request again?

@rsmontero
Copy link
Member

I'll fix it

@rsmontero
Copy link
Member

Here, can you check it?

commit 997eaa0
Author: Ruben S. Montero rsmontero@opennebula.org
Date: Wed Jul 8 11:24:58 2015 +0200

feature #3060: Fix wrong format of discard. Thanks to Anton Todorov

@atodorov-storpool
Copy link
Contributor Author

Yes, this way the cache option is OK without second quotation (') at the end of the parameter.

rsmontero pushed a commit that referenced this pull request Jul 2, 2020
rsmontero pushed a commit that referenced this pull request Jan 20, 2021
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.

None yet

2 participants