Description of problem: Mounting a Gluster volume with a volume file was not possible due to a small bug in mount script: Version-Release number of selected component (if applicable): 3.6.2 from ppa:gluster/glusterfs-3.6 How reproducible: By installing latest GlusterFS 3.6 and trying to mount a volume using volume files. Steps to Reproduce: 1. Install GlusterFS 3.6. 2. Try mounting volume using Gluster volume file. Actual results: root@puppet2:/home/supervisor# mount -t glusterfs /etc/gfs.vol /data2 ERROR: Server name/volume name unspecified cannot proceed further.. Please specify correct format Usage: man 8 /sbin/mount.glusterfs root@puppet2:/home/supervisor# cat /etc/gfs.vol volume files1 type protocol/client option transport-type tcp option remote-host files1.xx.com option remote-subvolume /data/puppet end-volume volume files2 type protocol/client option transport-type tcp option remote-host files2.xx.com option remote-subvolume /data/puppet end-volume volume files3 type protocol/client option transport-type tcp option remote-host files3.xx.com option remote-subvolume /data/puppet end-volume volume replicate type cluster/replicate subvolumes files1 files2 files3 end-volume volume writebehind type performance/write-behind option window-size 2MB subvolumes replicate end-volume volume cache type performance/io-cache option cache-size 512MB subvolumes writebehind end-volume root@puppet2:/home/supervisor# Expected results: root@puppet2:/home/supervisor# mount -t glusterfs /etc/gfs.vol /data2 root@puppet2:/home/supervisor#
REVIEW: http://review.gluster.org/10123 (mount.glusterfs: add support for mounting volumes with volume files) posted (#1) for review on master by Ernestas Lukoševičius (ernetas)
REVIEW: http://review.gluster.org/10126 (mount.glusterfs: mounting volumes with volume files) posted (#1) for review on master by Ernestas Lukoševičius (ernetas)
COMMIT: http://review.gluster.org/10126 committed in master by Niels de Vos (ndevos) ------ commit a0e3634c6f0d349a3433cdbeabd93043f5f43e9d Author: Ernestas Lukoševičius <ernetas> Date: Thu Apr 2 23:28:29 2015 +0300 mount.glusterfs: mounting volumes with volume files This is a patch for bug-1208676. When using volume files to mount glusterfs volume, this line is always true: [ -z "$volume_id" -o -z "$server_ip" ] && { That's because at this place, $volume_id and $server_ip are set only and only if the $volfile_loc file was unreadable or undefined. Change-Id: Icdf7612ac13a8f953f2a2adaa426b6339cd9f8fd BUG: 1208676 Signed-off-by: Ernestas Lukoševičius <ernetas> Reviewed-on: http://review.gluster.org/10126 Tested-by: Gluster Build System <jenkins.com> Reviewed-by: Niels de Vos <ndevos>
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.7.0, please open a new bug report. glusterfs-3.7.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution. [1] http://thread.gmane.org/gmane.comp.file-systems.gluster.devel/10939 [2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user
Will this be resolved in 3.6? I have installed 3.6.7 last week on Centos. I had to comment lines 602-610 in /sbin/mount.glusterfs to be able to mount. Am I making some other mistake?