A typical and simple setup consists of installing and configuring an NFS server on the frontend. After this, mount a common directory on every host as configured by the VM_DIR
parameter in oned.conf
, or directly at /var/lib/one
or $ONE_LOCATION/var
(which is the default location of VM_DIR
).
In order to install the NFS server on the frontend use the following command:
$ sudo apt-get install nfs-kernel-server
Also configure the /etc/exports
file using the following code:
/var/lib/one 192.168.66.0/24(rw,async,no_subtree_check,no_root_squash)
Now take a look at the options that are used. They are as follows:
rw
: This is used by the clients to read and write on the storage.async
: This is used to yield better performance at the cost of possible data corruption if the server reboots while keeping unwritten data and/or metadata in its caches. As our files will be disk images that probably contain a journaled filesystem, we should not worry too much. Use...