Bug 763939 (GLUSTER-2207)

Summary: NFS "Invalid Argument" when adding bricks
Product: [Community] GlusterFS Reporter: Jacob Shucart <jacob>
Component: nfsAssignee: Krishna Srinivas <krishna>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: 3.1.1CC: gluster-bugs, vijay, vikas
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Windows   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jacob Shucart 2010-12-09 21:33:13 UTC
I created a Gluster volume with 2 servers in replicate mode.  I mount the volume using NFS.  When I type df everything shows up normally:

[root@jacobgfs31-s1 test]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                      3.8G  2.8G  819M  78% /
/dev/mapper/VolGroup00-LogVol02
                      1.5G   69M  1.3G   5% /data
/dev/vda1              99M   19M   75M  21% /boot
tmpfs                 250M     0  250M   0% /dev/shm
localhost:/dynamictest
                      2.9G  137M  2.6G   5% /test

I then add 2 new bricks and run df and it starts complaining:

[root@jacobgfs31-s1 ~]# gluster volume add-brick dynamictest jacobgfs31-s3:/data jacobgfs31-s4:/data
Add Brick successful
[root@jacobgfs31-s1 ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                      3.8G  2.8G  819M  78% /
/dev/mapper/VolGroup00-LogVol02
                      1.5G   69M  1.3G   5% /data
/dev/vda1              99M   19M   75M  21% /boot
tmpfs                 250M     0  250M   0% /dev/shm
df: `/test': Invalid argument


I let it sit for a while and the error stayed around.  If I then cd to /test I'm able to write files, everything works, and when I hit df again, the error goes away.  This is a minor issue it appears, but someone(StreamTheWorld) did encounter it in their testing.

Comment 1 Anand Avati 2010-12-10 02:19:16 UTC
Jacob,
 We fixed a bug sounding very similar in 3.1.2qa1. Can you please verify if that fix works for this situation as well?

Thanks,
Avati

Comment 2 Krishna Srinivas 2011-09-29 07:24:44 UTC
Does not happen in 3.2.3. Jacob can I close the bug?


[root@centos5 ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2              17G  2.9G   13G  19% /
/dev/sda1             251M   17M  222M   7% /boot
tmpfs                 249M     0  249M   0% /dev/shm
localhost:/test        50G  9.3G   39G  20% /mnt
[root@centos5 ~]# gluster volume add-brick test 10.1.11.70:/export/dir4 10.1.11.72:/export/dir4
Add Brick successful
[root@centos5 ~]# df -h 
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2              17G  2.9G   13G  19% /
/dev/sda1             251M   17M  222M   7% /boot
tmpfs                 249M     0  249M   0% /dev/shm
localhost:/test        67G   13G   51G  20% /mnt
[root@centos5 ~]#

Comment 3 Jacob Shucart 2011-09-29 10:43:31 UTC
Close it.