Questions tagged [nfs4]

Network File System version 4 (NFSv4)

NFS Version 4 (RFC 3010, December 2000; revised in RFC 3530, April 2003), influenced by AFS and CIFS, includes performance improvements, mandates strong security, ACLs, locking and introduces a stateful protocol. Version 4 became the first version developed with the Internet Engineering Task Force (IETF) after Sun Micro systems handed over the development of the NFS protocols.

NFS version 4 minor version 1 (NFSv4.1) has been approved by the IETF and received an RFC number 5661 since Jan 2010. The NFSv4.1 specification aims:

To provide protocol support to take advantage of clustered server deployments including the ability to provide scalable parallel access to files distributed among multiple servers (pNFS extension). to provide sessions and Exacely One Semantic (EOS)

269 questions
2
votes
1 answer

Netboot Debian (wheezy) from NFS v4

Is it possible to boot Debian Wheezy from NFS v4? Bootwing with NFS v3 works just fine. NFS v4 not. This is in my /etc/exports: /nfs 192.168.100.0/24(ro,sync,insecure,no_root_squash,no_subtree_check,fsid=0) /nfs/root…
bara
  • 121
  • 1
  • 3
2
votes
1 answer

NFS mounts showing files from other mounts

I have a server that holds ZFS snapshots that I export via NFS to the servers they are backing up so you can restore via a custom application written in-house. The issue is as follows: NOTE: I am not using ZFS built-in NFS for a reason, so please…
jemmille
  • 304
  • 1
  • 5
  • 17
2
votes
3 answers

NFS4 client within OpenVZ container running Ubuntu 11.10?

I have an Ubuntu 11.10 VPS running inside OPenVZ with a hosting company. I'm trying to get it to mount a remote NFS server using NFS4, but can only get it working using version 3. I've been Googling around this quite a lot and occasionally I'll read…
Mark G
  • 121
  • 2
2
votes
0 answers

NFSv4 ACLS vs NFSv3 KRB5 - problems - alternatives?

So NFSv4 acls don't ignore the umask as far as I can tell. And nfsv3 with kerberos has its own host of problems (with autofs - race conditions with pam). So if we want to use an nfs like system with autofs support what alternatives are there. I've…
2
votes
0 answers

Change UID in influxdb Docker container when running in Kubernetes

When mounting persistent storage for influxdb container the NFS storage ownership is changed to uid 1000 when container is run. Need to have a known RHEL host user (2000) have ownership of the file system. Tried setting the runAsUser security…
Ken E
  • 21
  • 3
2
votes
1 answer

NFSv4.1 mount is extremly slow until remount

I have an issue that I don't know how to debug. I hope you can help me further with this. In my group, I administer a Linux compute cluster that consists of multiple compute machines and a Synology NAS server. Since the user homes need to be…
Homan
  • 21
  • 2
2
votes
1 answer

Which ports are relevant for directing NFS traffic over iptables (or any other way) to a server behind a firewall server

I read that NFS v4 requires only port (2049). This is the post I relied on. However, if I do a rpcinfo -p before starting nfs, I see: rpcinfo -p program vers proto port service 100000 4 tcp 111 portmapper 100000 3 tcp 111 …
Sunny
  • 381
  • 1
  • 6
  • 16
2
votes
0 answers

NFS mounts folders, but no files

I have a problem getting files to show up using an NFSv4 mount between Server: Ubuntu 20.04, 192.168.1.1 Client: Ubuntu 18.04, 192.168.1.2 On the server, I have a folder and file /home/server/files/myfile.pdf (note 'server' is being used as the…
Darien Marks
  • 123
  • 5
2
votes
0 answers

Start idmapd at every boot

We suddenly had a "nobody" issue on NFSv4 mounts on SLES 12.5 machines. The: systemctl unmask nfs-idmapd.service systemctl enable nfs-idmapd.service systemctl restart nfs-idmapd.service nfsidmap -c solved it (+a correct /etc/idmapd.conf), but after…
jim7475
  • 51
  • 2
2
votes
3 answers

flock fails with NFSv4

I don't know why this code is not working under NFS4, using NFS3 works perfectly. The idea is to avoid the file being written while a process is still reading it. I would like to debug, but our sys-admin is not able to. Which could be…
2
votes
1 answer

NFS4 w/o Kerberos : name mapping works, permissions don't

I simply want to "map by userNAME" between NFS4 client and NFS4 server, when each has different uid for a given user name, w/o having to setup Kerberos. The situation: my Linux machine (centos 7) accesses various NFS4 servers (running centos…
Dipr
  • 23
  • 3
2
votes
1 answer

Why does ssh login as an AD user with private key in nfs4 /home succeed on the second attempt?

I configured my up-to-date Debian (v10.5) Server with samba, winbind, sssd, krb5 and nfs-common to authenticate against an AD in my domain and mount its /home via nfs4. On the client side (windows with putty, ssh from linux) i have my private key in…
2
votes
1 answer

nfs - per-host write protection?

I have a debian NFS server on an internal network, that I want to protect from modification by malicious agents. I want something stronger than per-IP or per-mac firewall rules. The clients are all linux. From what I have read/skimmed so far, use…
Michael Slade
  • 451
  • 1
  • 4
  • 7
2
votes
0 answers

NFS4 web directory throughput drops every 60 seconds - Apache / PHP-FPM / centos

We recently switched to an NFS4 share for our web directory (/var/www/sites). Ever since the switch at exactly 60 seconds, I'm seeing a drop off in throughput from the NFS mounted drive on the client-side. CPU drops (apache/PHP are waiting) and I…
Gnosis
  • 39
  • 4
2
votes
0 answers

Permission denied for user having a secondary group in an NFS shared folder

I have a NFS shared folder (storage) that can be accessed by other machines on my network. The right user can read and write files and folder in that storage, but I've created another user and affected the same group as the original user as a…
Cyril N.
  • 624
  • 1
  • 10
  • 36