NFS

Options for File Sharing between Windows & Linux hosts

In most enterprises, the choice between these depends on factors like performance requirements, ease of management, security, scalability, and support for disaster recovery.

NetApp

Runs under ONTAP, a proprietary OS having a Unix-like CLI.

Use NFSv3, which abides Linux-client UID/GID permissions, requiring only minimal coupling of server-client configurations.

NFSv4 uses names of users and groups instead, and requires evermore coupling of server-client configurations. Moreover, if storage consumers include automated provisioners (e.g., for containerized workloads), the highly-coupled if not manual configuration requirements are worst fit.

@ Client machine(s)

# Remote NFS server (SERVER:EXPORT) params
server=192.168.0.216
export=/remote/export

# Local NFS client mount params
mount=/local/path
options='nfsvers=3,sec=sys,proto=tcp,port=2049,noacl,nolock'

# Prep the local mount point
sudo mkdir -p $mount
sudo chown :$aGID $mount
sudo chmod g+s $mount # So all files created thereunder/after are of group $aGID

# Mount now : does not survive reboot and is not mounted by `mount -a`
sudo mount -t nfs -o "$options" $server:$export $mount

# Mount persistently and by `mount -a` 
cat /etc/fstab |grep $mount ||
    echo "$server:$export    $mount    defaults,$options    0 0" |sudo tee -a /etc/fstab

@ /etc/fstab

192.168.0.216:/remote/export    /local/path    nfs    defaults,nfsvers=3,sec=sys,port=2049,proto=tcp,noacl,nolock    0 0