Bug 1208134 - [nfs]: copy of regular file to nfs mount fails with "Invalid argument"
Summary: [nfs]: copy of regular file to nfs mount fails with "Invalid argument"
Keywords:
Status: CLOSED DUPLICATE of bug 1210338
Alias: None
Product: GlusterFS
Classification: Community
Component: nfs
Version: mainline
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Kaleb KEITHLEY
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: qe_tracker_everglades
TreeView+ depends on / blocked
 
Reported: 2015-04-01 13:23 UTC by Rahul Hinduja
Modified: 2015-04-13 06:00 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-04-13 06:00:37 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.