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
0 answers

Why available disk space is increased after copy a file?

I was coping a file (win2016.tar.gz, 308.2GB) from ESXi host (/vmfs/volumes/vmstore) to a NFS datastore (/vmfs/volumes/vmnfs, share from my NAS ext4 partition). [root@esxi:/vmfs/volumes] ls -lah vmstore/win2016.tar.gz -rw-r--r-- 1 root root …
0
votes
1 answer

NFS cluster: how do I find out what is causing a file deletion?

I have a NFS server and a group of systems that involves about 50 machines using it for home directories. I have an intermittent bug where all the files at the top level of my home directory get deleted. How on earth can I track down what's causing…
pjc50
  • 1,720
  • 10
  • 12
0
votes
1 answer

CentOS 7 nfs server makes autofs nfs clients running macOS 10.11+ crash

I'm trying to figure out why macOS clients reboots when accessing files on a NFS home directory automounted from a CentOS 7 server. The exact same configuration works very well with CentOS 6 NFS servers. On the CentOS 7 server : # cat…
Fravadona
  • 103
  • 3
0
votes
0 answers

accidentially modifying the binary of a file whilst it is running

I have several FreeBSD boxes mix of V10 and V11 that all have some binaries mounted over nfs. unfortunately a situation came about when one was executed whilst it was still being uploaded to the nfs server. I would have expected the processes to…
camelccc
  • 255
  • 1
  • 15
0
votes
1 answer

How to mount a Kerberized NFS filesystem in CoreOS?

I'm trying to define a systemd mount using cloud-config.yml so that CoreOS mounts a kerberized file system at startup. The filesystem provider has handed me the krb5.conf and krb5.keytab which I write to /etc folder using write_files section of…
Daniel Cerecedo
  • 171
  • 1
  • 5
0
votes
0 answers

Open-source replacement for Amazon EBS for own cluster

I have a couple of worker nodes running Linux, on which I dynamically provision KVM virtual machines. Right now, I copy the qcow2 images from the NFS server to the node, run the VM and after shutdown the image gets moved back to the NFS server. Is…
0
votes
1 answer

NFS Server (on Ubunut 14.04) using static translation with a Windows client

I am trying to setup a NFS on a Ubuntu 14.04 system. I am following the instructions from here. I have attempted to configure the translation to use static. The /etc/idmapd.conf configuration file is setup as the following: …
lordhog
  • 101
  • 1
0
votes
2 answers

Sync Linux's directory to Windows continuously

Currently I am syncing a Linux directory to Windows folder via Dropbox. However, I want to pursue an opensource alternative to this approach since I don't want to files on Dropbox server. Are there any similar tools or approach I can use to do the…
Ryan
  • 5,831
  • 24
  • 72
  • 91
0
votes
2 answers

Permisssion denied on rw NFS share

With an NFS share mounted using mount server_hostname:/srv/home /mnt -o rw,sync, I'm getting Permission denied errors when trying to write (even as root). The server's /etc/exports looks like this: /srv/home…
squirl
  • 111
  • 5
0
votes
0 answers

Troubleshooting a kernel related lockup on CentOS

I've got a bunch of desktop clients, that seem to be hanging periodically since updating kernel from 3.10.0-327 to 3.10.0-514 (10.2, 21.1 and 21.2) The only 'hard' evidence I get is occasionally I see events logged locally: May 19 09:55:10…
Sobrique
  • 3,747
  • 2
  • 15
  • 36
0
votes
1 answer

NFSv4 client unable to mount export containing brackets or spaces but works on NFSv3

There is an issue with NFSv4 when you try to mount a path containing a space and or a bracket character. NFSv3 works fine using the path that uses a symbolic link to the actual folder and NFSv4 does not. I am unable to change the Dropbox…
Brad
  • 250
  • 1
  • 11
0
votes
1 answer

BackupPC files on NFS - web interface not working

if BackupPC files from dir /var/lib/BackupPC is moved to NFS mount, web interface not working. I see an only home page, but when I want to go to host config or to summary webpage timeouts (504 Gateway Timeout). In BackupPC logs isn't anything…
omfo
  • 61
  • 1
  • 6
0
votes
0 answers

fstab entry to mount NFS from NAS, do I need a password?

[CentOS7, Western Digital myBook NAS] I need to mount a NFS from an NAS. I am able to do this manually from the console with this command that doesn't require me to add a password on the command line. sudo mount 192.168.1.222:/DataVolume/MyShare…
WestHamster
  • 101
  • 1
  • 1
0
votes
1 answer

Permission denied to mkdir in /mnt

i am trying to mkdir inside /mnt/logs/ in order to mount an NFS mountpoint. But i am getting: mkdir: cannot create directory `/mnt/logs/server2': Permission denied /mnt/logs/ is full of other NFS mountpoints. root@server1 ~]# ll -d…
Bizrt
  • 11
  • 1
  • 5
0
votes
1 answer

transfer rate faster than the NIC suggests

i followed this thread to get the information on reading NIC speeds. How do I verify the speed of my NIC? i am using ethtool to verify the speed of my NIC as discussed the thread. :~ # ethtool eth0 Settings for eth0: Supported ports: [ TP ] …
lauc.exon.nod
  • 1,069
  • 8
  • 5