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

learn more… | top users | synonyms

27
votes
10answers
13k views

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. ...
17
votes
1answer
261 views

Why does chmod require disk space? Not-in-place algorithm?

I try to chmod some files and I get the error "disk quota exceeded": It's true that I don't have that much space remaining in the filesystem where I use chmod, ...
12
votes
2answers
3k views

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 ...
8
votes
4answers
5k views

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 ...
8
votes
3answers
4k views

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) ...
7
votes
4answers
16k views

automount nfs: autofs timeout settings for unreliable servers - how to avoid hangup?

I'm running a small server for our flat share. It's mostly a file server with some additional services. The clients are Linux machines (mostly Ubuntu, but some others Distros too) and some Mac(-Book)s ...
7
votes
3answers
185 views

Setting up a unix powered network

I want to set up several computers on a LAN, all connecting to one unix server. The primary goal being that the user accounts should only exist on the server. So that any user could access his normal ...
7
votes
2answers
3k views

Slow NFS, nfsstat -c: what is authrefrsh (aka newcreds?) field about in detail?

(net-fs/nfs-utils-1.2.3-r1, 2.6.38.5-zen+ Gentoo) Googling this seems to be a complete dead end. man nfsstat says a whole lot of nothing about the subject. The closest I could get was finding out ...
6
votes
5answers
357 views

Removing unused init scripts

On my Debian server, I have no network shares (NFS, SMB, ...). I am trying to optimize and simplify my boot process. Is it OK to remove the following init scripts? /etc/rcS.d/S12mountnfs.sh ...
6
votes
2answers
7k views

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. ...
6
votes
4answers
151 views

How do I stop bash from hanging when trying to start programmes while NFS is disrupted

I am currently experiencing a bug in Ubuntu 13.10 which means that when I resume my machine after a suspend, the network connections do not come back up. I have a couple of NFS mounts and because they ...
6
votes
1answer
2k views

Why are inotify events different on an NFS mount?

Some time ago I noticed that the events reported by inotify are different when the file is saved to an NFS mount vs. a local file system. Shouldn't the underlying VFS provide a uniform view of file ...
6
votes
2answers
2k views

Forcing Linux NFS client to reconnect to server after NFS is disconnected

Is there a way to force a Linux client to reconnect to a NFS server after it has lost its connection? The client eventually notices the server is back and resumes working just fine. I'm just ...
6
votes
1answer
2k views

How can I do NFSv4 UID mapping across systems with UID mismatches?

I am working in a lab with three Ubuntu systems, and I would like to cross-mount some filesystems via NFS. However, while the systems have some of the same usernames, the UIDs and GIDs don't match, ...
5
votes
3answers
393 views

Why does this executable still execute after I deleted it?

I deleted the executable, so why is it still running? root@raspberrypi:/test# ls -la total 11096 drwxrwxrwx 2 pi pi 4096 Mar 12 18:26 . drwxrwxr-x 11 pi pi 4096 Feb 28 13:50 .. -rwxrw-rw- 1 ...
5
votes
2answers
2k views

Can I share a device from under /dev across hosts?

Here's the situation. I have a video device /dev/video0 on a VMware Server and I want to access this device from within a virtual machine. However for whatever reason I can't connect the device ...
5
votes
4answers
3k views

Difference between “/export/home” and “/home”

In our UNIX machine my home path looks like /home/<userid> and we have another batch user whose home looks like /export/home/<userid> I want to know whats the difference between ...
5
votes
1answer
5k views

Stop broken NFS mounts from locking a directory?

I have a somewhat interesting setup: A server with multiple remote NFS servers mounted in a folder, with that folder then being re-exported over Samba. Think of it as a share proxy, keeping all the ...
5
votes
1answer
8k views

Is there a command which will force Linux to flush cache of one file on an NFS share?

Related to this question on StackOverflow, I am wondering if there is a way for me to flush the NFS cache / force Linux to see the most up-to-date copy of a file that's on an NFS share. I have a ...
5
votes
1answer
70 views

Why Nethogs won't see the PID of the processes the generating some NFS traffic?

I usually use Nethogs to see the network bandwidth per process. However, Nethogs won't see the PID of the processes generating some NFS traffic, and as a result they are aggregated over one single ...
5
votes
3answers
9k views

How to mount NFS 3 volumes on Fedora 17?

I installed the package nfs-utils and tried it via: # mount -t nfs server:/mnt /mnt mount.nfs: rpc.statd is not running but is required for remote locking. mount.nfs: Either use '-o nolock' to keep ...
5
votes
1answer
266 views

NFS - What does the “sticky bit” mean?

I'm trying to figure how is the sticky bit used in NFS v3. RFC 1813 says on page 22: 0x00200 Save swapped text (not defined in POSIX). What do they mean by "swapped text"? In "NFS Illustrated", ...
5
votes
3answers
889 views

Can't read a file although it's in my group and permissions for group read are set

I encounter a strange problem on a unix/linux machine: I'm member of a group, let's call it group A and a certain file (which has a different owner) belongs to group A as well. The permissions of ...
5
votes
1answer
608 views

Automount not equivelent to mount?

I'm struggling to get automount to work as desired. If I run the following: sudo mount -t nfs server:/path/to/share /path/to/mount_point I get the mount appearing fine. However, if I add the ...
5
votes
1answer
4k views

Logical volume missing after reboot

Centos- 6, LVM2 after a system hang and hard reboot. lvdisplay and lvscan return no volumes. It had volumes earlier...how to recover? there is data on LV (logical volume) - shared as NFS export.. ...
5
votes
1answer
62 views

Is `ln` atomic and reliable on NFS? Could NFS replace GFS in this use case?

I have a cluster with a bunch of servers with a shared disk containing a GFS global file system that all nodes access simultaneously. Each node in the cluster run the same program (a shell script is ...
5
votes
1answer
3k views

autofs mounts not disconnecting after inactive

I have autofs installed on several linux servers that are connecting to central NFS server for the users /home directories. It works great when mounting the directories on login, but the mounts never ...
5
votes
1answer
816 views

NFS server causes high load even when idle

I have an Ubuntu (12.04) NFS server that has a high load (larger than 10) even when nothing is running. In detail, the storage is provided by an iSCSI device, on which I have 5 logical volumes (LVM) ...
5
votes
2answers
8k views

rsync gives “chown <…> failed: Invalid argument (22)” with nfs share

I'm trying to back up my entire system to an external disk using rsync, via a shell script which is run as root: #!/bin/bash rsync -vSHPhhaX --numeric-ids --delete ...
5
votes
1answer
693 views

Tracking huge buffer usage under Linux

I have a Linux server running under Debian Lenny with 4Go of RAM. It doesn't run much, just: Postfix/spamassassin (daemon mode) Bind9 KVM (one guest - 1Go of RAM for it) Every day at exactly 3:05 ...
5
votes
2answers
1k views

NFSv3 with Kerberos “unmatched host” error

I've setup NFSv4 using Kerberos (works great), but now I need to add NFSv3 with Kerberos. When trying to mount the NFSv3 export, I get a permission needed error on the client and on the server the ...
4
votes
2answers
374 views

Why restrict the number of inodes a user can access?

It appears that it is possible on a network mount to set a quota on how much space a user can consume. # edquota ramesh Disk quotas for user ramesh (uid 500): Filesystem blocks ...
4
votes
2answers
5k views

Why can't root on one machine change nfs mounted content from another machine?

On my NFS server, I have the following export defined: #NFS exports Database /shared -alldirs -network=192.168.1 -mask=255.255.255.0 On my NFS client: 192.168.1.7:/shared /shared nfs rw 0 0 ...
4
votes
2answers
765 views

How to mount an NTFS drive as utf8 over NFS

Question How to mount a nfs share (NTFS formatted fileystem) as utf8 in CentOS 6.5? What I tried mount -o iocharset=utf8 mount -o nfs=utf8 mount -o utf8=1 mount -o utf8 Problem: When I ...
4
votes
2answers
873 views

Network file sharing between Linux and OS X

I want to share a drive/folder over the internet from my Debian machine back home, such that I can mount it on my Macbook when I am on the move. Basically I want to store my music at home and just ...
4
votes
3answers
466 views

AIX won't stop creating random .nfsXXXX files

I am trying to delete some files and folders, but I can't because the system keeps re-creating the files. All these files are named .nfsXXXX, where XXXX is some random 4-character hexadecimal ...
4
votes
2answers
5k views

rpc.statd running on system not using NFS

I have a Debian machine that gets warnings (via the Tiger automatic auditor) that rcp.statd is listening on such-and-such socket. Googling shows rpc.statd is a daemon used by NFS. As far as I know, ...
4
votes
1answer
2k views

Sharing Mac Snow Leopard directory via NFS

I am running a Mac Pro using Snow Leopard (not server). I would like to share a directory with a linux machine. I have edited /etc/exports on the Mac to: /Volumes/mstore/home/sdavis -maproot=root ...
4
votes
2answers
32 views

Is NFS sharing via a multi-home computer possible?

I have an nfs export on computer A that I need to mount on a computer B in a different network. I have a multihome computer C, that can provide the connectivity between A & B. All computers are ...
4
votes
1answer
2k views

NFS different uig/gid on hosts

Scenario: There are different mappings of UIDs and GIDs between hosts that would like to have NFS share. Is there workaround without changing number mapping on hosts ? Example: Is there a way to ...
4
votes
2answers
37 views

NFS: share with all clients except one

I want to share a folder with all the network's clients except only one. This is my current /etc/exports file: /opt/resources *(rw,async) What should I add to prevent the client 192.168.1.24 ...
4
votes
3answers
694 views

GDM hangs when home directory is inaccessible

I have setup a OpenSUSE 12.3 workstation with SSO through KRB5 and LDAP. This works pretty smoothly up to the point where GDM isn't very happy about that fact that it cannot access user's home ...
4
votes
2answers
3k views

Default directory permissions over NFS

I have two servers, client and server in fairly obvious roles: server hosts the NFS share and client has it mounted. There is a shared group among several users on client called shared which also ...
4
votes
1answer
226 views

how to prevent reboot being stopped by nfsmount?

I can't imagine there isn't a simple strategy to solve this issue of stale nfs handles preventing a machine from shutting down normally, but I'm not sure what that would be. It's pretty annoying to ...
4
votes
3answers
7k views

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 ...
4
votes
1answer
109 views

What is the proper way of sharing the /usr subdirectory?

What parts of the /usr subdirectory are usually shared in common practice without introducing any system instabilities? My intent is to share share-able parts of the /usr subdirectory among VM's of ...
4
votes
1answer
375 views

Disable /net ghosting for autofs5

I recently have been trying out Arch Linux. It seems that their autofs has a usability bug, although I confess that I'm new enough to Arch that I may be missing something horribly obvious. I want ...
4
votes
3answers
769 views

When networkmanager is used, OpenSuSe gets stuck during boot for 10 minutes

I have this problem on all machines that I every installed (different configurations, different geographical locations, even different OpenSuSe versions) and it's extremely irritating. When I turn on ...
4
votes
1answer
1k views

Debian: Mounting NFS Volume at boot with fstab not working, How to change when this is attempted on boot

So there are a bunch of NICs and vlans on the server and after adding the last ones the auto mount of a network volume is not working. I can do it all right if i SSH in and use mount however it doesnt ...
4
votes
2answers
53 views

Booting a Raspberry Pi from an NFS share

I am trying to boot my Raspberry Pi using an NFS share. I have copied the boot partition of the Raspbian Wheezy image to the SD card and copied the root partition to a networked hard drive. I have ...