[one-users] Create Swap locally

Alberto Picón Couselo alpicon1 at gmail.com
Sat Nov 16 02:49:27 PST 2013


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 
> <alpicon1 at gmail.com <mailto:alpicon1 at 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 at lists.opennebula.org <mailto:Users at 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 <http://www.OpenNebula.org> | 
> rsmontero at opennebula.org <mailto:rsmontero at opennebula.org> | @OpenNebula
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20131116/7e24b105/attachment-0002.htm>


More information about the Users mailing list