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
8
votes
2 answers

Debug slow lan (ssh, nfs) file transfer

I've got two linux boxes attached to a gigabit switch. They both have gigabit NICs, cables are cat7. Testing the network with iperf shows a fast connection but transferring files with rsync, scp, or nfs share is slow. I'm testing with one 1GB…
pinpox
  • 83
  • 4
8
votes
3 answers

Samba sharing an NFS mount point

I'm sorry if this is a repeat post, seems my first attempt failed... A little context first. Firstly, I have inherited one of the classic networks from hell. Amongst a number of other things, I discovered that the majority of the clients data,…
Peter Nunn
  • 452
  • 1
  • 11
  • 25
8
votes
2 answers

Yet Another NFS Permissions Error: Linux NFS4 Access Denied ('Auth Bogus Credentials (seal broken)') from NAT'd VM

Inside the VM, host address is 10.0.2.2, local address is 10.0.2.15. (VirtualBox). This gets translated to 127.0.0.1 on the host side. To connect: sudo mount -vvvt nfs4 -o clientaddr=127.0.0.1 10.0.2.2:/srv /mnt I specified clientaddr because I…
A__A__0
  • 423
  • 2
  • 8
  • 17
8
votes
1 answer

Windows 7 NFS Client Using Kerberos and Linux KDC

I am trying to configure a Windows 7 Enterprise client to mount a NFSv4 share on a Linux NFS server using Kerberos and a Linux KDC. The setup is: IPA Server (OS: Scientific Linux 6.4, Pkg: ipa-server) NFS Server (OS: Scientific Linux 6.4, Pkg:…
Mike
  • 295
  • 3
  • 9
8
votes
3 answers

NFSv4 not able to set any sockets for nfsd without running rpcbind

According to Red Hat docs 'rpcbind' is not required any more: Because protocol support has been incorporated into the v4 protocol, NFSv4 has no interaction with the portmap, rpc.lockd, and rpc.statd daemons. NFSv4 listens on the well-known TCP…
HTF
  • 3,148
  • 14
  • 52
  • 82
8
votes
2 answers

/etc/exports & mount option

In my Linux server I have the following options in /etc/exports /home *(rw,sync,no_subtree_check,no_root_squash) And I mount from a Mac using mount -t nfs -o…
Ryan
  • 5,831
  • 24
  • 72
  • 91
8
votes
3 answers

Permissions are not taking effect with Kerberised NFSv4 on FreeBSD

I'm currently trying to set up an NFSv4 server on FreeBSD. I have extensive experience with doing this on other Unices (Solaris and Linux), but I'm fairly new to FreeBSD. My goal is to achieve the following: Files served from the FreeBSD system The…
Elias Mårtenson
  • 329
  • 1
  • 4
  • 12
8
votes
4 answers

Flush-0:n processes causing massive bottleneck

I have a LAMP cluster that shares files via NFS and occasionally one of them will be stricken for a while when mysterious flush processes start appearing. Can anyone help me? The only way to resolve this is to reboot - killing the processes only…
Tom
  • 731
  • 3
  • 11
  • 24
8
votes
1 answer

high load average, high wait, dmesg raid error messages (debian nfs server)

Debian 6 on HP proliant (2 CPU) with raid (2*1.5T RAID1 + 2*2T RAID1 joined RAID0 to make 3.5T) running mainly nfs & imapd (plus samba for windows share & local www for previewing web pages); with local ubuntu desktop client mounting $HOME, laptops…
8
votes
1 answer

NFS (with Kerberos) mount failing due to "Server not found in Kerberos database" error

When running: sudo mount -t nfs4 -o sec=krb5 sol.domain.com:/ /mnt I get this error on the client: mount.nfs4: access denied by server while mounting sol.domain.com:/ And on the server syslogs I read UNKNOWN_SERVER: authtime 0, …
Kendall Hopkins
  • 403
  • 1
  • 5
  • 11
8
votes
3 answers

Access files located on the underlying filesystem of an NFS mountpoint

Perhaps this is an odd request, but it's the opposite of the question detailed at: Is it possible to view the contents of an underlying NFS mount without unmounting the NFS content? I have an arrangement where Linux servers at multiple remote sites…
ewwhite
  • 197,159
  • 92
  • 443
  • 809
8
votes
3 answers

sysctl.conf not running on boot

At what point is sysctl.conf supposed to be read during boot, and why might it not be running? I have the following settings which are not being applied when I reboot: net.bridge.bridge-nf-call-arptables = 0 net.bridge.bridge-nf-call-ip6tables =…
Brian
  • 796
  • 1
  • 6
  • 15
8
votes
3 answers

Combined NFS, Samba server w users from Active Directory

I want to build a server that exports user home directories over SMB/CIFS and NFS. This server would be joined to a Win2k3 AD domain controller that holds our user database. As I understand it, winbind will invent UIDs for these users on the fly.…
Bittrance
  • 3,070
  • 3
  • 24
  • 27
8
votes
5 answers

How to make NFS secure?

How can I make NFS connection secure? Remote server is on the internet, and not in local network. The server has no firewall and connected to internet directly.
Eonil
  • 10,459
  • 16
  • 36
  • 54
8
votes
3 answers

exportfs: internal: no supported addresses in nfs_client

I am trying to set up a NFS server on an AWS instance running SLES11. After installing nfs-utils, I tried to export a test share. Here is what my /etc/exports file looks like: /opt/share1 ec2-50-16-224-79.compute-1.amazonaws.com(rw,async) export…
Brian
  • 181
  • 1
  • 1
  • 2