Skip to main content
15 votes
Accepted

What is the difference between Ceph and NFS when it comes to shared file storage?

We really expect question-askers to have done at least a bit of homework first to be honest, anyway here we go. NFS is a file-sharing protocol, it doesn't define anything about the underlying ...
Chopper3's user avatar
  • 102k
14 votes
Accepted

How to configure reasonable timeout for nfs?

timeo and retrans are effective only on soft nfs not on hard nfs. Need to change the /etc/fstab like this: <remote-host-ip>:/path/to/origin /shared/point nfs soft,timeo=30 0 0 timeo is timeout ...
SHR's user avatar
  • 345
14 votes

What services and ports are required for NFSv4?

Only rpc.mountd and nfsd are required to be running for NFSv4. NFSv4 runs on TCP port 2049. The NFS server must accept incoming connections on this port. Unlike previous versions of NFS, this is the ...
Michael Hampton's user avatar
12 votes

Amazon EFS Mount from OSX

For anyone who is looking for answers to this kind of question, the comment from Michael solved my problem. We have direct connect to AWS and after adding the right inbound rule (TCP 2049 office ...
Sheng's user avatar
  • 221
8 votes
Accepted

What is the current status of pNFS on Ubuntu?

pNFS is an optional part of NFSv4.1 spec. IOW, you need nfs server and client to talk nfsv4.1+ to make use of it. As this is an option functionality, your client and server should support it. Linux ...
kofemann's user avatar
  • 5,009
6 votes
Accepted

How do I use /etc/export.d/?

Of course the answer turns out to be in the man page. After reading /etc/exports exportfs reads files in the /etc/exports.d directory as extra export tables. Only files ending in ....
Michael Hampton's user avatar
6 votes
Accepted

How can I determine the version of a remote NFS share?

nfsstat -m Watch out for “vers” inside the reported flags.
BaronSamedi1958's user avatar
5 votes
Accepted

How to identify which NFS client generates disk IO?

iotop and then o - you will see which process reads and/or writes and how much to the HDD. Check the pid of that process and do netstat -entp | grep <pid> - that way you will see established ...
13dimitar's user avatar
  • 2,566
5 votes

How can I use POSIX ACLs on an NFSv4 mount in Linux?

There are patches for libacl to do some kind of mapping between nfs4 and Posix ACLs. They seem to be unmaintained. I've never tried it. http://www.citi.umich.edu/projects/nfsv4/linux/acl-patches/ http:...
rudimeier's user avatar
  • 270
5 votes

Can Windows Server 2012 R2 mount a NFS 4.1 target?

This is not supported scenario (http://docs.aws.amazon.com/efs/latest/ug/limits.html), no need to check. And I think this is artificial or political limitation.
evgeny's user avatar
  • 201
5 votes
Accepted

What exactly does nfs4_disable_idmapping parameter do?

You hit a bad test case. According to kernel documentation nfs4_disable_idmapping option makes sense only when sec=sys is used.
kofemann's user avatar
  • 5,009
5 votes
Accepted

Docker volume on NFS share - empty directory

When a named volume is initialized from an empty/new state, docker will copy the contents of the image directory into the named volume. There are several options to deal with this: Initialize the ...
BMitch's user avatar
  • 6,429
5 votes

Client cannot mount: "mount.nfs4: Protocol not supported"

OK... so I downloaded the source and started poking around with strace. The problem was that I had been over-enthusiastic in /etc/nfsmount.conf, specifically: for nfs4 it is a mistake to set any of ...
Chris Hall's user avatar
4 votes
Accepted

Small LAN Linux fileserver and network design

My personal recommendation would be to use NIC teaming, for a number of reasons. NIC teaming/boding will allow for link redundancy and/or load balancing, depending on which options you select and your ...
Craig Watson's user avatar
  • 9,680
4 votes

mount using nfs4 giving no such device error

I met the error mount.nfs4: No such device after a system upgrade, and later it was solved by a reboot. It seems that the problem is that the old kernel module directory /usr/lib/modules/$(uname -r)/ ...
golopot's user avatar
  • 202
4 votes

Latency on a small Linux NFS4 client/server system

How I would troubleshoot this: if ~/.emacs.d/ is provided by a NFS mount, and the target file is a NFS mount provided by a second NFS server, and copying all of that local to the client removes the ...
StandardEyre's user avatar
4 votes
Accepted

Advantages and disadvantages of each type of layout in pNFS

It isn't really a matter of advantages or disadvantages. The access modes are very different, and it's therefore a matter of to what use you are going to put your server. File mode is the classic ...
Law29's user avatar
  • 3,577
4 votes

How to mount with uid and gid using NFS?

A regular Linux NFS server would do the trick with the following combination of /etc/exportfs options: all_squash,anonuid=xxx,anongid=yyy Citing man 5 exports: all_squash - Map all uids and gids ...
kupson's user avatar
  • 3,678
4 votes
Accepted

Why does ssh login as an AD user with private key in nfs4 /home succeed on the second attempt?

Let's first look at how NFS with sec=sys handles this, and then we'll see why NFS with sec=krb5* security fails. In this example, we'll have an SSH server and an NFS server running on two different ...
ZaZa's user avatar
  • 78
4 votes
Accepted

Kubernetes can't mount NFS volumes after NFS server update and reboot

After trying to debug this issue with rpcdebug to no avail, i've resorted to dumping traffic on nfs server coming from one of the nodes. This dump gave an interesting lead: NFS reply xid 4168498669 ...
Andrew's user avatar
  • 238
4 votes

Make NFS server listen only on a specific interface

Ubuntu and Debian have the configuration in /etc/default/nfs-kernel-server You can restrict it using RPCNFSDOPTS="-H 10.0.40.72"
Starlab Technologies s.r.o.'s user avatar
4 votes
Accepted

ESXI 8.0 Host to NFS slow vs Guest to NFS

What you see is absolutely normal and not fixable AS IS. VMware ESXi “by design” has no disk cache unlike guest OS inside a VM, that one really does! So, when you copy your file (which is a rogue test ...
RiGiD5's user avatar
  • 1,413
3 votes
Accepted

Unable to mount kerberized nfs?

In /etc/exports you specified sec=krb5p, so that all traffic will be authenticated and encrypted. But in your mount command, you specified sec=krb5, but this does not match. This must be the same as ...
Michael Hampton's user avatar
3 votes

nfs4: how to log mount requests?

NFSv4 does not have an explicit MOUNT operation. You can just watch traffic for SETCLIENT_ID operation for NFSv4.0 and EXCHANGE_ID for v4.1 and higher. Well, there are no official way to do it. But.......
kofemann's user avatar
  • 5,009
3 votes

XFS: possible memory allocation deadlock in kmem_alloc

It's related to memory fragmentation and filesystem fragmentation, see https://bugzilla.kernel.org/show_bug.cgi?id=73831 You should check your filesystem fragmentation with xfs_db -r -c 'frag' <...
wazoox's user avatar
  • 7,018
3 votes
Accepted

Is Samba 4 a good alternative to FreeIPA?

First, let me say that whether you choose Samba4 or FreeIPA, you're setting up a lot of moving parts for "one" file/print server. You could go with Samba4 as a file/print server, and not a domain ...
Michael Hampton's user avatar
3 votes
Accepted

NFS v4 server is causing stale file handle, but only when bind mount is a subdirectory

Notice that I am only exporting bind mounted filesystems. This section from the exports man page is relevant: fsid=num|root|uuid NFS needs to be able to identify each filesystem that it ...
pgoetz's user avatar
  • 495
3 votes
Accepted

bonding-rr vs single 10G for NFS NAS - pros and cons?

You definitely should not consider balance-rr as a bonding mode for anything other than direct point-to-point links for a single protocol to go over. The primary issue with balance-rr is that you'll ...
Spooler's user avatar
  • 7,136
3 votes
Accepted

Can not umount NFS directory (ignored)

If those filesystems are actually using NFSv4, then the type should be -t nfs4 instead of -t nfs. This is a kind of asymmetry, because those can be mounted using also the -t nfs option. You can check ...
A.B's user avatar
  • 13k
3 votes
Accepted

NFS server as a client of itself performs very poorly

It's very likely that your workload is dying a scheduling death. You're asking for a ton on context switches on the same system when exporting a filesystem back to itself and then exporting that ...
Spooler's user avatar
  • 7,136

Only top scored, non community-wiki answers of a minimum length are eligible