Questions tagged [nfs]

Network File System (NFS) is a network file system protocol originally developed by Sun Micro systems in 1984, allowing a user on a client computer to access files over a network in a manner similar to how local storage is accessed. NFS, like many other protocols, builds on the Open Network Computing Remote Procedure Call (ONC RPC) system. The Network File System is an open standard defined in RFCs.

Original NFS version

The implementation details are defined in RFC 1094. Sun used version 1 only for in-house experimental purposes. When the development team added substantial changes to NFS version 1 and released it outside of Sun, they decided to release the new version as v2, so that version interoperation and RPC version fall back could be tested.

NFSv2

Version 2 of the protocol (defined in RFC 1094, March 1989) originally operated entirely over UDP. Its designers meant to keep the protocol stateless, with locking (for example) implemented outside of the core protocol. NFSv2 only allowed the first 2 GB of a file to be read.

NFSv3

Version 3 (RFC 1813, June 1995) added:

  • support for 64-bit file sizes and offsets, to handle files larger than 2 gigabytes (GB)
  • support for asynchronous writes on the server, to improve write performance
  • additional file attributes in many replies, to avoid the need to re-fetch them
  • a READDIRPLUS operation, to get file handles and attributes along with file names when scanning a directory
  • assorted other improvements.

At the time of introduction of Version 3, vendor support for TCP as a transport-layer protocol began increasing. While several vendors had already added support for NFS Version 2 with TCP as a transport, Sun Micro systems added support for TCP as a transport for NFS at the same time it added support for Version 3. Using TCP as a transport made using NFS over a WAN more feasible.

NFSv4

Version 4 (RFC 3010, December 2000; revised in RFC 3530, April 2003), influenced by AFS and CIFS, includes performance improvements, mandates strong security, 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)
1887 questions
0
votes
1 answer

Add NFS mount to auto.direct when already mounted

I have a production server which has an NFS Share mounted via fstab. We now need to switch this to autofs to reduce some startup dependencies. Is it possible to delete the fstab entry and add an autofs entry without unmounting the file system? I'm…
embedded
  • 466
  • 2
  • 6
  • 19
0
votes
1 answer

NFS Server hangs on proxmox

I have a proxmox host running BTRFS. I installed debian 8.4 on my server with BTRFS as root filesystem, and then installed proxmox on top of that. This setup runs fine. Now I'm trying to use this host to export some NFS shares. The shares are…
Zarex
  • 1
  • 1
0
votes
1 answer

svn checkout on nfs: Value too large for defined data type

I get error when I try to svn checkout on nfs mounted directory: svn: E000079: Can't read directory /mnt/nfsdir: Value too large for defined data type. Solaris 10 SVN 1.8.14 NFS server: QNAP TS 853 Pro
Ebru Yener
  • 121
  • 6
0
votes
1 answer

NFS Not working on Linux Clients

I am a complete noob to Linux and its capabilities but in my environment I am having problems accessing an NFS share from Linux clients. I can mount the share without incident and have it set up as an auto mount but when I try to ls or cd to one of…
0
votes
2 answers

NFS Log Corruption

We several WebSphere application servers logging to a central NFS mount. Both the app servers and the NFS server are running in VMWare, the app servers are RHEL 5, and the NFS server is Ubuntu 8.04. All servers are connected via gigabit ethernet,…
ibuys
  • 69
  • 3
0
votes
1 answer

NFS share: what defines "other"'s permissions?

I am mounting an NFS share (v3, from my Synology NAS) on a FreeBSD 10.1 box. This works (i.e. it does not seem to be a UID/GID issue), but I always get 777 permissions when I mount the share. I need this to be 770. This is /etc/exports on the…
scherand
  • 183
  • 9
0
votes
1 answer

Sharing parts of the file system with compute nodes in a Beowulf cluster

We're using Scyld Clusterware (a Beowulf cluster), and I can never remember how to configure which parts of the shared file system are visible to the compute nodes. Which files need be configured, and how do I reload the configuration?
Don Kirkby
  • 1,354
  • 3
  • 11
  • 23
0
votes
0 answers

/etc/hosts is not processed during boot

I have NFS mounts set up in /etc/hstab as HOSTXYZ:/share/dir /mnt/nfs/local-dir nfs4 _netdev 0 0 It mounts fine when I run mount -a however it hangs during boot. I discovered that if I use IP address instead of HOSTXYZ it boots normally.…
oᴉɹǝɥɔ
  • 151
  • 6
0
votes
1 answer

Why are noac/lookupcache NFS v4 mount options not allowed?

I was trying some mount options from this answer, however, whenever, I have attempted using them I received this error when remounting: mount.nfs4: mount(2): Invalid argument mount.nfs4: an incorrect mount option was specified When remounting,…
Carson Reinke
  • 144
  • 1
  • 9
0
votes
0 answers

NFS nobody issue

I am having the nfs nobody issue running Centos 6 . I am running nfsv4 and authenticating users using 389-ds LDAP . The nfs mounts on the client are fine, but I am getting the folling error: rpc_idmapd nss_getpwnnam name 'uid' does not map into…
0
votes
1 answer

Rsync to remote server with mounted NFS USB

I am trying to rsync one file from server X to server Y. In the server Y, there is a mounted dir /mnt/myDir, where I am trying to sync that file. The goal is also to keep the full path of the file. I am trying to do this with: sudo -u www-data rsync…
Milos Cuculovic
  • 423
  • 3
  • 8
  • 22
0
votes
0 answers

Error when building NFS-ganesha v2.3 from source code

I am building NFS-ganesha v2.3 from source code (download here: https://github.com/nfs-ganesha/nfs-ganesha/releases/tag/V2.3.2) on Debian 8. There are some errors: error: ‘SVCXPRT’ has no member named ‘xp_requests’ error: ‘SVC_XPRT_FLAG_LOCKED’…
xuanhai266
  • 169
  • 7
0
votes
1 answer

Advantages and disadvantages of each type of layout in pNFS

As I know, Parallel NFS (pNFS) has three types: file layout, block layout and object layout. What are the advantages and disadvantages of each type?
Waveter
  • 564
  • 2
  • 6
  • 23
0
votes
0 answers

Troubleshoot NFS mount not working after reboot

I created a mountpoint and an entry in the fstab nas:/server1 /nas/server1 nfs rw,_netdev 0 0 This should try to mount the nfs during startup; but it might fail. That is why I also enabled the netfs daemon: >sudo…
Rob Audenaerde
  • 325
  • 1
  • 5
  • 16
0
votes
0 answers

Samba on NFS with Bind Mounts

I have a machine, which we can call HOST, that exports /home via NFSv4. It also runs several VMs, including one we can call SAMBA, which mounts and then re-exports (yes, I know this is not recommended) the NFSv4 shares over a different network to…
rg6
  • 185
  • 1
  • 11