Questions tagged [nfs]

nfs (Network File System) created by Sun Microsystems. NFS allows a client system to access network files as if local.

nfs (Network File System) created by Sun Microsystems. NFS allows a client system to access network files as if local.

Versions

  1. NFSv1 - experimental ; rfc 1094 March 1989
  2. NFSv2 - also defined in rfc 1094
  3. NFSv3 - defined in rfc 1813 June 1995
  4. NFSv4 - defined in rfc 3010 Dec.2000 & revised in rfc 3530 Apr.2004
1036 questions
81
votes
15 answers

mount.nfs: access denied by server while mounting on Ubuntu machines?

I have three machines in production - machineA 10.66.136.129 machineB 10.66.138.181 machineC 10.66.138.183 and all those machines have Ubuntu 12.04 installed in it and I have root access to all those three machines. Now I am supposed to…
arsenal
  • 3,053
  • 17
  • 44
  • 49
76
votes
13 answers

Correct locking in shell scripts?

Sometimes you have to make sure that only one instance of a shell script is running at the same time. For example a cron job which is executed via crond that does not provide locking on its own (e.g. the default Solaris crond). A common pattern to…
maxschlepzig
  • 56,316
  • 50
  • 205
  • 279
58
votes
2 answers

NFS Server changes in /etc/exports file need Service Restart?

I have NFSv4 Server (on RHELv6.4) and NFS Clients on (CentOSv6.4). Let's say in /etc/exports: /shares/website1 (rw,sync,no_subtree_check,no_root_squash) /shares/website2 …
夏期劇場
  • 1,571
  • 9
  • 22
  • 35
46
votes
7 answers

How to determine if NFS mount is mounted as v3 or v4?

Red Hat 5/6 when I do mount it says type nfs, I would like to know how to determine version if it isn't listed in mount options or fstab. Please don't say remount it with the version option, I want to know how to determine the currently mounted NFS…
Gregg Leventhal
  • 7,480
  • 19
  • 65
  • 100
41
votes
4 answers

Why is Linux NFS server implemented in the kernel as opposed to userspace?

I was just wondering why the Linux NFS server is implemented in the kernel as opposed to a userspace application? I know a userspace NFS daemon exists, but it's not the standard method for providing NFS server services. I would think that running…
phemmer
  • 70,657
  • 19
  • 188
  • 223
40
votes
10 answers

How to delete this indelible directory?

I untarred a corrupt tar file, and managed to end up with some directory that I can not delete, If I try to delete it, it seems like it can not be found, but ls shows it's present, both with bash and with python I get similar behaviour, except…
mike-m
  • 525
  • 1
  • 4
  • 11
39
votes
3 answers

Fast way to copy a large file on a LAN

I am having some trouble with NFS, and I'd like to try using just plain old TCP. I have no idea where to begin, though. Hardware-wise, I am using an ethernet crossover cable to network two netbooks. To network them, I type $ sudo ifconfig eth0…
ixtmixilix
  • 13,040
  • 27
  • 82
  • 118
38
votes
6 answers

NFS: mount.nfs: Protocol not supported

I want to mount the NFS share of a Zyxel NSA310s NAS. Showmount, called on the client machine, shows the share: $ showmount 10.0.0.100 -e Export list for 10.0.0.100: /i-data/7fd943bf/nfs/zyxelNFS * The client's /etc/fstab contains the…
Geom
  • 513
  • 1
  • 4
  • 8
37
votes
4 answers

Does bash open files in O_APPEND when using ">>" on linux?

If we use echo 1234 >> some-file then Documentation says that the output is appended. My guess is that, if some-file does not exist, then O_CREAT will make a new file. If > was used, then O_TRUNC will truncate existing file. In case of >> : Will the…
Prem
  • 3,282
  • 3
  • 21
  • 34
34
votes
5 answers

How to properly export and import NFS shares that have subdirectories as mount points also?

Server A exports directory /srv via NFS with option nohide. A subdirectory within /srv, /srv/foo, is a mount point for another location on the NFS server using --bind option, like server# mount --bind /bar/foo/ /srv/foo/ Client B imports A:/srv…
mbaitoff
  • 4,911
  • 8
  • 28
  • 32
33
votes
3 answers

Can someone sniff NFS over internet?

I want to connect to my home server from work using NFS. I tried sshfs but some people say it's not as reliable as NFS. I know sshfs traffic is encrypted. But what about NFS? Can someone sniff my traffic and view the files I'm copying? I'm using…
Tomas
  • 1,014
  • 2
  • 12
  • 18
29
votes
5 answers

How to determine what filesystem a directory exists on?

I have an NFS share which is shared across about two other machines. I recently realized that one of the servers isn't sharing the directory and is keeping files all for itself. Is there a way to see if the NFS share is mounted in the directory I…
Naftuli Kay
  • 38,686
  • 85
  • 220
  • 311
28
votes
2 answers

Preventing broken NFS connection from freezing the client system

We have an NFS 4 share, sharing a volume between a number of servers (NFS server, and clients all Debian 8). We have had some issues recently where network outages would freeze the client systems. Our NFS options were minimal, just rw (and so the…
UpTheCreek
  • 828
  • 3
  • 10
  • 17
23
votes
4 answers

NFS does not work. mount: wrong fs type, bad option, bad superblock

This is what I got on server: manuel@server ~ $ cat /etc/exports /var/share 192.168.178.20(rw, sync) manuel@server ~ $ cat /etc/hosts.allow portmap: 192.168.178.20 manuel@server /etc $ cat /proc/filesystems | grep nfs nodev nfs nodev…
ManuelSchneid3r
  • 4,256
  • 8
  • 41
  • 58
23
votes
4 answers

flock(2) versus fcntl(2) over a NFS

The Perl 5.x documentation states that its implementation of flock(..) will use one of the following native calls, starting at 1 and working toward 3 if unavailable: flock(2) fcntl(2) lockf(3) That's fine. However, you may have noticed their…
Jmoney38
  • 546
  • 2
  • 5
  • 13
1
2 3
69 70