Bug 1044799

Summary: mount option "backupvolfile-server" causes mount to fail with "Invalid argument"
Product: Red Hat Enterprise Linux 7 Reporter: Vivek Agarwal <vagarwal>
Component: glusterfsAssignee: Bug Updates Notification Mailing List <rhs-bugs>
Status: CLOSED CURRENTRELEASE QA Contact: SATHEESARAN <sasundar>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 7.0CC: aavati, acathrow, asriram, csaba, dron, eharney, fharshav, gfidente, grajaiya, iheim, rcyriac, sankarshan, sdharane, shaines, sputhenp, vagarwal, vbellur, yeylon
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.4.0.54rhs-1.el7 Doc Type: Bug Fix
Doc Text:
Previously, "backupvolfile-server" mount point option was removed. With this fix, backward compatibility is restored and the mount option is now included.
Story Points: ---
Clone Of: 1023950 Environment:
Last Closed: 2014-06-13 12:11:02 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:
Bug Depends On: 1023950    
Bug Blocks: 1039643, 1044797    

Comment 2 SATHEESARAN 2014-03-24 09:38:53 UTC
Tested this bug with RHEL -7 [http://download.lab.bos.redhat.com/composes/candidates/RHEL-7/RHEL-7.0-20140220.0/] 

[root@localhost ~]# uname -r
3.10.0-89.el7.x86_64

[root@localhost ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.0 Beta (Maipo)

[root@localhost ~]# rpm -qa | grep gluster
glusterfs-libs-3.4.0.59rhs-1.el7.x86_64
glusterfs-fuse-3.4.0.59rhs-1.el7.x86_64
glusterfs-3.4.0.59rhs-1.el7.x86_64

[root@localhost gfs]# rpm -qi glusterfs
Name        : glusterfs
Version     : 3.4.0.59rhs
Release     : 1.el7
Architecture: x86_64
Install Date: Mon 24 Mar 2014 10:15:31 AM EDT
Group       : System Environment/Base
Size        : 7686917
License     : GPLv2 or LGPLv3+
Signature   : RSA/SHA256, Wed 12 Mar 2014 10:27:38 AM EDT, Key ID 938a80caf21541eb
Source RPM  : glusterfs-3.4.0.59rhs-1.el7.src.rpm
Build Date  : Tue 04 Feb 2014 12:24:26 PM EST
Build Host  : x86-019.build.eng.bos.redhat.com
Relocations : (not relocatable)
Packager    : gluster-users
Vendor      : Red Hat, Inc.
URL         : http://www.gluster.org/docs/index.php/GlusterFS
Summary     : Cluster File System
Description :
GlusterFS is a clustered file-system capable of scaling to several
petabytes. It aggregates various storage bricks over Infiniband RDMA
or TCP/IP interconnect into one large parallel network file
system. GlusterFS is one of the most sophisticated file systems in
terms of features and extensibility.  It borrows a powerful concept
called Translators from GNU Hurd kernel. Much of the code in GlusterFS
is in user space and easily manageable.

This package includes the glusterfs binary, the glusterfsd daemon and the
gluster command line, libglusterfs and glusterfs translator modules common to
both GlusterFS server and client framework.

>>> Mouting without any option
-------------------------------
[root@localhost ~]# mount.glusterfs 10.70.37.52:testvol /mnt/dist
[root@localhost ~]# df -Th
Filesystem            Type            Size  Used Avail Use% Mounted on
/dev/mapper/rhel-root xfs              18G  934M   17G   6% /
devtmpfs              devtmpfs        3.9G     0  3.9G   0% /dev
tmpfs                 tmpfs           3.9G     0  3.9G   0% /dev/shm
tmpfs                 tmpfs           3.9G  8.4M  3.9G   1% /run
tmpfs                 tmpfs           3.9G     0  3.9G   0% /sys/fs/cgroup
/dev/vda1             xfs             484M   95M  389M  20% /boot
10.70.37.52:testvol   fuse.glusterfs   10G   33M   10G   1% /mnt/dist

[root@localhost ~]# ps aux | grep distvol
root      17397  0.0  0.0 112640   976 pts/0    S+   10:27   0:00 grep --color=auto distvol
[root@localhost ~]# ps aux | grep testvol
root      17386  0.0  0.3 286524 26292 ?        Ssl  10:27   0:00 /usr/sbin/glusterfs --volfile-server=10.70.37.52 --volfile-id=testvol /mnt/dist
root      17399  0.0  0.0 112640   972 pts/0    S+   10:27   0:00 grep --color=auto testvol

[root@localhost ~]# umount /mnt/dist

>>> Mounting with backupvolfile-server option
---------------------------------------------
[root@localhost ~]# mount.glusterfs 10.70.37.52:testvol -o backupvolfile-server=10.70.37.87 /mnt/dist

[root@localhost ~]# ps aux | grep testvol
root      17526  0.0  0.3 286524 24660 ?        Ssl  10:40   0:00 /usr/sbin/glusterfs --volfile-server=10.70.37.52 --volfile-server=10.70.37.87 --volfile-id=testvol /mnt/dist
root      17538  0.0  0.0 112640   976 pts/0    S+   10:42   0:00 grep --color=auto testvol

[root@localhost ~]# umount /mnt/dist

>>>> Mounting with backup-volfile-servers option
-------------------------------------------------
[root@localhost ~]# mount.glusterfs 10.70.37.52:testvol -o backup-volfile-servers=10.70.37.87 /mnt/dist

[root@localhost ~]# ps aux | grep testvol
root      17580  0.1  0.2 286524 23560 ?        Ssl  10:42   0:00 /usr/sbin/glusterfs --volfile-server=10.70.37.52 --volfile-server=10.70.37.87 --volfile-id=testvol /mnt/dist
root      17591  0.0  0.0 112640   976 pts/0    S+   10:43   0:00 grep --color=auto testvol

[root@localhost ~]# umount /mnt/dist

[root@localhost ~]# mount.glusterfs 10.70.37.52:testvol -o backup-volfile-servers=10.70.37.87:10.70.37.137 /mnt/dist

[root@localhost ~]# ps aux | grep testvol
root      17637  0.0  0.3 286524 25068 ?        Ssl  10:43   0:00 /usr/sbin/glusterfs --volfile-server=10.70.37.52 --volfile-server=10.70.37.87 --volfile-server=10.70.37.137 --volfile-id=testvol /mnt/dist
root      17648  0.0  0.0 112640   976 pts/0    S+   10:43   0:00 grep --color=auto testvol

All the above tests passed and moving this bug to VERIFIED

Comment 3 Ludek Smid 2014-06-13 12:11:02 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.