How to setup shared NFS storage

mschau

New Member
Mar 21, 2018
17
0
1
44
Hi!

I want to setup a NFS shared storage for my 4 hosts.
I got two IP's for my two NFS shares for redundancy.

For that I already consulted the Wiki and the Administration Guide - but I can't find out how to correctly configure that for my scenario.

Any help gladly appreciated!
 
that's very unusual, do you know the vendor of the NFS share server?

Usually for HA is the following:

2 head with own IP
1 virtual IP which fails over between the Heads

So you usually use the virtual IP
 
Ok! Thanks for your input!
I have to configure NFS 4.1 in order to provide for all hosts access to the share, I presume?
 
Thanks Klaus - got it working for one IP.

Is there a way to setup NFS multipathing?
 
I tried to adapt "storage.cfg" analogue to following link: http://packetpushers.net/multipathing-nfs4-1-kvm/

cat /etc/pve/storage.conf:
Code:
...
...

nfs: NFS
        export /V_KVM_0000
        path /mnt/pve/NFS
        server 10.1.66.11
        content images,backup,iso
        maxfiles 3
        options vers=4,minorversion=1,nolock

nfs: NFS
        export /V_KVM_0000
        path /mnt/pve/NFS
        server 10.1.66.12
        content images,backup,iso
        maxfiles 3
        options vers=4,minorversion=1,nolock

But had no luck with it - several errors when starting existing VMs and when creating new VMs (i.e. TASK ERROR: create failed - error with cfs lock 'storage-NFS': mkdir /mnt/pve/NFS/images/102: Permission denied at /usr/share/perl5/PVE/Storage/Plugin.pm line 567)

I tried also "options vers=4.1" (and no other options)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!