You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Rajesh Battala <ra...@citrix.com> on 2013/02/15 04:52:03 UTC

RE: Change qcow disk cache=none

Hi Jason Villalta, 

Can you raise the ticket for the same. I can work on it if you assign to me.

Thanks
Rajesh Battala

> -----Original Message-----
> From: Edison Su [mailto:Edison.su@citrix.com]
> Sent: Friday, February 15, 2013 4:59 AM
> To: cloudstack-users@incubator.apache.org
> Subject: RE: Change qcow disk cache=none
> 
> The code is at https://git-wip-us.apache.org/repos/asf?p=incubator-
> cloudstack.git;a=blob;f=plugins/hypervisors/kvm/src/com/cloud/hypervisor/kv
> m/resource/LibvirtVMDef.java;h=acfd9cf1fe8eba217f09e20adf3101d1295d51d
> a;hb=HEAD, search "cache".
> you can add a global configuration in cloudstack, or add a configuration in
> agent.properties, to specify cache attribute.
> 
> > -----Original Message-----
> > From: Jason Villalta [mailto:jason@rubixnet.com]
> > Sent: Thursday, February 14, 2013 2:16 PM
> > To: cloudstack-users@incubator.apache.org
> > Subject: Re: Change qcow disk cache=none
> >
> > Ok, I see the folks at openstack ran into a similar issue.
> > https://bugs.launchpad.net/nova/+bug/959637
> >
> > How can I contribute to this?  Can you recommend a part of the code to
> > look at so I can build and test a patch?
> >
> > On Thu, Feb 14, 2013 at 5:13 PM, Edison Su <Ed...@citrix.com> wrote:
> > > need to change cloudstack java code, right now, it's hard coded to
> > "cache=none".
> > >
> > >> -----Original Message-----
> > >> From: Jason Villalta [mailto:jason@rubixnet.com]
> > >> Sent: Thursday, February 14, 2013 1:45 PM
> > >> To: cloudstack-users@incubator.apache.org
> > >> Subject: Change qcow disk cache=none
> > >>
> > >> Is there a way to change this kvm disk cache setting in Cloudstack
> > >> or
> > template?
> > >> If so where is the setting applied?
> > >>
> > >> --
> > >> --
> > >> Jason Villalta
> > >> Co-founder
> > >> 800.799.4407 | www.RubixTechnology.com
> >
> >
> >
> > --
> > --
> > Jason Villalta
> > Co-founder
> > 800.799.4407 | www.RubixTechnology.com

Re: Change qcow disk cache=none

Posted by Jason Villalta <ja...@rubixnet.com>.
Yeah, I agree it may not be a setting you would want to show to
everyone.  I saw there is a "template.properties" file for templates.
Is there a way to add it there so it is more under the hood than right
in the UI?


On Fri, Feb 15, 2013 at 10:49 AM, Marcus Sorensen <sh...@gmail.com> wrote:
> Yes, lots of people will want it.  For the longest time 'none' was fastest,
> and still is except for some of the newer storage like RBD.
>
> With a little more tinkering you could apply a different setting for
> block,file,and network storage as they're already split out right there in
> that file.
>
> I worry a tiny bit though that such a feature won't be exposed to end
> users, and will be a way of boosting performance at the cost of
> reliability/safety. Users might be aware of the performance but not realize
> that their cloud provider is running writeback. That's not a reason to not
> have the feature, of course.
> On Feb 15, 2013 8:26 AM, "Jason Villalta" <ja...@rubixnet.com> wrote:
>
>> Thanks for all your help guys.  I am on 4.0 currently.  I will go the
>> agent route and see what I can do.
>>
>> As for putting in the feature request.  I will do that as well since I
>> am sure the more people use cloudstack the more people will run into
>> this.  I really thing the UI is far superior experience.
>>
>> On a side note, the VLAN stuff needs some better documentation around
>> configuration with KVM.  Is there a place I can add some of my notes
>> once I get past this disk issue and test everything?
>>
>>
>> On Fri, Feb 15, 2013 at 10:19 AM, Wido den Hollander <wi...@widodh.nl>
>> wrote:
>> > On 02/15/2013 03:05 PM, Jason Villalta wrote:
>> >>
>> >> So is there anyway to make this work today or will I have to wait
>> >> until this is properly implemented?  This may mean I need to take
>> >> another look at openstack or opennebula and switch back.
>> >>
>> >
>> > No, not today in a release of CloudStack.
>> >
>> > What you however can do is download the source and build the agent
>> plugin.
>> > Assuming you use 4.0:
>> >
>> > $ cd plugins/hypervisor/kvm
>> > $ nano src/com/cloud/hypervisor/kvm/resource/LibvirtVMDef.java
>> > $ mvn
>> >
>> > Change the "none" setting to what you like.
>> >
>> > Now you will have a .jar file in the "target" directory which you use to
>> > replace the /usr/share/java/cloud-plugin-hypervisor-kvm.jar on your
>> > production systems.
>> >
>> > Wido
>> >
>> >
>> >> On Fri, Feb 15, 2013 at 9:00 AM, Wido den Hollander <wi...@widodh.nl>
>> >> wrote:
>> >>>
>> >>> On 02/15/2013 02:31 PM, Jason Villalta wrote:
>> >>>>
>> >>>>
>> >>>> Is there any way easy way to make this setting dependent on the
>> >>>> storage definition?  For example some primary storage may need this
>> >>>> set to one value such as cache=writeback such as with the case of ZFS,
>> >>>> GlusterFS, CEPH.  Then other storage may want a different setting such
>> >>>> as cache=writethough or none which is the case with a local ext4
>> >>>> storage or NFS.
>> >>>>
>> >>>
>> >>> Exactly.
>> >>>
>> >>> I brought this up about a week ago, see this thread:
>> >>> http://markmail.org/thread/qmrod55gfmhwzot4
>> >>>
>> >>> It shouldn't be a global property, it should be defined per storage
>> pool,
>> >>> or
>> >>> even better, per disk offering.
>> >>>
>> >>> Right now we are talking about the cache setting, but tomorrow it could
>> >>> be a
>> >>> different setting.
>> >>>
>> >>> Wido
>> >>>
>> >>>
>> >>>>
>> >>>>
>> >>>> On Thu, Feb 14, 2013 at 11:08 PM, Rajesh Battala
>> >>>> <ra...@citrix.com> wrote:
>> >>>>>
>> >>>>>
>> >>>>> Hi Jason Villalta,
>> >>>>> In LibvirtVmDef.java, there is DiskDef class ,  get the cache value
>> >>>>> from
>> >>>>> the Global config, while constructing the xml in the override method
>> >>>>> the
>> >>>>> class toString() specify the cache value, currently it is using
>> "none".
>> >>>>>
>> >>>>> NOTE: whenever there is change in GC value, MS should restart for the
>> >>>>> value to take effect.
>> >>>>>
>> >>>>> Thanks
>> >>>>> Rajesh Battala
>> >>>>>
>> >>>>>> -----Original Message-----
>> >>>>>> From: Rajesh Battala [mailto:rajesh.battala@citrix.com]
>> >>>>>> Sent: Friday, February 15, 2013 9:22 AM
>> >>>>>> To: cloudstack-users@incubator.apache.org; cloudstack-
>> >>>>>> dev@incubator.apache.org
>> >>>>>> Subject: RE: Change qcow disk cache=none
>> >>>>>>
>> >>>>>> Hi Jason Villalta,
>> >>>>>>
>> >>>>>> Can you raise the ticket for the same. I can work on it if you
>> assign
>> >>>>>> to
>> >>>>>> me.
>> >>>>>>
>> >>>>>> Thanks
>> >>>>>> Rajesh Battala
>> >>>>>>
>> >>>>>>> -----Original Message-----
>> >>>>>>> From: Edison Su [mailto:Edison.su@citrix.com]
>> >>>>>>> Sent: Friday, February 15, 2013 4:59 AM
>> >>>>>>> To: cloudstack-users@incubator.apache.org
>> >>>>>>> Subject: RE: Change qcow disk cache=none
>> >>>>>>>
>> >>>>>>> The code is at
>> https://git-wip-us.apache.org/repos/asf?p=incubator-
>> >>>>>>>
>> >>>>>>>
>> cloudstack.git;a=blob;f=plugins/hypervisors/kvm/src/com/cloud/hypervis
>> >>>>>>> or/kv
>> >>>>>>>
>> >>>>>>
>> m/resource/LibvirtVMDef.java;h=acfd9cf1fe8eba217f09e20adf3101d1295d51d
>> >>>>>>>
>> >>>>>>>
>> >>>>>>> a;hb=HEAD, search "cache".
>> >>>>>>> you can add a global configuration in cloudstack, or add a
>> >>>>>>> configuration in agent.properties, to specify cache attribute.
>> >>>>>>>
>> >>>>>>>> -----Original Message-----
>> >>>>>>>> From: Jason Villalta [mailto:jason@rubixnet.com]
>> >>>>>>>> Sent: Thursday, February 14, 2013 2:16 PM
>> >>>>>>>> To: cloudstack-users@incubator.apache.org
>> >>>>>>>> Subject: Re: Change qcow disk cache=none
>> >>>>>>>>
>> >>>>>>>> Ok, I see the folks at openstack ran into a similar issue.
>> >>>>>>>> https://bugs.launchpad.net/nova/+bug/959637
>> >>>>>>>>
>> >>>>>>>> How can I contribute to this?  Can you recommend a part of the
>> code
>> >>>>>>>> to look at so I can build and test a patch?
>> >>>>>>>>
>> >>>>>>>> On Thu, Feb 14, 2013 at 5:13 PM, Edison Su <Ed...@citrix.com>
>> >>>>>>>> wrote:
>> >>>>>>>>>
>> >>>>>>>>>
>> >>>>>>>>> need to change cloudstack java code, right now, it's hard coded
>> to
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>>>> "cache=none".
>> >>>>>>>>>
>> >>>>>>>>>
>> >>>>>>>>>
>> >>>>>>>>>> -----Original Message-----
>> >>>>>>>>>> From: Jason Villalta [mailto:jason@rubixnet.com]
>> >>>>>>>>>> Sent: Thursday, February 14, 2013 1:45 PM
>> >>>>>>>>>> To: cloudstack-users@incubator.apache.org
>> >>>>>>>>>> Subject: Change qcow disk cache=none
>> >>>>>>>>>>
>> >>>>>>>>>> Is there a way to change this kvm disk cache setting in
>> >>>>>>>>>> Cloudstack or
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>>>> template?
>> >>>>>>>>>>
>> >>>>>>>>>>
>> >>>>>>>>>> If so where is the setting applied?
>> >>>>>>>>>>
>> >>>>>>>>>> --
>> >>>>>>>>>> --
>> >>>>>>>>>> Jason Villalta
>> >>>>>>>>>> Co-founder
>> >>>>>>>>>> 800.799.4407 | www.RubixTechnology.com
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>>>> --
>> >>>>>>>> --
>> >>>>>>>> Jason Villalta
>> >>>>>>>> Co-founder
>> >>>>>>>> 800.799.4407 | www.RubixTechnology.com
>> >>>>
>> >>>>
>> >>>>
>> >>>>
>> >>>>
>> >>>
>> >>
>> >>
>> >>
>> >
>>
>>
>>
>> --
>> --
>> Jason Villalta
>> Co-founder
>> 800.799.4407 | www.RubixTechnology.com
>>



-- 
-- 
Jason Villalta
Co-founder
800.799.4407 | www.RubixTechnology.com

Re: Change qcow disk cache=none

Posted by Marcus Sorensen <sh...@gmail.com>.
Yes, lots of people will want it.  For the longest time 'none' was fastest,
and still is except for some of the newer storage like RBD.

With a little more tinkering you could apply a different setting for
block,file,and network storage as they're already split out right there in
that file.

I worry a tiny bit though that such a feature won't be exposed to end
users, and will be a way of boosting performance at the cost of
reliability/safety. Users might be aware of the performance but not realize
that their cloud provider is running writeback. That's not a reason to not
have the feature, of course.
On Feb 15, 2013 8:26 AM, "Jason Villalta" <ja...@rubixnet.com> wrote:

> Thanks for all your help guys.  I am on 4.0 currently.  I will go the
> agent route and see what I can do.
>
> As for putting in the feature request.  I will do that as well since I
> am sure the more people use cloudstack the more people will run into
> this.  I really thing the UI is far superior experience.
>
> On a side note, the VLAN stuff needs some better documentation around
> configuration with KVM.  Is there a place I can add some of my notes
> once I get past this disk issue and test everything?
>
>
> On Fri, Feb 15, 2013 at 10:19 AM, Wido den Hollander <wi...@widodh.nl>
> wrote:
> > On 02/15/2013 03:05 PM, Jason Villalta wrote:
> >>
> >> So is there anyway to make this work today or will I have to wait
> >> until this is properly implemented?  This may mean I need to take
> >> another look at openstack or opennebula and switch back.
> >>
> >
> > No, not today in a release of CloudStack.
> >
> > What you however can do is download the source and build the agent
> plugin.
> > Assuming you use 4.0:
> >
> > $ cd plugins/hypervisor/kvm
> > $ nano src/com/cloud/hypervisor/kvm/resource/LibvirtVMDef.java
> > $ mvn
> >
> > Change the "none" setting to what you like.
> >
> > Now you will have a .jar file in the "target" directory which you use to
> > replace the /usr/share/java/cloud-plugin-hypervisor-kvm.jar on your
> > production systems.
> >
> > Wido
> >
> >
> >> On Fri, Feb 15, 2013 at 9:00 AM, Wido den Hollander <wi...@widodh.nl>
> >> wrote:
> >>>
> >>> On 02/15/2013 02:31 PM, Jason Villalta wrote:
> >>>>
> >>>>
> >>>> Is there any way easy way to make this setting dependent on the
> >>>> storage definition?  For example some primary storage may need this
> >>>> set to one value such as cache=writeback such as with the case of ZFS,
> >>>> GlusterFS, CEPH.  Then other storage may want a different setting such
> >>>> as cache=writethough or none which is the case with a local ext4
> >>>> storage or NFS.
> >>>>
> >>>
> >>> Exactly.
> >>>
> >>> I brought this up about a week ago, see this thread:
> >>> http://markmail.org/thread/qmrod55gfmhwzot4
> >>>
> >>> It shouldn't be a global property, it should be defined per storage
> pool,
> >>> or
> >>> even better, per disk offering.
> >>>
> >>> Right now we are talking about the cache setting, but tomorrow it could
> >>> be a
> >>> different setting.
> >>>
> >>> Wido
> >>>
> >>>
> >>>>
> >>>>
> >>>> On Thu, Feb 14, 2013 at 11:08 PM, Rajesh Battala
> >>>> <ra...@citrix.com> wrote:
> >>>>>
> >>>>>
> >>>>> Hi Jason Villalta,
> >>>>> In LibvirtVmDef.java, there is DiskDef class ,  get the cache value
> >>>>> from
> >>>>> the Global config, while constructing the xml in the override method
> >>>>> the
> >>>>> class toString() specify the cache value, currently it is using
> "none".
> >>>>>
> >>>>> NOTE: whenever there is change in GC value, MS should restart for the
> >>>>> value to take effect.
> >>>>>
> >>>>> Thanks
> >>>>> Rajesh Battala
> >>>>>
> >>>>>> -----Original Message-----
> >>>>>> From: Rajesh Battala [mailto:rajesh.battala@citrix.com]
> >>>>>> Sent: Friday, February 15, 2013 9:22 AM
> >>>>>> To: cloudstack-users@incubator.apache.org; cloudstack-
> >>>>>> dev@incubator.apache.org
> >>>>>> Subject: RE: Change qcow disk cache=none
> >>>>>>
> >>>>>> Hi Jason Villalta,
> >>>>>>
> >>>>>> Can you raise the ticket for the same. I can work on it if you
> assign
> >>>>>> to
> >>>>>> me.
> >>>>>>
> >>>>>> Thanks
> >>>>>> Rajesh Battala
> >>>>>>
> >>>>>>> -----Original Message-----
> >>>>>>> From: Edison Su [mailto:Edison.su@citrix.com]
> >>>>>>> Sent: Friday, February 15, 2013 4:59 AM
> >>>>>>> To: cloudstack-users@incubator.apache.org
> >>>>>>> Subject: RE: Change qcow disk cache=none
> >>>>>>>
> >>>>>>> The code is at
> https://git-wip-us.apache.org/repos/asf?p=incubator-
> >>>>>>>
> >>>>>>>
> cloudstack.git;a=blob;f=plugins/hypervisors/kvm/src/com/cloud/hypervis
> >>>>>>> or/kv
> >>>>>>>
> >>>>>>
> m/resource/LibvirtVMDef.java;h=acfd9cf1fe8eba217f09e20adf3101d1295d51d
> >>>>>>>
> >>>>>>>
> >>>>>>> a;hb=HEAD, search "cache".
> >>>>>>> you can add a global configuration in cloudstack, or add a
> >>>>>>> configuration in agent.properties, to specify cache attribute.
> >>>>>>>
> >>>>>>>> -----Original Message-----
> >>>>>>>> From: Jason Villalta [mailto:jason@rubixnet.com]
> >>>>>>>> Sent: Thursday, February 14, 2013 2:16 PM
> >>>>>>>> To: cloudstack-users@incubator.apache.org
> >>>>>>>> Subject: Re: Change qcow disk cache=none
> >>>>>>>>
> >>>>>>>> Ok, I see the folks at openstack ran into a similar issue.
> >>>>>>>> https://bugs.launchpad.net/nova/+bug/959637
> >>>>>>>>
> >>>>>>>> How can I contribute to this?  Can you recommend a part of the
> code
> >>>>>>>> to look at so I can build and test a patch?
> >>>>>>>>
> >>>>>>>> On Thu, Feb 14, 2013 at 5:13 PM, Edison Su <Ed...@citrix.com>
> >>>>>>>> wrote:
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>> need to change cloudstack java code, right now, it's hard coded
> to
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> "cache=none".
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>> -----Original Message-----
> >>>>>>>>>> From: Jason Villalta [mailto:jason@rubixnet.com]
> >>>>>>>>>> Sent: Thursday, February 14, 2013 1:45 PM
> >>>>>>>>>> To: cloudstack-users@incubator.apache.org
> >>>>>>>>>> Subject: Change qcow disk cache=none
> >>>>>>>>>>
> >>>>>>>>>> Is there a way to change this kvm disk cache setting in
> >>>>>>>>>> Cloudstack or
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> template?
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>> If so where is the setting applied?
> >>>>>>>>>>
> >>>>>>>>>> --
> >>>>>>>>>> --
> >>>>>>>>>> Jason Villalta
> >>>>>>>>>> Co-founder
> >>>>>>>>>> 800.799.4407 | www.RubixTechnology.com
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> --
> >>>>>>>> --
> >>>>>>>> Jason Villalta
> >>>>>>>> Co-founder
> >>>>>>>> 800.799.4407 | www.RubixTechnology.com
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>
> >>
> >>
> >>
> >
>
>
>
> --
> --
> Jason Villalta
> Co-founder
> 800.799.4407 | www.RubixTechnology.com
>

Re: Change qcow disk cache=none

Posted by Jason Villalta <ja...@rubixnet.com>.
Nevermind, Found it.

On Fri, Feb 15, 2013 at 10:34 AM, Jason Villalta <ja...@rubixnet.com> wrote:
> One last question, Where do track features requests?  I see the bug
> tracker has moved so I am not sure where features should be entered?
>
> On Fri, Feb 15, 2013 at 10:26 AM, Jason Villalta <ja...@rubixnet.com> wrote:
>> Thanks for all your help guys.  I am on 4.0 currently.  I will go the
>> agent route and see what I can do.
>>
>> As for putting in the feature request.  I will do that as well since I
>> am sure the more people use cloudstack the more people will run into
>> this.  I really thing the UI is far superior experience.
>>
>> On a side note, the VLAN stuff needs some better documentation around
>> configuration with KVM.  Is there a place I can add some of my notes
>> once I get past this disk issue and test everything?
>>
>>
>> On Fri, Feb 15, 2013 at 10:19 AM, Wido den Hollander <wi...@widodh.nl> wrote:
>>> On 02/15/2013 03:05 PM, Jason Villalta wrote:
>>>>
>>>> So is there anyway to make this work today or will I have to wait
>>>> until this is properly implemented?  This may mean I need to take
>>>> another look at openstack or opennebula and switch back.
>>>>
>>>
>>> No, not today in a release of CloudStack.
>>>
>>> What you however can do is download the source and build the agent plugin.
>>> Assuming you use 4.0:
>>>
>>> $ cd plugins/hypervisor/kvm
>>> $ nano src/com/cloud/hypervisor/kvm/resource/LibvirtVMDef.java
>>> $ mvn
>>>
>>> Change the "none" setting to what you like.
>>>
>>> Now you will have a .jar file in the "target" directory which you use to
>>> replace the /usr/share/java/cloud-plugin-hypervisor-kvm.jar on your
>>> production systems.
>>>
>>> Wido
>>>
>>>
>>>> On Fri, Feb 15, 2013 at 9:00 AM, Wido den Hollander <wi...@widodh.nl>
>>>> wrote:
>>>>>
>>>>> On 02/15/2013 02:31 PM, Jason Villalta wrote:
>>>>>>
>>>>>>
>>>>>> Is there any way easy way to make this setting dependent on the
>>>>>> storage definition?  For example some primary storage may need this
>>>>>> set to one value such as cache=writeback such as with the case of ZFS,
>>>>>> GlusterFS, CEPH.  Then other storage may want a different setting such
>>>>>> as cache=writethough or none which is the case with a local ext4
>>>>>> storage or NFS.
>>>>>>
>>>>>
>>>>> Exactly.
>>>>>
>>>>> I brought this up about a week ago, see this thread:
>>>>> http://markmail.org/thread/qmrod55gfmhwzot4
>>>>>
>>>>> It shouldn't be a global property, it should be defined per storage pool,
>>>>> or
>>>>> even better, per disk offering.
>>>>>
>>>>> Right now we are talking about the cache setting, but tomorrow it could
>>>>> be a
>>>>> different setting.
>>>>>
>>>>> Wido
>>>>>
>>>>>
>>>>>>
>>>>>>
>>>>>> On Thu, Feb 14, 2013 at 11:08 PM, Rajesh Battala
>>>>>> <ra...@citrix.com> wrote:
>>>>>>>
>>>>>>>
>>>>>>> Hi Jason Villalta,
>>>>>>> In LibvirtVmDef.java, there is DiskDef class ,  get the cache value
>>>>>>> from
>>>>>>> the Global config, while constructing the xml in the override method
>>>>>>> the
>>>>>>> class toString() specify the cache value, currently it is using "none".
>>>>>>>
>>>>>>> NOTE: whenever there is change in GC value, MS should restart for the
>>>>>>> value to take effect.
>>>>>>>
>>>>>>> Thanks
>>>>>>> Rajesh Battala
>>>>>>>
>>>>>>>> -----Original Message-----
>>>>>>>> From: Rajesh Battala [mailto:rajesh.battala@citrix.com]
>>>>>>>> Sent: Friday, February 15, 2013 9:22 AM
>>>>>>>> To: cloudstack-users@incubator.apache.org; cloudstack-
>>>>>>>> dev@incubator.apache.org
>>>>>>>> Subject: RE: Change qcow disk cache=none
>>>>>>>>
>>>>>>>> Hi Jason Villalta,
>>>>>>>>
>>>>>>>> Can you raise the ticket for the same. I can work on it if you assign
>>>>>>>> to
>>>>>>>> me.
>>>>>>>>
>>>>>>>> Thanks
>>>>>>>> Rajesh Battala
>>>>>>>>
>>>>>>>>> -----Original Message-----
>>>>>>>>> From: Edison Su [mailto:Edison.su@citrix.com]
>>>>>>>>> Sent: Friday, February 15, 2013 4:59 AM
>>>>>>>>> To: cloudstack-users@incubator.apache.org
>>>>>>>>> Subject: RE: Change qcow disk cache=none
>>>>>>>>>
>>>>>>>>> The code is at https://git-wip-us.apache.org/repos/asf?p=incubator-
>>>>>>>>>
>>>>>>>>> cloudstack.git;a=blob;f=plugins/hypervisors/kvm/src/com/cloud/hypervis
>>>>>>>>> or/kv
>>>>>>>>>
>>>>>>>> m/resource/LibvirtVMDef.java;h=acfd9cf1fe8eba217f09e20adf3101d1295d51d
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> a;hb=HEAD, search "cache".
>>>>>>>>> you can add a global configuration in cloudstack, or add a
>>>>>>>>> configuration in agent.properties, to specify cache attribute.
>>>>>>>>>
>>>>>>>>>> -----Original Message-----
>>>>>>>>>> From: Jason Villalta [mailto:jason@rubixnet.com]
>>>>>>>>>> Sent: Thursday, February 14, 2013 2:16 PM
>>>>>>>>>> To: cloudstack-users@incubator.apache.org
>>>>>>>>>> Subject: Re: Change qcow disk cache=none
>>>>>>>>>>
>>>>>>>>>> Ok, I see the folks at openstack ran into a similar issue.
>>>>>>>>>> https://bugs.launchpad.net/nova/+bug/959637
>>>>>>>>>>
>>>>>>>>>> How can I contribute to this?  Can you recommend a part of the code
>>>>>>>>>> to look at so I can build and test a patch?
>>>>>>>>>>
>>>>>>>>>> On Thu, Feb 14, 2013 at 5:13 PM, Edison Su <Ed...@citrix.com>
>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> need to change cloudstack java code, right now, it's hard coded to
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> "cache=none".
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>> -----Original Message-----
>>>>>>>>>>>> From: Jason Villalta [mailto:jason@rubixnet.com]
>>>>>>>>>>>> Sent: Thursday, February 14, 2013 1:45 PM
>>>>>>>>>>>> To: cloudstack-users@incubator.apache.org
>>>>>>>>>>>> Subject: Change qcow disk cache=none
>>>>>>>>>>>>
>>>>>>>>>>>> Is there a way to change this kvm disk cache setting in
>>>>>>>>>>>> Cloudstack or
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> template?
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> If so where is the setting applied?
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> --
>>>>>>>>>>>> Jason Villalta
>>>>>>>>>>>> Co-founder
>>>>>>>>>>>> 800.799.4407 | www.RubixTechnology.com
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> --
>>>>>>>>>> Jason Villalta
>>>>>>>>>> Co-founder
>>>>>>>>>> 800.799.4407 | www.RubixTechnology.com
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>
>>
>>
>> --
>> --
>> Jason Villalta
>> Co-founder
>> 800.799.4407 | www.RubixTechnology.com
>
>
>
> --
> --
> Jason Villalta
> Co-founder
> 800.799.4407 | www.RubixTechnology.com



-- 
-- 
Jason Villalta
Co-founder
800.799.4407 | www.RubixTechnology.com

Re: Change qcow disk cache=none

Posted by Jason Villalta <ja...@rubixnet.com>.
One last question, Where do track features requests?  I see the bug
tracker has moved so I am not sure where features should be entered?

On Fri, Feb 15, 2013 at 10:26 AM, Jason Villalta <ja...@rubixnet.com> wrote:
> Thanks for all your help guys.  I am on 4.0 currently.  I will go the
> agent route and see what I can do.
>
> As for putting in the feature request.  I will do that as well since I
> am sure the more people use cloudstack the more people will run into
> this.  I really thing the UI is far superior experience.
>
> On a side note, the VLAN stuff needs some better documentation around
> configuration with KVM.  Is there a place I can add some of my notes
> once I get past this disk issue and test everything?
>
>
> On Fri, Feb 15, 2013 at 10:19 AM, Wido den Hollander <wi...@widodh.nl> wrote:
>> On 02/15/2013 03:05 PM, Jason Villalta wrote:
>>>
>>> So is there anyway to make this work today or will I have to wait
>>> until this is properly implemented?  This may mean I need to take
>>> another look at openstack or opennebula and switch back.
>>>
>>
>> No, not today in a release of CloudStack.
>>
>> What you however can do is download the source and build the agent plugin.
>> Assuming you use 4.0:
>>
>> $ cd plugins/hypervisor/kvm
>> $ nano src/com/cloud/hypervisor/kvm/resource/LibvirtVMDef.java
>> $ mvn
>>
>> Change the "none" setting to what you like.
>>
>> Now you will have a .jar file in the "target" directory which you use to
>> replace the /usr/share/java/cloud-plugin-hypervisor-kvm.jar on your
>> production systems.
>>
>> Wido
>>
>>
>>> On Fri, Feb 15, 2013 at 9:00 AM, Wido den Hollander <wi...@widodh.nl>
>>> wrote:
>>>>
>>>> On 02/15/2013 02:31 PM, Jason Villalta wrote:
>>>>>
>>>>>
>>>>> Is there any way easy way to make this setting dependent on the
>>>>> storage definition?  For example some primary storage may need this
>>>>> set to one value such as cache=writeback such as with the case of ZFS,
>>>>> GlusterFS, CEPH.  Then other storage may want a different setting such
>>>>> as cache=writethough or none which is the case with a local ext4
>>>>> storage or NFS.
>>>>>
>>>>
>>>> Exactly.
>>>>
>>>> I brought this up about a week ago, see this thread:
>>>> http://markmail.org/thread/qmrod55gfmhwzot4
>>>>
>>>> It shouldn't be a global property, it should be defined per storage pool,
>>>> or
>>>> even better, per disk offering.
>>>>
>>>> Right now we are talking about the cache setting, but tomorrow it could
>>>> be a
>>>> different setting.
>>>>
>>>> Wido
>>>>
>>>>
>>>>>
>>>>>
>>>>> On Thu, Feb 14, 2013 at 11:08 PM, Rajesh Battala
>>>>> <ra...@citrix.com> wrote:
>>>>>>
>>>>>>
>>>>>> Hi Jason Villalta,
>>>>>> In LibvirtVmDef.java, there is DiskDef class ,  get the cache value
>>>>>> from
>>>>>> the Global config, while constructing the xml in the override method
>>>>>> the
>>>>>> class toString() specify the cache value, currently it is using "none".
>>>>>>
>>>>>> NOTE: whenever there is change in GC value, MS should restart for the
>>>>>> value to take effect.
>>>>>>
>>>>>> Thanks
>>>>>> Rajesh Battala
>>>>>>
>>>>>>> -----Original Message-----
>>>>>>> From: Rajesh Battala [mailto:rajesh.battala@citrix.com]
>>>>>>> Sent: Friday, February 15, 2013 9:22 AM
>>>>>>> To: cloudstack-users@incubator.apache.org; cloudstack-
>>>>>>> dev@incubator.apache.org
>>>>>>> Subject: RE: Change qcow disk cache=none
>>>>>>>
>>>>>>> Hi Jason Villalta,
>>>>>>>
>>>>>>> Can you raise the ticket for the same. I can work on it if you assign
>>>>>>> to
>>>>>>> me.
>>>>>>>
>>>>>>> Thanks
>>>>>>> Rajesh Battala
>>>>>>>
>>>>>>>> -----Original Message-----
>>>>>>>> From: Edison Su [mailto:Edison.su@citrix.com]
>>>>>>>> Sent: Friday, February 15, 2013 4:59 AM
>>>>>>>> To: cloudstack-users@incubator.apache.org
>>>>>>>> Subject: RE: Change qcow disk cache=none
>>>>>>>>
>>>>>>>> The code is at https://git-wip-us.apache.org/repos/asf?p=incubator-
>>>>>>>>
>>>>>>>> cloudstack.git;a=blob;f=plugins/hypervisors/kvm/src/com/cloud/hypervis
>>>>>>>> or/kv
>>>>>>>>
>>>>>>> m/resource/LibvirtVMDef.java;h=acfd9cf1fe8eba217f09e20adf3101d1295d51d
>>>>>>>>
>>>>>>>>
>>>>>>>> a;hb=HEAD, search "cache".
>>>>>>>> you can add a global configuration in cloudstack, or add a
>>>>>>>> configuration in agent.properties, to specify cache attribute.
>>>>>>>>
>>>>>>>>> -----Original Message-----
>>>>>>>>> From: Jason Villalta [mailto:jason@rubixnet.com]
>>>>>>>>> Sent: Thursday, February 14, 2013 2:16 PM
>>>>>>>>> To: cloudstack-users@incubator.apache.org
>>>>>>>>> Subject: Re: Change qcow disk cache=none
>>>>>>>>>
>>>>>>>>> Ok, I see the folks at openstack ran into a similar issue.
>>>>>>>>> https://bugs.launchpad.net/nova/+bug/959637
>>>>>>>>>
>>>>>>>>> How can I contribute to this?  Can you recommend a part of the code
>>>>>>>>> to look at so I can build and test a patch?
>>>>>>>>>
>>>>>>>>> On Thu, Feb 14, 2013 at 5:13 PM, Edison Su <Ed...@citrix.com>
>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> need to change cloudstack java code, right now, it's hard coded to
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> "cache=none".
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>> -----Original Message-----
>>>>>>>>>>> From: Jason Villalta [mailto:jason@rubixnet.com]
>>>>>>>>>>> Sent: Thursday, February 14, 2013 1:45 PM
>>>>>>>>>>> To: cloudstack-users@incubator.apache.org
>>>>>>>>>>> Subject: Change qcow disk cache=none
>>>>>>>>>>>
>>>>>>>>>>> Is there a way to change this kvm disk cache setting in
>>>>>>>>>>> Cloudstack or
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> template?
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> If so where is the setting applied?
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> --
>>>>>>>>>>> Jason Villalta
>>>>>>>>>>> Co-founder
>>>>>>>>>>> 800.799.4407 | www.RubixTechnology.com
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> --
>>>>>>>>> Jason Villalta
>>>>>>>>> Co-founder
>>>>>>>>> 800.799.4407 | www.RubixTechnology.com
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>>
>>>
>>
>
>
>
> --
> --
> Jason Villalta
> Co-founder
> 800.799.4407 | www.RubixTechnology.com



-- 
-- 
Jason Villalta
Co-founder
800.799.4407 | www.RubixTechnology.com

Re: Change qcow disk cache=none

Posted by Jason Villalta <ja...@rubixnet.com>.
Thanks for all your help guys.  I am on 4.0 currently.  I will go the
agent route and see what I can do.

As for putting in the feature request.  I will do that as well since I
am sure the more people use cloudstack the more people will run into
this.  I really thing the UI is far superior experience.

On a side note, the VLAN stuff needs some better documentation around
configuration with KVM.  Is there a place I can add some of my notes
once I get past this disk issue and test everything?


On Fri, Feb 15, 2013 at 10:19 AM, Wido den Hollander <wi...@widodh.nl> wrote:
> On 02/15/2013 03:05 PM, Jason Villalta wrote:
>>
>> So is there anyway to make this work today or will I have to wait
>> until this is properly implemented?  This may mean I need to take
>> another look at openstack or opennebula and switch back.
>>
>
> No, not today in a release of CloudStack.
>
> What you however can do is download the source and build the agent plugin.
> Assuming you use 4.0:
>
> $ cd plugins/hypervisor/kvm
> $ nano src/com/cloud/hypervisor/kvm/resource/LibvirtVMDef.java
> $ mvn
>
> Change the "none" setting to what you like.
>
> Now you will have a .jar file in the "target" directory which you use to
> replace the /usr/share/java/cloud-plugin-hypervisor-kvm.jar on your
> production systems.
>
> Wido
>
>
>> On Fri, Feb 15, 2013 at 9:00 AM, Wido den Hollander <wi...@widodh.nl>
>> wrote:
>>>
>>> On 02/15/2013 02:31 PM, Jason Villalta wrote:
>>>>
>>>>
>>>> Is there any way easy way to make this setting dependent on the
>>>> storage definition?  For example some primary storage may need this
>>>> set to one value such as cache=writeback such as with the case of ZFS,
>>>> GlusterFS, CEPH.  Then other storage may want a different setting such
>>>> as cache=writethough or none which is the case with a local ext4
>>>> storage or NFS.
>>>>
>>>
>>> Exactly.
>>>
>>> I brought this up about a week ago, see this thread:
>>> http://markmail.org/thread/qmrod55gfmhwzot4
>>>
>>> It shouldn't be a global property, it should be defined per storage pool,
>>> or
>>> even better, per disk offering.
>>>
>>> Right now we are talking about the cache setting, but tomorrow it could
>>> be a
>>> different setting.
>>>
>>> Wido
>>>
>>>
>>>>
>>>>
>>>> On Thu, Feb 14, 2013 at 11:08 PM, Rajesh Battala
>>>> <ra...@citrix.com> wrote:
>>>>>
>>>>>
>>>>> Hi Jason Villalta,
>>>>> In LibvirtVmDef.java, there is DiskDef class ,  get the cache value
>>>>> from
>>>>> the Global config, while constructing the xml in the override method
>>>>> the
>>>>> class toString() specify the cache value, currently it is using "none".
>>>>>
>>>>> NOTE: whenever there is change in GC value, MS should restart for the
>>>>> value to take effect.
>>>>>
>>>>> Thanks
>>>>> Rajesh Battala
>>>>>
>>>>>> -----Original Message-----
>>>>>> From: Rajesh Battala [mailto:rajesh.battala@citrix.com]
>>>>>> Sent: Friday, February 15, 2013 9:22 AM
>>>>>> To: cloudstack-users@incubator.apache.org; cloudstack-
>>>>>> dev@incubator.apache.org
>>>>>> Subject: RE: Change qcow disk cache=none
>>>>>>
>>>>>> Hi Jason Villalta,
>>>>>>
>>>>>> Can you raise the ticket for the same. I can work on it if you assign
>>>>>> to
>>>>>> me.
>>>>>>
>>>>>> Thanks
>>>>>> Rajesh Battala
>>>>>>
>>>>>>> -----Original Message-----
>>>>>>> From: Edison Su [mailto:Edison.su@citrix.com]
>>>>>>> Sent: Friday, February 15, 2013 4:59 AM
>>>>>>> To: cloudstack-users@incubator.apache.org
>>>>>>> Subject: RE: Change qcow disk cache=none
>>>>>>>
>>>>>>> The code is at https://git-wip-us.apache.org/repos/asf?p=incubator-
>>>>>>>
>>>>>>> cloudstack.git;a=blob;f=plugins/hypervisors/kvm/src/com/cloud/hypervis
>>>>>>> or/kv
>>>>>>>
>>>>>> m/resource/LibvirtVMDef.java;h=acfd9cf1fe8eba217f09e20adf3101d1295d51d
>>>>>>>
>>>>>>>
>>>>>>> a;hb=HEAD, search "cache".
>>>>>>> you can add a global configuration in cloudstack, or add a
>>>>>>> configuration in agent.properties, to specify cache attribute.
>>>>>>>
>>>>>>>> -----Original Message-----
>>>>>>>> From: Jason Villalta [mailto:jason@rubixnet.com]
>>>>>>>> Sent: Thursday, February 14, 2013 2:16 PM
>>>>>>>> To: cloudstack-users@incubator.apache.org
>>>>>>>> Subject: Re: Change qcow disk cache=none
>>>>>>>>
>>>>>>>> Ok, I see the folks at openstack ran into a similar issue.
>>>>>>>> https://bugs.launchpad.net/nova/+bug/959637
>>>>>>>>
>>>>>>>> How can I contribute to this?  Can you recommend a part of the code
>>>>>>>> to look at so I can build and test a patch?
>>>>>>>>
>>>>>>>> On Thu, Feb 14, 2013 at 5:13 PM, Edison Su <Ed...@citrix.com>
>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> need to change cloudstack java code, right now, it's hard coded to
>>>>>>>>
>>>>>>>>
>>>>>>>> "cache=none".
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> -----Original Message-----
>>>>>>>>>> From: Jason Villalta [mailto:jason@rubixnet.com]
>>>>>>>>>> Sent: Thursday, February 14, 2013 1:45 PM
>>>>>>>>>> To: cloudstack-users@incubator.apache.org
>>>>>>>>>> Subject: Change qcow disk cache=none
>>>>>>>>>>
>>>>>>>>>> Is there a way to change this kvm disk cache setting in
>>>>>>>>>> Cloudstack or
>>>>>>>>
>>>>>>>>
>>>>>>>> template?
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> If so where is the setting applied?
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> --
>>>>>>>>>> Jason Villalta
>>>>>>>>>> Co-founder
>>>>>>>>>> 800.799.4407 | www.RubixTechnology.com
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> --
>>>>>>>> Jason Villalta
>>>>>>>> Co-founder
>>>>>>>> 800.799.4407 | www.RubixTechnology.com
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>
>>
>>
>



-- 
-- 
Jason Villalta
Co-founder
800.799.4407 | www.RubixTechnology.com

Re: Change qcow disk cache=none

Posted by Wido den Hollander <wi...@widodh.nl>.
On 02/15/2013 03:05 PM, Jason Villalta wrote:
> So is there anyway to make this work today or will I have to wait
> until this is properly implemented?  This may mean I need to take
> another look at openstack or opennebula and switch back.
>

No, not today in a release of CloudStack.

What you however can do is download the source and build the agent 
plugin. Assuming you use 4.0:

$ cd plugins/hypervisor/kvm
$ nano src/com/cloud/hypervisor/kvm/resource/LibvirtVMDef.java
$ mvn

Change the "none" setting to what you like.

Now you will have a .jar file in the "target" directory which you use to 
replace the /usr/share/java/cloud-plugin-hypervisor-kvm.jar on your 
production systems.

Wido

> On Fri, Feb 15, 2013 at 9:00 AM, Wido den Hollander <wi...@widodh.nl> wrote:
>> On 02/15/2013 02:31 PM, Jason Villalta wrote:
>>>
>>> Is there any way easy way to make this setting dependent on the
>>> storage definition?  For example some primary storage may need this
>>> set to one value such as cache=writeback such as with the case of ZFS,
>>> GlusterFS, CEPH.  Then other storage may want a different setting such
>>> as cache=writethough or none which is the case with a local ext4
>>> storage or NFS.
>>>
>>
>> Exactly.
>>
>> I brought this up about a week ago, see this thread:
>> http://markmail.org/thread/qmrod55gfmhwzot4
>>
>> It shouldn't be a global property, it should be defined per storage pool, or
>> even better, per disk offering.
>>
>> Right now we are talking about the cache setting, but tomorrow it could be a
>> different setting.
>>
>> Wido
>>
>>
>>>
>>>
>>> On Thu, Feb 14, 2013 at 11:08 PM, Rajesh Battala
>>> <ra...@citrix.com> wrote:
>>>>
>>>> Hi Jason Villalta,
>>>> In LibvirtVmDef.java, there is DiskDef class ,  get the cache value from
>>>> the Global config, while constructing the xml in the override method the
>>>> class toString() specify the cache value, currently it is using "none".
>>>>
>>>> NOTE: whenever there is change in GC value, MS should restart for the
>>>> value to take effect.
>>>>
>>>> Thanks
>>>> Rajesh Battala
>>>>
>>>>> -----Original Message-----
>>>>> From: Rajesh Battala [mailto:rajesh.battala@citrix.com]
>>>>> Sent: Friday, February 15, 2013 9:22 AM
>>>>> To: cloudstack-users@incubator.apache.org; cloudstack-
>>>>> dev@incubator.apache.org
>>>>> Subject: RE: Change qcow disk cache=none
>>>>>
>>>>> Hi Jason Villalta,
>>>>>
>>>>> Can you raise the ticket for the same. I can work on it if you assign to
>>>>> me.
>>>>>
>>>>> Thanks
>>>>> Rajesh Battala
>>>>>
>>>>>> -----Original Message-----
>>>>>> From: Edison Su [mailto:Edison.su@citrix.com]
>>>>>> Sent: Friday, February 15, 2013 4:59 AM
>>>>>> To: cloudstack-users@incubator.apache.org
>>>>>> Subject: RE: Change qcow disk cache=none
>>>>>>
>>>>>> The code is at https://git-wip-us.apache.org/repos/asf?p=incubator-
>>>>>> cloudstack.git;a=blob;f=plugins/hypervisors/kvm/src/com/cloud/hypervis
>>>>>> or/kv
>>>>>>
>>>>> m/resource/LibvirtVMDef.java;h=acfd9cf1fe8eba217f09e20adf3101d1295d51d
>>>>>>
>>>>>> a;hb=HEAD, search "cache".
>>>>>> you can add a global configuration in cloudstack, or add a
>>>>>> configuration in agent.properties, to specify cache attribute.
>>>>>>
>>>>>>> -----Original Message-----
>>>>>>> From: Jason Villalta [mailto:jason@rubixnet.com]
>>>>>>> Sent: Thursday, February 14, 2013 2:16 PM
>>>>>>> To: cloudstack-users@incubator.apache.org
>>>>>>> Subject: Re: Change qcow disk cache=none
>>>>>>>
>>>>>>> Ok, I see the folks at openstack ran into a similar issue.
>>>>>>> https://bugs.launchpad.net/nova/+bug/959637
>>>>>>>
>>>>>>> How can I contribute to this?  Can you recommend a part of the code
>>>>>>> to look at so I can build and test a patch?
>>>>>>>
>>>>>>> On Thu, Feb 14, 2013 at 5:13 PM, Edison Su <Ed...@citrix.com>
>>>>>>> wrote:
>>>>>>>>
>>>>>>>> need to change cloudstack java code, right now, it's hard coded to
>>>>>>>
>>>>>>> "cache=none".
>>>>>>>>
>>>>>>>>
>>>>>>>>> -----Original Message-----
>>>>>>>>> From: Jason Villalta [mailto:jason@rubixnet.com]
>>>>>>>>> Sent: Thursday, February 14, 2013 1:45 PM
>>>>>>>>> To: cloudstack-users@incubator.apache.org
>>>>>>>>> Subject: Change qcow disk cache=none
>>>>>>>>>
>>>>>>>>> Is there a way to change this kvm disk cache setting in
>>>>>>>>> Cloudstack or
>>>>>>>
>>>>>>> template?
>>>>>>>>>
>>>>>>>>> If so where is the setting applied?
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> --
>>>>>>>>> Jason Villalta
>>>>>>>>> Co-founder
>>>>>>>>> 800.799.4407 | www.RubixTechnology.com
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> --
>>>>>>> Jason Villalta
>>>>>>> Co-founder
>>>>>>> 800.799.4407 | www.RubixTechnology.com
>>>
>>>
>>>
>>>
>>
>
>
>


Re: Change qcow disk cache=none

Posted by Jason Villalta <ja...@rubixnet.com>.
Ideally it would be on the definition of the primary storage but only
applicable to KVM.  If other hypervisors have different needs for the same
storage they should also have a way to defining those settings.  I am not
sure what this would really look like yet as I am still just working to get
the system up and running.


On Sun, Feb 17, 2013 at 11:49 PM, Rajesh Battala
<ra...@citrix.com>wrote:

> Sounds great.
> How are you planning to implement the cache config value.  From GC
> settings or as part of offering or a dynamic changeable param to the VM.
>
> Thanks
> Rajesh Battala
>
> From: Jason Villalta [mailto:jason@rubixnet.com]
> Sent: Monday, February 18, 2013 9:51 AM
> To: cloudstack-dev@incubator.apache.org
> Subject: Re: Change qcow disk cache=none
>
> Yes I have gotten farther.  I have the hard coded parameter changed and
> the system Proxy VM is running now but I am running into issues with the
> secondary storage vm.  Troubleshooting that now.
>
> As for the cache setting, I think that still need to be setup as a
> configurable option without a rebuild.  Once I get the cloud fully
> functional I will have some time to contribute to this issue.  For now I
> just need to get this up and running.
>
> Thanks,
>
> On Sun, Feb 17, 2013 at 11:11 PM, Rajesh Battala <
> rajesh.battala@citrix.com<ma...@citrix.com>> wrote:
> Now you were able to build and run the cloud right.!
>
> Thanks
> Rajesh Battala
>
> From: Jason Villalta [mailto:jason@rubixnet.com<mailto:jason@rubixnet.com
> >]
> Sent: Monday, February 18, 2013 3:59 AM
> To: cloudstack-dev@incubator.apache.org<mailto:
> cloudstack-dev@incubator.apache.org>
> Subject: Re: Change qcow disk cache=none
> Got it, wrong maven version..
> On Sun, Feb 17, 2013 at 4:54 PM, Jason Villalta <jason@rubixnet.com
> <ma...@rubixnet.com><mailto:jason@rubixnet.com<mailto:
> jason@rubixnet.com>>> wrote:
> I tried this method to build 4.0.0 and I get 3 failed dependencies.  Does
> something in git need to be updated with different paths?
>
> error: error reading
> /home/sysadmin/.m2/repository/org/apache/axis2/axis2-kernel/1.5.1/axis2-kernel-1.5.1.jar;
> error in opening zip file
> error: error reading
> /home/sysadmin/.m2/repository/org/apache/axis2/mex/1.5.1/mex-1.5.1-impl.jar;
> error in opening zip file
> error: error reading
> /home/sysadmin/.m2/repository/org/apache/axis2/axis2-mtompolicy/1.5.1/axis2-mtompolicy-1.5.1.jar;
> error in opening zip file
>
> On Fri, Feb 15, 2013 at 10:16 AM, Marcus Sorensen <shadowsor@gmail.com
> <ma...@gmail.com><mailto:shadowsor@gmail.com<mailto:
> shadowsor@gmail.com>>> wrote:
> If you just want to change 'none' to 'writeback' or something like that:
>
> git clone https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git
> cd incubator-cloudstack
> git checkout 4.0
> vi
> ./plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtVMDef.java
> # look for the one occurrence of 'none' in this file and change it as
> you see fit
>
> Then build your packages
> (
> https://cwiki.apache.org/CLOUDSTACK/building-with-maven.html#BuildingwithMaven-BuildingRPMpackages
> )
> mvn install -P deps && ./waf rpm
> or
> mvn package -P deb
>
> If you want the fully configurable experience from GUI, with per
> disk-offering settings, then you'd open the request, and it may make
> it into 4.2 in May. Or you could pull the git repo and see if the
> feature applies to 4.1 and build your own packages in a month or so
> when the feature branch is ready.
> On Fri, Feb 15, 2013 at 7:05 AM, Jason Villalta <jason@rubixnet.com
> <ma...@rubixnet.com><mailto:jason@rubixnet.com<mailto:
> jason@rubixnet.com>>> wrote:
> > So is there anyway to make this work today or will I have to wait
> > until this is properly implemented?  This may mean I need to take
> > another look at openstack or opennebula and switch back.
> >
> > On Fri, Feb 15, 2013 at 9:00 AM, Wido den Hollander <wido@widodh.nl
> <ma...@widodh.nl>>>
> wrote:
> >> On 02/15/2013 02:31 PM, Jason Villalta wrote:
> >>>
> >>> Is there any way easy way to make this setting dependent on the
> >>> storage definition?  For example some primary storage may need this
> >>> set to one value such as cache=writeback such as with the case of ZFS,
> >>> GlusterFS, CEPH.  Then other storage may want a different setting such
> >>> as cache=writethough or none which is the case with a local ext4
> >>> storage or NFS.
> >>>
> >>
> >> Exactly.
> >>
> >> I brought this up about a week ago, see this thread:
> >> http://markmail.org/thread/qmrod55gfmhwzot4
> >>
> >> It shouldn't be a global property, it should be defined per storage
> pool, or
> >> even better, per disk offering.
> >>
> >> Right now we are talking about the cache setting, but tomorrow it could
> be a
> >> different setting.
> >>
> >> Wido
> >>
> >>
> >>>
> >>>
> >>> On Thu, Feb 14, 2013 at 11:08 PM, Rajesh Battala
> >>> <ra...@citrix.com><mailto:
> rajesh.battala@citrix.com<ma...@citrix.com>>> wrote:
> >>>>
> >>>> Hi Jason Villalta,
> >>>> In LibvirtVmDef.java, there is DiskDef class ,  get the cache value
> from
> >>>> the Global config, while constructing the xml in the override method
> the
> >>>> class toString() specify the cache value, currently it is using
> "none".
> >>>>
> >>>> NOTE: whenever there is change in GC value, MS should restart for the
> >>>> value to take effect.
> >>>>
> >>>> Thanks
> >>>> Rajesh Battala
> >>>>
> >>>>> -----Original Message-----
> >>>>> From: Rajesh Battala [mailto:rajesh.battala@citrix.com<mailto:
> rajesh.battala@citrix.com><mailto:rajesh.battala@citrix.com<mailto:
> rajesh.battala@citrix.com>>]
> >>>>> Sent: Friday, February 15, 2013 9:22 AM
> >>>>> To: cloudstack-users@incubator.apache.org<mailto:
> cloudstack-users@incubator.apache.org><mailto:
> cloudstack-users@incubator.apache.org<mailto:
> cloudstack-users@incubator.apache.org>>; cloudstack-
> >>>>> dev@incubator.apache.org<ma...@incubator.apache.org><mailto:
> dev@incubator.apache.org<ma...@incubator.apache.org>>
> >>>>> Subject: RE: Change qcow disk cache=none
> >>>>>
> >>>>> Hi Jason Villalta,
> >>>>>
> >>>>> Can you raise the ticket for the same. I can work on it if you
> assign to
> >>>>> me.
> >>>>>
> >>>>> Thanks
> >>>>> Rajesh Battala
> >>>>>
> >>>>>> -----Original Message-----
> >>>>>> From: Edison Su [mailto:Edison.su@citrix.com<mailto:
> Edison.su@citrix.com><mailto:Edison.su@citrix.com<mailto:
> Edison.su@citrix.com>>]
> >>>>>> Sent: Friday, February 15, 2013 4:59 AM
> >>>>>> To: cloudstack-users@incubator.apache.org<mailto:
> cloudstack-users@incubator.apache.org><mailto:
> cloudstack-users@incubator.apache.org<mailto:
> cloudstack-users@incubator.apache.org>>
> >>>>>> Subject: RE: Change qcow disk cache=none
> >>>>>>
> >>>>>> The code is at https://git-wip-us.apache.org/repos/asf?p=incubator-
> >>>>>>
> cloudstack.git;a=blob;f=plugins/hypervisors/kvm/src/com/cloud/hypervis
> >>>>>> or/kv
> >>>>>>
> >>>>>
> m/resource/LibvirtVMDef.java;h=acfd9cf1fe8eba217f09e20adf3101d1295d51d
> >>>>>>
> >>>>>> a;hb=HEAD, search "cache".
> >>>>>> you can add a global configuration in cloudstack, or add a
> >>>>>> configuration in agent.properties, to specify cache attribute.
> >>>>>>
> >>>>>>> -----Original Message-----
> >>>>>>> From: Jason Villalta [mailto:jason@rubixnet.com<mailto:
> jason@rubixnet.com><ma...@rubixnet.com>>]
> >>>>>>> Sent: Thursday, February 14, 2013 2:16 PM
> >>>>>>> To: cloudstack-users@incubator.apache.org<mailto:
> cloudstack-users@incubator.apache.org><mailto:
> cloudstack-users@incubator.apache.org<mailto:
> cloudstack-users@incubator.apache.org>>
> >>>>>>> Subject: Re: Change qcow disk cache=none
> >>>>>>>
> >>>>>>> Ok, I see the folks at openstack ran into a similar issue.
> >>>>>>> https://bugs.launchpad.net/nova/+bug/959637
> >>>>>>>
> >>>>>>> How can I contribute to this?  Can you recommend a part of the code
> >>>>>>> to look at so I can build and test a patch?
> >>>>>>>
> >>>>>>> On Thu, Feb 14, 2013 at 5:13 PM, Edison Su <Edison.su@citrix.com
> <ma...@citrix.com><mailto:Edison.su@citrix.com<mailto:
> Edison.su@citrix.com>>>
> >>>>>>> wrote:
> >>>>>>>>
> >>>>>>>> need to change cloudstack java code, right now, it's hard coded to
> >>>>>>>
> >>>>>>> "cache=none".
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>> -----Original Message-----
> >>>>>>>>> From: Jason Villalta [mailto:jason@rubixnet.com<mailto:
> jason@rubixnet.com><ma...@rubixnet.com>>]
> >>>>>>>>> Sent: Thursday, February 14, 2013 1:45 PM
> >>>>>>>>> To: cloudstack-users@incubator.apache.org<mailto:
> cloudstack-users@incubator.apache.org><mailto:
> cloudstack-users@incubator.apache.org<mailto:
> cloudstack-users@incubator.apache.org>>
> >>>>>>>>> Subject: Change qcow disk cache=none
> >>>>>>>>>
> >>>>>>>>> Is there a way to change this kvm disk cache setting in
> >>>>>>>>> Cloudstack or
> >>>>>>>
> >>>>>>> template?
> >>>>>>>>>
> >>>>>>>>> If so where is the setting applied?
> >>>>>>>>>
> >>>>>>>>> --
> >>>>>>>>> --
> >>>>>>>>> Jason Villalta
> >>>>>>>>> Co-founder
> >>>>>>>>> 800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>>
> | www.RubixTechnology.com<http://www.RubixTechnology.com><
> http://www.RubixTechnology.com>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>> --
> >>>>>>> --
> >>>>>>> Jason Villalta
> >>>>>>> Co-founder
> >>>>>>> 800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>>
> | www.RubixTechnology.com<http://www.RubixTechnology.com><
> http://www.RubixTechnology.com>
> >>>
> >>>
> >>>
> >>>
> >>
> >
> >
> >
> > --
> > --
> > Jason Villalta
> > Co-founder
> > 800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>> |
> www.RubixTechnology.com<http://www.RubixTechnology.com><
> http://www.RubixTechnology.com>
>
>
>
> --
> --
> Jason Villalta
> Co-founder
> [cid:ii_13a3276a82c64fe9]
> 800.799.4407<tel:800.799.4407> | www.RubixTechnology.com<
> http://www.RubixTechnology.com><http://www.rubixtechnology.com/>
>
>
>
> --
> --
> Jason Villalta
> Co-founder
> [cid:ii_13a3276a82c64fe9]
> 800.799.4407<tel:800.799.4407> | www.RubixTechnology.com<
> http://www.RubixTechnology.com><http://www.rubixtechnology.com/>
>
>
>
> --
> --
> Jason Villalta
> Co-founder
> [cid:ii_13a3276a82c64fe9]
> 800.799.4407 | www.RubixTechnology.com<http://www.rubixtechnology.com/>
>



-- 
-- 
*Jason Villalta*
Co-founder
[image: Inline image 1]
800.799.4407 | www.RubixTechnology.com <http://www.rubixtechnology.com/>

Re: Change qcow disk cache=none

Posted by Jason Villalta <ja...@rubixnet.com>.
I have not seen this but you may be right.  HA would probably work(meaning
a host fails and vms need to be restarted)  but live migration may not.  I
don't have enough harrdware to test this fully right now but will try to
get something setup.

On Tue, Feb 19, 2013 at 11:33 PM, Rajesh Battala
<ra...@citrix.com>wrote:

> Hi Jason,
> If cache=none on the disk then migration of the VM won't work right?.
> I was going through RHEL link
> https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/6/html-single/Virtualization_Host_Configuration_and_Guest_Installation_Guide/index.html
>
> Migration restrictions
> ============================
> Because device assignment uses hardware on the specific host where the
> guest was started, migration and save/restore are not supported when device
> assignment is in use. If the guest operating system supports hot-plugging,
> assigned devices can be removed prior to the migration or save/restore
> operation to enable this feature.
> Live migration is only possible between hosts with the same CPU type (that
> is, Intel to Intel or AMD to AMD only).
> For live migration, both hosts must have the same value set for the No
> eXecution (NX) bit, either on or off.
> For migration to work, cache=none must be specified for all block devices
> opened in write mode.
> Warning
> Failing to include the cache=none option can result in disk corruption.
>
> Enabling this feature will have issues with HA right?
>
> Thanks
> Rajesh Battala
>
>
> > -----Original Message-----
> > From: Rajesh Battala [mailto:rajesh.battala@citrix.com]
> > Sent: Tuesday, February 19, 2013 7:43 PM
> > To: cloudstack-dev@incubator.apache.org
> > Subject: RE: Change qcow disk cache=none
> >
> > Great to hear it worked.
> >
> > From: Jason Villalta [mailto:jason@rubixnet.com]
> > Sent: Tuesday, February 19, 2013 7:38 PM
> > To: cloudstack-dev@incubator.apache.org
> > Subject: Re: Change qcow disk cache=none
> >
> > Thanks for all of your help on this guys.  This worked like a charm!
> > On Mon, Feb 18, 2013 at 5:30 AM, Wido den Hollander
> > <wi...@widodh.nl>> wrote:
> > On 02/18/2013 05:49 AM, Rajesh Battala wrote:
> > Sounds great.
> > How are you planning to implement the cache config value.  From GC
> settings or
> > as part of offering or a dynamic changeable param to the VM.
> >
> > This has been covered by this Jira issue:
> > https://issues.apache.org/jira/browse/CLOUDSTACK-1302
> >
> > Wido
> >
> > Thanks
> > Rajesh Battala
> >
> > From: Jason Villalta [mailto:jason@rubixnet.com<mailto:
> jason@rubixnet.com>]
> > Sent: Monday, February 18, 2013 9:51 AM
> > To: cloudstack-dev@incubator.apache.org<mailto:cloudstack-
> > dev@incubator.apache.org>
> > Subject: Re: Change qcow disk cache=none
> >
> > Yes I have gotten farther.  I have the hard coded parameter changed and
> the
> > system Proxy VM is running now but I am running into issues with the
> secondary
> > storage vm.  Troubleshooting that now.
> >
> > As for the cache setting, I think that still need to be setup as a
> configurable
> > option without a rebuild.  Once I get the cloud fully functional I will
> have some
> > time to contribute to this issue.  For now I just need to get this up
> and running.
> >
> > Thanks,
> >
> > On Sun, Feb 17, 2013 at 11:11 PM, Rajesh Battala
> > <ra...@citrix.com><mailto:
> rajesh.ba
> > ttala@citrix.com<ma...@citrix.com>>> wrote:
> > Now you were able to build and run the cloud right.!
> >
> > Thanks
> > Rajesh Battala
> >
> > From: Jason Villalta
> > [mailto:jason@rubixnet.com<ma...@rubixnet.com><mailto:jason@rubix
> > net.com<ma...@rubixnet.com>>]
> > Sent: Monday, February 18, 2013 3:59 AM
> > To: cloudstack-dev@incubator.apache.org<mailto:cloudstack-
> > dev@incubator.apache.org><mailto:cloudstack-
> > dev@incubator.apache.org<ma...@incubator.apache.org>>
> > Subject: Re: Change qcow disk cache=none Got it, wrong maven version..
> > On Sun, Feb 17, 2013 at 4:54 PM, Jason Villalta
> > <ja...@rubixnet.com><mailto:jason@rubixnet.co
> > m<ma...@rubixnet.com>><mailto:jason@rubixnet.com<mailto:jason@r
> > ubixnet.com><ma...@rubixnet.com>>>>
> > wrote:
> > I tried this method to build 4.0.0 and I get 3 failed dependencies.  Does
> > something in git need to be updated with different paths?
> >
> > error: error reading
> /home/sysadmin/.m2/repository/org/apache/axis2/axis2-
> > kernel/1.5.1/axis2-kernel-1.5.1.jar; error in opening zip file
> > error: error reading
> > /home/sysadmin/.m2/repository/org/apache/axis2/mex/1.5.1/mex-1.5.1-
> > impl.jar; error in opening zip file
> > error: error reading
> /home/sysadmin/.m2/repository/org/apache/axis2/axis2-
> > mtompolicy/1.5.1/axis2-mtompolicy-1.5.1.jar; error in opening zip file
> >
> > On Fri, Feb 15, 2013 at 10:16 AM, Marcus Sorensen
> > <sh...@gmail.com><mailto:shadowsor@
> > gmail.com<ma...@gmail.com>><mailto:shadowsor@gmail.com<m
> > ailto:shadowsor@gmail.com><mailto:shadowsor@gmail.com<mailto:shadows
> > or@gmail.com>>>> wrote:
> > If you just want to change 'none' to 'writeback' or something like that:
> >
> > git clone
> https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git
> > cd incubator-cloudstack
> > git checkout 4.0
> > vi
> >
> ./plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtVMD
> > ef.java
> > # look for the one occurrence of 'none' in this file and change it as
> you see fit
> >
> > Then build your packages
> > (https://cwiki.apache.org/CLOUDSTACK/building-with-
> > maven.html#BuildingwithMaven-BuildingRPMpackages)
> > mvn install -P deps && ./waf rpm
> > or
> > mvn package -P deb
> >
> > If you want the fully configurable experience from GUI, with per
> disk-offering
> > settings, then you'd open the request, and it may make it into 4.2 in
> May. Or you
> > could pull the git repo and see if the feature applies to 4.1 and build
> your own
> > packages in a month or so when the feature branch is ready.
> > On Fri, Feb 15, 2013 at 7:05 AM, Jason Villalta
> > <ja...@rubixnet.com><mailto:jason@rubixnet.co
> > m<ma...@rubixnet.com>><mailto:jason@rubixnet.com<mailto:jason@r
> > ubixnet.com><ma...@rubixnet.com>>>>
> > wrote:
> > So is there anyway to make this work today or will I have to wait until
> this is
> > properly implemented?  This may mean I need to take another look at
> openstack
> > or opennebula and switch back.
> >
> > On Fri, Feb 15, 2013 at 9:00 AM, Wido den Hollander
> > <wi...@widodh.nl><mailto:wido@widodh.nl<mailto:w
> > ido@widodh.nl>><ma...@widodh.nl><mailto:wi
> > do@widodh.nl<ma...@widodh.nl>>>> wrote:
> > On 02/15/2013 02:31 PM, Jason Villalta wrote:
> >
> > Is there any way easy way to make this setting dependent on the storage
> > definition?  For example some primary storage may need this set to one
> value
> > such as cache=writeback such as with the case of ZFS, GlusterFS, CEPH.
>  Then
> > other storage may want a different setting such as cache=writethough or
> none
> > which is the case with a local ext4 storage or NFS.
> >
> > Exactly.
> >
> > I brought this up about a week ago, see this thread:
> > http://markmail.org/thread/qmrod55gfmhwzot4
> >
> > It shouldn't be a global property, it should be defined per storage
> pool, or even
> > better, per disk offering.
> >
> > Right now we are talking about the cache setting, but tomorrow it could
> be a
> > different setting.
> >
> > Wido
> >
> >
> >
> > On Thu, Feb 14, 2013 at 11:08 PM, Rajesh Battala
> > <ra...@citrix.com><mailto:
> rajesh.ba
> > ttala@citrix.com<ma...@citrix.com>><mailto:
> rajesh.battala@cit
> > rix.com<ma...@citrix.com><mailto:
> rajesh.battala@citrix.com<
> > mailto:rajesh.battala@citrix.com>>>> wrote:
> >
> > Hi Jason Villalta,
> > In LibvirtVmDef.java, there is DiskDef class ,  get the cache value from
> the Global
> > config, while constructing the xml in the override method the class
> toString()
> > specify the cache value, currently it is using "none".
> >
> > NOTE: whenever there is change in GC value, MS should restart for the
> value to
> > take effect.
> >
> > Thanks
> > Rajesh Battala
> > -----Original Message-----
> > From: Rajesh Battala
> > [mailto:rajesh.battala@citrix.com<mailto:rajesh.battala@citrix.com
> ><mailto:raj
> > esh.battala@citrix.com<ma...@citrix.com>><mailto:
> rajesh.batt
> > ala@citrix.com<ma...@citrix.com><mailto:
> rajesh.battala@citrix
> > .com<ma...@citrix.com>>>]
> > Sent: Friday, February 15, 2013 9:22 AM
> > To: cloudstack-users@incubator.apache.org<mailto:cloudstack-
> > users@incubator.apache.org><mailto:cloudstack-
> > users@incubator.apache.org<mailto:cloudstack-
> > users@incubator.apache.org>><mailto:cloudstack-
> > users@incubator.apache.org<mailto:cloudstack-
> > users@incubator.apache.org><mailto:cloudstack-
> > users@incubator.apache.org<mailto:cloudstack-
> > users@incubator.apache.org>>>; cloudstack-
> > dev@incubator.apache.org<ma...@incubator.apache.org><mailto:dev@in
> > cubator.apache.org<ma...@incubator.apache.org>><mailto:dev@incubat
> > or.apache.org<ma...@incubator.apache.org><mailto:dev@incubator.apac
> > he.org<ma...@incubator.apache.org>>>
> > Subject: RE: Change qcow disk cache=none
> >
> > Hi Jason Villalta,
> >
> > Can you raise the ticket for the same. I can work on it if you assign to
> me.
> >
> > Thanks
> > Rajesh Battala
> > -----Original Message-----
> > From: Edison Su
> > [mailto:Edison.su@citrix.com<ma...@citrix.com><mailto:
> Edison.su
> > @citrix.com<ma...@citrix.com>><mailto:Edison.su@citrix.com
> <mail
> > to:Edison.su@citrix.com><mailto:Edison.su@citrix.com<mailto:
> Edison.su@citri
> > x.com>>>]
> > Sent: Friday, February 15, 2013 4:59 AM
> > To: cloudstack-users@incubator.apache.org<mailto:cloudstack-
> > users@incubator.apache.org><mailto:cloudstack-
> > users@incubator.apache.org<mailto:cloudstack-
> > users@incubator.apache.org>><mailto:cloudstack-
> > users@incubator.apache.org<mailto:cloudstack-
> > users@incubator.apache.org><mailto:cloudstack-
> > users@incubator.apache.org<mailto:cloudstack-
> > users@incubator.apache.org>>>
> > Subject: RE: Change qcow disk cache=none
> >
> > The code is at https://git-wip-us.apache.org/repos/asf?p=incubator-
> > cloudstack.git;a=blob;f=plugins/hypervisors/kvm/src/com/cloud/hypervis
> > or/kv
> > m/resource/LibvirtVMDef.java;h=acfd9cf1fe8eba217f09e20adf3101d1295d51d
> >
> > a;hb=HEAD, search "cache".
> > you can add a global configuration in cloudstack, or add a configuration
> in
> > agent.properties, to specify cache attribute.
> > -----Original Message-----
> > From: Jason Villalta
> > [mailto:jason@rubixnet.com<ma...@rubixnet.com><mailto:jason@rubix
> > net.com<ma...@rubixnet.com>><mailto:jason@rubixnet.com<mailto:jas
> > on@rubixnet.com><ma...@rubixnet.com>>
> > >]
> > Sent: Thursday, February 14, 2013 2:16 PM
> > To: cloudstack-users@incubator.apache.org<mailto:cloudstack-
> > users@incubator.apache.org><mailto:cloudstack-
> > users@incubator.apache.org<mailto:cloudstack-
> > users@incubator.apache.org>><mailto:cloudstack-
> > users@incubator.apache.org<mailto:cloudstack-
> > users@incubator.apache.org><mailto:cloudstack-
> > users@incubator.apache.org<mailto:cloudstack-
> > users@incubator.apache.org>>>
> > Subject: Re: Change qcow disk cache=none
> >
> > Ok, I see the folks at openstack ran into a similar issue.
> > https://bugs.launchpad.net/nova/+bug/959637
> >
> > How can I contribute to this?  Can you recommend a part of the code to
> look at
> > so I can build and test a patch?
> >
> > On Thu, Feb 14, 2013 at 5:13 PM, Edison Su
> > <Ed...@citrix.com><mailto:
> Edison.su@citrix.
> > com<ma...@citrix.com>><mailto:Edison.su@citrix.com<mailto:
> Ediso
> > n.su@citrix.com><mailto:Edison.su@citrix.com<mailto:Edison.su@citrix.com
> >>
> > >>
> > wrote:
> >
> > need to change cloudstack java code, right now, it's hard coded to
> >
> > "cache=none".
> >
> > -----Original Message-----
> > From: Jason Villalta
> > [mailto:jason@rubixnet.com<ma...@rubixnet.com><mailto:jason@rubix
> > net.com<ma...@rubixnet.com>><mailto:jason@rubixnet.com<mailto:jas
> > on@rubixnet.com><ma...@rubixnet.com>>
> > >]
> > Sent: Thursday, February 14, 2013 1:45 PM
> > To: cloudstack-users@incubator.apache.org<mailto:cloudstack-
> > users@incubator.apache.org><mailto:cloudstack-
> > users@incubator.apache.org<mailto:cloudstack-
> > users@incubator.apache.org>><mailto:cloudstack-
> > users@incubator.apache.org<mailto:cloudstack-
> > users@incubator.apache.org><mailto:cloudstack-
> > users@incubator.apache.org<mailto:cloudstack-
> > users@incubator.apache.org>>>
> > Subject: Change qcow disk cache=none
> >
> > Is there a way to change this kvm disk cache setting in Cloudstack or
> >
> > template?
> >
> > If so where is the setting applied?
> >
> > --
> > --
> > Jason Villalta
> > Co-founder
> > 800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407
> >><tel:800
> > .799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>>> |
> > www.RubixTechnology.com<http://www.RubixTechnology.com><http://www.
> > RubixTechnology.com><http://www.RubixTechnology.com>
> >
> >
> >
> >
> > --
> > --
> > Jason Villalta
> > Co-founder
> > 800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407
> >><tel:800
> > .799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>>> |
> > www.RubixTechnology.com<http://www.RubixTechnology.com><http://www.
> > RubixTechnology.com><http://www.RubixTechnology.com>
> >
> >
> >
> >
> >
> >
> >
> > --
> > --
> > Jason Villalta
> > Co-founder
> >
> 800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>><tel:800
> > .799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>>> |
> > www.RubixTechnology.com<http://www.RubixTechnology.com><http://www.
> > RubixTechnology.com><http://www.RubixTechnology.com>
> >
> >
> >
> > --
> > --
> > Jason Villalta
> > Co-founder
> > [cid:ii_13a3276a82c64fe9]
> > 800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>> |
> > www.RubixTechnology.com<http://www.RubixTechnology.com><http://www.
> > RubixTechnology.com><http://www.rubixtechnology.com/>
> >
> >
> >
> > --
> > --
> > Jason Villalta
> > Co-founder
> > [cid:ii_13a3276a82c64fe9]
> > 800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>> |
> > www.RubixTechnology.com<http://www.RubixTechnology.com><http://www.
> > RubixTechnology.com><http://www.rubixtechnology.com/>
> >
> >
> >
> > --
> > --
> > Jason Villalta
> > Co-founder
> > [cid:ii_13a3276a82c64fe9]
> > 800.799.4407<tel:800.799.4407> |
> > www.RubixTechnology.com<http://www.RubixTechnology.com><http://www.r
> > ubixtechnology.com/>
> >
> >
> >
> >
> > --
> > --
> > Jason Villalta
> > Co-founder
> > [cid:ii_13a3276a82c64fe9]
> > 800.799.4407 |
> > www.RubixTechnology.com<http://www.rubixtechnology.com/>
>



-- 
-- 
*Jason Villalta*
Co-founder
[image: Inline image 1]
800.799.4407 | www.RubixTechnology.com <http://www.rubixtechnology.com/>

Re: Change qcow disk cache=none

Posted by Jason Villalta <ja...@rubixnet.com>.
I read a few posts from people that seemed to say live migration would not
work at all if the cache= option was not set to none.  That is just shadows
on the internet though,  I have no first hand experience.  Either way,
kernel 3.4 maybe the way to go since it supposedly has FUSE support for
directio which would solve the problem too.  I am testing that now.


On Wed, Feb 20, 2013 at 9:53 AM, Wido den Hollander <wi...@widodh.nl> wrote:

> On 02/20/2013 05:33 AM, Rajesh Battala wrote:
>
>> Hi Jason,
>> If cache=none on the disk then migration of the VM won't work right?.
>>
>
> I did some more reading about this today and it doesn't actually mean that
> migration won't work (or can't).
>
> There is a slight chance that when using something like NFS in async mode
> that writes are still in the page cache of the old hypervisor while the
> guest is already on the new hypervisor.
>
> This COULD lead to filesystem corruption inside the VM, but it doesn't
> have to be that way.
>
> If you use something like GFS or OCFS2 as a shared filesystem it will work
> just fine. Same goes for when you use RBD (which doesn't use the page cache
> at all).
>
> I think you are only in "danger" when you are using async NFS or iSCSI,
> although I'm not completely sure about the latter.
>
> Wido
>
>
>  I was going through RHEL link https://access.redhat.com/**
>> knowledge/docs/en-US/Red_Hat_**Enterprise_Linux/6/html-**
>> single/Virtualization_Host_**Configuration_and_Guest_**
>> Installation_Guide/index.html<https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/6/html-single/Virtualization_Host_Configuration_and_Guest_Installation_Guide/index.html>
>>
>> Migration restrictions
>> ============================
>> Because device assignment uses hardware on the specific host where the
>> guest was started, migration and save/restore are not supported when device
>> assignment is in use. If the guest operating system supports hot-plugging,
>> assigned devices can be removed prior to the migration or save/restore
>> operation to enable this feature.
>> Live migration is only possible between hosts with the same CPU type
>> (that is, Intel to Intel or AMD to AMD only).
>> For live migration, both hosts must have the same value set for the No
>> eXecution (NX) bit, either on or off.
>> For migration to work, cache=none must be specified for all block devices
>> opened in write mode.
>> Warning
>> Failing to include the cache=none option can result in disk corruption.
>>
>> Enabling this feature will have issues with HA right?
>>
>> Thanks
>> Rajesh Battala
>>
>>
>>  -----Original Message-----
>>> From: Rajesh Battala [mailto:rajesh.battala@citrix.**com<ra...@citrix.com>
>>> ]
>>> Sent: Tuesday, February 19, 2013 7:43 PM
>>> To: cloudstack-dev@incubator.**apache.org<cl...@incubator.apache.org>
>>> Subject: RE: Change qcow disk cache=none
>>>
>>> Great to hear it worked.
>>>
>>> From: Jason Villalta [mailto:jason@rubixnet.com]
>>> Sent: Tuesday, February 19, 2013 7:38 PM
>>> To: cloudstack-dev@incubator.**apache.org<cl...@incubator.apache.org>
>>> Subject: Re: Change qcow disk cache=none
>>>
>>> Thanks for all of your help on this guys.  This worked like a charm!
>>> On Mon, Feb 18, 2013 at 5:30 AM, Wido den Hollander
>>> <wido@widodh.nl<mailto:wido@**widodh.nl <wi...@widodh.nl>>> wrote:
>>> On 02/18/2013 05:49 AM, Rajesh Battala wrote:
>>> Sounds great.
>>> How are you planning to implement the cache config value.  From GC
>>> settings or
>>> as part of offering or a dynamic changeable param to the VM.
>>>
>>> This has been covered by this Jira issue:
>>> https://issues.apache.org/**jira/browse/CLOUDSTACK-1302<https://issues.apache.org/jira/browse/CLOUDSTACK-1302>
>>>
>>> Wido
>>>
>>> Thanks
>>> Rajesh Battala
>>>
>>> From: Jason Villalta [mailto:jason@rubixnet.com<**mailto:
>>> jason@rubixnet.com>]
>>> Sent: Monday, February 18, 2013 9:51 AM
>>> To: cloudstack-dev@incubator.**apache.org<cl...@incubator.apache.org>
>>> <mailto:cloudstack-
>>> dev@incubator.apache.org>
>>> Subject: Re: Change qcow disk cache=none
>>>
>>> Yes I have gotten farther.  I have the hard coded parameter changed and
>>> the
>>> system Proxy VM is running now but I am running into issues with the
>>> secondary
>>> storage vm.  Troubleshooting that now.
>>>
>>> As for the cache setting, I think that still need to be setup as a
>>> configurable
>>> option without a rebuild.  Once I get the cloud fully functional I will
>>> have some
>>> time to contribute to this issue.  For now I just need to get this up
>>> and running.
>>>
>>> Thanks,
>>>
>>> On Sun, Feb 17, 2013 at 11:11 PM, Rajesh Battala
>>> <ra...@citrix.com>
>>> ><mailto:rajesh.ba
>>> ttala@citrix.com<ma...@citrix.com>>>>
>>> wrote:
>>> Now you were able to build and run the cloud right.!
>>>
>>> Thanks
>>> Rajesh Battala
>>>
>>> From: Jason Villalta
>>> [mailto:jason@rubixnet.com<**...@rubixnet.com><**mailto:
>>> jason@rubix
>>> net.com<mailto:jason@rubixnet.**com <ja...@rubixnet.com>>>]
>>> Sent: Monday, February 18, 2013 3:59 AM
>>> To: cloudstack-dev@incubator.**apache.org<cl...@incubator.apache.org>
>>> <mailto:cloudstack-
>>> dev@incubator.apache.org><**mailto:cloudstack-
>>> dev@incubator.apache.org<**...@incubator.apache.org>
>>> >>
>>> Subject: Re: Change qcow disk cache=none Got it, wrong maven version..
>>> On Sun, Feb 17, 2013 at 4:54 PM, Jason Villalta
>>> <jason@rubixnet.com<mailto:jas**on@rubixnet.com <ja...@rubixnet.com>
>>> ><mailto:jason@**rubixnet.co <ja...@rubixnet.co>
>>> m<ma...@rubixnet.com>><**mailto:jason@rubixnet.com<**mailto:
>>> jason@r
>>> ubixnet.com><mailto:jason@**rubixnet.com <ja...@rubixnet.com><mailto:
>>> jason@**rubixnet.com <ja...@rubixnet.com>>>>>
>>> wrote:
>>> I tried this method to build 4.0.0 and I get 3 failed dependencies.  Does
>>> something in git need to be updated with different paths?
>>>
>>> error: error reading /home/sysadmin/.m2/repository/**
>>> org/apache/axis2/axis2-
>>> kernel/1.5.1/axis2-kernel-1.5.**1.jar; error in opening zip file
>>> error: error reading
>>> /home/sysadmin/.m2/repository/**org/apache/axis2/mex/1.5.1/**mex-1.5.1-
>>> impl.jar; error in opening zip file
>>> error: error reading /home/sysadmin/.m2/repository/**
>>> org/apache/axis2/axis2-
>>> mtompolicy/1.5.1/axis2-**mtompolicy-1.5.1.jar; error in opening zip file
>>>
>>> On Fri, Feb 15, 2013 at 10:16 AM, Marcus Sorensen
>>> <shadowsor@gmail.com<mailto:sh**adowsor@gmail.com <sh...@gmail.com>
>>> ><mailto:shad**owsor@ <shadowsor@>
>>> gmail.com<mailto:shadowsor@**gmail.com <sh...@gmail.com>>><mailto:
>>> shadowsor@**gmail.com <sh...@gmail.com><m
>>> ailto:shadowsor@gmail.com><**mailto:shadowsor@gmail.com<**mailto:shadows
>>> or@gmail.com>>>> wrote:
>>> If you just want to change 'none' to 'writeback' or something like that:
>>>
>>> git clone https://git-wip-us.apache.org/**repos/asf/incubator-**
>>> cloudstack.git<https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git>
>>> cd incubator-cloudstack
>>> git checkout 4.0
>>> vi
>>> ./plugins/hypervisors/kvm/src/**com/cloud/hypervisor/kvm/**
>>> resource/LibvirtVMD
>>> ef.java
>>> # look for the one occurrence of 'none' in this file and change it as
>>> you see fit
>>>
>>> Then build your packages
>>> (https://cwiki.apache.org/**CLOUDSTACK/building-with-<https://cwiki.apache.org/CLOUDSTACK/building-with->
>>> maven.html#BuildingwithMaven-**BuildingRPMpackages)
>>> mvn install -P deps && ./waf rpm
>>> or
>>> mvn package -P deb
>>>
>>> If you want the fully configurable experience from GUI, with per
>>> disk-offering
>>> settings, then you'd open the request, and it may make it into 4.2 in
>>> May. Or you
>>> could pull the git repo and see if the feature applies to 4.1 and build
>>> your own
>>> packages in a month or so when the feature branch is ready.
>>> On Fri, Feb 15, 2013 at 7:05 AM, Jason Villalta
>>> <jason@rubixnet.com<mailto:jas**on@rubixnet.com <ja...@rubixnet.com>
>>> ><mailto:jason@**rubixnet.co <ja...@rubixnet.co>
>>> m<ma...@rubixnet.com>><**mailto:jason@rubixnet.com<**mailto:
>>> jason@r
>>> ubixnet.com><mailto:jason@**rubixnet.com <ja...@rubixnet.com><mailto:
>>> jason@**rubixnet.com <ja...@rubixnet.com>>>>>
>>> wrote:
>>> So is there anyway to make this work today or will I have to wait until
>>> this is
>>> properly implemented?  This may mean I need to take another look at
>>> openstack
>>> or opennebula and switch back.
>>>
>>> On Fri, Feb 15, 2013 at 9:00 AM, Wido den Hollander
>>> <wido@widodh.nl<mailto:wido@**widodh.nl <wi...@widodh.nl>><mailto:
>>> wido@widodh.**nl <wi...@widodh.nl><mailto:w
>>> ido@widodh.nl>><mailto:wido@**widodh.nl <wi...@widodh.nl><mailto:
>>> wido@widodh.**nl <wi...@widodh.nl>><mailto:wi
>>> do@widodh.nl<mailto:wido@**widodh.nl <wi...@widodh.nl>>>>> wrote:
>>> On 02/15/2013 02:31 PM, Jason Villalta wrote:
>>>
>>> Is there any way easy way to make this setting dependent on the storage
>>> definition?  For example some primary storage may need this set to one
>>> value
>>> such as cache=writeback such as with the case of ZFS, GlusterFS, CEPH.
>>>  Then
>>> other storage may want a different setting such as cache=writethough or
>>> none
>>> which is the case with a local ext4 storage or NFS.
>>>
>>> Exactly.
>>>
>>> I brought this up about a week ago, see this thread:
>>> http://markmail.org/thread/**qmrod55gfmhwzot4<http://markmail.org/thread/qmrod55gfmhwzot4>
>>>
>>> It shouldn't be a global property, it should be defined per storage
>>> pool, or even
>>> better, per disk offering.
>>>
>>> Right now we are talking about the cache setting, but tomorrow it could
>>> be a
>>> different setting.
>>>
>>> Wido
>>>
>>>
>>>
>>> On Thu, Feb 14, 2013 at 11:08 PM, Rajesh Battala
>>> <ra...@citrix.com>
>>> ><mailto:rajesh.ba
>>> ttala@citrix.com<ma...@citrix.com>
>>> >><mailto:r**ajesh.battala@cit <ra...@cit>
>>> rix.com<mailto:rajesh.battala@**citrix.com <ra...@citrix.com>
>>> ><mailto:rajesh.**battala@citrix.com <ra...@citrix.com><
>>> mailto:rajesh.battala@citrix.**com <ra...@citrix.com>>>>>
>>> wrote:
>>>
>>> Hi Jason Villalta,
>>> In LibvirtVmDef.java, there is DiskDef class ,  get the cache value from
>>> the Global
>>> config, while constructing the xml in the override method the class
>>> toString()
>>> specify the cache value, currently it is using "none".
>>>
>>> NOTE: whenever there is change in GC value, MS should restart for the
>>> value to
>>> take effect.
>>>
>>> Thanks
>>> Rajesh Battala
>>> -----Original Message-----
>>> From: Rajesh Battala
>>> [mailto:rajesh.battala@citrix.**com <ra...@citrix.com><mailto:
>>> rajesh.battala@**citrix.com <ra...@citrix.com>><mailto:raj
>>> esh.battala@citrix.com<ma...@citrix.com>
>>> >><**mailto:rajesh.batt
>>> ala@citrix.com<ma...@citrix.com>
>>> ><mailto:raj**esh.battala@citrix <ra...@citrix>
>>> .com<mailto:rajesh.battala@**citrix.com <ra...@citrix.com>>>>]
>>> Sent: Friday, February 15, 2013 9:22 AM
>>> To: cloudstack-users@incubator.**apache.org<cl...@incubator.apache.org>
>>> <mailto:cloudstack-
>>> users@incubator.apache.org><**mailto:cloudstack-
>>> users@incubator.apache.org<**mailto:cloudstack-
>>> users@incubator.apache.org>><**mailto:cloudstack-
>>> users@incubator.apache.org<**mailto:cloudstack-
>>> users@incubator.apache.org><**mailto:cloudstack-
>>> users@incubator.apache.org<**mailto:cloudstack-
>>> users@incubator.apache.org>>>; cloudstack-
>>> dev@incubator.apache.org<**...@incubator.apache.org>
>>> ><mailto:dev@in
>>> cubator.apache.org<ma...@incubator.apache.org>
>>> >><mailto:**dev@incubat <de...@incubat>
>>> or.apache.org<ma...@incubator.apache.org>
>>> ><mailto:d**ev@incubator.apac <de...@incubator.apac>
>>> he.org<mailto:dev@incubator.**apache.org <de...@incubator.apache.org>>>>
>>> Subject: RE: Change qcow disk cache=none
>>>
>>> Hi Jason Villalta,
>>>
>>> Can you raise the ticket for the same. I can work on it if you assign to
>>> me.
>>>
>>> Thanks
>>> Rajesh Battala
>>> -----Original Message-----
>>> From: Edison Su
>>> [mailto:Edison.su@citrix.com<**...@citrix.com><**mailto:
>>> Edison.su
>>> @citrix.com<mailto:Edison.su@**citrix.com <Ed...@citrix.com>
>>> >><mailto:Edison.su@**citrix.com <Ed...@citrix.com><mail
>>> to:Edison.su@citrix.com><**mailto:Edison.su@citrix.com<**mailto:
>>> Edison.su@citri
>>> x.com>>>]
>>> Sent: Friday, February 15, 2013 4:59 AM
>>> To: cloudstack-users@incubator.**apache.org<cl...@incubator.apache.org>
>>> <mailto:cloudstack-
>>> users@incubator.apache.org><**mailto:cloudstack-
>>> users@incubator.apache.org<**mailto:cloudstack-
>>> users@incubator.apache.org>><**mailto:cloudstack-
>>> users@incubator.apache.org<**mailto:cloudstack-
>>> users@incubator.apache.org><**mailto:cloudstack-
>>> users@incubator.apache.org<**mailto:cloudstack-
>>> users@incubator.apache.org>>>
>>> Subject: RE: Change qcow disk cache=none
>>>
>>> The code is at https://git-wip-us.apache.org/**repos/asf?p=incubator-<https://git-wip-us.apache.org/repos/asf?p=incubator->
>>> cloudstack.git;a=blob;f=**plugins/hypervisors/kvm/src/**
>>> com/cloud/hypervis
>>> or/kv
>>> m/resource/LibvirtVMDef.java;**h=**acfd9cf1fe8eba217f09e20adf3101**
>>> d1295d51d
>>>
>>> a;hb=HEAD, search "cache".
>>> you can add a global configuration in cloudstack, or add a configuration
>>> in
>>> agent.properties, to specify cache attribute.
>>> -----Original Message-----
>>> From: Jason Villalta
>>> [mailto:jason@rubixnet.com<**...@rubixnet.com><**mailto:
>>> jason@rubix
>>> net.com<mailto:jason@rubixnet.**com <ja...@rubixnet.com>>><mailto:
>>> jason@rubixnet.**com <ja...@rubixnet.com><mailto:jas
>>> on@rubixnet.com><mailto:jason@**rubixnet.com <ja...@rubixnet.com>
>>> <mailto:jason@**rubixnet.com <ja...@rubixnet.com>>>
>>>
>>>> ]
>>>>
>>> Sent: Thursday, February 14, 2013 2:16 PM
>>> To: cloudstack-users@incubator.**apache.org<cl...@incubator.apache.org>
>>> <mailto:cloudstack-
>>> users@incubator.apache.org><**mailto:cloudstack-
>>> users@incubator.apache.org<**mailto:cloudstack-
>>> users@incubator.apache.org>><**mailto:cloudstack-
>>> users@incubator.apache.org<**mailto:cloudstack-
>>> users@incubator.apache.org><**mailto:cloudstack-
>>> users@incubator.apache.org<**mailto:cloudstack-
>>> users@incubator.apache.org>>>
>>> Subject: Re: Change qcow disk cache=none
>>>
>>> Ok, I see the folks at openstack ran into a similar issue.
>>> https://bugs.launchpad.net/**nova/+bug/959637<https://bugs.launchpad.net/nova/+bug/959637>
>>>
>>> How can I contribute to this?  Can you recommend a part of the code to
>>> look at
>>> so I can build and test a patch?
>>>
>>> On Thu, Feb 14, 2013 at 5:13 PM, Edison Su
>>> <Ed...@citrix.com>
>>> ><mailto:Ed**ison.su@citrix <Ed...@citrix>.
>>> com<mailto:Edison.su@citrix.**com <Ed...@citrix.com>>><mailto:
>>> Edison.su@citrix.**com <Ed...@citrix.com><mailto:Ediso
>>> n.su@citrix.com><mailto:Edison**.su@citrix.com <Ed...@citrix.com>
>>> <mailto:Edison.**su@citrix.com <Ed...@citrix.com>>>
>>>
>>>>
>>>>>  wrote:
>>>
>>> need to change cloudstack java code, right now, it's hard coded to
>>>
>>> "cache=none".
>>>
>>> -----Original Message-----
>>> From: Jason Villalta
>>> [mailto:jason@rubixnet.com<**...@rubixnet.com><**mailto:
>>> jason@rubix
>>> net.com<mailto:jason@rubixnet.**com <ja...@rubixnet.com>>><mailto:
>>> jason@rubixnet.**com <ja...@rubixnet.com><mailto:jas
>>> on@rubixnet.com><mailto:jason@**rubixnet.com <ja...@rubixnet.com>
>>> <mailto:jason@**rubixnet.com <ja...@rubixnet.com>>>
>>>
>>>> ]
>>>>
>>> Sent: Thursday, February 14, 2013 1:45 PM
>>> To: cloudstack-users@incubator.**apache.org<cl...@incubator.apache.org>
>>> <mailto:cloudstack-
>>> users@incubator.apache.org><**mailto:cloudstack-
>>> users@incubator.apache.org<**mailto:cloudstack-
>>> users@incubator.apache.org>><**mailto:cloudstack-
>>> users@incubator.apache.org<**mailto:cloudstack-
>>> users@incubator.apache.org><**mailto:cloudstack-
>>> users@incubator.apache.org<**mailto:cloudstack-
>>> users@incubator.apache.org>>>
>>> Subject: Change qcow disk cache=none
>>>
>>> Is there a way to change this kvm disk cache setting in Cloudstack or
>>>
>>> template?
>>>
>>> If so where is the setting applied?
>>>
>>> --
>>> --
>>> Jason Villalta
>>> Co-founder
>>> 800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407
>>> >><tel:800
>>> .799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>>> |
>>> www.RubixTechnology.com<http:/**/www.RubixTechnology.com<http://www.RubixTechnology.com>
>>> ><http**://www <http://www>.
>>> RubixTechnology.com><http://**www.RubixTechnology.com<http://www.RubixTechnology.com>
>>> >
>>>
>>>
>>>
>>>
>>> --
>>> --
>>> Jason Villalta
>>> Co-founder
>>> 800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407
>>> >><tel:800
>>> .799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>>> |
>>> www.RubixTechnology.com<http:/**/www.RubixTechnology.com<http://www.RubixTechnology.com>
>>> ><http**://www <http://www>.
>>> RubixTechnology.com><http://**www.RubixTechnology.com<http://www.RubixTechnology.com>
>>> >
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> --
>>> --
>>> Jason Villalta
>>> Co-founder
>>> 800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407
>>> >><tel:800
>>> .799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>>> |
>>> www.RubixTechnology.com<http:/**/www.RubixTechnology.com<http://www.RubixTechnology.com>
>>> ><http**://www <http://www>.
>>> RubixTechnology.com><http://**www.RubixTechnology.com<http://www.RubixTechnology.com>
>>> >
>>>
>>>
>>>
>>> --
>>> --
>>> Jason Villalta
>>> Co-founder
>>> [cid:ii_13a3276a82c64fe9]
>>> 800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>> |
>>> www.RubixTechnology.com<http:/**/www.RubixTechnology.com<http://www.RubixTechnology.com>
>>> ><http**://www <http://www>.
>>> RubixTechnology.com><http://**www.rubixtechnology.com/<http://www.rubixtechnology.com/>
>>> >
>>>
>>>
>>>
>>> --
>>> --
>>> Jason Villalta
>>> Co-founder
>>> [cid:ii_13a3276a82c64fe9]
>>> 800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>> |
>>> www.RubixTechnology.com<http:/**/www.RubixTechnology.com<http://www.RubixTechnology.com>
>>> ><http**://www <http://www>.
>>> RubixTechnology.com><http://**www.rubixtechnology.com/<http://www.rubixtechnology.com/>
>>> >
>>>
>>>
>>>
>>> --
>>> --
>>> Jason Villalta
>>> Co-founder
>>> [cid:ii_13a3276a82c64fe9]
>>> 800.799.4407<tel:800.799.4407> |
>>> www.RubixTechnology.com<http:/**/www.RubixTechnology.com<http://www.RubixTechnology.com>
>>> ><http**://www.r <http://www.r>
>>> ubixtechnology.com/>
>>>
>>>
>>>
>>>
>>> --
>>> --
>>> Jason Villalta
>>> Co-founder
>>> [cid:ii_13a3276a82c64fe9]
>>> 800.799.4407 |
>>> www.RubixTechnology.com<http:/**/www.rubixtechnology.com/<http://www.rubixtechnology.com/>
>>> >
>>>
>>
>


-- 
-- 
*Jason Villalta*
Co-founder
[image: Inline image 1]
800.799.4407 | www.RubixTechnology.com <http://www.rubixtechnology.com/>

Re: Change qcow disk cache=none

Posted by Wido den Hollander <wi...@widodh.nl>.
On 02/20/2013 05:33 AM, Rajesh Battala wrote:
> Hi Jason,
> If cache=none on the disk then migration of the VM won't work right?.

I did some more reading about this today and it doesn't actually mean 
that migration won't work (or can't).

There is a slight chance that when using something like NFS in async 
mode that writes are still in the page cache of the old hypervisor while 
the guest is already on the new hypervisor.

This COULD lead to filesystem corruption inside the VM, but it doesn't 
have to be that way.

If you use something like GFS or OCFS2 as a shared filesystem it will 
work just fine. Same goes for when you use RBD (which doesn't use the 
page cache at all).

I think you are only in "danger" when you are using async NFS or iSCSI, 
although I'm not completely sure about the latter.

Wido

> I was going through RHEL link https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/6/html-single/Virtualization_Host_Configuration_and_Guest_Installation_Guide/index.html
>
> Migration restrictions
> ============================
> Because device assignment uses hardware on the specific host where the guest was started, migration and save/restore are not supported when device assignment is in use. If the guest operating system supports hot-plugging, assigned devices can be removed prior to the migration or save/restore operation to enable this feature.
> Live migration is only possible between hosts with the same CPU type (that is, Intel to Intel or AMD to AMD only).
> For live migration, both hosts must have the same value set for the No eXecution (NX) bit, either on or off.
> For migration to work, cache=none must be specified for all block devices opened in write mode.
> Warning
> Failing to include the cache=none option can result in disk corruption.
>
> Enabling this feature will have issues with HA right?
>
> Thanks
> Rajesh Battala
>
>
>> -----Original Message-----
>> From: Rajesh Battala [mailto:rajesh.battala@citrix.com]
>> Sent: Tuesday, February 19, 2013 7:43 PM
>> To: cloudstack-dev@incubator.apache.org
>> Subject: RE: Change qcow disk cache=none
>>
>> Great to hear it worked.
>>
>> From: Jason Villalta [mailto:jason@rubixnet.com]
>> Sent: Tuesday, February 19, 2013 7:38 PM
>> To: cloudstack-dev@incubator.apache.org
>> Subject: Re: Change qcow disk cache=none
>>
>> Thanks for all of your help on this guys.  This worked like a charm!
>> On Mon, Feb 18, 2013 at 5:30 AM, Wido den Hollander
>> <wi...@widodh.nl>> wrote:
>> On 02/18/2013 05:49 AM, Rajesh Battala wrote:
>> Sounds great.
>> How are you planning to implement the cache config value.  From GC settings or
>> as part of offering or a dynamic changeable param to the VM.
>>
>> This has been covered by this Jira issue:
>> https://issues.apache.org/jira/browse/CLOUDSTACK-1302
>>
>> Wido
>>
>> Thanks
>> Rajesh Battala
>>
>> From: Jason Villalta [mailto:jason@rubixnet.com<ma...@rubixnet.com>]
>> Sent: Monday, February 18, 2013 9:51 AM
>> To: cloudstack-dev@incubator.apache.org<mailto:cloudstack-
>> dev@incubator.apache.org>
>> Subject: Re: Change qcow disk cache=none
>>
>> Yes I have gotten farther.  I have the hard coded parameter changed and the
>> system Proxy VM is running now but I am running into issues with the secondary
>> storage vm.  Troubleshooting that now.
>>
>> As for the cache setting, I think that still need to be setup as a configurable
>> option without a rebuild.  Once I get the cloud fully functional I will have some
>> time to contribute to this issue.  For now I just need to get this up and running.
>>
>> Thanks,
>>
>> On Sun, Feb 17, 2013 at 11:11 PM, Rajesh Battala
>> <ra...@citrix.com><mailto:rajesh.ba
>> ttala@citrix.com<ma...@citrix.com>>> wrote:
>> Now you were able to build and run the cloud right.!
>>
>> Thanks
>> Rajesh Battala
>>
>> From: Jason Villalta
>> [mailto:jason@rubixnet.com<ma...@rubixnet.com><mailto:jason@rubix
>> net.com<ma...@rubixnet.com>>]
>> Sent: Monday, February 18, 2013 3:59 AM
>> To: cloudstack-dev@incubator.apache.org<mailto:cloudstack-
>> dev@incubator.apache.org><mailto:cloudstack-
>> dev@incubator.apache.org<ma...@incubator.apache.org>>
>> Subject: Re: Change qcow disk cache=none Got it, wrong maven version..
>> On Sun, Feb 17, 2013 at 4:54 PM, Jason Villalta
>> <ja...@rubixnet.com><mailto:jason@rubixnet.co
>> m<ma...@rubixnet.com>><mailto:jason@rubixnet.com<mailto:jason@r
>> ubixnet.com><ma...@rubixnet.com>>>>
>> wrote:
>> I tried this method to build 4.0.0 and I get 3 failed dependencies.  Does
>> something in git need to be updated with different paths?
>>
>> error: error reading /home/sysadmin/.m2/repository/org/apache/axis2/axis2-
>> kernel/1.5.1/axis2-kernel-1.5.1.jar; error in opening zip file
>> error: error reading
>> /home/sysadmin/.m2/repository/org/apache/axis2/mex/1.5.1/mex-1.5.1-
>> impl.jar; error in opening zip file
>> error: error reading /home/sysadmin/.m2/repository/org/apache/axis2/axis2-
>> mtompolicy/1.5.1/axis2-mtompolicy-1.5.1.jar; error in opening zip file
>>
>> On Fri, Feb 15, 2013 at 10:16 AM, Marcus Sorensen
>> <sh...@gmail.com><mailto:shadowsor@
>> gmail.com<ma...@gmail.com>><mailto:shadowsor@gmail.com<m
>> ailto:shadowsor@gmail.com><mailto:shadowsor@gmail.com<mailto:shadows
>> or@gmail.com>>>> wrote:
>> If you just want to change 'none' to 'writeback' or something like that:
>>
>> git clone https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git
>> cd incubator-cloudstack
>> git checkout 4.0
>> vi
>> ./plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtVMD
>> ef.java
>> # look for the one occurrence of 'none' in this file and change it as you see fit
>>
>> Then build your packages
>> (https://cwiki.apache.org/CLOUDSTACK/building-with-
>> maven.html#BuildingwithMaven-BuildingRPMpackages)
>> mvn install -P deps && ./waf rpm
>> or
>> mvn package -P deb
>>
>> If you want the fully configurable experience from GUI, with per disk-offering
>> settings, then you'd open the request, and it may make it into 4.2 in May. Or you
>> could pull the git repo and see if the feature applies to 4.1 and build your own
>> packages in a month or so when the feature branch is ready.
>> On Fri, Feb 15, 2013 at 7:05 AM, Jason Villalta
>> <ja...@rubixnet.com><mailto:jason@rubixnet.co
>> m<ma...@rubixnet.com>><mailto:jason@rubixnet.com<mailto:jason@r
>> ubixnet.com><ma...@rubixnet.com>>>>
>> wrote:
>> So is there anyway to make this work today or will I have to wait until this is
>> properly implemented?  This may mean I need to take another look at openstack
>> or opennebula and switch back.
>>
>> On Fri, Feb 15, 2013 at 9:00 AM, Wido den Hollander
>> <wi...@widodh.nl><mailto:wido@widodh.nl<mailto:w
>> ido@widodh.nl>><ma...@widodh.nl><mailto:wi
>> do@widodh.nl<ma...@widodh.nl>>>> wrote:
>> On 02/15/2013 02:31 PM, Jason Villalta wrote:
>>
>> Is there any way easy way to make this setting dependent on the storage
>> definition?  For example some primary storage may need this set to one value
>> such as cache=writeback such as with the case of ZFS, GlusterFS, CEPH.  Then
>> other storage may want a different setting such as cache=writethough or none
>> which is the case with a local ext4 storage or NFS.
>>
>> Exactly.
>>
>> I brought this up about a week ago, see this thread:
>> http://markmail.org/thread/qmrod55gfmhwzot4
>>
>> It shouldn't be a global property, it should be defined per storage pool, or even
>> better, per disk offering.
>>
>> Right now we are talking about the cache setting, but tomorrow it could be a
>> different setting.
>>
>> Wido
>>
>>
>>
>> On Thu, Feb 14, 2013 at 11:08 PM, Rajesh Battala
>> <ra...@citrix.com><mailto:rajesh.ba
>> ttala@citrix.com<ma...@citrix.com>><mailto:rajesh.battala@cit
>> rix.com<ma...@citrix.com><mailto:rajesh.battala@citrix.com<
>> mailto:rajesh.battala@citrix.com>>>> wrote:
>>
>> Hi Jason Villalta,
>> In LibvirtVmDef.java, there is DiskDef class ,  get the cache value from the Global
>> config, while constructing the xml in the override method the class toString()
>> specify the cache value, currently it is using "none".
>>
>> NOTE: whenever there is change in GC value, MS should restart for the value to
>> take effect.
>>
>> Thanks
>> Rajesh Battala
>> -----Original Message-----
>> From: Rajesh Battala
>> [mailto:rajesh.battala@citrix.com<ma...@citrix.com><mailto:raj
>> esh.battala@citrix.com<ma...@citrix.com>><mailto:rajesh.batt
>> ala@citrix.com<ma...@citrix.com><mailto:rajesh.battala@citrix
>> .com<ma...@citrix.com>>>]
>> Sent: Friday, February 15, 2013 9:22 AM
>> To: cloudstack-users@incubator.apache.org<mailto:cloudstack-
>> users@incubator.apache.org><mailto:cloudstack-
>> users@incubator.apache.org<mailto:cloudstack-
>> users@incubator.apache.org>><mailto:cloudstack-
>> users@incubator.apache.org<mailto:cloudstack-
>> users@incubator.apache.org><mailto:cloudstack-
>> users@incubator.apache.org<mailto:cloudstack-
>> users@incubator.apache.org>>>; cloudstack-
>> dev@incubator.apache.org<ma...@incubator.apache.org><mailto:dev@in
>> cubator.apache.org<ma...@incubator.apache.org>><mailto:dev@incubat
>> or.apache.org<ma...@incubator.apache.org><mailto:dev@incubator.apac
>> he.org<ma...@incubator.apache.org>>>
>> Subject: RE: Change qcow disk cache=none
>>
>> Hi Jason Villalta,
>>
>> Can you raise the ticket for the same. I can work on it if you assign to me.
>>
>> Thanks
>> Rajesh Battala
>> -----Original Message-----
>> From: Edison Su
>> [mailto:Edison.su@citrix.com<ma...@citrix.com><mailto:Edison.su
>> @citrix.com<ma...@citrix.com>><mailto:Edison.su@citrix.com<mail
>> to:Edison.su@citrix.com><mailto:Edison.su@citrix.com<mailto:Edison.su@citri
>> x.com>>>]
>> Sent: Friday, February 15, 2013 4:59 AM
>> To: cloudstack-users@incubator.apache.org<mailto:cloudstack-
>> users@incubator.apache.org><mailto:cloudstack-
>> users@incubator.apache.org<mailto:cloudstack-
>> users@incubator.apache.org>><mailto:cloudstack-
>> users@incubator.apache.org<mailto:cloudstack-
>> users@incubator.apache.org><mailto:cloudstack-
>> users@incubator.apache.org<mailto:cloudstack-
>> users@incubator.apache.org>>>
>> Subject: RE: Change qcow disk cache=none
>>
>> The code is at https://git-wip-us.apache.org/repos/asf?p=incubator-
>> cloudstack.git;a=blob;f=plugins/hypervisors/kvm/src/com/cloud/hypervis
>> or/kv
>> m/resource/LibvirtVMDef.java;h=acfd9cf1fe8eba217f09e20adf3101d1295d51d
>>
>> a;hb=HEAD, search "cache".
>> you can add a global configuration in cloudstack, or add a configuration in
>> agent.properties, to specify cache attribute.
>> -----Original Message-----
>> From: Jason Villalta
>> [mailto:jason@rubixnet.com<ma...@rubixnet.com><mailto:jason@rubix
>> net.com<ma...@rubixnet.com>><mailto:jason@rubixnet.com<mailto:jas
>> on@rubixnet.com><ma...@rubixnet.com>>
>>> ]
>> Sent: Thursday, February 14, 2013 2:16 PM
>> To: cloudstack-users@incubator.apache.org<mailto:cloudstack-
>> users@incubator.apache.org><mailto:cloudstack-
>> users@incubator.apache.org<mailto:cloudstack-
>> users@incubator.apache.org>><mailto:cloudstack-
>> users@incubator.apache.org<mailto:cloudstack-
>> users@incubator.apache.org><mailto:cloudstack-
>> users@incubator.apache.org<mailto:cloudstack-
>> users@incubator.apache.org>>>
>> Subject: Re: Change qcow disk cache=none
>>
>> Ok, I see the folks at openstack ran into a similar issue.
>> https://bugs.launchpad.net/nova/+bug/959637
>>
>> How can I contribute to this?  Can you recommend a part of the code to look at
>> so I can build and test a patch?
>>
>> On Thu, Feb 14, 2013 at 5:13 PM, Edison Su
>> <Ed...@citrix.com><mailto:Edison.su@citrix.
>> com<ma...@citrix.com>><mailto:Edison.su@citrix.com<mailto:Ediso
>> n.su@citrix.com><ma...@citrix.com>>
>>>>
>> wrote:
>>
>> need to change cloudstack java code, right now, it's hard coded to
>>
>> "cache=none".
>>
>> -----Original Message-----
>> From: Jason Villalta
>> [mailto:jason@rubixnet.com<ma...@rubixnet.com><mailto:jason@rubix
>> net.com<ma...@rubixnet.com>><mailto:jason@rubixnet.com<mailto:jas
>> on@rubixnet.com><ma...@rubixnet.com>>
>>> ]
>> Sent: Thursday, February 14, 2013 1:45 PM
>> To: cloudstack-users@incubator.apache.org<mailto:cloudstack-
>> users@incubator.apache.org><mailto:cloudstack-
>> users@incubator.apache.org<mailto:cloudstack-
>> users@incubator.apache.org>><mailto:cloudstack-
>> users@incubator.apache.org<mailto:cloudstack-
>> users@incubator.apache.org><mailto:cloudstack-
>> users@incubator.apache.org<mailto:cloudstack-
>> users@incubator.apache.org>>>
>> Subject: Change qcow disk cache=none
>>
>> Is there a way to change this kvm disk cache setting in Cloudstack or
>>
>> template?
>>
>> If so where is the setting applied?
>>
>> --
>> --
>> Jason Villalta
>> Co-founder
>> 800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>><tel:800
>> .799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>>> |
>> www.RubixTechnology.com<http://www.RubixTechnology.com><http://www.
>> RubixTechnology.com><http://www.RubixTechnology.com>
>>
>>
>>
>>
>> --
>> --
>> Jason Villalta
>> Co-founder
>> 800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>><tel:800
>> .799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>>> |
>> www.RubixTechnology.com<http://www.RubixTechnology.com><http://www.
>> RubixTechnology.com><http://www.RubixTechnology.com>
>>
>>
>>
>>
>>
>>
>>
>> --
>> --
>> Jason Villalta
>> Co-founder
>> 800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>><tel:800
>> .799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>>> |
>> www.RubixTechnology.com<http://www.RubixTechnology.com><http://www.
>> RubixTechnology.com><http://www.RubixTechnology.com>
>>
>>
>>
>> --
>> --
>> Jason Villalta
>> Co-founder
>> [cid:ii_13a3276a82c64fe9]
>> 800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>> |
>> www.RubixTechnology.com<http://www.RubixTechnology.com><http://www.
>> RubixTechnology.com><http://www.rubixtechnology.com/>
>>
>>
>>
>> --
>> --
>> Jason Villalta
>> Co-founder
>> [cid:ii_13a3276a82c64fe9]
>> 800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>> |
>> www.RubixTechnology.com<http://www.RubixTechnology.com><http://www.
>> RubixTechnology.com><http://www.rubixtechnology.com/>
>>
>>
>>
>> --
>> --
>> Jason Villalta
>> Co-founder
>> [cid:ii_13a3276a82c64fe9]
>> 800.799.4407<tel:800.799.4407> |
>> www.RubixTechnology.com<http://www.RubixTechnology.com><http://www.r
>> ubixtechnology.com/>
>>
>>
>>
>>
>> --
>> --
>> Jason Villalta
>> Co-founder
>> [cid:ii_13a3276a82c64fe9]
>> 800.799.4407 |
>> www.RubixTechnology.com<http://www.rubixtechnology.com/>


RE: Change qcow disk cache=none

Posted by Rajesh Battala <ra...@citrix.com>.
Hi Jason,
If cache=none on the disk then migration of the VM won't work right?.
I was going through RHEL link https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/6/html-single/Virtualization_Host_Configuration_and_Guest_Installation_Guide/index.html

Migration restrictions
============================
Because device assignment uses hardware on the specific host where the guest was started, migration and save/restore are not supported when device assignment is in use. If the guest operating system supports hot-plugging, assigned devices can be removed prior to the migration or save/restore operation to enable this feature.
Live migration is only possible between hosts with the same CPU type (that is, Intel to Intel or AMD to AMD only).
For live migration, both hosts must have the same value set for the No eXecution (NX) bit, either on or off.
For migration to work, cache=none must be specified for all block devices opened in write mode.
Warning
Failing to include the cache=none option can result in disk corruption.

Enabling this feature will have issues with HA right?

Thanks
Rajesh Battala


> -----Original Message-----
> From: Rajesh Battala [mailto:rajesh.battala@citrix.com]
> Sent: Tuesday, February 19, 2013 7:43 PM
> To: cloudstack-dev@incubator.apache.org
> Subject: RE: Change qcow disk cache=none
>
> Great to hear it worked.
>
> From: Jason Villalta [mailto:jason@rubixnet.com]
> Sent: Tuesday, February 19, 2013 7:38 PM
> To: cloudstack-dev@incubator.apache.org
> Subject: Re: Change qcow disk cache=none
>
> Thanks for all of your help on this guys.  This worked like a charm!
> On Mon, Feb 18, 2013 at 5:30 AM, Wido den Hollander
> <wi...@widodh.nl>> wrote:
> On 02/18/2013 05:49 AM, Rajesh Battala wrote:
> Sounds great.
> How are you planning to implement the cache config value.  From GC settings or
> as part of offering or a dynamic changeable param to the VM.
>
> This has been covered by this Jira issue:
> https://issues.apache.org/jira/browse/CLOUDSTACK-1302
>
> Wido
>
> Thanks
> Rajesh Battala
>
> From: Jason Villalta [mailto:jason@rubixnet.com<ma...@rubixnet.com>]
> Sent: Monday, February 18, 2013 9:51 AM
> To: cloudstack-dev@incubator.apache.org<mailto:cloudstack-
> dev@incubator.apache.org>
> Subject: Re: Change qcow disk cache=none
>
> Yes I have gotten farther.  I have the hard coded parameter changed and the
> system Proxy VM is running now but I am running into issues with the secondary
> storage vm.  Troubleshooting that now.
>
> As for the cache setting, I think that still need to be setup as a configurable
> option without a rebuild.  Once I get the cloud fully functional I will have some
> time to contribute to this issue.  For now I just need to get this up and running.
>
> Thanks,
>
> On Sun, Feb 17, 2013 at 11:11 PM, Rajesh Battala
> <ra...@citrix.com><mailto:rajesh.ba
> ttala@citrix.com<ma...@citrix.com>>> wrote:
> Now you were able to build and run the cloud right.!
>
> Thanks
> Rajesh Battala
>
> From: Jason Villalta
> [mailto:jason@rubixnet.com<ma...@rubixnet.com><mailto:jason@rubix
> net.com<ma...@rubixnet.com>>]
> Sent: Monday, February 18, 2013 3:59 AM
> To: cloudstack-dev@incubator.apache.org<mailto:cloudstack-
> dev@incubator.apache.org><mailto:cloudstack-
> dev@incubator.apache.org<ma...@incubator.apache.org>>
> Subject: Re: Change qcow disk cache=none Got it, wrong maven version..
> On Sun, Feb 17, 2013 at 4:54 PM, Jason Villalta
> <ja...@rubixnet.com><mailto:jason@rubixnet.co
> m<ma...@rubixnet.com>><mailto:jason@rubixnet.com<mailto:jason@r
> ubixnet.com><ma...@rubixnet.com>>>>
> wrote:
> I tried this method to build 4.0.0 and I get 3 failed dependencies.  Does
> something in git need to be updated with different paths?
>
> error: error reading /home/sysadmin/.m2/repository/org/apache/axis2/axis2-
> kernel/1.5.1/axis2-kernel-1.5.1.jar; error in opening zip file
> error: error reading
> /home/sysadmin/.m2/repository/org/apache/axis2/mex/1.5.1/mex-1.5.1-
> impl.jar; error in opening zip file
> error: error reading /home/sysadmin/.m2/repository/org/apache/axis2/axis2-
> mtompolicy/1.5.1/axis2-mtompolicy-1.5.1.jar; error in opening zip file
>
> On Fri, Feb 15, 2013 at 10:16 AM, Marcus Sorensen
> <sh...@gmail.com><mailto:shadowsor@
> gmail.com<ma...@gmail.com>><mailto:shadowsor@gmail.com<m
> ailto:shadowsor@gmail.com><mailto:shadowsor@gmail.com<mailto:shadows
> or@gmail.com>>>> wrote:
> If you just want to change 'none' to 'writeback' or something like that:
>
> git clone https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git
> cd incubator-cloudstack
> git checkout 4.0
> vi
> ./plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtVMD
> ef.java
> # look for the one occurrence of 'none' in this file and change it as you see fit
>
> Then build your packages
> (https://cwiki.apache.org/CLOUDSTACK/building-with-
> maven.html#BuildingwithMaven-BuildingRPMpackages)
> mvn install -P deps && ./waf rpm
> or
> mvn package -P deb
>
> If you want the fully configurable experience from GUI, with per disk-offering
> settings, then you'd open the request, and it may make it into 4.2 in May. Or you
> could pull the git repo and see if the feature applies to 4.1 and build your own
> packages in a month or so when the feature branch is ready.
> On Fri, Feb 15, 2013 at 7:05 AM, Jason Villalta
> <ja...@rubixnet.com><mailto:jason@rubixnet.co
> m<ma...@rubixnet.com>><mailto:jason@rubixnet.com<mailto:jason@r
> ubixnet.com><ma...@rubixnet.com>>>>
> wrote:
> So is there anyway to make this work today or will I have to wait until this is
> properly implemented?  This may mean I need to take another look at openstack
> or opennebula and switch back.
>
> On Fri, Feb 15, 2013 at 9:00 AM, Wido den Hollander
> <wi...@widodh.nl><mailto:wido@widodh.nl<mailto:w
> ido@widodh.nl>><ma...@widodh.nl><mailto:wi
> do@widodh.nl<ma...@widodh.nl>>>> wrote:
> On 02/15/2013 02:31 PM, Jason Villalta wrote:
>
> Is there any way easy way to make this setting dependent on the storage
> definition?  For example some primary storage may need this set to one value
> such as cache=writeback such as with the case of ZFS, GlusterFS, CEPH.  Then
> other storage may want a different setting such as cache=writethough or none
> which is the case with a local ext4 storage or NFS.
>
> Exactly.
>
> I brought this up about a week ago, see this thread:
> http://markmail.org/thread/qmrod55gfmhwzot4
>
> It shouldn't be a global property, it should be defined per storage pool, or even
> better, per disk offering.
>
> Right now we are talking about the cache setting, but tomorrow it could be a
> different setting.
>
> Wido
>
>
>
> On Thu, Feb 14, 2013 at 11:08 PM, Rajesh Battala
> <ra...@citrix.com><mailto:rajesh.ba
> ttala@citrix.com<ma...@citrix.com>><mailto:rajesh.battala@cit
> rix.com<ma...@citrix.com><mailto:rajesh.battala@citrix.com<
> mailto:rajesh.battala@citrix.com>>>> wrote:
>
> Hi Jason Villalta,
> In LibvirtVmDef.java, there is DiskDef class ,  get the cache value from the Global
> config, while constructing the xml in the override method the class toString()
> specify the cache value, currently it is using "none".
>
> NOTE: whenever there is change in GC value, MS should restart for the value to
> take effect.
>
> Thanks
> Rajesh Battala
> -----Original Message-----
> From: Rajesh Battala
> [mailto:rajesh.battala@citrix.com<ma...@citrix.com><mailto:raj
> esh.battala@citrix.com<ma...@citrix.com>><mailto:rajesh.batt
> ala@citrix.com<ma...@citrix.com><mailto:rajesh.battala@citrix
> .com<ma...@citrix.com>>>]
> Sent: Friday, February 15, 2013 9:22 AM
> To: cloudstack-users@incubator.apache.org<mailto:cloudstack-
> users@incubator.apache.org><mailto:cloudstack-
> users@incubator.apache.org<mailto:cloudstack-
> users@incubator.apache.org>><mailto:cloudstack-
> users@incubator.apache.org<mailto:cloudstack-
> users@incubator.apache.org><mailto:cloudstack-
> users@incubator.apache.org<mailto:cloudstack-
> users@incubator.apache.org>>>; cloudstack-
> dev@incubator.apache.org<ma...@incubator.apache.org><mailto:dev@in
> cubator.apache.org<ma...@incubator.apache.org>><mailto:dev@incubat
> or.apache.org<ma...@incubator.apache.org><mailto:dev@incubator.apac
> he.org<ma...@incubator.apache.org>>>
> Subject: RE: Change qcow disk cache=none
>
> Hi Jason Villalta,
>
> Can you raise the ticket for the same. I can work on it if you assign to me.
>
> Thanks
> Rajesh Battala
> -----Original Message-----
> From: Edison Su
> [mailto:Edison.su@citrix.com<ma...@citrix.com><mailto:Edison.su
> @citrix.com<ma...@citrix.com>><mailto:Edison.su@citrix.com<mail
> to:Edison.su@citrix.com><mailto:Edison.su@citrix.com<mailto:Edison.su@citri
> x.com>>>]
> Sent: Friday, February 15, 2013 4:59 AM
> To: cloudstack-users@incubator.apache.org<mailto:cloudstack-
> users@incubator.apache.org><mailto:cloudstack-
> users@incubator.apache.org<mailto:cloudstack-
> users@incubator.apache.org>><mailto:cloudstack-
> users@incubator.apache.org<mailto:cloudstack-
> users@incubator.apache.org><mailto:cloudstack-
> users@incubator.apache.org<mailto:cloudstack-
> users@incubator.apache.org>>>
> Subject: RE: Change qcow disk cache=none
>
> The code is at https://git-wip-us.apache.org/repos/asf?p=incubator-
> cloudstack.git;a=blob;f=plugins/hypervisors/kvm/src/com/cloud/hypervis
> or/kv
> m/resource/LibvirtVMDef.java;h=acfd9cf1fe8eba217f09e20adf3101d1295d51d
>
> a;hb=HEAD, search "cache".
> you can add a global configuration in cloudstack, or add a configuration in
> agent.properties, to specify cache attribute.
> -----Original Message-----
> From: Jason Villalta
> [mailto:jason@rubixnet.com<ma...@rubixnet.com><mailto:jason@rubix
> net.com<ma...@rubixnet.com>><mailto:jason@rubixnet.com<mailto:jas
> on@rubixnet.com><ma...@rubixnet.com>>
> >]
> Sent: Thursday, February 14, 2013 2:16 PM
> To: cloudstack-users@incubator.apache.org<mailto:cloudstack-
> users@incubator.apache.org><mailto:cloudstack-
> users@incubator.apache.org<mailto:cloudstack-
> users@incubator.apache.org>><mailto:cloudstack-
> users@incubator.apache.org<mailto:cloudstack-
> users@incubator.apache.org><mailto:cloudstack-
> users@incubator.apache.org<mailto:cloudstack-
> users@incubator.apache.org>>>
> Subject: Re: Change qcow disk cache=none
>
> Ok, I see the folks at openstack ran into a similar issue.
> https://bugs.launchpad.net/nova/+bug/959637
>
> How can I contribute to this?  Can you recommend a part of the code to look at
> so I can build and test a patch?
>
> On Thu, Feb 14, 2013 at 5:13 PM, Edison Su
> <Ed...@citrix.com><mailto:Edison.su@citrix.
> com<ma...@citrix.com>><mailto:Edison.su@citrix.com<mailto:Ediso
> n.su@citrix.com><ma...@citrix.com>>
> >>
> wrote:
>
> need to change cloudstack java code, right now, it's hard coded to
>
> "cache=none".
>
> -----Original Message-----
> From: Jason Villalta
> [mailto:jason@rubixnet.com<ma...@rubixnet.com><mailto:jason@rubix
> net.com<ma...@rubixnet.com>><mailto:jason@rubixnet.com<mailto:jas
> on@rubixnet.com><ma...@rubixnet.com>>
> >]
> Sent: Thursday, February 14, 2013 1:45 PM
> To: cloudstack-users@incubator.apache.org<mailto:cloudstack-
> users@incubator.apache.org><mailto:cloudstack-
> users@incubator.apache.org<mailto:cloudstack-
> users@incubator.apache.org>><mailto:cloudstack-
> users@incubator.apache.org<mailto:cloudstack-
> users@incubator.apache.org><mailto:cloudstack-
> users@incubator.apache.org<mailto:cloudstack-
> users@incubator.apache.org>>>
> Subject: Change qcow disk cache=none
>
> Is there a way to change this kvm disk cache setting in Cloudstack or
>
> template?
>
> If so where is the setting applied?
>
> --
> --
> Jason Villalta
> Co-founder
> 800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>><tel:800
> .799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>>> |
> www.RubixTechnology.com<http://www.RubixTechnology.com><http://www.
> RubixTechnology.com><http://www.RubixTechnology.com>
>
>
>
>
> --
> --
> Jason Villalta
> Co-founder
> 800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>><tel:800
> .799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>>> |
> www.RubixTechnology.com<http://www.RubixTechnology.com><http://www.
> RubixTechnology.com><http://www.RubixTechnology.com>
>
>
>
>
>
>
>
> --
> --
> Jason Villalta
> Co-founder
> 800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>><tel:800
> .799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>>> |
> www.RubixTechnology.com<http://www.RubixTechnology.com><http://www.
> RubixTechnology.com><http://www.RubixTechnology.com>
>
>
>
> --
> --
> Jason Villalta
> Co-founder
> [cid:ii_13a3276a82c64fe9]
> 800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>> |
> www.RubixTechnology.com<http://www.RubixTechnology.com><http://www.
> RubixTechnology.com><http://www.rubixtechnology.com/>
>
>
>
> --
> --
> Jason Villalta
> Co-founder
> [cid:ii_13a3276a82c64fe9]
> 800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>> |
> www.RubixTechnology.com<http://www.RubixTechnology.com><http://www.
> RubixTechnology.com><http://www.rubixtechnology.com/>
>
>
>
> --
> --
> Jason Villalta
> Co-founder
> [cid:ii_13a3276a82c64fe9]
> 800.799.4407<tel:800.799.4407> |
> www.RubixTechnology.com<http://www.RubixTechnology.com><http://www.r
> ubixtechnology.com/>
>
>
>
>
> --
> --
> Jason Villalta
> Co-founder
> [cid:ii_13a3276a82c64fe9]
> 800.799.4407 |
> www.RubixTechnology.com<http://www.rubixtechnology.com/>

RE: Change qcow disk cache=none

Posted by Rajesh Battala <ra...@citrix.com>.
Great to hear it worked.

From: Jason Villalta [mailto:jason@rubixnet.com]
Sent: Tuesday, February 19, 2013 7:38 PM
To: cloudstack-dev@incubator.apache.org
Subject: Re: Change qcow disk cache=none

Thanks for all of your help on this guys.  This worked like a charm!
On Mon, Feb 18, 2013 at 5:30 AM, Wido den Hollander <wi...@widodh.nl>> wrote:
On 02/18/2013 05:49 AM, Rajesh Battala wrote:
Sounds great.
How are you planning to implement the cache config value.  From GC settings or as part of offering or a dynamic changeable param to the VM.

This has been covered by this Jira issue: https://issues.apache.org/jira/browse/CLOUDSTACK-1302

Wido

Thanks
Rajesh Battala

From: Jason Villalta [mailto:jason@rubixnet.com<ma...@rubixnet.com>]
Sent: Monday, February 18, 2013 9:51 AM
To: cloudstack-dev@incubator.apache.org<ma...@incubator.apache.org>
Subject: Re: Change qcow disk cache=none

Yes I have gotten farther.  I have the hard coded parameter changed and the system Proxy VM is running now but I am running into issues with the secondary storage vm.  Troubleshooting that now.

As for the cache setting, I think that still need to be setup as a configurable option without a rebuild.  Once I get the cloud fully functional I will have some time to contribute to this issue.  For now I just need to get this up and running.

Thanks,

On Sun, Feb 17, 2013 at 11:11 PM, Rajesh Battala <ra...@citrix.com>>> wrote:
Now you were able to build and run the cloud right.!

Thanks
Rajesh Battala

From: Jason Villalta [mailto:jason@rubixnet.com<ma...@rubixnet.com>>]
Sent: Monday, February 18, 2013 3:59 AM
To: cloudstack-dev@incubator.apache.org<ma...@incubator.apache.org>>
Subject: Re: Change qcow disk cache=none
Got it, wrong maven version..
On Sun, Feb 17, 2013 at 4:54 PM, Jason Villalta <ja...@rubixnet.com>>>> wrote:
I tried this method to build 4.0.0 and I get 3 failed dependencies.  Does something in git need to be updated with different paths?

error: error reading /home/sysadmin/.m2/repository/org/apache/axis2/axis2-kernel/1.5.1/axis2-kernel-1.5.1.jar; error in opening zip file
error: error reading /home/sysadmin/.m2/repository/org/apache/axis2/mex/1.5.1/mex-1.5.1-impl.jar; error in opening zip file
error: error reading /home/sysadmin/.m2/repository/org/apache/axis2/axis2-mtompolicy/1.5.1/axis2-mtompolicy-1.5.1.jar; error in opening zip file

On Fri, Feb 15, 2013 at 10:16 AM, Marcus Sorensen <sh...@gmail.com>>>> wrote:
If you just want to change 'none' to 'writeback' or something like that:

git clone https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git
cd incubator-cloudstack
git checkout 4.0
vi ./plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtVMDef.java
# look for the one occurrence of 'none' in this file and change it as
you see fit

Then build your packages
(https://cwiki.apache.org/CLOUDSTACK/building-with-maven.html#BuildingwithMaven-BuildingRPMpackages)
mvn install -P deps && ./waf rpm
or
mvn package -P deb

If you want the fully configurable experience from GUI, with per
disk-offering settings, then you'd open the request, and it may make
it into 4.2 in May. Or you could pull the git repo and see if the
feature applies to 4.1 and build your own packages in a month or so
when the feature branch is ready.
On Fri, Feb 15, 2013 at 7:05 AM, Jason Villalta <ja...@rubixnet.com>>>> wrote:
So is there anyway to make this work today or will I have to wait
until this is properly implemented?  This may mean I need to take
another look at openstack or opennebula and switch back.

On Fri, Feb 15, 2013 at 9:00 AM, Wido den Hollander <wi...@widodh.nl>>>> wrote:
On 02/15/2013 02:31 PM, Jason Villalta wrote:

Is there any way easy way to make this setting dependent on the
storage definition?  For example some primary storage may need this
set to one value such as cache=writeback such as with the case of ZFS,
GlusterFS, CEPH.  Then other storage may want a different setting such
as cache=writethough or none which is the case with a local ext4
storage or NFS.

Exactly.

I brought this up about a week ago, see this thread:
http://markmail.org/thread/qmrod55gfmhwzot4

It shouldn't be a global property, it should be defined per storage pool, or
even better, per disk offering.

Right now we are talking about the cache setting, but tomorrow it could be a
different setting.

Wido



On Thu, Feb 14, 2013 at 11:08 PM, Rajesh Battala
<ra...@citrix.com>>>> wrote:

Hi Jason Villalta,
In LibvirtVmDef.java, there is DiskDef class ,  get the cache value from
the Global config, while constructing the xml in the override method the
class toString() specify the cache value, currently it is using "none".

NOTE: whenever there is change in GC value, MS should restart for the
value to take effect.

Thanks
Rajesh Battala
-----Original Message-----
From: Rajesh Battala [mailto:rajesh.battala@citrix.com<ma...@citrix.com>>>]
Sent: Friday, February 15, 2013 9:22 AM
To: cloudstack-users@incubator.apache.org<ma...@incubator.apache.org>>>; cloudstack-
dev@incubator.apache.org<ma...@incubator.apache.org>>>
Subject: RE: Change qcow disk cache=none

Hi Jason Villalta,

Can you raise the ticket for the same. I can work on it if you assign to
me.

Thanks
Rajesh Battala
-----Original Message-----
From: Edison Su [mailto:Edison.su@citrix.com<ma...@citrix.com>>>]
Sent: Friday, February 15, 2013 4:59 AM
To: cloudstack-users@incubator.apache.org<ma...@incubator.apache.org>>>
Subject: RE: Change qcow disk cache=none

The code is at https://git-wip-us.apache.org/repos/asf?p=incubator-
cloudstack.git;a=blob;f=plugins/hypervisors/kvm/src/com/cloud/hypervis
or/kv
m/resource/LibvirtVMDef.java;h=acfd9cf1fe8eba217f09e20adf3101d1295d51d

a;hb=HEAD, search "cache".
you can add a global configuration in cloudstack, or add a
configuration in agent.properties, to specify cache attribute.
-----Original Message-----
From: Jason Villalta [mailto:jason@rubixnet.com<ma...@rubixnet.com>>>]
Sent: Thursday, February 14, 2013 2:16 PM
To: cloudstack-users@incubator.apache.org<ma...@incubator.apache.org>>>
Subject: Re: Change qcow disk cache=none

Ok, I see the folks at openstack ran into a similar issue.
https://bugs.launchpad.net/nova/+bug/959637

How can I contribute to this?  Can you recommend a part of the code
to look at so I can build and test a patch?

On Thu, Feb 14, 2013 at 5:13 PM, Edison Su <Ed...@citrix.com>>>>
wrote:

need to change cloudstack java code, right now, it's hard coded to

"cache=none".

-----Original Message-----
From: Jason Villalta [mailto:jason@rubixnet.com<ma...@rubixnet.com>>>]
Sent: Thursday, February 14, 2013 1:45 PM
To: cloudstack-users@incubator.apache.org<ma...@incubator.apache.org>>>
Subject: Change qcow disk cache=none

Is there a way to change this kvm disk cache setting in
Cloudstack or

template?

If so where is the setting applied?

--
--
Jason Villalta
Co-founder
800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>><tel:800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>>> | www.RubixTechnology.com<http://www.RubixTechnology.com><http://www.RubixTechnology.com><http://www.RubixTechnology.com>




--
--
Jason Villalta
Co-founder
800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>><tel:800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>>> | www.RubixTechnology.com<http://www.RubixTechnology.com><http://www.RubixTechnology.com><http://www.RubixTechnology.com>







--
--
Jason Villalta
Co-founder
800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>><tel:800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>>> | www.RubixTechnology.com<http://www.RubixTechnology.com><http://www.RubixTechnology.com><http://www.RubixTechnology.com>



--
--
Jason Villalta
Co-founder
[cid:ii_13a3276a82c64fe9]
800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>> | www.RubixTechnology.com<http://www.RubixTechnology.com><http://www.RubixTechnology.com><http://www.rubixtechnology.com/>



--
--
Jason Villalta
Co-founder
[cid:ii_13a3276a82c64fe9]
800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>> | www.RubixTechnology.com<http://www.RubixTechnology.com><http://www.RubixTechnology.com><http://www.rubixtechnology.com/>



--
--
Jason Villalta
Co-founder
[cid:ii_13a3276a82c64fe9]
800.799.4407<tel:800.799.4407> | www.RubixTechnology.com<http://www.RubixTechnology.com><http://www.rubixtechnology.com/>




--
--
Jason Villalta
Co-founder
[cid:ii_13a3276a82c64fe9]
800.799.4407 | www.RubixTechnology.com<http://www.rubixtechnology.com/>

Re: Change qcow disk cache=none

Posted by Chiradeep Vittal <Ch...@citrix.com>.
Great. Looking forward to the patch

From: Jason Villalta <ja...@rubixnet.com>>
Reply-To: CloudStack DeveloperList <cl...@incubator.apache.org>>
Date: Tuesday, February 19, 2013 6:07 AM
To: CloudStack DeveloperList <cl...@incubator.apache.org>>
Subject: Re: Change qcow disk cache=none

Thanks for all of your help on this guys.  This worked like a charm!

On Mon, Feb 18, 2013 at 5:30 AM, Wido den Hollander <wi...@widodh.nl>> wrote:
On 02/18/2013 05:49 AM, Rajesh Battala wrote:
Sounds great.
How are you planning to implement the cache config value.  From GC settings or as part of offering or a dynamic changeable param to the VM.


This has been covered by this Jira issue: https://issues.apache.org/jira/browse/CLOUDSTACK-1302

Wido


Thanks
Rajesh Battala

From: Jason Villalta [mailto:jason@rubixnet.com<ma...@rubixnet.com>]
Sent: Monday, February 18, 2013 9:51 AM
To: cloudstack-dev@incubator.apache.org<ma...@incubator.apache.org>
Subject: Re: Change qcow disk cache=none

Yes I have gotten farther.  I have the hard coded parameter changed and the system Proxy VM is running now but I am running into issues with the secondary storage vm.  Troubleshooting that now.

As for the cache setting, I think that still need to be setup as a configurable option without a rebuild.  Once I get the cloud fully functional I will have some time to contribute to this issue.  For now I just need to get this up and running.

Thanks,

On Sun, Feb 17, 2013 at 11:11 PM, Rajesh Battala <ra...@citrix.com>>> wrote:
Now you were able to build and run the cloud right.!

Thanks
Rajesh Battala

From: Jason Villalta [mailto:jason@rubixnet.com<ma...@rubixnet.com>>]
Sent: Monday, February 18, 2013 3:59 AM
To: cloudstack-dev@incubator.apache.org<ma...@incubator.apache.org>>
Subject: Re: Change qcow disk cache=none
Got it, wrong maven version..
On Sun, Feb 17, 2013 at 4:54 PM, Jason Villalta <ja...@rubixnet.com>>>> wrote:
I tried this method to build 4.0.0 and I get 3 failed dependencies.  Does something in git need to be updated with different paths?

error: error reading /home/sysadmin/.m2/repository/org/apache/axis2/axis2-kernel/1.5.1/axis2-kernel-1.5.1.jar; error in opening zip file
error: error reading /home/sysadmin/.m2/repository/org/apache/axis2/mex/1.5.1/mex-1.5.1-impl.jar; error in opening zip file
error: error reading /home/sysadmin/.m2/repository/org/apache/axis2/axis2-mtompolicy/1.5.1/axis2-mtompolicy-1.5.1.jar; error in opening zip file

On Fri, Feb 15, 2013 at 10:16 AM, Marcus Sorensen <sh...@gmail.com>>>> wrote:
If you just want to change 'none' to 'writeback' or something like that:

git clone https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git
cd incubator-cloudstack
git checkout 4.0
vi ./plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtVMDef.java
# look for the one occurrence of 'none' in this file and change it as
you see fit

Then build your packages
(https://cwiki.apache.org/CLOUDSTACK/building-with-maven.html#BuildingwithMaven-BuildingRPMpackages)
mvn install -P deps && ./waf rpm
or
mvn package -P deb

If you want the fully configurable experience from GUI, with per
disk-offering settings, then you'd open the request, and it may make
it into 4.2 in May. Or you could pull the git repo and see if the
feature applies to 4.1 and build your own packages in a month or so
when the feature branch is ready.
On Fri, Feb 15, 2013 at 7:05 AM, Jason Villalta <ja...@rubixnet.com>>>> wrote:
So is there anyway to make this work today or will I have to wait
until this is properly implemented?  This may mean I need to take
another look at openstack or opennebula and switch back.

On Fri, Feb 15, 2013 at 9:00 AM, Wido den Hollander <wi...@widodh.nl>>>> wrote:
On 02/15/2013 02:31 PM, Jason Villalta wrote:

Is there any way easy way to make this setting dependent on the
storage definition?  For example some primary storage may need this
set to one value such as cache=writeback such as with the case of ZFS,
GlusterFS, CEPH.  Then other storage may want a different setting such
as cache=writethough or none which is the case with a local ext4
storage or NFS.


Exactly.

I brought this up about a week ago, see this thread:
http://markmail.org/thread/qmrod55gfmhwzot4

It shouldn't be a global property, it should be defined per storage pool, or
even better, per disk offering.

Right now we are talking about the cache setting, but tomorrow it could be a
different setting.

Wido




On Thu, Feb 14, 2013 at 11:08 PM, Rajesh Battala
<ra...@citrix.com>>>> wrote:

Hi Jason Villalta,
In LibvirtVmDef.java, there is DiskDef class ,  get the cache value from
the Global config, while constructing the xml in the override method the
class toString() specify the cache value, currently it is using "none".

NOTE: whenever there is change in GC value, MS should restart for the
value to take effect.

Thanks
Rajesh Battala

-----Original Message-----
From: Rajesh Battala [mailto:rajesh.battala@citrix.com<ma...@citrix.com>>>]
Sent: Friday, February 15, 2013 9:22 AM
To: cloudstack-users@incubator.apache.org<ma...@incubator.apache.org>>>; cloudstack-
dev@incubator.apache.org<ma...@incubator.apache.org>>>
Subject: RE: Change qcow disk cache=none

Hi Jason Villalta,

Can you raise the ticket for the same. I can work on it if you assign to
me.

Thanks
Rajesh Battala

-----Original Message-----
From: Edison Su [mailto:Edison.su@citrix.com<ma...@citrix.com>>>]
Sent: Friday, February 15, 2013 4:59 AM
To: cloudstack-users@incubator.apache.org<ma...@incubator.apache.org>>>
Subject: RE: Change qcow disk cache=none

The code is at https://git-wip-us.apache.org/repos/asf?p=incubator-
cloudstack.git;a=blob;f=plugins/hypervisors/kvm/src/com/cloud/hypervis
or/kv

m/resource/LibvirtVMDef.java;h=acfd9cf1fe8eba217f09e20adf3101d1295d51d

a;hb=HEAD, search "cache".
you can add a global configuration in cloudstack, or add a
configuration in agent.properties, to specify cache attribute.

-----Original Message-----
From: Jason Villalta [mailto:jason@rubixnet.com<ma...@rubixnet.com>>>]
Sent: Thursday, February 14, 2013 2:16 PM
To: cloudstack-users@incubator.apache.org<ma...@incubator.apache.org>>>
Subject: Re: Change qcow disk cache=none

Ok, I see the folks at openstack ran into a similar issue.
https://bugs.launchpad.net/nova/+bug/959637

How can I contribute to this?  Can you recommend a part of the code
to look at so I can build and test a patch?

On Thu, Feb 14, 2013 at 5:13 PM, Edison Su <Ed...@citrix.com>>>>
wrote:

need to change cloudstack java code, right now, it's hard coded to

"cache=none".


-----Original Message-----
From: Jason Villalta [mailto:jason@rubixnet.com<ma...@rubixnet.com>>>]
Sent: Thursday, February 14, 2013 1:45 PM
To: cloudstack-users@incubator.apache.org<ma...@incubator.apache.org>>>
Subject: Change qcow disk cache=none

Is there a way to change this kvm disk cache setting in
Cloudstack or

template?

If so where is the setting applied?

--
--
Jason Villalta
Co-founder
800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>><tel:800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>>> | www.RubixTechnology.com<http://www.RubixTechnology.com><http://www.RubixTechnology.com><http://www.RubixTechnology.com>




--
--
Jason Villalta
Co-founder
800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>><tel:800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>>> | www.RubixTechnology.com<http://www.RubixTechnology.com><http://www.RubixTechnology.com><http://www.RubixTechnology.com>








--
--
Jason Villalta
Co-founder
800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>><tel:800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>>> | www.RubixTechnology.com<http://www.RubixTechnology.com><http://www.RubixTechnology.com><http://www.RubixTechnology.com>



--
--
Jason Villalta
Co-founder
[cid:ii_13a3276a82c64fe9]
800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>> | www.RubixTechnology.com<http://www.RubixTechnology.com><http://www.RubixTechnology.com><http://www.rubixtechnology.com/>



--
--
Jason Villalta
Co-founder
[cid:ii_13a3276a82c64fe9]
800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>> | www.RubixTechnology.com<http://www.RubixTechnology.com><http://www.RubixTechnology.com><http://www.rubixtechnology.com/>



--
--
Jason Villalta
Co-founder
[cid:ii_13a3276a82c64fe9]
800.799.4407<tel:800.799.4407> | www.RubixTechnology.com<http://www.RubixTechnology.com><http://www.rubixtechnology.com/>





--
--
Jason Villalta
Co-founder
[cid:ii_13a3276a82c64fe9]
800.799.4407 | www.RubixTechnology.com<http://www.rubixtechnology.com/>

Re: Change qcow disk cache=none

Posted by Jason Villalta <ja...@rubixnet.com>.
Thanks for all of your help on this guys.  This worked like a charm!

On Mon, Feb 18, 2013 at 5:30 AM, Wido den Hollander <wi...@widodh.nl> wrote:

> On 02/18/2013 05:49 AM, Rajesh Battala wrote:
>
>> Sounds great.
>> How are you planning to implement the cache config value.  From GC
>> settings or as part of offering or a dynamic changeable param to the VM.
>>
>>
> This has been covered by this Jira issue: https://issues.apache.org/**
> jira/browse/CLOUDSTACK-1302<https://issues.apache.org/jira/browse/CLOUDSTACK-1302>
>
> Wido
>
>
>  Thanks
>> Rajesh Battala
>>
>> From: Jason Villalta [mailto:jason@rubixnet.com]
>> Sent: Monday, February 18, 2013 9:51 AM
>> To: cloudstack-dev@incubator.**apache.org<cl...@incubator.apache.org>
>> Subject: Re: Change qcow disk cache=none
>>
>> Yes I have gotten farther.  I have the hard coded parameter changed and
>> the system Proxy VM is running now but I am running into issues with the
>> secondary storage vm.  Troubleshooting that now.
>>
>> As for the cache setting, I think that still need to be setup as a
>> configurable option without a rebuild.  Once I get the cloud fully
>> functional I will have some time to contribute to this issue.  For now I
>> just need to get this up and running.
>>
>> Thanks,
>>
>> On Sun, Feb 17, 2013 at 11:11 PM, Rajesh Battala <
>> rajesh.battala@citrix.com<**...@citrix.com>>>
>> wrote:
>> Now you were able to build and run the cloud right.!
>>
>> Thanks
>> Rajesh Battala
>>
>> From: Jason Villalta [mailto:jason@rubixnet.com<**mailto:
>> jason@rubixnet.com>]
>> Sent: Monday, February 18, 2013 3:59 AM
>> To: cloudstack-dev@incubator.**apache.org<cl...@incubator.apache.org>
>> <ma...@incubator.apache.org>
>> >
>> Subject: Re: Change qcow disk cache=none
>> Got it, wrong maven version..
>> On Sun, Feb 17, 2013 at 4:54 PM, Jason Villalta <jason@rubixnet.com
>> <mailto:jas**on@rubixnet.com <ja...@rubixnet.com>><mailto:jason@**
>> rubixnet.com <ja...@rubixnet.com>>>>
>> wrote:
>> I tried this method to build 4.0.0 and I get 3 failed dependencies.  Does
>> something in git need to be updated with different paths?
>>
>> error: error reading /home/sysadmin/.m2/repository/**
>> org/apache/axis2/axis2-kernel/**1.5.1/axis2-kernel-1.5.1.jar; error in
>> opening zip file
>> error: error reading /home/sysadmin/.m2/repository/**
>> org/apache/axis2/mex/1.5.1/**mex-1.5.1-impl.jar; error in opening zip
>> file
>> error: error reading /home/sysadmin/.m2/repository/**
>> org/apache/axis2/axis2-**mtompolicy/1.5.1/axis2-**mtompolicy-1.5.1.jar;
>> error in opening zip file
>>
>> On Fri, Feb 15, 2013 at 10:16 AM, Marcus Sorensen <shadowsor@gmail.com
>> <mailto:sh**adowsor@gmail.com <sh...@gmail.com>><mailto:shad**
>> owsor@gmail.com <sh...@gmail.com>>>>
>> wrote:
>> If you just want to change 'none' to 'writeback' or something like that:
>>
>> git clone https://git-wip-us.apache.org/**repos/asf/incubator-**
>> cloudstack.git<https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git>
>> cd incubator-cloudstack
>> git checkout 4.0
>> vi ./plugins/hypervisors/kvm/src/**com/cloud/hypervisor/kvm/**
>> resource/LibvirtVMDef.java
>> # look for the one occurrence of 'none' in this file and change it as
>> you see fit
>>
>> Then build your packages
>> (https://cwiki.apache.org/**CLOUDSTACK/building-with-**
>> maven.html#BuildingwithMaven-**BuildingRPMpackages<https://cwiki.apache.org/CLOUDSTACK/building-with-maven.html#BuildingwithMaven-BuildingRPMpackages>
>> )
>> mvn install -P deps && ./waf rpm
>> or
>> mvn package -P deb
>>
>> If you want the fully configurable experience from GUI, with per
>> disk-offering settings, then you'd open the request, and it may make
>> it into 4.2 in May. Or you could pull the git repo and see if the
>> feature applies to 4.1 and build your own packages in a month or so
>> when the feature branch is ready.
>> On Fri, Feb 15, 2013 at 7:05 AM, Jason Villalta <jason@rubixnet.com
>> <mailto:jas**on@rubixnet.com <ja...@rubixnet.com>><mailto:jason@**
>> rubixnet.com <ja...@rubixnet.com>>>>
>> wrote:
>>
>>> So is there anyway to make this work today or will I have to wait
>>> until this is properly implemented?  This may mean I need to take
>>> another look at openstack or opennebula and switch back.
>>>
>>> On Fri, Feb 15, 2013 at 9:00 AM, Wido den Hollander <wido@widodh.nl
>>> <mailto:wido@**widodh.nl <wi...@widodh.nl>
>>> <ma...@widodh.nl>>> wrote:
>>>
>>>> On 02/15/2013 02:31 PM, Jason Villalta wrote:
>>>>
>>>>>
>>>>> Is there any way easy way to make this setting dependent on the
>>>>> storage definition?  For example some primary storage may need this
>>>>> set to one value such as cache=writeback such as with the case of ZFS,
>>>>> GlusterFS, CEPH.  Then other storage may want a different setting such
>>>>> as cache=writethough or none which is the case with a local ext4
>>>>> storage or NFS.
>>>>>
>>>>>
>>>> Exactly.
>>>>
>>>> I brought this up about a week ago, see this thread:
>>>> http://markmail.org/thread/**qmrod55gfmhwzot4<http://markmail.org/thread/qmrod55gfmhwzot4>
>>>>
>>>> It shouldn't be a global property, it should be defined per storage
>>>> pool, or
>>>> even better, per disk offering.
>>>>
>>>> Right now we are talking about the cache setting, but tomorrow it could
>>>> be a
>>>> different setting.
>>>>
>>>> Wido
>>>>
>>>>
>>>>
>>>>>
>>>>> On Thu, Feb 14, 2013 at 11:08 PM, Rajesh Battala
>>>>> <ra...@citrix.com>
>>>>> ><mailto:rajesh.battala@**citrix.com <ra...@citrix.com>
>>>>> <mailto:rajesh.**battala@citrix.com <ra...@citrix.com>>>>
>>>>> wrote:
>>>>>
>>>>>>
>>>>>> Hi Jason Villalta,
>>>>>> In LibvirtVmDef.java, there is DiskDef class ,  get the cache value
>>>>>> from
>>>>>> the Global config, while constructing the xml in the override method
>>>>>> the
>>>>>> class toString() specify the cache value, currently it is using
>>>>>> "none".
>>>>>>
>>>>>> NOTE: whenever there is change in GC value, MS should restart for the
>>>>>> value to take effect.
>>>>>>
>>>>>> Thanks
>>>>>> Rajesh Battala
>>>>>>
>>>>>>  -----Original Message-----
>>>>>>> From: Rajesh Battala [mailto:rajesh.battala@citrix.**com<ra...@citrix.com>
>>>>>>> <mailto:rajesh.battala@**citrix.com <ra...@citrix.com>
>>>>>>> ><mailto:rajesh.**battala@citrix.com <ra...@citrix.com>
>>>>>>> <mailto:raje**sh.battala@citrix.com <ra...@citrix.com>>>]
>>>>>>> Sent: Friday, February 15, 2013 9:22 AM
>>>>>>> To: cloudstack-users@incubator.**apache.org<cl...@incubator.apache.org>
>>>>>>> <ma...@incubator.apache.org>
>>>>>>> ><**...@incubator.apache.org>
>>>>>>> <ma...@incubator.apache.org>>>;
>>>>>>> cloudstack-
>>>>>>> dev@incubator.apache.org<**...@incubator.apache.org>
>>>>>>> ><mailto:dev@incubator.**apache.org <de...@incubator.apache.org>
>>>>>>> <mailto:dev@**incubator.apache.org <de...@incubator.apache.org>>>
>>>>>>> Subject: RE: Change qcow disk cache=none
>>>>>>>
>>>>>>> Hi Jason Villalta,
>>>>>>>
>>>>>>> Can you raise the ticket for the same. I can work on it if you
>>>>>>> assign to
>>>>>>> me.
>>>>>>>
>>>>>>> Thanks
>>>>>>> Rajesh Battala
>>>>>>>
>>>>>>>  -----Original Message-----
>>>>>>>> From: Edison Su [mailto:Edison.su@citrix.com<**mailto:
>>>>>>>> Edison.su@citrix.com><**mailto:Edison.su@citrix.com<**mailto:
>>>>>>>> Edison.su@citrix.com>>]
>>>>>>>> Sent: Friday, February 15, 2013 4:59 AM
>>>>>>>> To: cloudstack-users@incubator.**apache.org<cl...@incubator.apache.org>
>>>>>>>> <ma...@incubator.apache.org>
>>>>>>>> ><**...@incubator.apache.org>
>>>>>>>> <ma...@incubator.apache.org>
>>>>>>>> >>
>>>>>>>> Subject: RE: Change qcow disk cache=none
>>>>>>>>
>>>>>>>> The code is at https://git-wip-us.apache.org/**
>>>>>>>> repos/asf?p=incubator-<https://git-wip-us.apache.org/repos/asf?p=incubator->
>>>>>>>> cloudstack.git;a=blob;f=**plugins/hypervisors/kvm/src/**
>>>>>>>> com/cloud/hypervis
>>>>>>>> or/kv
>>>>>>>>
>>>>>>>>  m/resource/LibvirtVMDef.java;**h=**acfd9cf1fe8eba217f09e20adf3101*
>>>>>>> *d1295d51d
>>>>>>>
>>>>>>>>
>>>>>>>> a;hb=HEAD, search "cache".
>>>>>>>> you can add a global configuration in cloudstack, or add a
>>>>>>>> configuration in agent.properties, to specify cache attribute.
>>>>>>>>
>>>>>>>>  -----Original Message-----
>>>>>>>>> From: Jason Villalta [mailto:jason@rubixnet.com<**mailto:
>>>>>>>>> jason@rubixnet.com><**mailto:jason@rubixnet.com<**mailto:
>>>>>>>>> jason@rubixnet.com>>]
>>>>>>>>> Sent: Thursday, February 14, 2013 2:16 PM
>>>>>>>>> To: cloudstack-users@incubator.**apache.org<cl...@incubator.apache.org>
>>>>>>>>> <ma...@incubator.apache.org>
>>>>>>>>> ><**...@incubator.apache.org>
>>>>>>>>> <ma...@incubator.apache.org>
>>>>>>>>> >>
>>>>>>>>> Subject: Re: Change qcow disk cache=none
>>>>>>>>>
>>>>>>>>> Ok, I see the folks at openstack ran into a similar issue.
>>>>>>>>> https://bugs.launchpad.net/**nova/+bug/959637<https://bugs.launchpad.net/nova/+bug/959637>
>>>>>>>>>
>>>>>>>>> How can I contribute to this?  Can you recommend a part of the code
>>>>>>>>> to look at so I can build and test a patch?
>>>>>>>>>
>>>>>>>>> On Thu, Feb 14, 2013 at 5:13 PM, Edison Su <Edison.su@citrix.com
>>>>>>>>> <mailto:E**dison.su@citrix.com <Ed...@citrix.com>><mailto:Ed**
>>>>>>>>> ison.su@citrix.com <Ed...@citrix.com><mailto:Edis**
>>>>>>>>> on.su@citrix.com <Ed...@citrix.com>>>>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> need to change cloudstack java code, right now, it's hard coded to
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> "cache=none".
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>  -----Original Message-----
>>>>>>>>>>> From: Jason Villalta [mailto:jason@rubixnet.com<**mailto:
>>>>>>>>>>> jason@rubixnet.com><**mailto:jason@rubixnet.com<**mailto:
>>>>>>>>>>> jason@rubixnet.com>>]
>>>>>>>>>>> Sent: Thursday, February 14, 2013 1:45 PM
>>>>>>>>>>> To: cloudstack-users@incubator.**apache.org<cl...@incubator.apache.org>
>>>>>>>>>>> <ma...@incubator.apache.org>
>>>>>>>>>>> ><**...@incubator.apache.org>
>>>>>>>>>>> <ma...@incubator.apache.org>
>>>>>>>>>>> >>
>>>>>>>>>>> Subject: Change qcow disk cache=none
>>>>>>>>>>>
>>>>>>>>>>> Is there a way to change this kvm disk cache setting in
>>>>>>>>>>> Cloudstack or
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>> template?
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>> If so where is the setting applied?
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> --
>>>>>>>>>>> Jason Villalta
>>>>>>>>>>> Co-founder
>>>>>>>>>>> 800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>>
>>>>>>>>>>> | www.RubixTechnology.com<http:/**/www.RubixTechnology.com<http://www.RubixTechnology.com>
>>>>>>>>>>> ><http**://www.RubixTechnology.com<http://www.RubixTechnology.com>
>>>>>>>>>>> >
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> --
>>>>>>>>> Jason Villalta
>>>>>>>>> Co-founder
>>>>>>>>> 800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>>
>>>>>>>>> | www.RubixTechnology.com<http:/**/www.RubixTechnology.com<http://www.RubixTechnology.com>
>>>>>>>>> ><http**://www.RubixTechnology.com<http://www.RubixTechnology.com>
>>>>>>>>> >
>>>>>>>>>
>>>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>>
>>> --
>>> --
>>> Jason Villalta
>>> Co-founder
>>> 800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>> |
>>> www.RubixTechnology.com<http:/**/www.RubixTechnology.com<http://www.RubixTechnology.com>
>>> ><http**://www.RubixTechnology.com <http://www.RubixTechnology.com>>
>>>
>>
>>
>>
>> --
>> --
>> Jason Villalta
>> Co-founder
>> [cid:ii_13a3276a82c64fe9]
>> 800.799.4407<tel:800.799.4407> | www.RubixTechnology.com<http:/**
>> /www.RubixTechnology.com <http://www.RubixTechnology.com>><http**
>> ://www.rubixtechnology.com/ <http://www.rubixtechnology.com/>>
>>
>>
>>
>> --
>> --
>> Jason Villalta
>> Co-founder
>> [cid:ii_13a3276a82c64fe9]
>> 800.799.4407<tel:800.799.4407> | www.RubixTechnology.com<http:/**
>> /www.RubixTechnology.com <http://www.RubixTechnology.com>><http**
>> ://www.rubixtechnology.com/ <http://www.rubixtechnology.com/>>
>>
>>
>>
>> --
>> --
>> Jason Villalta
>> Co-founder
>> [cid:ii_13a3276a82c64fe9]
>> 800.799.4407 | www.RubixTechnology.com<http:/**/www.rubixtechnology.com/<http://www.rubixtechnology.com/>
>> >
>>
>>
>


-- 
-- 
*Jason Villalta*
Co-founder
[image: Inline image 1]
800.799.4407 | www.RubixTechnology.com <http://www.rubixtechnology.com/>

Re: Change qcow disk cache=none

Posted by Wido den Hollander <wi...@widodh.nl>.
On 02/18/2013 05:49 AM, Rajesh Battala wrote:
> Sounds great.
> How are you planning to implement the cache config value.  From GC settings or as part of offering or a dynamic changeable param to the VM.
>

This has been covered by this Jira issue: 
https://issues.apache.org/jira/browse/CLOUDSTACK-1302

Wido

> Thanks
> Rajesh Battala
>
> From: Jason Villalta [mailto:jason@rubixnet.com]
> Sent: Monday, February 18, 2013 9:51 AM
> To: cloudstack-dev@incubator.apache.org
> Subject: Re: Change qcow disk cache=none
>
> Yes I have gotten farther.  I have the hard coded parameter changed and the system Proxy VM is running now but I am running into issues with the secondary storage vm.  Troubleshooting that now.
>
> As for the cache setting, I think that still need to be setup as a configurable option without a rebuild.  Once I get the cloud fully functional I will have some time to contribute to this issue.  For now I just need to get this up and running.
>
> Thanks,
>
> On Sun, Feb 17, 2013 at 11:11 PM, Rajesh Battala <ra...@citrix.com>> wrote:
> Now you were able to build and run the cloud right.!
>
> Thanks
> Rajesh Battala
>
> From: Jason Villalta [mailto:jason@rubixnet.com<ma...@rubixnet.com>]
> Sent: Monday, February 18, 2013 3:59 AM
> To: cloudstack-dev@incubator.apache.org<ma...@incubator.apache.org>
> Subject: Re: Change qcow disk cache=none
> Got it, wrong maven version..
> On Sun, Feb 17, 2013 at 4:54 PM, Jason Villalta <ja...@rubixnet.com>>> wrote:
> I tried this method to build 4.0.0 and I get 3 failed dependencies.  Does something in git need to be updated with different paths?
>
> error: error reading /home/sysadmin/.m2/repository/org/apache/axis2/axis2-kernel/1.5.1/axis2-kernel-1.5.1.jar; error in opening zip file
> error: error reading /home/sysadmin/.m2/repository/org/apache/axis2/mex/1.5.1/mex-1.5.1-impl.jar; error in opening zip file
> error: error reading /home/sysadmin/.m2/repository/org/apache/axis2/axis2-mtompolicy/1.5.1/axis2-mtompolicy-1.5.1.jar; error in opening zip file
>
> On Fri, Feb 15, 2013 at 10:16 AM, Marcus Sorensen <sh...@gmail.com>>> wrote:
> If you just want to change 'none' to 'writeback' or something like that:
>
> git clone https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git
> cd incubator-cloudstack
> git checkout 4.0
> vi ./plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtVMDef.java
> # look for the one occurrence of 'none' in this file and change it as
> you see fit
>
> Then build your packages
> (https://cwiki.apache.org/CLOUDSTACK/building-with-maven.html#BuildingwithMaven-BuildingRPMpackages)
> mvn install -P deps && ./waf rpm
> or
> mvn package -P deb
>
> If you want the fully configurable experience from GUI, with per
> disk-offering settings, then you'd open the request, and it may make
> it into 4.2 in May. Or you could pull the git repo and see if the
> feature applies to 4.1 and build your own packages in a month or so
> when the feature branch is ready.
> On Fri, Feb 15, 2013 at 7:05 AM, Jason Villalta <ja...@rubixnet.com>>> wrote:
>> So is there anyway to make this work today or will I have to wait
>> until this is properly implemented?  This may mean I need to take
>> another look at openstack or opennebula and switch back.
>>
>> On Fri, Feb 15, 2013 at 9:00 AM, Wido den Hollander <wi...@widodh.nl>>> wrote:
>>> On 02/15/2013 02:31 PM, Jason Villalta wrote:
>>>>
>>>> Is there any way easy way to make this setting dependent on the
>>>> storage definition?  For example some primary storage may need this
>>>> set to one value such as cache=writeback such as with the case of ZFS,
>>>> GlusterFS, CEPH.  Then other storage may want a different setting such
>>>> as cache=writethough or none which is the case with a local ext4
>>>> storage or NFS.
>>>>
>>>
>>> Exactly.
>>>
>>> I brought this up about a week ago, see this thread:
>>> http://markmail.org/thread/qmrod55gfmhwzot4
>>>
>>> It shouldn't be a global property, it should be defined per storage pool, or
>>> even better, per disk offering.
>>>
>>> Right now we are talking about the cache setting, but tomorrow it could be a
>>> different setting.
>>>
>>> Wido
>>>
>>>
>>>>
>>>>
>>>> On Thu, Feb 14, 2013 at 11:08 PM, Rajesh Battala
>>>> <ra...@citrix.com>>> wrote:
>>>>>
>>>>> Hi Jason Villalta,
>>>>> In LibvirtVmDef.java, there is DiskDef class ,  get the cache value from
>>>>> the Global config, while constructing the xml in the override method the
>>>>> class toString() specify the cache value, currently it is using "none".
>>>>>
>>>>> NOTE: whenever there is change in GC value, MS should restart for the
>>>>> value to take effect.
>>>>>
>>>>> Thanks
>>>>> Rajesh Battala
>>>>>
>>>>>> -----Original Message-----
>>>>>> From: Rajesh Battala [mailto:rajesh.battala@citrix.com<ma...@citrix.com>>]
>>>>>> Sent: Friday, February 15, 2013 9:22 AM
>>>>>> To: cloudstack-users@incubator.apache.org<ma...@incubator.apache.org>>; cloudstack-
>>>>>> dev@incubator.apache.org<ma...@incubator.apache.org>>
>>>>>> Subject: RE: Change qcow disk cache=none
>>>>>>
>>>>>> Hi Jason Villalta,
>>>>>>
>>>>>> Can you raise the ticket for the same. I can work on it if you assign to
>>>>>> me.
>>>>>>
>>>>>> Thanks
>>>>>> Rajesh Battala
>>>>>>
>>>>>>> -----Original Message-----
>>>>>>> From: Edison Su [mailto:Edison.su@citrix.com<ma...@citrix.com>>]
>>>>>>> Sent: Friday, February 15, 2013 4:59 AM
>>>>>>> To: cloudstack-users@incubator.apache.org<ma...@incubator.apache.org>>
>>>>>>> Subject: RE: Change qcow disk cache=none
>>>>>>>
>>>>>>> The code is at https://git-wip-us.apache.org/repos/asf?p=incubator-
>>>>>>> cloudstack.git;a=blob;f=plugins/hypervisors/kvm/src/com/cloud/hypervis
>>>>>>> or/kv
>>>>>>>
>>>>>> m/resource/LibvirtVMDef.java;h=acfd9cf1fe8eba217f09e20adf3101d1295d51d
>>>>>>>
>>>>>>> a;hb=HEAD, search "cache".
>>>>>>> you can add a global configuration in cloudstack, or add a
>>>>>>> configuration in agent.properties, to specify cache attribute.
>>>>>>>
>>>>>>>> -----Original Message-----
>>>>>>>> From: Jason Villalta [mailto:jason@rubixnet.com<ma...@rubixnet.com>>]
>>>>>>>> Sent: Thursday, February 14, 2013 2:16 PM
>>>>>>>> To: cloudstack-users@incubator.apache.org<ma...@incubator.apache.org>>
>>>>>>>> Subject: Re: Change qcow disk cache=none
>>>>>>>>
>>>>>>>> Ok, I see the folks at openstack ran into a similar issue.
>>>>>>>> https://bugs.launchpad.net/nova/+bug/959637
>>>>>>>>
>>>>>>>> How can I contribute to this?  Can you recommend a part of the code
>>>>>>>> to look at so I can build and test a patch?
>>>>>>>>
>>>>>>>> On Thu, Feb 14, 2013 at 5:13 PM, Edison Su <Ed...@citrix.com>>>
>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>> need to change cloudstack java code, right now, it's hard coded to
>>>>>>>>
>>>>>>>> "cache=none".
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> -----Original Message-----
>>>>>>>>>> From: Jason Villalta [mailto:jason@rubixnet.com<ma...@rubixnet.com>>]
>>>>>>>>>> Sent: Thursday, February 14, 2013 1:45 PM
>>>>>>>>>> To: cloudstack-users@incubator.apache.org<ma...@incubator.apache.org>>
>>>>>>>>>> Subject: Change qcow disk cache=none
>>>>>>>>>>
>>>>>>>>>> Is there a way to change this kvm disk cache setting in
>>>>>>>>>> Cloudstack or
>>>>>>>>
>>>>>>>> template?
>>>>>>>>>>
>>>>>>>>>> If so where is the setting applied?
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> --
>>>>>>>>>> Jason Villalta
>>>>>>>>>> Co-founder
>>>>>>>>>> 800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>> | www.RubixTechnology.com<http://www.RubixTechnology.com><http://www.RubixTechnology.com>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> --
>>>>>>>> Jason Villalta
>>>>>>>> Co-founder
>>>>>>>> 800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>> | www.RubixTechnology.com<http://www.RubixTechnology.com><http://www.RubixTechnology.com>
>>>>
>>>>
>>>>
>>>>
>>>
>>
>>
>>
>> --
>> --
>> Jason Villalta
>> Co-founder
>> 800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>> | www.RubixTechnology.com<http://www.RubixTechnology.com><http://www.RubixTechnology.com>
>
>
>
> --
> --
> Jason Villalta
> Co-founder
> [cid:ii_13a3276a82c64fe9]
> 800.799.4407<tel:800.799.4407> | www.RubixTechnology.com<http://www.RubixTechnology.com><http://www.rubixtechnology.com/>
>
>
>
> --
> --
> Jason Villalta
> Co-founder
> [cid:ii_13a3276a82c64fe9]
> 800.799.4407<tel:800.799.4407> | www.RubixTechnology.com<http://www.RubixTechnology.com><http://www.rubixtechnology.com/>
>
>
>
> --
> --
> Jason Villalta
> Co-founder
> [cid:ii_13a3276a82c64fe9]
> 800.799.4407 | www.RubixTechnology.com<http://www.rubixtechnology.com/>
>


RE: Change qcow disk cache=none

Posted by Rajesh Battala <ra...@citrix.com>.
Sounds great.
How are you planning to implement the cache config value.  From GC settings or as part of offering or a dynamic changeable param to the VM.

Thanks
Rajesh Battala

From: Jason Villalta [mailto:jason@rubixnet.com]
Sent: Monday, February 18, 2013 9:51 AM
To: cloudstack-dev@incubator.apache.org
Subject: Re: Change qcow disk cache=none

Yes I have gotten farther.  I have the hard coded parameter changed and the system Proxy VM is running now but I am running into issues with the secondary storage vm.  Troubleshooting that now.

As for the cache setting, I think that still need to be setup as a configurable option without a rebuild.  Once I get the cloud fully functional I will have some time to contribute to this issue.  For now I just need to get this up and running.

Thanks,

On Sun, Feb 17, 2013 at 11:11 PM, Rajesh Battala <ra...@citrix.com>> wrote:
Now you were able to build and run the cloud right.!

Thanks
Rajesh Battala

From: Jason Villalta [mailto:jason@rubixnet.com<ma...@rubixnet.com>]
Sent: Monday, February 18, 2013 3:59 AM
To: cloudstack-dev@incubator.apache.org<ma...@incubator.apache.org>
Subject: Re: Change qcow disk cache=none
Got it, wrong maven version..
On Sun, Feb 17, 2013 at 4:54 PM, Jason Villalta <ja...@rubixnet.com>>> wrote:
I tried this method to build 4.0.0 and I get 3 failed dependencies.  Does something in git need to be updated with different paths?

error: error reading /home/sysadmin/.m2/repository/org/apache/axis2/axis2-kernel/1.5.1/axis2-kernel-1.5.1.jar; error in opening zip file
error: error reading /home/sysadmin/.m2/repository/org/apache/axis2/mex/1.5.1/mex-1.5.1-impl.jar; error in opening zip file
error: error reading /home/sysadmin/.m2/repository/org/apache/axis2/axis2-mtompolicy/1.5.1/axis2-mtompolicy-1.5.1.jar; error in opening zip file

On Fri, Feb 15, 2013 at 10:16 AM, Marcus Sorensen <sh...@gmail.com>>> wrote:
If you just want to change 'none' to 'writeback' or something like that:

git clone https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git
cd incubator-cloudstack
git checkout 4.0
vi ./plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtVMDef.java
# look for the one occurrence of 'none' in this file and change it as
you see fit

Then build your packages
(https://cwiki.apache.org/CLOUDSTACK/building-with-maven.html#BuildingwithMaven-BuildingRPMpackages)
mvn install -P deps && ./waf rpm
or
mvn package -P deb

If you want the fully configurable experience from GUI, with per
disk-offering settings, then you'd open the request, and it may make
it into 4.2 in May. Or you could pull the git repo and see if the
feature applies to 4.1 and build your own packages in a month or so
when the feature branch is ready.
On Fri, Feb 15, 2013 at 7:05 AM, Jason Villalta <ja...@rubixnet.com>>> wrote:
> So is there anyway to make this work today or will I have to wait
> until this is properly implemented?  This may mean I need to take
> another look at openstack or opennebula and switch back.
>
> On Fri, Feb 15, 2013 at 9:00 AM, Wido den Hollander <wi...@widodh.nl>>> wrote:
>> On 02/15/2013 02:31 PM, Jason Villalta wrote:
>>>
>>> Is there any way easy way to make this setting dependent on the
>>> storage definition?  For example some primary storage may need this
>>> set to one value such as cache=writeback such as with the case of ZFS,
>>> GlusterFS, CEPH.  Then other storage may want a different setting such
>>> as cache=writethough or none which is the case with a local ext4
>>> storage or NFS.
>>>
>>
>> Exactly.
>>
>> I brought this up about a week ago, see this thread:
>> http://markmail.org/thread/qmrod55gfmhwzot4
>>
>> It shouldn't be a global property, it should be defined per storage pool, or
>> even better, per disk offering.
>>
>> Right now we are talking about the cache setting, but tomorrow it could be a
>> different setting.
>>
>> Wido
>>
>>
>>>
>>>
>>> On Thu, Feb 14, 2013 at 11:08 PM, Rajesh Battala
>>> <ra...@citrix.com>>> wrote:
>>>>
>>>> Hi Jason Villalta,
>>>> In LibvirtVmDef.java, there is DiskDef class ,  get the cache value from
>>>> the Global config, while constructing the xml in the override method the
>>>> class toString() specify the cache value, currently it is using "none".
>>>>
>>>> NOTE: whenever there is change in GC value, MS should restart for the
>>>> value to take effect.
>>>>
>>>> Thanks
>>>> Rajesh Battala
>>>>
>>>>> -----Original Message-----
>>>>> From: Rajesh Battala [mailto:rajesh.battala@citrix.com<ma...@citrix.com>>]
>>>>> Sent: Friday, February 15, 2013 9:22 AM
>>>>> To: cloudstack-users@incubator.apache.org<ma...@incubator.apache.org>>; cloudstack-
>>>>> dev@incubator.apache.org<ma...@incubator.apache.org>>
>>>>> Subject: RE: Change qcow disk cache=none
>>>>>
>>>>> Hi Jason Villalta,
>>>>>
>>>>> Can you raise the ticket for the same. I can work on it if you assign to
>>>>> me.
>>>>>
>>>>> Thanks
>>>>> Rajesh Battala
>>>>>
>>>>>> -----Original Message-----
>>>>>> From: Edison Su [mailto:Edison.su@citrix.com<ma...@citrix.com>>]
>>>>>> Sent: Friday, February 15, 2013 4:59 AM
>>>>>> To: cloudstack-users@incubator.apache.org<ma...@incubator.apache.org>>
>>>>>> Subject: RE: Change qcow disk cache=none
>>>>>>
>>>>>> The code is at https://git-wip-us.apache.org/repos/asf?p=incubator-
>>>>>> cloudstack.git;a=blob;f=plugins/hypervisors/kvm/src/com/cloud/hypervis
>>>>>> or/kv
>>>>>>
>>>>> m/resource/LibvirtVMDef.java;h=acfd9cf1fe8eba217f09e20adf3101d1295d51d
>>>>>>
>>>>>> a;hb=HEAD, search "cache".
>>>>>> you can add a global configuration in cloudstack, or add a
>>>>>> configuration in agent.properties, to specify cache attribute.
>>>>>>
>>>>>>> -----Original Message-----
>>>>>>> From: Jason Villalta [mailto:jason@rubixnet.com<ma...@rubixnet.com>>]
>>>>>>> Sent: Thursday, February 14, 2013 2:16 PM
>>>>>>> To: cloudstack-users@incubator.apache.org<ma...@incubator.apache.org>>
>>>>>>> Subject: Re: Change qcow disk cache=none
>>>>>>>
>>>>>>> Ok, I see the folks at openstack ran into a similar issue.
>>>>>>> https://bugs.launchpad.net/nova/+bug/959637
>>>>>>>
>>>>>>> How can I contribute to this?  Can you recommend a part of the code
>>>>>>> to look at so I can build and test a patch?
>>>>>>>
>>>>>>> On Thu, Feb 14, 2013 at 5:13 PM, Edison Su <Ed...@citrix.com>>>
>>>>>>> wrote:
>>>>>>>>
>>>>>>>> need to change cloudstack java code, right now, it's hard coded to
>>>>>>>
>>>>>>> "cache=none".
>>>>>>>>
>>>>>>>>
>>>>>>>>> -----Original Message-----
>>>>>>>>> From: Jason Villalta [mailto:jason@rubixnet.com<ma...@rubixnet.com>>]
>>>>>>>>> Sent: Thursday, February 14, 2013 1:45 PM
>>>>>>>>> To: cloudstack-users@incubator.apache.org<ma...@incubator.apache.org>>
>>>>>>>>> Subject: Change qcow disk cache=none
>>>>>>>>>
>>>>>>>>> Is there a way to change this kvm disk cache setting in
>>>>>>>>> Cloudstack or
>>>>>>>
>>>>>>> template?
>>>>>>>>>
>>>>>>>>> If so where is the setting applied?
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> --
>>>>>>>>> Jason Villalta
>>>>>>>>> Co-founder
>>>>>>>>> 800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>> | www.RubixTechnology.com<http://www.RubixTechnology.com><http://www.RubixTechnology.com>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> --
>>>>>>> Jason Villalta
>>>>>>> Co-founder
>>>>>>> 800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>> | www.RubixTechnology.com<http://www.RubixTechnology.com><http://www.RubixTechnology.com>
>>>
>>>
>>>
>>>
>>
>
>
>
> --
> --
> Jason Villalta
> Co-founder
> 800.799.4407<tel:800.799.4407><tel:800.799.4407<tel:800.799.4407>> | www.RubixTechnology.com<http://www.RubixTechnology.com><http://www.RubixTechnology.com>



--
--
Jason Villalta
Co-founder
[cid:ii_13a3276a82c64fe9]
800.799.4407<tel:800.799.4407> | www.RubixTechnology.com<http://www.RubixTechnology.com><http://www.rubixtechnology.com/>



--
--
Jason Villalta
Co-founder
[cid:ii_13a3276a82c64fe9]
800.799.4407<tel:800.799.4407> | www.RubixTechnology.com<http://www.RubixTechnology.com><http://www.rubixtechnology.com/>



--
--
Jason Villalta
Co-founder
[cid:ii_13a3276a82c64fe9]
800.799.4407 | www.RubixTechnology.com<http://www.rubixtechnology.com/>

Re: Change qcow disk cache=none

Posted by Jason Villalta <ja...@rubixnet.com>.
Yes I have gotten farther.  I have the hard coded parameter changed and the
system Proxy VM is running now but I am running into issues with the
secondary storage vm.  Troubleshooting that now.

As for the cache setting, I think that still need to be setup as a
configurable option without a rebuild.  Once I get the cloud
fully functional I will have some time to contribute to this issue.  For
now I just need to get this up and running.

Thanks,


On Sun, Feb 17, 2013 at 11:11 PM, Rajesh Battala
<ra...@citrix.com>wrote:

> Now you were able to build and run the cloud right.!
>
> Thanks
> Rajesh Battala
>
> From: Jason Villalta [mailto:jason@rubixnet.com]
> Sent: Monday, February 18, 2013 3:59 AM
> To: cloudstack-dev@incubator.apache.org
> Subject: Re: Change qcow disk cache=none
>
> Got it, wrong maven version..
> On Sun, Feb 17, 2013 at 4:54 PM, Jason Villalta <jason@rubixnet.com
> <ma...@rubixnet.com>> wrote:
> I tried this method to build 4.0.0 and I get 3 failed dependencies.  Does
> something in git need to be updated with different paths?
>
> error: error reading
> /home/sysadmin/.m2/repository/org/apache/axis2/axis2-kernel/1.5.1/axis2-kernel-1.5.1.jar;
> error in opening zip file
> error: error reading
> /home/sysadmin/.m2/repository/org/apache/axis2/mex/1.5.1/mex-1.5.1-impl.jar;
> error in opening zip file
> error: error reading
> /home/sysadmin/.m2/repository/org/apache/axis2/axis2-mtompolicy/1.5.1/axis2-mtompolicy-1.5.1.jar;
> error in opening zip file
>
>
> On Fri, Feb 15, 2013 at 10:16 AM, Marcus Sorensen <shadowsor@gmail.com
> <ma...@gmail.com>> wrote:
> If you just want to change 'none' to 'writeback' or something like that:
>
> git clone https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git
> cd incubator-cloudstack
> git checkout 4.0
> vi
> ./plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtVMDef.java
> # look for the one occurrence of 'none' in this file and change it as
> you see fit
>
> Then build your packages
> (
> https://cwiki.apache.org/CLOUDSTACK/building-with-maven.html#BuildingwithMaven-BuildingRPMpackages
> )
> mvn install -P deps && ./waf rpm
> or
> mvn package -P deb
>
> If you want the fully configurable experience from GUI, with per
> disk-offering settings, then you'd open the request, and it may make
> it into 4.2 in May. Or you could pull the git repo and see if the
> feature applies to 4.1 and build your own packages in a month or so
> when the feature branch is ready.
>
> On Fri, Feb 15, 2013 at 7:05 AM, Jason Villalta <jason@rubixnet.com
> <ma...@rubixnet.com>> wrote:
> > So is there anyway to make this work today or will I have to wait
> > until this is properly implemented?  This may mean I need to take
> > another look at openstack or opennebula and switch back.
> >
> > On Fri, Feb 15, 2013 at 9:00 AM, Wido den Hollander <wido@widodh.nl
> <ma...@widodh.nl>> wrote:
> >> On 02/15/2013 02:31 PM, Jason Villalta wrote:
> >>>
> >>> Is there any way easy way to make this setting dependent on the
> >>> storage definition?  For example some primary storage may need this
> >>> set to one value such as cache=writeback such as with the case of ZFS,
> >>> GlusterFS, CEPH.  Then other storage may want a different setting such
> >>> as cache=writethough or none which is the case with a local ext4
> >>> storage or NFS.
> >>>
> >>
> >> Exactly.
> >>
> >> I brought this up about a week ago, see this thread:
> >> http://markmail.org/thread/qmrod55gfmhwzot4
> >>
> >> It shouldn't be a global property, it should be defined per storage
> pool, or
> >> even better, per disk offering.
> >>
> >> Right now we are talking about the cache setting, but tomorrow it could
> be a
> >> different setting.
> >>
> >> Wido
> >>
> >>
> >>>
> >>>
> >>> On Thu, Feb 14, 2013 at 11:08 PM, Rajesh Battala
> >>> <ra...@citrix.com>> wrote:
> >>>>
> >>>> Hi Jason Villalta,
> >>>> In LibvirtVmDef.java, there is DiskDef class ,  get the cache value
> from
> >>>> the Global config, while constructing the xml in the override method
> the
> >>>> class toString() specify the cache value, currently it is using
> "none".
> >>>>
> >>>> NOTE: whenever there is change in GC value, MS should restart for the
> >>>> value to take effect.
> >>>>
> >>>> Thanks
> >>>> Rajesh Battala
> >>>>
> >>>>> -----Original Message-----
> >>>>> From: Rajesh Battala [mailto:rajesh.battala@citrix.com<mailto:
> rajesh.battala@citrix.com>]
> >>>>> Sent: Friday, February 15, 2013 9:22 AM
> >>>>> To: cloudstack-users@incubator.apache.org<mailto:
> cloudstack-users@incubator.apache.org>; cloudstack-
> >>>>> dev@incubator.apache.org<ma...@incubator.apache.org>
> >>>>> Subject: RE: Change qcow disk cache=none
> >>>>>
> >>>>> Hi Jason Villalta,
> >>>>>
> >>>>> Can you raise the ticket for the same. I can work on it if you
> assign to
> >>>>> me.
> >>>>>
> >>>>> Thanks
> >>>>> Rajesh Battala
> >>>>>
> >>>>>> -----Original Message-----
> >>>>>> From: Edison Su [mailto:Edison.su@citrix.com<mailto:
> Edison.su@citrix.com>]
> >>>>>> Sent: Friday, February 15, 2013 4:59 AM
> >>>>>> To: cloudstack-users@incubator.apache.org<mailto:
> cloudstack-users@incubator.apache.org>
> >>>>>> Subject: RE: Change qcow disk cache=none
> >>>>>>
> >>>>>> The code is at https://git-wip-us.apache.org/repos/asf?p=incubator-
> >>>>>>
> cloudstack.git;a=blob;f=plugins/hypervisors/kvm/src/com/cloud/hypervis
> >>>>>> or/kv
> >>>>>>
> >>>>>
> m/resource/LibvirtVMDef.java;h=acfd9cf1fe8eba217f09e20adf3101d1295d51d
> >>>>>>
> >>>>>> a;hb=HEAD, search "cache".
> >>>>>> you can add a global configuration in cloudstack, or add a
> >>>>>> configuration in agent.properties, to specify cache attribute.
> >>>>>>
> >>>>>>> -----Original Message-----
> >>>>>>> From: Jason Villalta [mailto:jason@rubixnet.com<mailto:
> jason@rubixnet.com>]
> >>>>>>> Sent: Thursday, February 14, 2013 2:16 PM
> >>>>>>> To: cloudstack-users@incubator.apache.org<mailto:
> cloudstack-users@incubator.apache.org>
> >>>>>>> Subject: Re: Change qcow disk cache=none
> >>>>>>>
> >>>>>>> Ok, I see the folks at openstack ran into a similar issue.
> >>>>>>> https://bugs.launchpad.net/nova/+bug/959637
> >>>>>>>
> >>>>>>> How can I contribute to this?  Can you recommend a part of the code
> >>>>>>> to look at so I can build and test a patch?
> >>>>>>>
> >>>>>>> On Thu, Feb 14, 2013 at 5:13 PM, Edison Su <Edison.su@citrix.com
> <ma...@citrix.com>>
> >>>>>>> wrote:
> >>>>>>>>
> >>>>>>>> need to change cloudstack java code, right now, it's hard coded to
> >>>>>>>
> >>>>>>> "cache=none".
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>> -----Original Message-----
> >>>>>>>>> From: Jason Villalta [mailto:jason@rubixnet.com<mailto:
> jason@rubixnet.com>]
> >>>>>>>>> Sent: Thursday, February 14, 2013 1:45 PM
> >>>>>>>>> To: cloudstack-users@incubator.apache.org<mailto:
> cloudstack-users@incubator.apache.org>
> >>>>>>>>> Subject: Change qcow disk cache=none
> >>>>>>>>>
> >>>>>>>>> Is there a way to change this kvm disk cache setting in
> >>>>>>>>> Cloudstack or
> >>>>>>>
> >>>>>>> template?
> >>>>>>>>>
> >>>>>>>>> If so where is the setting applied?
> >>>>>>>>>
> >>>>>>>>> --
> >>>>>>>>> --
> >>>>>>>>> Jason Villalta
> >>>>>>>>> Co-founder
> >>>>>>>>> 800.799.4407<tel:800.799.4407> | www.RubixTechnology.com<
> http://www.RubixTechnology.com>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>> --
> >>>>>>> --
> >>>>>>> Jason Villalta
> >>>>>>> Co-founder
> >>>>>>> 800.799.4407<tel:800.799.4407> | www.RubixTechnology.com<
> http://www.RubixTechnology.com>
> >>>
> >>>
> >>>
> >>>
> >>
> >
> >
> >
> > --
> > --
> > Jason Villalta
> > Co-founder
> > 800.799.4407<tel:800.799.4407> | www.RubixTechnology.com<
> http://www.RubixTechnology.com>
>
>
>
> --
> --
> Jason Villalta
> Co-founder
> [cid:ii_13a3276a82c64fe9]
> 800.799.4407 | www.RubixTechnology.com<http://www.rubixtechnology.com/>
>
>
>
> --
> --
> Jason Villalta
> Co-founder
> [cid:ii_13a3276a82c64fe9]
> 800.799.4407 | www.RubixTechnology.com<http://www.rubixtechnology.com/>
>



-- 
-- 
*Jason Villalta*
Co-founder
[image: Inline image 1]
800.799.4407 | www.RubixTechnology.com <http://www.rubixtechnology.com/>

RE: Change qcow disk cache=none

Posted by Rajesh Battala <ra...@citrix.com>.
Now you were able to build and run the cloud right.!

Thanks
Rajesh Battala

From: Jason Villalta [mailto:jason@rubixnet.com]
Sent: Monday, February 18, 2013 3:59 AM
To: cloudstack-dev@incubator.apache.org
Subject: Re: Change qcow disk cache=none

Got it, wrong maven version..
On Sun, Feb 17, 2013 at 4:54 PM, Jason Villalta <ja...@rubixnet.com>> wrote:
I tried this method to build 4.0.0 and I get 3 failed dependencies.  Does something in git need to be updated with different paths?

error: error reading /home/sysadmin/.m2/repository/org/apache/axis2/axis2-kernel/1.5.1/axis2-kernel-1.5.1.jar; error in opening zip file
error: error reading /home/sysadmin/.m2/repository/org/apache/axis2/mex/1.5.1/mex-1.5.1-impl.jar; error in opening zip file
error: error reading /home/sysadmin/.m2/repository/org/apache/axis2/axis2-mtompolicy/1.5.1/axis2-mtompolicy-1.5.1.jar; error in opening zip file


On Fri, Feb 15, 2013 at 10:16 AM, Marcus Sorensen <sh...@gmail.com>> wrote:
If you just want to change 'none' to 'writeback' or something like that:

git clone https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git
cd incubator-cloudstack
git checkout 4.0
vi ./plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtVMDef.java
# look for the one occurrence of 'none' in this file and change it as
you see fit

Then build your packages
(https://cwiki.apache.org/CLOUDSTACK/building-with-maven.html#BuildingwithMaven-BuildingRPMpackages)
mvn install -P deps && ./waf rpm
or
mvn package -P deb

If you want the fully configurable experience from GUI, with per
disk-offering settings, then you'd open the request, and it may make
it into 4.2 in May. Or you could pull the git repo and see if the
feature applies to 4.1 and build your own packages in a month or so
when the feature branch is ready.

On Fri, Feb 15, 2013 at 7:05 AM, Jason Villalta <ja...@rubixnet.com>> wrote:
> So is there anyway to make this work today or will I have to wait
> until this is properly implemented?  This may mean I need to take
> another look at openstack or opennebula and switch back.
>
> On Fri, Feb 15, 2013 at 9:00 AM, Wido den Hollander <wi...@widodh.nl>> wrote:
>> On 02/15/2013 02:31 PM, Jason Villalta wrote:
>>>
>>> Is there any way easy way to make this setting dependent on the
>>> storage definition?  For example some primary storage may need this
>>> set to one value such as cache=writeback such as with the case of ZFS,
>>> GlusterFS, CEPH.  Then other storage may want a different setting such
>>> as cache=writethough or none which is the case with a local ext4
>>> storage or NFS.
>>>
>>
>> Exactly.
>>
>> I brought this up about a week ago, see this thread:
>> http://markmail.org/thread/qmrod55gfmhwzot4
>>
>> It shouldn't be a global property, it should be defined per storage pool, or
>> even better, per disk offering.
>>
>> Right now we are talking about the cache setting, but tomorrow it could be a
>> different setting.
>>
>> Wido
>>
>>
>>>
>>>
>>> On Thu, Feb 14, 2013 at 11:08 PM, Rajesh Battala
>>> <ra...@citrix.com>> wrote:
>>>>
>>>> Hi Jason Villalta,
>>>> In LibvirtVmDef.java, there is DiskDef class ,  get the cache value from
>>>> the Global config, while constructing the xml in the override method the
>>>> class toString() specify the cache value, currently it is using "none".
>>>>
>>>> NOTE: whenever there is change in GC value, MS should restart for the
>>>> value to take effect.
>>>>
>>>> Thanks
>>>> Rajesh Battala
>>>>
>>>>> -----Original Message-----
>>>>> From: Rajesh Battala [mailto:rajesh.battala@citrix.com<ma...@citrix.com>]
>>>>> Sent: Friday, February 15, 2013 9:22 AM
>>>>> To: cloudstack-users@incubator.apache.org<ma...@incubator.apache.org>; cloudstack-
>>>>> dev@incubator.apache.org<ma...@incubator.apache.org>
>>>>> Subject: RE: Change qcow disk cache=none
>>>>>
>>>>> Hi Jason Villalta,
>>>>>
>>>>> Can you raise the ticket for the same. I can work on it if you assign to
>>>>> me.
>>>>>
>>>>> Thanks
>>>>> Rajesh Battala
>>>>>
>>>>>> -----Original Message-----
>>>>>> From: Edison Su [mailto:Edison.su@citrix.com<ma...@citrix.com>]
>>>>>> Sent: Friday, February 15, 2013 4:59 AM
>>>>>> To: cloudstack-users@incubator.apache.org<ma...@incubator.apache.org>
>>>>>> Subject: RE: Change qcow disk cache=none
>>>>>>
>>>>>> The code is at https://git-wip-us.apache.org/repos/asf?p=incubator-
>>>>>> cloudstack.git;a=blob;f=plugins/hypervisors/kvm/src/com/cloud/hypervis
>>>>>> or/kv
>>>>>>
>>>>> m/resource/LibvirtVMDef.java;h=acfd9cf1fe8eba217f09e20adf3101d1295d51d
>>>>>>
>>>>>> a;hb=HEAD, search "cache".
>>>>>> you can add a global configuration in cloudstack, or add a
>>>>>> configuration in agent.properties, to specify cache attribute.
>>>>>>
>>>>>>> -----Original Message-----
>>>>>>> From: Jason Villalta [mailto:jason@rubixnet.com<ma...@rubixnet.com>]
>>>>>>> Sent: Thursday, February 14, 2013 2:16 PM
>>>>>>> To: cloudstack-users@incubator.apache.org<ma...@incubator.apache.org>
>>>>>>> Subject: Re: Change qcow disk cache=none
>>>>>>>
>>>>>>> Ok, I see the folks at openstack ran into a similar issue.
>>>>>>> https://bugs.launchpad.net/nova/+bug/959637
>>>>>>>
>>>>>>> How can I contribute to this?  Can you recommend a part of the code
>>>>>>> to look at so I can build and test a patch?
>>>>>>>
>>>>>>> On Thu, Feb 14, 2013 at 5:13 PM, Edison Su <Ed...@citrix.com>>
>>>>>>> wrote:
>>>>>>>>
>>>>>>>> need to change cloudstack java code, right now, it's hard coded to
>>>>>>>
>>>>>>> "cache=none".
>>>>>>>>
>>>>>>>>
>>>>>>>>> -----Original Message-----
>>>>>>>>> From: Jason Villalta [mailto:jason@rubixnet.com<ma...@rubixnet.com>]
>>>>>>>>> Sent: Thursday, February 14, 2013 1:45 PM
>>>>>>>>> To: cloudstack-users@incubator.apache.org<ma...@incubator.apache.org>
>>>>>>>>> Subject: Change qcow disk cache=none
>>>>>>>>>
>>>>>>>>> Is there a way to change this kvm disk cache setting in
>>>>>>>>> Cloudstack or
>>>>>>>
>>>>>>> template?
>>>>>>>>>
>>>>>>>>> If so where is the setting applied?
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> --
>>>>>>>>> Jason Villalta
>>>>>>>>> Co-founder
>>>>>>>>> 800.799.4407<tel:800.799.4407> | www.RubixTechnology.com<http://www.RubixTechnology.com>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> --
>>>>>>> Jason Villalta
>>>>>>> Co-founder
>>>>>>> 800.799.4407<tel:800.799.4407> | www.RubixTechnology.com<http://www.RubixTechnology.com>
>>>
>>>
>>>
>>>
>>
>
>
>
> --
> --
> Jason Villalta
> Co-founder
> 800.799.4407<tel:800.799.4407> | www.RubixTechnology.com<http://www.RubixTechnology.com>



--
--
Jason Villalta
Co-founder
[cid:ii_13a3276a82c64fe9]
800.799.4407 | www.RubixTechnology.com<http://www.rubixtechnology.com/>



--
--
Jason Villalta
Co-founder
[cid:ii_13a3276a82c64fe9]
800.799.4407 | www.RubixTechnology.com<http://www.rubixtechnology.com/>

Re: Change qcow disk cache=none

Posted by Jason Villalta <ja...@rubixnet.com>.
Got it, wrong maven version..

On Sun, Feb 17, 2013 at 4:54 PM, Jason Villalta <ja...@rubixnet.com> wrote:

> I tried this method to build 4.0.0 and I get 3 failed dependencies.
>  Does something in git need to be updated with different paths?
>
> error: error reading
> /home/sysadmin/.m2/repository/org/apache/axis2/axis2-kernel/1.5.1/axis2-kernel-1.5.1.jar;
> error in opening zip file
> error: error reading
> /home/sysadmin/.m2/repository/org/apache/axis2/mex/1.5.1/mex-1.5.1-impl.jar;
> error in opening zip file
> error: error reading
> /home/sysadmin/.m2/repository/org/apache/axis2/axis2-mtompolicy/1.5.1/axis2-mtompolicy-1.5.1.jar;
> error in opening zip file
>
>
>
> On Fri, Feb 15, 2013 at 10:16 AM, Marcus Sorensen <sh...@gmail.com>wrote:
>
>> If you just want to change 'none' to 'writeback' or something like that:
>>
>> git clone
>> https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git
>> cd incubator-cloudstack
>> git checkout 4.0
>> vi
>> ./plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtVMDef.java
>> # look for the one occurrence of 'none' in this file and change it as
>> you see fit
>>
>> Then build your packages
>> (
>> https://cwiki.apache.org/CLOUDSTACK/building-with-maven.html#BuildingwithMaven-BuildingRPMpackages
>> )
>> mvn install -P deps && ./waf rpm
>> or
>> mvn package -P deb
>>
>> If you want the fully configurable experience from GUI, with per
>> disk-offering settings, then you'd open the request, and it may make
>> it into 4.2 in May. Or you could pull the git repo and see if the
>> feature applies to 4.1 and build your own packages in a month or so
>> when the feature branch is ready.
>>
>> On Fri, Feb 15, 2013 at 7:05 AM, Jason Villalta <ja...@rubixnet.com>
>> wrote:
>> > So is there anyway to make this work today or will I have to wait
>> > until this is properly implemented?  This may mean I need to take
>> > another look at openstack or opennebula and switch back.
>> >
>> > On Fri, Feb 15, 2013 at 9:00 AM, Wido den Hollander <wi...@widodh.nl>
>> wrote:
>> >> On 02/15/2013 02:31 PM, Jason Villalta wrote:
>> >>>
>> >>> Is there any way easy way to make this setting dependent on the
>> >>> storage definition?  For example some primary storage may need this
>> >>> set to one value such as cache=writeback such as with the case of ZFS,
>> >>> GlusterFS, CEPH.  Then other storage may want a different setting such
>> >>> as cache=writethough or none which is the case with a local ext4
>> >>> storage or NFS.
>> >>>
>> >>
>> >> Exactly.
>> >>
>> >> I brought this up about a week ago, see this thread:
>> >> http://markmail.org/thread/qmrod55gfmhwzot4
>> >>
>> >> It shouldn't be a global property, it should be defined per storage
>> pool, or
>> >> even better, per disk offering.
>> >>
>> >> Right now we are talking about the cache setting, but tomorrow it
>> could be a
>> >> different setting.
>> >>
>> >> Wido
>> >>
>> >>
>> >>>
>> >>>
>> >>> On Thu, Feb 14, 2013 at 11:08 PM, Rajesh Battala
>> >>> <ra...@citrix.com> wrote:
>> >>>>
>> >>>> Hi Jason Villalta,
>> >>>> In LibvirtVmDef.java, there is DiskDef class ,  get the cache value
>> from
>> >>>> the Global config, while constructing the xml in the override method
>> the
>> >>>> class toString() specify the cache value, currently it is using
>> "none".
>> >>>>
>> >>>> NOTE: whenever there is change in GC value, MS should restart for the
>> >>>> value to take effect.
>> >>>>
>> >>>> Thanks
>> >>>> Rajesh Battala
>> >>>>
>> >>>>> -----Original Message-----
>> >>>>> From: Rajesh Battala [mailto:rajesh.battala@citrix.com]
>> >>>>> Sent: Friday, February 15, 2013 9:22 AM
>> >>>>> To: cloudstack-users@incubator.apache.org; cloudstack-
>> >>>>> dev@incubator.apache.org
>> >>>>> Subject: RE: Change qcow disk cache=none
>> >>>>>
>> >>>>> Hi Jason Villalta,
>> >>>>>
>> >>>>> Can you raise the ticket for the same. I can work on it if you
>> assign to
>> >>>>> me.
>> >>>>>
>> >>>>> Thanks
>> >>>>> Rajesh Battala
>> >>>>>
>> >>>>>> -----Original Message-----
>> >>>>>> From: Edison Su [mailto:Edison.su@citrix.com]
>> >>>>>> Sent: Friday, February 15, 2013 4:59 AM
>> >>>>>> To: cloudstack-users@incubator.apache.org
>> >>>>>> Subject: RE: Change qcow disk cache=none
>> >>>>>>
>> >>>>>> The code is at
>> https://git-wip-us.apache.org/repos/asf?p=incubator-
>> >>>>>>
>> cloudstack.git;a=blob;f=plugins/hypervisors/kvm/src/com/cloud/hypervis
>> >>>>>> or/kv
>> >>>>>>
>> >>>>>
>> m/resource/LibvirtVMDef.java;h=acfd9cf1fe8eba217f09e20adf3101d1295d51d
>> >>>>>>
>> >>>>>> a;hb=HEAD, search "cache".
>> >>>>>> you can add a global configuration in cloudstack, or add a
>> >>>>>> configuration in agent.properties, to specify cache attribute.
>> >>>>>>
>> >>>>>>> -----Original Message-----
>> >>>>>>> From: Jason Villalta [mailto:jason@rubixnet.com]
>> >>>>>>> Sent: Thursday, February 14, 2013 2:16 PM
>> >>>>>>> To: cloudstack-users@incubator.apache.org
>> >>>>>>> Subject: Re: Change qcow disk cache=none
>> >>>>>>>
>> >>>>>>> Ok, I see the folks at openstack ran into a similar issue.
>> >>>>>>> https://bugs.launchpad.net/nova/+bug/959637
>> >>>>>>>
>> >>>>>>> How can I contribute to this?  Can you recommend a part of the
>> code
>> >>>>>>> to look at so I can build and test a patch?
>> >>>>>>>
>> >>>>>>> On Thu, Feb 14, 2013 at 5:13 PM, Edison Su <Ed...@citrix.com>
>> >>>>>>> wrote:
>> >>>>>>>>
>> >>>>>>>> need to change cloudstack java code, right now, it's hard coded
>> to
>> >>>>>>>
>> >>>>>>> "cache=none".
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>>>>> -----Original Message-----
>> >>>>>>>>> From: Jason Villalta [mailto:jason@rubixnet.com]
>> >>>>>>>>> Sent: Thursday, February 14, 2013 1:45 PM
>> >>>>>>>>> To: cloudstack-users@incubator.apache.org
>> >>>>>>>>> Subject: Change qcow disk cache=none
>> >>>>>>>>>
>> >>>>>>>>> Is there a way to change this kvm disk cache setting in
>> >>>>>>>>> Cloudstack or
>> >>>>>>>
>> >>>>>>> template?
>> >>>>>>>>>
>> >>>>>>>>> If so where is the setting applied?
>> >>>>>>>>>
>> >>>>>>>>> --
>> >>>>>>>>> --
>> >>>>>>>>> Jason Villalta
>> >>>>>>>>> Co-founder
>> >>>>>>>>> 800.799.4407 | www.RubixTechnology.com
>> >>>>>>>
>> >>>>>>>
>> >>>>>>>
>> >>>>>>>
>> >>>>>>> --
>> >>>>>>> --
>> >>>>>>> Jason Villalta
>> >>>>>>> Co-founder
>> >>>>>>> 800.799.4407 | www.RubixTechnology.com
>> >>>
>> >>>
>> >>>
>> >>>
>> >>
>> >
>> >
>> >
>> > --
>> > --
>> > Jason Villalta
>> > Co-founder
>> > 800.799.4407 | www.RubixTechnology.com
>>
>
>
>
> --
> --
> *Jason Villalta*
> Co-founder
> [image: Inline image 1]
> 800.799.4407 | www.RubixTechnology.com <http://www.rubixtechnology.com/>
>



-- 
-- 
*Jason Villalta*
Co-founder
[image: Inline image 1]
800.799.4407 | www.RubixTechnology.com <http://www.rubixtechnology.com/>

Re: Change qcow disk cache=none

Posted by Jason Villalta <ja...@rubixnet.com>.
I tried this method to build 4.0.0 and I get 3 failed dependencies.
 Does something in git need to be updated with different paths?

error: error reading
/home/sysadmin/.m2/repository/org/apache/axis2/axis2-kernel/1.5.1/axis2-kernel-1.5.1.jar;
error in opening zip file
error: error reading
/home/sysadmin/.m2/repository/org/apache/axis2/mex/1.5.1/mex-1.5.1-impl.jar;
error in opening zip file
error: error reading
/home/sysadmin/.m2/repository/org/apache/axis2/axis2-mtompolicy/1.5.1/axis2-mtompolicy-1.5.1.jar;
error in opening zip file



On Fri, Feb 15, 2013 at 10:16 AM, Marcus Sorensen <sh...@gmail.com>wrote:

> If you just want to change 'none' to 'writeback' or something like that:
>
> git clone https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git
> cd incubator-cloudstack
> git checkout 4.0
> vi
> ./plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtVMDef.java
> # look for the one occurrence of 'none' in this file and change it as
> you see fit
>
> Then build your packages
> (
> https://cwiki.apache.org/CLOUDSTACK/building-with-maven.html#BuildingwithMaven-BuildingRPMpackages
> )
> mvn install -P deps && ./waf rpm
> or
> mvn package -P deb
>
> If you want the fully configurable experience from GUI, with per
> disk-offering settings, then you'd open the request, and it may make
> it into 4.2 in May. Or you could pull the git repo and see if the
> feature applies to 4.1 and build your own packages in a month or so
> when the feature branch is ready.
>
> On Fri, Feb 15, 2013 at 7:05 AM, Jason Villalta <ja...@rubixnet.com>
> wrote:
> > So is there anyway to make this work today or will I have to wait
> > until this is properly implemented?  This may mean I need to take
> > another look at openstack or opennebula and switch back.
> >
> > On Fri, Feb 15, 2013 at 9:00 AM, Wido den Hollander <wi...@widodh.nl>
> wrote:
> >> On 02/15/2013 02:31 PM, Jason Villalta wrote:
> >>>
> >>> Is there any way easy way to make this setting dependent on the
> >>> storage definition?  For example some primary storage may need this
> >>> set to one value such as cache=writeback such as with the case of ZFS,
> >>> GlusterFS, CEPH.  Then other storage may want a different setting such
> >>> as cache=writethough or none which is the case with a local ext4
> >>> storage or NFS.
> >>>
> >>
> >> Exactly.
> >>
> >> I brought this up about a week ago, see this thread:
> >> http://markmail.org/thread/qmrod55gfmhwzot4
> >>
> >> It shouldn't be a global property, it should be defined per storage
> pool, or
> >> even better, per disk offering.
> >>
> >> Right now we are talking about the cache setting, but tomorrow it could
> be a
> >> different setting.
> >>
> >> Wido
> >>
> >>
> >>>
> >>>
> >>> On Thu, Feb 14, 2013 at 11:08 PM, Rajesh Battala
> >>> <ra...@citrix.com> wrote:
> >>>>
> >>>> Hi Jason Villalta,
> >>>> In LibvirtVmDef.java, there is DiskDef class ,  get the cache value
> from
> >>>> the Global config, while constructing the xml in the override method
> the
> >>>> class toString() specify the cache value, currently it is using
> "none".
> >>>>
> >>>> NOTE: whenever there is change in GC value, MS should restart for the
> >>>> value to take effect.
> >>>>
> >>>> Thanks
> >>>> Rajesh Battala
> >>>>
> >>>>> -----Original Message-----
> >>>>> From: Rajesh Battala [mailto:rajesh.battala@citrix.com]
> >>>>> Sent: Friday, February 15, 2013 9:22 AM
> >>>>> To: cloudstack-users@incubator.apache.org; cloudstack-
> >>>>> dev@incubator.apache.org
> >>>>> Subject: RE: Change qcow disk cache=none
> >>>>>
> >>>>> Hi Jason Villalta,
> >>>>>
> >>>>> Can you raise the ticket for the same. I can work on it if you
> assign to
> >>>>> me.
> >>>>>
> >>>>> Thanks
> >>>>> Rajesh Battala
> >>>>>
> >>>>>> -----Original Message-----
> >>>>>> From: Edison Su [mailto:Edison.su@citrix.com]
> >>>>>> Sent: Friday, February 15, 2013 4:59 AM
> >>>>>> To: cloudstack-users@incubator.apache.org
> >>>>>> Subject: RE: Change qcow disk cache=none
> >>>>>>
> >>>>>> The code is at https://git-wip-us.apache.org/repos/asf?p=incubator-
> >>>>>>
> cloudstack.git;a=blob;f=plugins/hypervisors/kvm/src/com/cloud/hypervis
> >>>>>> or/kv
> >>>>>>
> >>>>>
> m/resource/LibvirtVMDef.java;h=acfd9cf1fe8eba217f09e20adf3101d1295d51d
> >>>>>>
> >>>>>> a;hb=HEAD, search "cache".
> >>>>>> you can add a global configuration in cloudstack, or add a
> >>>>>> configuration in agent.properties, to specify cache attribute.
> >>>>>>
> >>>>>>> -----Original Message-----
> >>>>>>> From: Jason Villalta [mailto:jason@rubixnet.com]
> >>>>>>> Sent: Thursday, February 14, 2013 2:16 PM
> >>>>>>> To: cloudstack-users@incubator.apache.org
> >>>>>>> Subject: Re: Change qcow disk cache=none
> >>>>>>>
> >>>>>>> Ok, I see the folks at openstack ran into a similar issue.
> >>>>>>> https://bugs.launchpad.net/nova/+bug/959637
> >>>>>>>
> >>>>>>> How can I contribute to this?  Can you recommend a part of the code
> >>>>>>> to look at so I can build and test a patch?
> >>>>>>>
> >>>>>>> On Thu, Feb 14, 2013 at 5:13 PM, Edison Su <Ed...@citrix.com>
> >>>>>>> wrote:
> >>>>>>>>
> >>>>>>>> need to change cloudstack java code, right now, it's hard coded to
> >>>>>>>
> >>>>>>> "cache=none".
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>> -----Original Message-----
> >>>>>>>>> From: Jason Villalta [mailto:jason@rubixnet.com]
> >>>>>>>>> Sent: Thursday, February 14, 2013 1:45 PM
> >>>>>>>>> To: cloudstack-users@incubator.apache.org
> >>>>>>>>> Subject: Change qcow disk cache=none
> >>>>>>>>>
> >>>>>>>>> Is there a way to change this kvm disk cache setting in
> >>>>>>>>> Cloudstack or
> >>>>>>>
> >>>>>>> template?
> >>>>>>>>>
> >>>>>>>>> If so where is the setting applied?
> >>>>>>>>>
> >>>>>>>>> --
> >>>>>>>>> --
> >>>>>>>>> Jason Villalta
> >>>>>>>>> Co-founder
> >>>>>>>>> 800.799.4407 | www.RubixTechnology.com
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>> --
> >>>>>>> --
> >>>>>>> Jason Villalta
> >>>>>>> Co-founder
> >>>>>>> 800.799.4407 | www.RubixTechnology.com
> >>>
> >>>
> >>>
> >>>
> >>
> >
> >
> >
> > --
> > --
> > Jason Villalta
> > Co-founder
> > 800.799.4407 | www.RubixTechnology.com
>



-- 
-- 
*Jason Villalta*
Co-founder
[image: Inline image 1]
800.799.4407 | www.RubixTechnology.com <http://www.rubixtechnology.com/>

Re: Change qcow disk cache=none

Posted by Marcus Sorensen <sh...@gmail.com>.
If you just want to change 'none' to 'writeback' or something like that:

git clone https://git-wip-us.apache.org/repos/asf/incubator-cloudstack.git
cd incubator-cloudstack
git checkout 4.0
vi ./plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtVMDef.java
# look for the one occurrence of 'none' in this file and change it as
you see fit

Then build your packages
(https://cwiki.apache.org/CLOUDSTACK/building-with-maven.html#BuildingwithMaven-BuildingRPMpackages)
mvn install -P deps && ./waf rpm
or
mvn package -P deb

If you want the fully configurable experience from GUI, with per
disk-offering settings, then you'd open the request, and it may make
it into 4.2 in May. Or you could pull the git repo and see if the
feature applies to 4.1 and build your own packages in a month or so
when the feature branch is ready.

On Fri, Feb 15, 2013 at 7:05 AM, Jason Villalta <ja...@rubixnet.com> wrote:
> So is there anyway to make this work today or will I have to wait
> until this is properly implemented?  This may mean I need to take
> another look at openstack or opennebula and switch back.
>
> On Fri, Feb 15, 2013 at 9:00 AM, Wido den Hollander <wi...@widodh.nl> wrote:
>> On 02/15/2013 02:31 PM, Jason Villalta wrote:
>>>
>>> Is there any way easy way to make this setting dependent on the
>>> storage definition?  For example some primary storage may need this
>>> set to one value such as cache=writeback such as with the case of ZFS,
>>> GlusterFS, CEPH.  Then other storage may want a different setting such
>>> as cache=writethough or none which is the case with a local ext4
>>> storage or NFS.
>>>
>>
>> Exactly.
>>
>> I brought this up about a week ago, see this thread:
>> http://markmail.org/thread/qmrod55gfmhwzot4
>>
>> It shouldn't be a global property, it should be defined per storage pool, or
>> even better, per disk offering.
>>
>> Right now we are talking about the cache setting, but tomorrow it could be a
>> different setting.
>>
>> Wido
>>
>>
>>>
>>>
>>> On Thu, Feb 14, 2013 at 11:08 PM, Rajesh Battala
>>> <ra...@citrix.com> wrote:
>>>>
>>>> Hi Jason Villalta,
>>>> In LibvirtVmDef.java, there is DiskDef class ,  get the cache value from
>>>> the Global config, while constructing the xml in the override method the
>>>> class toString() specify the cache value, currently it is using "none".
>>>>
>>>> NOTE: whenever there is change in GC value, MS should restart for the
>>>> value to take effect.
>>>>
>>>> Thanks
>>>> Rajesh Battala
>>>>
>>>>> -----Original Message-----
>>>>> From: Rajesh Battala [mailto:rajesh.battala@citrix.com]
>>>>> Sent: Friday, February 15, 2013 9:22 AM
>>>>> To: cloudstack-users@incubator.apache.org; cloudstack-
>>>>> dev@incubator.apache.org
>>>>> Subject: RE: Change qcow disk cache=none
>>>>>
>>>>> Hi Jason Villalta,
>>>>>
>>>>> Can you raise the ticket for the same. I can work on it if you assign to
>>>>> me.
>>>>>
>>>>> Thanks
>>>>> Rajesh Battala
>>>>>
>>>>>> -----Original Message-----
>>>>>> From: Edison Su [mailto:Edison.su@citrix.com]
>>>>>> Sent: Friday, February 15, 2013 4:59 AM
>>>>>> To: cloudstack-users@incubator.apache.org
>>>>>> Subject: RE: Change qcow disk cache=none
>>>>>>
>>>>>> The code is at https://git-wip-us.apache.org/repos/asf?p=incubator-
>>>>>> cloudstack.git;a=blob;f=plugins/hypervisors/kvm/src/com/cloud/hypervis
>>>>>> or/kv
>>>>>>
>>>>> m/resource/LibvirtVMDef.java;h=acfd9cf1fe8eba217f09e20adf3101d1295d51d
>>>>>>
>>>>>> a;hb=HEAD, search "cache".
>>>>>> you can add a global configuration in cloudstack, or add a
>>>>>> configuration in agent.properties, to specify cache attribute.
>>>>>>
>>>>>>> -----Original Message-----
>>>>>>> From: Jason Villalta [mailto:jason@rubixnet.com]
>>>>>>> Sent: Thursday, February 14, 2013 2:16 PM
>>>>>>> To: cloudstack-users@incubator.apache.org
>>>>>>> Subject: Re: Change qcow disk cache=none
>>>>>>>
>>>>>>> Ok, I see the folks at openstack ran into a similar issue.
>>>>>>> https://bugs.launchpad.net/nova/+bug/959637
>>>>>>>
>>>>>>> How can I contribute to this?  Can you recommend a part of the code
>>>>>>> to look at so I can build and test a patch?
>>>>>>>
>>>>>>> On Thu, Feb 14, 2013 at 5:13 PM, Edison Su <Ed...@citrix.com>
>>>>>>> wrote:
>>>>>>>>
>>>>>>>> need to change cloudstack java code, right now, it's hard coded to
>>>>>>>
>>>>>>> "cache=none".
>>>>>>>>
>>>>>>>>
>>>>>>>>> -----Original Message-----
>>>>>>>>> From: Jason Villalta [mailto:jason@rubixnet.com]
>>>>>>>>> Sent: Thursday, February 14, 2013 1:45 PM
>>>>>>>>> To: cloudstack-users@incubator.apache.org
>>>>>>>>> Subject: Change qcow disk cache=none
>>>>>>>>>
>>>>>>>>> Is there a way to change this kvm disk cache setting in
>>>>>>>>> Cloudstack or
>>>>>>>
>>>>>>> template?
>>>>>>>>>
>>>>>>>>> If so where is the setting applied?
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> --
>>>>>>>>> Jason Villalta
>>>>>>>>> Co-founder
>>>>>>>>> 800.799.4407 | www.RubixTechnology.com
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> --
>>>>>>> Jason Villalta
>>>>>>> Co-founder
>>>>>>> 800.799.4407 | www.RubixTechnology.com
>>>
>>>
>>>
>>>
>>
>
>
>
> --
> --
> Jason Villalta
> Co-founder
> 800.799.4407 | www.RubixTechnology.com

Re: Change qcow disk cache=none

Posted by Jason Villalta <ja...@rubixnet.com>.
So is there anyway to make this work today or will I have to wait
until this is properly implemented?  This may mean I need to take
another look at openstack or opennebula and switch back.

On Fri, Feb 15, 2013 at 9:00 AM, Wido den Hollander <wi...@widodh.nl> wrote:
> On 02/15/2013 02:31 PM, Jason Villalta wrote:
>>
>> Is there any way easy way to make this setting dependent on the
>> storage definition?  For example some primary storage may need this
>> set to one value such as cache=writeback such as with the case of ZFS,
>> GlusterFS, CEPH.  Then other storage may want a different setting such
>> as cache=writethough or none which is the case with a local ext4
>> storage or NFS.
>>
>
> Exactly.
>
> I brought this up about a week ago, see this thread:
> http://markmail.org/thread/qmrod55gfmhwzot4
>
> It shouldn't be a global property, it should be defined per storage pool, or
> even better, per disk offering.
>
> Right now we are talking about the cache setting, but tomorrow it could be a
> different setting.
>
> Wido
>
>
>>
>>
>> On Thu, Feb 14, 2013 at 11:08 PM, Rajesh Battala
>> <ra...@citrix.com> wrote:
>>>
>>> Hi Jason Villalta,
>>> In LibvirtVmDef.java, there is DiskDef class ,  get the cache value from
>>> the Global config, while constructing the xml in the override method the
>>> class toString() specify the cache value, currently it is using "none".
>>>
>>> NOTE: whenever there is change in GC value, MS should restart for the
>>> value to take effect.
>>>
>>> Thanks
>>> Rajesh Battala
>>>
>>>> -----Original Message-----
>>>> From: Rajesh Battala [mailto:rajesh.battala@citrix.com]
>>>> Sent: Friday, February 15, 2013 9:22 AM
>>>> To: cloudstack-users@incubator.apache.org; cloudstack-
>>>> dev@incubator.apache.org
>>>> Subject: RE: Change qcow disk cache=none
>>>>
>>>> Hi Jason Villalta,
>>>>
>>>> Can you raise the ticket for the same. I can work on it if you assign to
>>>> me.
>>>>
>>>> Thanks
>>>> Rajesh Battala
>>>>
>>>>> -----Original Message-----
>>>>> From: Edison Su [mailto:Edison.su@citrix.com]
>>>>> Sent: Friday, February 15, 2013 4:59 AM
>>>>> To: cloudstack-users@incubator.apache.org
>>>>> Subject: RE: Change qcow disk cache=none
>>>>>
>>>>> The code is at https://git-wip-us.apache.org/repos/asf?p=incubator-
>>>>> cloudstack.git;a=blob;f=plugins/hypervisors/kvm/src/com/cloud/hypervis
>>>>> or/kv
>>>>>
>>>> m/resource/LibvirtVMDef.java;h=acfd9cf1fe8eba217f09e20adf3101d1295d51d
>>>>>
>>>>> a;hb=HEAD, search "cache".
>>>>> you can add a global configuration in cloudstack, or add a
>>>>> configuration in agent.properties, to specify cache attribute.
>>>>>
>>>>>> -----Original Message-----
>>>>>> From: Jason Villalta [mailto:jason@rubixnet.com]
>>>>>> Sent: Thursday, February 14, 2013 2:16 PM
>>>>>> To: cloudstack-users@incubator.apache.org
>>>>>> Subject: Re: Change qcow disk cache=none
>>>>>>
>>>>>> Ok, I see the folks at openstack ran into a similar issue.
>>>>>> https://bugs.launchpad.net/nova/+bug/959637
>>>>>>
>>>>>> How can I contribute to this?  Can you recommend a part of the code
>>>>>> to look at so I can build and test a patch?
>>>>>>
>>>>>> On Thu, Feb 14, 2013 at 5:13 PM, Edison Su <Ed...@citrix.com>
>>>>>> wrote:
>>>>>>>
>>>>>>> need to change cloudstack java code, right now, it's hard coded to
>>>>>>
>>>>>> "cache=none".
>>>>>>>
>>>>>>>
>>>>>>>> -----Original Message-----
>>>>>>>> From: Jason Villalta [mailto:jason@rubixnet.com]
>>>>>>>> Sent: Thursday, February 14, 2013 1:45 PM
>>>>>>>> To: cloudstack-users@incubator.apache.org
>>>>>>>> Subject: Change qcow disk cache=none
>>>>>>>>
>>>>>>>> Is there a way to change this kvm disk cache setting in
>>>>>>>> Cloudstack or
>>>>>>
>>>>>> template?
>>>>>>>>
>>>>>>>> If so where is the setting applied?
>>>>>>>>
>>>>>>>> --
>>>>>>>> --
>>>>>>>> Jason Villalta
>>>>>>>> Co-founder
>>>>>>>> 800.799.4407 | www.RubixTechnology.com
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> --
>>>>>> Jason Villalta
>>>>>> Co-founder
>>>>>> 800.799.4407 | www.RubixTechnology.com
>>
>>
>>
>>
>



-- 
-- 
Jason Villalta
Co-founder
800.799.4407 | www.RubixTechnology.com

Re: Change qcow disk cache=none

Posted by Wido den Hollander <wi...@widodh.nl>.
On 02/15/2013 02:31 PM, Jason Villalta wrote:
> Is there any way easy way to make this setting dependent on the
> storage definition?  For example some primary storage may need this
> set to one value such as cache=writeback such as with the case of ZFS,
> GlusterFS, CEPH.  Then other storage may want a different setting such
> as cache=writethough or none which is the case with a local ext4
> storage or NFS.
>

Exactly.

I brought this up about a week ago, see this thread: 
http://markmail.org/thread/qmrod55gfmhwzot4

It shouldn't be a global property, it should be defined per storage 
pool, or even better, per disk offering.

Right now we are talking about the cache setting, but tomorrow it could 
be a different setting.

Wido

>
>
> On Thu, Feb 14, 2013 at 11:08 PM, Rajesh Battala
> <ra...@citrix.com> wrote:
>> Hi Jason Villalta,
>> In LibvirtVmDef.java, there is DiskDef class ,  get the cache value from the Global config, while constructing the xml in the override method the class toString() specify the cache value, currently it is using "none".
>>
>> NOTE: whenever there is change in GC value, MS should restart for the value to take effect.
>>
>> Thanks
>> Rajesh Battala
>>
>>> -----Original Message-----
>>> From: Rajesh Battala [mailto:rajesh.battala@citrix.com]
>>> Sent: Friday, February 15, 2013 9:22 AM
>>> To: cloudstack-users@incubator.apache.org; cloudstack-
>>> dev@incubator.apache.org
>>> Subject: RE: Change qcow disk cache=none
>>>
>>> Hi Jason Villalta,
>>>
>>> Can you raise the ticket for the same. I can work on it if you assign to me.
>>>
>>> Thanks
>>> Rajesh Battala
>>>
>>>> -----Original Message-----
>>>> From: Edison Su [mailto:Edison.su@citrix.com]
>>>> Sent: Friday, February 15, 2013 4:59 AM
>>>> To: cloudstack-users@incubator.apache.org
>>>> Subject: RE: Change qcow disk cache=none
>>>>
>>>> The code is at https://git-wip-us.apache.org/repos/asf?p=incubator-
>>>> cloudstack.git;a=blob;f=plugins/hypervisors/kvm/src/com/cloud/hypervis
>>>> or/kv
>>>>
>>> m/resource/LibvirtVMDef.java;h=acfd9cf1fe8eba217f09e20adf3101d1295d51d
>>>> a;hb=HEAD, search "cache".
>>>> you can add a global configuration in cloudstack, or add a
>>>> configuration in agent.properties, to specify cache attribute.
>>>>
>>>>> -----Original Message-----
>>>>> From: Jason Villalta [mailto:jason@rubixnet.com]
>>>>> Sent: Thursday, February 14, 2013 2:16 PM
>>>>> To: cloudstack-users@incubator.apache.org
>>>>> Subject: Re: Change qcow disk cache=none
>>>>>
>>>>> Ok, I see the folks at openstack ran into a similar issue.
>>>>> https://bugs.launchpad.net/nova/+bug/959637
>>>>>
>>>>> How can I contribute to this?  Can you recommend a part of the code
>>>>> to look at so I can build and test a patch?
>>>>>
>>>>> On Thu, Feb 14, 2013 at 5:13 PM, Edison Su <Ed...@citrix.com> wrote:
>>>>>> need to change cloudstack java code, right now, it's hard coded to
>>>>> "cache=none".
>>>>>>
>>>>>>> -----Original Message-----
>>>>>>> From: Jason Villalta [mailto:jason@rubixnet.com]
>>>>>>> Sent: Thursday, February 14, 2013 1:45 PM
>>>>>>> To: cloudstack-users@incubator.apache.org
>>>>>>> Subject: Change qcow disk cache=none
>>>>>>>
>>>>>>> Is there a way to change this kvm disk cache setting in
>>>>>>> Cloudstack or
>>>>> template?
>>>>>>> If so where is the setting applied?
>>>>>>>
>>>>>>> --
>>>>>>> --
>>>>>>> Jason Villalta
>>>>>>> Co-founder
>>>>>>> 800.799.4407 | www.RubixTechnology.com
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> --
>>>>> Jason Villalta
>>>>> Co-founder
>>>>> 800.799.4407 | www.RubixTechnology.com
>
>
>


Re: Change qcow disk cache=none

Posted by Jason Villalta <ja...@rubixnet.com>.
Is there any way easy way to make this setting dependent on the
storage definition?  For example some primary storage may need this
set to one value such as cache=writeback such as with the case of ZFS,
GlusterFS, CEPH.  Then other storage may want a different setting such
as cache=writethough or none which is the case with a local ext4
storage or NFS.



On Thu, Feb 14, 2013 at 11:08 PM, Rajesh Battala
<ra...@citrix.com> wrote:
> Hi Jason Villalta,
> In LibvirtVmDef.java, there is DiskDef class ,  get the cache value from the Global config, while constructing the xml in the override method the class toString() specify the cache value, currently it is using "none".
>
> NOTE: whenever there is change in GC value, MS should restart for the value to take effect.
>
> Thanks
> Rajesh Battala
>
>> -----Original Message-----
>> From: Rajesh Battala [mailto:rajesh.battala@citrix.com]
>> Sent: Friday, February 15, 2013 9:22 AM
>> To: cloudstack-users@incubator.apache.org; cloudstack-
>> dev@incubator.apache.org
>> Subject: RE: Change qcow disk cache=none
>>
>> Hi Jason Villalta,
>>
>> Can you raise the ticket for the same. I can work on it if you assign to me.
>>
>> Thanks
>> Rajesh Battala
>>
>> > -----Original Message-----
>> > From: Edison Su [mailto:Edison.su@citrix.com]
>> > Sent: Friday, February 15, 2013 4:59 AM
>> > To: cloudstack-users@incubator.apache.org
>> > Subject: RE: Change qcow disk cache=none
>> >
>> > The code is at https://git-wip-us.apache.org/repos/asf?p=incubator-
>> > cloudstack.git;a=blob;f=plugins/hypervisors/kvm/src/com/cloud/hypervis
>> > or/kv
>> >
>> m/resource/LibvirtVMDef.java;h=acfd9cf1fe8eba217f09e20adf3101d1295d51d
>> > a;hb=HEAD, search "cache".
>> > you can add a global configuration in cloudstack, or add a
>> > configuration in agent.properties, to specify cache attribute.
>> >
>> > > -----Original Message-----
>> > > From: Jason Villalta [mailto:jason@rubixnet.com]
>> > > Sent: Thursday, February 14, 2013 2:16 PM
>> > > To: cloudstack-users@incubator.apache.org
>> > > Subject: Re: Change qcow disk cache=none
>> > >
>> > > Ok, I see the folks at openstack ran into a similar issue.
>> > > https://bugs.launchpad.net/nova/+bug/959637
>> > >
>> > > How can I contribute to this?  Can you recommend a part of the code
>> > > to look at so I can build and test a patch?
>> > >
>> > > On Thu, Feb 14, 2013 at 5:13 PM, Edison Su <Ed...@citrix.com> wrote:
>> > > > need to change cloudstack java code, right now, it's hard coded to
>> > > "cache=none".
>> > > >
>> > > >> -----Original Message-----
>> > > >> From: Jason Villalta [mailto:jason@rubixnet.com]
>> > > >> Sent: Thursday, February 14, 2013 1:45 PM
>> > > >> To: cloudstack-users@incubator.apache.org
>> > > >> Subject: Change qcow disk cache=none
>> > > >>
>> > > >> Is there a way to change this kvm disk cache setting in
>> > > >> Cloudstack or
>> > > template?
>> > > >> If so where is the setting applied?
>> > > >>
>> > > >> --
>> > > >> --
>> > > >> Jason Villalta
>> > > >> Co-founder
>> > > >> 800.799.4407 | www.RubixTechnology.com
>> > >
>> > >
>> > >
>> > > --
>> > > --
>> > > Jason Villalta
>> > > Co-founder
>> > > 800.799.4407 | www.RubixTechnology.com



-- 
-- 
Jason Villalta
Co-founder
800.799.4407 | www.RubixTechnology.com

Re: Change qcow disk cache=none

Posted by Jason Villalta <ja...@rubixnet.com>.
Is there any way easy way to make this setting dependent on the
storage definition?  For example some primary storage may need this
set to one value such as cache=writeback such as with the case of ZFS,
GlusterFS, CEPH.  Then other storage may want a different setting such
as cache=writethough or none which is the case with a local ext4
storage or NFS.



On Thu, Feb 14, 2013 at 11:08 PM, Rajesh Battala
<ra...@citrix.com> wrote:
> Hi Jason Villalta,
> In LibvirtVmDef.java, there is DiskDef class ,  get the cache value from the Global config, while constructing the xml in the override method the class toString() specify the cache value, currently it is using "none".
>
> NOTE: whenever there is change in GC value, MS should restart for the value to take effect.
>
> Thanks
> Rajesh Battala
>
>> -----Original Message-----
>> From: Rajesh Battala [mailto:rajesh.battala@citrix.com]
>> Sent: Friday, February 15, 2013 9:22 AM
>> To: cloudstack-users@incubator.apache.org; cloudstack-
>> dev@incubator.apache.org
>> Subject: RE: Change qcow disk cache=none
>>
>> Hi Jason Villalta,
>>
>> Can you raise the ticket for the same. I can work on it if you assign to me.
>>
>> Thanks
>> Rajesh Battala
>>
>> > -----Original Message-----
>> > From: Edison Su [mailto:Edison.su@citrix.com]
>> > Sent: Friday, February 15, 2013 4:59 AM
>> > To: cloudstack-users@incubator.apache.org
>> > Subject: RE: Change qcow disk cache=none
>> >
>> > The code is at https://git-wip-us.apache.org/repos/asf?p=incubator-
>> > cloudstack.git;a=blob;f=plugins/hypervisors/kvm/src/com/cloud/hypervis
>> > or/kv
>> >
>> m/resource/LibvirtVMDef.java;h=acfd9cf1fe8eba217f09e20adf3101d1295d51d
>> > a;hb=HEAD, search "cache".
>> > you can add a global configuration in cloudstack, or add a
>> > configuration in agent.properties, to specify cache attribute.
>> >
>> > > -----Original Message-----
>> > > From: Jason Villalta [mailto:jason@rubixnet.com]
>> > > Sent: Thursday, February 14, 2013 2:16 PM
>> > > To: cloudstack-users@incubator.apache.org
>> > > Subject: Re: Change qcow disk cache=none
>> > >
>> > > Ok, I see the folks at openstack ran into a similar issue.
>> > > https://bugs.launchpad.net/nova/+bug/959637
>> > >
>> > > How can I contribute to this?  Can you recommend a part of the code
>> > > to look at so I can build and test a patch?
>> > >
>> > > On Thu, Feb 14, 2013 at 5:13 PM, Edison Su <Ed...@citrix.com> wrote:
>> > > > need to change cloudstack java code, right now, it's hard coded to
>> > > "cache=none".
>> > > >
>> > > >> -----Original Message-----
>> > > >> From: Jason Villalta [mailto:jason@rubixnet.com]
>> > > >> Sent: Thursday, February 14, 2013 1:45 PM
>> > > >> To: cloudstack-users@incubator.apache.org
>> > > >> Subject: Change qcow disk cache=none
>> > > >>
>> > > >> Is there a way to change this kvm disk cache setting in
>> > > >> Cloudstack or
>> > > template?
>> > > >> If so where is the setting applied?
>> > > >>
>> > > >> --
>> > > >> --
>> > > >> Jason Villalta
>> > > >> Co-founder
>> > > >> 800.799.4407 | www.RubixTechnology.com
>> > >
>> > >
>> > >
>> > > --
>> > > --
>> > > Jason Villalta
>> > > Co-founder
>> > > 800.799.4407 | www.RubixTechnology.com



-- 
-- 
Jason Villalta
Co-founder
800.799.4407 | www.RubixTechnology.com

RE: Change qcow disk cache=none

Posted by Rajesh Battala <ra...@citrix.com>.
Hi Jason Villalta,
In LibvirtVmDef.java, there is DiskDef class ,  get the cache value from the Global config, while constructing the xml in the override method the class toString() specify the cache value, currently it is using "none". 

NOTE: whenever there is change in GC value, MS should restart for the value to take effect. 

Thanks
Rajesh Battala

> -----Original Message-----
> From: Rajesh Battala [mailto:rajesh.battala@citrix.com]
> Sent: Friday, February 15, 2013 9:22 AM
> To: cloudstack-users@incubator.apache.org; cloudstack-
> dev@incubator.apache.org
> Subject: RE: Change qcow disk cache=none
> 
> Hi Jason Villalta,
> 
> Can you raise the ticket for the same. I can work on it if you assign to me.
> 
> Thanks
> Rajesh Battala
> 
> > -----Original Message-----
> > From: Edison Su [mailto:Edison.su@citrix.com]
> > Sent: Friday, February 15, 2013 4:59 AM
> > To: cloudstack-users@incubator.apache.org
> > Subject: RE: Change qcow disk cache=none
> >
> > The code is at https://git-wip-us.apache.org/repos/asf?p=incubator-
> > cloudstack.git;a=blob;f=plugins/hypervisors/kvm/src/com/cloud/hypervis
> > or/kv
> >
> m/resource/LibvirtVMDef.java;h=acfd9cf1fe8eba217f09e20adf3101d1295d51d
> > a;hb=HEAD, search "cache".
> > you can add a global configuration in cloudstack, or add a
> > configuration in agent.properties, to specify cache attribute.
> >
> > > -----Original Message-----
> > > From: Jason Villalta [mailto:jason@rubixnet.com]
> > > Sent: Thursday, February 14, 2013 2:16 PM
> > > To: cloudstack-users@incubator.apache.org
> > > Subject: Re: Change qcow disk cache=none
> > >
> > > Ok, I see the folks at openstack ran into a similar issue.
> > > https://bugs.launchpad.net/nova/+bug/959637
> > >
> > > How can I contribute to this?  Can you recommend a part of the code
> > > to look at so I can build and test a patch?
> > >
> > > On Thu, Feb 14, 2013 at 5:13 PM, Edison Su <Ed...@citrix.com> wrote:
> > > > need to change cloudstack java code, right now, it's hard coded to
> > > "cache=none".
> > > >
> > > >> -----Original Message-----
> > > >> From: Jason Villalta [mailto:jason@rubixnet.com]
> > > >> Sent: Thursday, February 14, 2013 1:45 PM
> > > >> To: cloudstack-users@incubator.apache.org
> > > >> Subject: Change qcow disk cache=none
> > > >>
> > > >> Is there a way to change this kvm disk cache setting in
> > > >> Cloudstack or
> > > template?
> > > >> If so where is the setting applied?
> > > >>
> > > >> --
> > > >> --
> > > >> Jason Villalta
> > > >> Co-founder
> > > >> 800.799.4407 | www.RubixTechnology.com
> > >
> > >
> > >
> > > --
> > > --
> > > Jason Villalta
> > > Co-founder
> > > 800.799.4407 | www.RubixTechnology.com

RE: Change qcow disk cache=none

Posted by Rajesh Battala <ra...@citrix.com>.
Hi Jason Villalta,
In LibvirtVmDef.java, there is DiskDef class ,  get the cache value from the Global config, while constructing the xml in the override method the class toString() specify the cache value, currently it is using "none". 

NOTE: whenever there is change in GC value, MS should restart for the value to take effect. 

Thanks
Rajesh Battala

> -----Original Message-----
> From: Rajesh Battala [mailto:rajesh.battala@citrix.com]
> Sent: Friday, February 15, 2013 9:22 AM
> To: cloudstack-users@incubator.apache.org; cloudstack-
> dev@incubator.apache.org
> Subject: RE: Change qcow disk cache=none
> 
> Hi Jason Villalta,
> 
> Can you raise the ticket for the same. I can work on it if you assign to me.
> 
> Thanks
> Rajesh Battala
> 
> > -----Original Message-----
> > From: Edison Su [mailto:Edison.su@citrix.com]
> > Sent: Friday, February 15, 2013 4:59 AM
> > To: cloudstack-users@incubator.apache.org
> > Subject: RE: Change qcow disk cache=none
> >
> > The code is at https://git-wip-us.apache.org/repos/asf?p=incubator-
> > cloudstack.git;a=blob;f=plugins/hypervisors/kvm/src/com/cloud/hypervis
> > or/kv
> >
> m/resource/LibvirtVMDef.java;h=acfd9cf1fe8eba217f09e20adf3101d1295d51d
> > a;hb=HEAD, search "cache".
> > you can add a global configuration in cloudstack, or add a
> > configuration in agent.properties, to specify cache attribute.
> >
> > > -----Original Message-----
> > > From: Jason Villalta [mailto:jason@rubixnet.com]
> > > Sent: Thursday, February 14, 2013 2:16 PM
> > > To: cloudstack-users@incubator.apache.org
> > > Subject: Re: Change qcow disk cache=none
> > >
> > > Ok, I see the folks at openstack ran into a similar issue.
> > > https://bugs.launchpad.net/nova/+bug/959637
> > >
> > > How can I contribute to this?  Can you recommend a part of the code
> > > to look at so I can build and test a patch?
> > >
> > > On Thu, Feb 14, 2013 at 5:13 PM, Edison Su <Ed...@citrix.com> wrote:
> > > > need to change cloudstack java code, right now, it's hard coded to
> > > "cache=none".
> > > >
> > > >> -----Original Message-----
> > > >> From: Jason Villalta [mailto:jason@rubixnet.com]
> > > >> Sent: Thursday, February 14, 2013 1:45 PM
> > > >> To: cloudstack-users@incubator.apache.org
> > > >> Subject: Change qcow disk cache=none
> > > >>
> > > >> Is there a way to change this kvm disk cache setting in
> > > >> Cloudstack or
> > > template?
> > > >> If so where is the setting applied?
> > > >>
> > > >> --
> > > >> --
> > > >> Jason Villalta
> > > >> Co-founder
> > > >> 800.799.4407 | www.RubixTechnology.com
> > >
> > >
> > >
> > > --
> > > --
> > > Jason Villalta
> > > Co-founder
> > > 800.799.4407 | www.RubixTechnology.com