Re: [one-users] Create Swap locally

2013-11-16 Thread Alberto Picón Couselo

Hi, Rubén.

I will try your tips as soon as possible and I will report the results.

Best Regards and thank you very much for your help,
Alberto Picón

El 15/11/2013 10:18, Ruben S. Montero escribió:

Hi

This could be done by modifying the mkswap script from the shared 
driver. As you'll see it is just calling mkimage, so you either use 
that script for mkswap with the following modifications, or update 
mkimage so the changes will affect to all volatile disks. So my 
proposal would be:


1.- Create a local storage area in the hosts e.g. /var/scratch
2.- Update the scrtip to create the volumes in that directory
3.- Link the file in /var/scratch to the path currently used in mkimage
4.- Update the delete script so when a file linked to /var/scratch is 
deleted it'll follow the link.


Good luck,

Ruben

PS: OpenNebula 4.4 does also report storage size for system DS and 
considers the space left to make scheduling decisions. To apply this 
to 4.4 it'd need to update the monitor_ds.sh probe to report the size 
of /var/scratch.



On Thu, Nov 14, 2013 at 11:08 PM, Alberto Picón Couselo 
mailto:alpic...@gmail.com>> wrote:


Hello everybody,

Is it possible to add a swap file to a VM template that is
located/created on the fly using the local filesystem of the
hypervisor?.

I think that this feature could improve performance a lot.
Sometimes is impossible to avoid VMs to write to swap and
currently all the swap files are mounted over NFS using 0 datastore.

Can you please give me a clue to achieve this feature?

Best Regards,
Alberto Picón



___
Users mailing list
Users@lists.opennebula.org 
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org




--
--
Ruben S. Montero, PhD
Project co-Lead and Chief Architect
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org  | 
rsmont...@opennebula.org  | @OpenNebula



___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Create Swap locally

2013-11-15 Thread Ruben S. Montero
Hi

This could be done by modifying the mkswap script from the shared driver.
As you'll see it is just calling mkimage, so you either use that script for
mkswap with the following modifications, or update mkimage so the changes
will affect to all volatile disks. So my proposal would be:

1.- Create a local storage area in the hosts e.g. /var/scratch
2.- Update the scrtip to create the volumes in that directory
3.- Link the file in /var/scratch to the path currently used in mkimage
4.- Update the delete script so when a file linked to /var/scratch is
deleted it'll follow the link.

Good luck,

Ruben

PS: OpenNebula 4.4 does also report storage size for system DS and
considers the space left to make scheduling decisions. To apply this to 4.4
it'd need to update the monitor_ds.sh probe to report the size of
/var/scratch.


On Thu, Nov 14, 2013 at 11:08 PM, Alberto Picón Couselo
wrote:

>  Hello everybody,
>
> Is it possible to add a swap file to a VM template that is located/created
> on the fly using the local filesystem of the hypervisor?.
>
> I think that this feature could improve performance a lot. Sometimes is
> impossible to avoid VMs to write to swap and currently all the swap files
> are mounted over NFS using 0 datastore.
>
> Can you please give me a clue to achieve this feature?
>
> Best Regards,
> Alberto Picón
>
>
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>


-- 
-- 
Ruben S. Montero, PhD
Project co-Lead and Chief Architect
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org | rsmont...@opennebula.org | @OpenNebula
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] Create Swap locally

2013-11-14 Thread Alberto Picón Couselo

Hello everybody,

Is it possible to add a swap file to a VM template that is 
located/created on the fly using the local filesystem of the hypervisor?.


I think that this feature could improve performance a lot. Sometimes is 
impossible to avoid VMs to write to swap and currently all the swap 
files are mounted over NFS using 0 datastore.


Can you please give me a clue to achieve this feature?

Best Regards,
Alberto Picón


___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org