[one-users] OpenNebula 3.4 and swap disk

Alberto Zuin - Liste liste at albertozuin.eu
Mon Jun 11 23:25:13 PDT 2012


Hello,
I have a configuration with two OpenNebula controllers in fault 
tolerance and two KVM nodes.
The OpenNebula server is also a MooseFS controller and exports the main 
MooseFS shared volume in /var/lib/one directory to himself and to nodes.
Now I want dynamically create swap disk, but i realized that mkswap 
create the disk in /var/lib/one/datastores/0/[VMID]/, which is inside 
main shared volume: I want my swap disks in local node volume for speed 
purposes, not in shared disks.
My best (complicated) idea is to create a new shared datastore and mount 
a local partition in every node on datastore directory (ex. 
/var/lib/one/datastores/100); then manually create "swap" partition in 
this datastore using real datablock empty disk: in this moment, the disk 
is only inside MooseFS volume. Then setup an rsync process that copy the 
datablock inside every node before instantiate the VM.
I want to known if there is a easier best practice to do that.
Thanks,
Alberto

-- 
----------------------------
Alberto Zuin
via Mare, 36/A
36030 Lugo di Vicenza (VI)
Italy
P.I. 04310790284
Tel. +39.0499271575
Fax. +39.0492106654
Cell. +39.3286268626
www.azns.it - alberto at azns.it




More information about the Users mailing list