I have been trying to get to the bottom of a strange errors when extracting tar archives on an NFS share.
The errors manifest themselves when extracting a tar files which include files which have been archived without write permissions set on the archived files.
Error messages intermittently are printed like:
tar: test/doc/manpages/man1/Makefile.in: Cannot close: Input/output error
To confirm this behaviour I set up two identical tar files: One with the archived files set with
chmod permissions 575 (user read/execute) and one with
chmod permissions set to 755 (user read/write/execute).
Both tar files were archived as follows:
tar czf test.tgz test
And extracted as follows:
tar -xvzf test.tgz
When extracting both archives on the local file system I did not get any errors. Additionally, when extracting the archive with with user write on the NFS share I do not get any errors. The errors always occurred when extracting the archive set without user write permissions on the archived files onto the NFS share.
The NFS share is configured with the following export parameters:
And the client fstab entry for the NFS mount is as follows:
10.0.0.3:/media/share /media/share nfs4 rw,_netdev,auto,clientaddr=10.0.0.10 0 0
Both the client and server are running Ubuntu 14.04.1
nfs-common version on the both the client and server is
v1:1.2.8-6ubuntu1.2 and the
nfs-kernel-server package on the server is also
Any help would be appreciated as I would like to get to the bottom of what is causing these errors.