Questions tagged [nfsclient]
76 questions
163
votes
6 answers
Force unmount of NFS-mounted directory
I have an NFS-mounted directory on a Linux machine that has hung. I've tried to force an unmount, but it doesn't seem to work:
$ umount -f /mnt/data
$ umount2: Device or resource busy
$ umount: /mnt/data: device is busy
If I type "mount", it…

Lorin Hochstein
- 57,372
- 31
- 105
- 141
9
votes
1 answer
How to set quota or limits on NFS share on the client?
I am running Debian GNU/Linux 7 VM
mount.nfs version
mount.nfs: (linux nfs-utils 1.2.6)
I want to set quota on a NFS mount. The NFS server doesnt have quotas set. I installed quota, quotatool as per this wiki
enabled it using the below…

Rajani Karuturi
- 3,450
- 3
- 27
- 40
9
votes
3 answers
Linux Shell Script: How to detect NFS Mount-point (or the Server) is dead?
Generally on NFS Client, how to detect the Mounted-Point is no more available or DEAD from Server-end, by using the Bash Shell Script?
Normally i do:
if ls '/var/data' 2>&1 | grep 'Stale file handle';
then
echo "failing";
else
echo…

夏期劇場
- 17,821
- 44
- 135
- 217
7
votes
1 answer
nfs client on ubuntu 9.10, /etc/init.d/nfs-common does not exist
This seems like a trivial problem, but I can not find a solution for several days now.
I am trying to configure an nfs client on ubuntu 9.10 (64 bit). All the tutorials I've read say I need to restart a few things, such as portmap, and also…

Denali Lumma
- 319
- 6
- 14
6
votes
1 answer
What cipher is used on encrypted NFS?
For securing NFS (Network File System), the mount option krb5p can be used to encrypt all traffic between the file server and the NFS client. Authentication and key exchange is based on Kerberos.
Here is an example on how to configure that for…

Black
- 5,022
- 2
- 22
- 37
6
votes
1 answer
NFS source code
I'm looking for the source code of both NFS client and NFS server, in order to do so change inside the code, but unfortunately I was not able to find the source code.
Can anyone help, to locate their source codes? Are they located inside the linux…

saman
- 199
- 4
- 17
6
votes
2 answers
How to flush nfs attribute cache?
I need to find a way to flush the NFS attribute cache on the client side. stat() call reads ctime from attribute cache and not the actual value, takes upto 3 second for the actual value to be reflected in cache. using 'noac' option when mounting…

ramgo
- 184
- 1
- 3
- 10
5
votes
1 answer
Unable to mount nfs share shared from netapp in centos 7
I am unable to mount nfs share from netapp in centos 7. Exports are shared to everyone from netapp
I Specifically tried in nfsversion=3 and security style to sys,none and ntlmssp but still no luck.
Below are the messages in /var/log/messages and…

xrkr
- 189
- 7
5
votes
1 answer
mount.nfs: Connection timed out on ubuntu 14.04.1 LTS
I trying to create a nfs server for the first time. On trying to mount to the server I am getting an error "mount.nfs: Connection timed out". My server version is ubuntu 14.04.5 LTS while my client is ubuntu 14.04.1 LTS. Following are the step that…

surajitM
- 239
- 2
- 4
- 11
5
votes
0 answers
Not able to mount dockerized NFS server : requested NFS version or transport protocol is not supported
My docker engine is running on Ubuntu 16.
I tried to setup NFS server based on : Using https://github.com/ErezHorev/dockerized_nfs_server/blob/master/docker/Dockerfile
NFS server is running now . container IP is 172.17.0.2
But I am not able to…

sterin jacob
- 141
- 1
- 10
4
votes
0 answers
Read file content from NFS using Java
I'm trying to read file from NFS using Java.
I'm try to use https://github.com/raisercostin/yanfs with the following code:
XFile xf = new XFile("nfs://192.168.1.183/nfs-share-folder/myfile.zip");
nfsXFileExtensionAccessor nfsx =
…

Evyatar
- 1,107
- 2
- 13
- 36
4
votes
1 answer
Build strings dynamically in Ansible inventory
I have a question when I was using Ansible role NFS.
NFS role:
https://github.com/geerlingguy/ansible-role-nfs
My situation is like this: We will create a list of VMs which are NFS clients. And we need access control on NFS server. So, we set a list…

Hao Zhang
- 41
- 3
4
votes
3 answers
Vagrant hangs on NFS mounting on Ubuntu 14.04
until today my vagrant setup was working nice and smooth. But something happened and I can't find out what.
All of a sudden when I do vagrant up it hangs on mounting the NFS shared folder.
My guess is that something broke due to some updates on my…

Stev
- 1,062
- 11
- 23
4
votes
2 answers
Iptables Rules for NFS Server and NFS Client
Without iptables rules I am able to mount my NFSSERVER:/PATH but with it(firewall/iptables) enabled I am not able to mount.
[.e.g., after iptables --flush/ firewaalld stop ; mount NFSSERVER:/Path works ]
I am not supposed to disable/clear the…

resultsway
- 12,299
- 7
- 36
- 43
3
votes
1 answer
Deploying an NFS Server in K8S and exposing it externally
I am in the process of setting up a NFS server on my K8S cluster. I want it to act as a NFS server for external entities i.e. client will be from outside the K8S cluster such as VMs.
The port requirements for the Docker image are…
user4889345