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

NFS transfer delay

I adopt a bunch of webserver with a NFS storage behind the setup from an administrator who left our company. The setup consists of eight webservers and one NFS storage server which work together. The NFS storage server is mounted in the /etc/fstab…
0
votes
1 answer

NFSv4 Server Bind Exports

I have been trying to set up a NFSv4 Server with one export. In the exported directory, I want mounted file systems via bind and also data stored in the exported directory. For…
0
votes
1 answer

nfs server did not start anymore on fedora 25 after resent update

After an update today my nfs server did not respond anymore. By trying to enable the services I got the following problems results: sudo systemctl enable nfs-idmap.service results to: The unit files have no installation config (WantedBy,…
Klaus
  • 101
  • 1
0
votes
0 answers

Will NFS/SMB have performance problems if the share has millions of files

Our web application stores a few million files for long term archiving. We're looking into setting up multiple web servers for redundancy and load balancing purposes, so we need a way to store files in a way that multiple web servers can read and…
Brandon
  • 426
  • 5
  • 17
0
votes
1 answer

File server unavailable to part of cluster

I'm running a rocks 6.2 cluster running Centos 6.8. Mainly it consists of the head node, compute nodes and file servers. They're connected through a 10Gb local switch and also all on the datacenter 1Gb switch (the compute nodes are only on the local…
Michael S
  • 305
  • 3
  • 12
0
votes
1 answer

NFS exportfs -a fails

I am running Volumio on my RasPi and I want to export the internal storage directory (/data/INTERNAL) so that anyone may mount it to add/remove music. When I run 'exportfs -a' I get the following message: exportfs: /data/INTERNAL does not support…
Arie vW
  • 1
  • 1
  • 1
0
votes
0 answers

Web application serving static files using Docker on multiple hosts

Before Docker we normally had a NFS server on a separate host(s) and then mounted it on nginx and app hosts, so that nginx instances could serve static files created by web app and app worker instances could process user uploads. Migrating to Docker…
Andrei
  • 235
  • 3
  • 10
0
votes
1 answer

Exporting NFS volume to public IP

I need to have access to a shared volume from my server. I talked with my sysadmins and I knew that this volume could not be exported to a private IP address due to technical reasons. My server and the volume stays in the same datacenter. They need…
FrankBr
  • 103
  • 4
0
votes
1 answer

Permission difficulties with NFS-mounted /var/spool/mail for dovecot and procmail

My mail server setup worked for years. Recently I've started experiencing the following problem: Mail setup: sendmail+dovecot+procmail Host file server: CentOS 6.8, NFS exports mail directories to... Mail server: CentOS 7.3, running as guest VM on…
0
votes
1 answer

NFS export of other mounts in the tree

I have a filesystem under /var/hudson/jobs which is exported thus: /var/hudson/jobs *(ro,no_root_squash,nohide) I regularly mount new LVM volumes under that directory structure (say, /var/hudson/jobs/A/2222) and want to be able to mount these…
Jon Topper
  • 802
  • 9
  • 17
0
votes
0 answers

Rebuilt server with same firewall rules but now NFS doesn't work

I have a Django/Nginx/Gunicorn web server ("web02") and an Nginx file server ("fs02") that is used to store user images. When a user uploads images through the web site, they are saved to the file server via a directory that is cross-mounted from…
Jim
  • 330
  • 7
  • 16
0
votes
1 answer

Can we use sshfs or NFS for LVM?

I want to create LVM using sshfs or NFS. Is it possible at all? I tried searching over web but did not find anything. Forgive me if this question is wrong for this community.
Shiv
  • 119
  • 4
0
votes
1 answer

connection refused with nfs server

I have an issue with NFS. I have two rhel4 servers. sys1 and sys2. I have a directory exported from sys1 and sys2 is the nfs client trying to access the mount. I'm able to mount, but after a certain amount of time I get "RPC: Remote system error:…
someguy
0
votes
1 answer

Direct mount in autofs

I would like to automount a nfs share using autofs but it doesn't work. This works : mount -vvv -t nfs -o vers=3 192.168.0.12:/share /local/data/mydir But when I put this line in my /etc/auto.master, it doesn't work, there is nothing in mydir after…
tonio94
  • 145
  • 3
  • 8
0
votes
1 answer

NFS troubles: showmount -e {server IP} doesn't work

I'm having a number of troubles setting up an NFS mount on a Ubuntu server, and the main issue seems to be in making connection from the client (a Mac). I can ping the server address fine. Here is an NMAP result: Nmap scan report for…
HomerPlata
  • 111
  • 1
  • 7