Bug 1208134

Summary: [nfs]: copy of regular file to nfs mount fails with "Invalid argument"
Product: [Community] GlusterFS Reporter: Rahul Hinduja <rhinduja>
Component: nfsAssignee: Kaleb KEITHLEY <kkeithle>
Status: CLOSED DUPLICATE QA Contact:
Severity: urgent Docs Contact:
Priority: unspecified    
Version: mainlineCC: annair, bugs, gluster-bugs, ndevos, nsathyan
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-04-13 06:00:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1186580    

Description Rahul Hinduja 2015-04-01 13:23:17 UTC
Description of problem:
=======================

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

[root@wingo master_nfs]# pwd
/mnt/master_nfs
[root@wingo master_nfs]# ls
f.1
[root@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@wingo master_nfs]# 
[root@wingo master_nfs]# cp -rf /etc/sysconfig/network-scripts/ifcfg-eth0 .
cp: cannot create regular file `./ifcfg-eth0': Invalid argument
[root@wingo master_nfs]# 

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

[root@wingo master_nfs]# echo "hello" >> hello
[root@wingo master_nfs]# ls
f.1  hello
[root@wingo master_nfs]# 
[root@wingo master_nfs]# mkdir test
[root@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@wingo master_nfs]# cp -r test test1
[root@wingo master_nfs]# touch a
[root@wingo master_nfs]# cp a b
cp: cannot create regular file `b': Invalid argument
[root@wingo master_nfs]# 
[root@wingo master_nfs]# cp hello hello1
cp: cannot create regular file `hello1': Invalid argument
[root@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

Comment 3 Niels de Vos 2015-04-13 06:00:37 UTC

*** This bug has been marked as a duplicate of bug 1210338 ***