[libvirt-users] Define storage pool on NFS, mounted from fstab

Good day. We've got a question, as there's a need to mount NFS over RDMA. How we should define a pool on an already mounted NFS folder? The pool must be "shared" for all KVM nodes for live migration purposes. Thanks in advance.

On 2013-06-27, Николай /Thug/ <blackthug@gmail.com> wrote:
We've got a question, as there's a need to mount NFS over RDMA. How we should define a pool on an already mounted NFS folder? The pool must be "shared" for all KVM nodes for live migration purposes. Thanks in advance.
An NFS mounted pool shouldn't be any different from a regular directory-based pool. You should be able to define it in virsh like this: virsh # pool-define-as poolname dir --target /path/to/nfs/mount virsh # pool-autostart poolname virsh # pool-start poolname Which will get you something like this: virsh # pool-dumpxml poolname <pool type='dir'> <name>poolname</name> <uuid>b1fb2bef-baa4-0163-fbef-369c24c43a01</uuid> <capacity unit='bytes'>52710469632</capacity> <allocation unit='bytes'>15555280896</allocation> <available unit='bytes'>37155188736</available> <source></source> <target> <path>/tmp/libvirt</path> <permissions> <mode>0700</mode> <owner>4294967295</owner> <group>4294967295</group> </permissions> </target> </pool> Assuming you have the NFS volume mounted at the same point on all your KVM hosts you can just perform the same commands on each host. -- Lars Kellogg-Stedman <lars@oddbit.com>
participants (2)
-
Lars Kellogg-Stedman
-
Николай /Thug/