[Bugs] [Bug 1208134] New: [nfs]: copy of regular file to nfs mount fails with "Invalid argument"

bugzilla at redhat.com bugzilla at redhat.com
Wed Apr 1 13:23:17 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1208134

            Bug ID: 1208134
           Summary: [nfs]: copy of regular file to nfs mount fails with
                    "Invalid argument"
           Product: GlusterFS
           Version: mainline
         Component: nfs
          Severity: urgent
          Assignee: bugs at gluster.org
          Reporter: rhinduja at redhat.com
                CC: bugs at gluster.org, gluster-bugs at redhat.com



Description of problem:
=======================

Any attempt to copy a regular file on NFS mount fails with "Invalid Argument".
For example:
============

[root at wingo master_nfs]# pwd
/mnt/master_nfs
[root at wingo master_nfs]# ls
f.1
[root at wingo master_nfs]# cp -rf /etc/host* .
cp: cannot create regular file `./host.conf': Invalid argument
cp: cannot create regular file `./hosts': Invalid argument
cp: cannot create regular file `./hosts.allow': Invalid argument
cp: cannot create regular file `./hosts.deny': Invalid argument
[root at wingo master_nfs]# 
[root at wingo master_nfs]# cp -rf /etc/sysconfig/network-scripts/ifcfg-eth0 .
cp: cannot create regular file `./ifcfg-eth0': Invalid argument
[root at wingo master_nfs]# 

To confirm created a file and directory from nfs client which is successful as:
===============================================================================

[root at wingo master_nfs]# echo "hello" >> hello
[root at wingo master_nfs]# ls
f.1  hello
[root at wingo master_nfs]# 
[root at wingo master_nfs]# mkdir test
[root at wingo master_nfs]# 

Copy of dir to another directory in NFS client succeed but copy of regular file
to another regular file failed as:
===============================================================================

[root at wingo master_nfs]# cp -r test test1
[root at wingo master_nfs]# touch a
[root at wingo master_nfs]# cp a b
cp: cannot create regular file `b': Invalid argument
[root at wingo master_nfs]# 
[root at wingo master_nfs]# cp hello hello1
cp: cannot create regular file `hello1': Invalid argument
[root at wingo master_nfs]# 



Version-Release number of selected component (if applicable):
=============================================================

glusterfs-3.7dev-0.869


How reproducible:
=================

always


Steps to Reproduce:
===================
1. Create a cluster
2. Create and start a volume (master)
3. Mount the volume on client (NFS mount) and cd to it
4. cp -rf /etc/host* .

Actual results:
===============

Fails with invalid argument


Expected results:
=================

Should successful copy the files to the nfs client

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list