Mounting NFS in FreeBSD 12.0 in AWS/EFS

Colin Percival cperciva at freebsd.org
Thu Feb 14 22:20:18 UTC 2019


On 2/14/19 12:12 PM, Rafal Lukawiecki wrote:
> In FreeBSD 11.1 I mount AWS EFS using:
> 
> mount -t nfs -o
> rw,nfsv4,oneopenown,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2
> 
> I understand that 12.0 had a few changes to NFS, including the long-awaited
> support for 64-bit inodes. Is there a newer/better/more recommended way to
> mount now?

The same command should work just fine.

> AWS suggest, for Linux, using nfsvers=4.1, and their mount looks
> like this (I realise the slight difference in syntax):
> 
> mount -t nfs4
> -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport 
The major difference here is that Linux doesn't need the 'oneopenown'
option.  But FreeBSD needs it in order to work around a limitation in
how EFS tracks open files.

-- 
Colin Percival
Security Officer Emeritus, FreeBSD | The power to serve
Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid


More information about the freebsd-cloud mailing list