Bug 1052381

Summary: mount option "backupvolfile-server" causes mount to fail with "Invalid argument"
Product: Red Hat Enterprise Linux 6 Reporter: Chris Pelland <cpelland>
Component: glusterfsAssignee: Bala.FA <barumuga>
Status: CLOSED ERRATA QA Contact: Sudhir D <sdharane>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 6.5CC: aavati, acathrow, csaba, dpati, dron, eharney, fharshav, gfidente, grajaiya, iheim, jsvarova, pm-eus, rcyriac, rhs-bugs, sasundar, sdharane, shaines, sputhenp, vagarwal, vbellur, yeylon
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.4.0.57rhs-1 Doc Type: Bug Fix
Doc Text:
When trying to mount a remote gluster share using the "backupvolfile-server" option, the process failed and returned an "Invalid argument" error message. A new mount point option, backup-volfile-servers, has been added to provide backward compatibility and allows remote gluster shares to be mounted successfully.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-21 05:57:14 UTC Type: ---
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: 1044797    
Bug Blocks:    

Description Chris Pelland 2014-01-13 18:05:58 UTC
This bug has been copied from bug #1044797 and has been proposed
to be backported to 6.5 z-stream (EUS).

Comment 4 Gowrishankar Rajaiyan 2014-01-15 19:38:33 UTC
Moving this to VERIFIED to have this included in errata. Will be set back to ASSIGNED once added for QE verification.

Comment 5 Gowrishankar Rajaiyan 2014-01-15 19:58:14 UTC
Added to Errata, moving to ASSIGNED.

Comment 6 Vivek Agarwal 2014-01-15 20:00:17 UTC
Moving it to ON_QA as the original bug : https://bugzilla.redhat.com/show_bug.cgi?id=1023950 is verified

Comment 7 SATHEESARAN 2014-01-17 06:35:24 UTC
Verified with glusterfs-3.4.0.57rhs-1.el6 and RHEL 6.5
glusterfs native client packages are available from : 
[root@rhs-client15 ~]# cat /etc/issue
Red Hat Enterprise Linux Server release 6.5 (Santiago)
Kernel \r on an \m

[root@rhs-client15 ~]# rhn-channel -l
rhel-x86_64-rhev-mgmt-agent-6
rhel-x86_64-server-6
rhel-x86_64-server-rhsclient-6

[root@rhs-client15 ~]# rpm -qa | grep gluster
glusterfs-3.4.0.57rhs-1.el6_4.x86_64
glusterfs-api-3.4.0.57rhs-1.el6_4.x86_64
glusterfs-fuse-3.4.0.57rhs-1.el6_4.x86_64
glusterfs-libs-3.4.0.57rhs-1.el6_4.x86_64

[root@rhs-client15 ~]# glusterfs --version
glusterfs 3.4.0.57rhs built on Jan 13 2014 07:51:46
Repository revision: git://git.gluster.com/glusterfs.git
Copyright (c) 2006-2013 Red Hat, Inc. <http://www.redhat.com/>
GlusterFS comes with ABSOLUTELY NO WARRANTY.
It is licensed to you under your choice of the GNU Lesser
General Public License, version 3 or any later version (LGPLv3
or later), or the GNU General Public License, version 2 (GPLv2),
in all cases as published by the Free Software Foundation.

[root@rhs-client15 ~]# uname -r
2.6.32-431.1.2.el6.x86_64

1. Case using no mount option
==============================
[root@rhs-client15 ~]# mount.glusterfs 10.70.37.86:drvol /mnt/test1

[root@rhs-client15 ~]# df -Th /mnt/test1
Filesystem        Type            Size  Used Avail Use% Mounted on
10.70.37.86:drvol fuse.glusterfs  600G   78G  522G  13% /mnt/test1

[root@rhs-client15 ~]# ps aux | grep drvol | grep -v 'grep drvol'
root     10458  0.1  0.4 339184 75004 ?        Ssl  06:36   0:00 /usr/sbin/glusterfs --volfile-server=10.70.37.86 --volfile-id=drvol /mnt/test1

2. Case using the  mount option 'backupvolfile-server'
=======================================================
[root@rhs-client15 ~]# mount.glusterfs -o backupvolfile-server=10.70.37.198 10.70.37.86:drvol /mnt/test1

[root@rhs-client15 ~]# df -Th /mnt/test1
Filesystem        Type            Size  Used Avail Use% Mounted on
10.70.37.86:drvol fuse.glusterfs  600G   78G  522G  13% /mnt/test1

[root@rhs-client15 ~]# ps aux | grep drvol | grep -v 'grep drvol'
root     10585  0.8  0.4 339184 73920 ?        Ssl  06:38   0:00 /usr/sbin/glusterfs --volfile-server=10.70.37.86 --volfile-server=10.70.37.198 --volfile-id=drvol /mnt/test1

[root@rhs-client15 ~]# umount /mnt/test1

3. Case using mount option 'backup-volfile-servers'
=====================================================

[root@rhs-client15 ~]# mount.glusterfs -o backup-volfile-servers=10.70.37.198:10.70.37.46 10.70.37.86:drvol /mnt/test1

[root@rhs-client15 ~]# df -Th /mnt/test1
Filesystem        Type            Size  Used Avail Use% Mounted on
10.70.37.86:drvol fuse.glusterfs  600G   78G  522G  13% /mnt/test1

[root@rhs-client15 ~]# ps aux | grep drvol | grep -v 'grep drvol'
root     10660  1.2  0.4 339184 69844 ?        Ssl  06:39   0:00 /usr/sbin/glusterfs --volfile-server=10.70.37.86 --volfile-server=10.70.37.198 --volfile-server=10.70.37.46 --volfile-id=drvol /mnt/test1

Comment 9 errata-xmlrpc 2014-01-21 05:57:14 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2014-0047.html