Re: [Gluster-users] Mount failed
Your getinode isn't working... + '[' 0 -ne 0 ']' ++ stat -c %i /mnt/gluster + inode= + '[' 1 -ne 0 ']' How old is your mount.glusterfs script? On Tue, 2015-01-27 at 08:52 +0100, Bartłomiej Syryjczyk wrote: W dniu 2015-01-27 o 08:46, Franco Broi pisze: [franco@charlie4 ~]$ stat -c %i /data 1 [franco@charlie4 ~]$ stat -c %i /data2 1 Can you check that running the mount manually actually did work, ie can you list the files after mounting manually?? /usr/sbin/glusterfs --volfile-server=apache1 --volfile-id=/testvol /mnt/gluster Works fine --- [root@apache2 ~]# /usr/sbin/glusterfs --volfile-server=apache1 --volfile-id=/testvol /mnt/gluster [root@apache2 ~]# ls -l /brick /mnt/gluster /brick: total 1355800 -rw-r--r-- 2 root root 1152 Jan 26 08:04 passwd -rw-r--r-- 2 root root 104857600 Jan 26 11:49 zero-2.dd -rw-r--r-- 2 root root 104857600 Jan 26 11:50 zero-3.dd -rw-r--r-- 2 root root 104857600 Jan 26 11:52 zero-4.dd -rw-r--r-- 2 root root 1073741824 Jan 26 08:26 zero.dd /mnt/gluster: total 1355778 -rw-r--r-- 1 root root 1152 Jan 26 08:03 passwd -rw-r--r-- 1 root root 104857600 Jan 26 11:50 zero-2.dd -rw-r--r-- 1 root root 104857600 Jan 26 11:50 zero-3.dd -rw-r--r-- 1 root root 104857600 Jan 26 11:52 zero-4.dd -rw-r--r-- 1 root root 1073741824 Jan 26 08:25 zero.dd [root@apache2 ~]# umount /mnt/gluster/ [root@apache2 ~]# ls -l /mnt/gluster total 0 --- ___ Gluster-users mailing list Gluster-users@gluster.org http://www.gluster.org/mailman/listinfo/gluster-users
Re: [Gluster-users] Mount failed
So what is the inode of your mounted gluster filesystem? And does running 'mount' show it as being fuse.glusterfs? On Tue, 2015-01-27 at 09:05 +0100, Bartłomiej Syryjczyk wrote: W dniu 2015-01-27 o 09:00, Franco Broi pisze: Your getinode isn't working... + '[' 0 -ne 0 ']' ++ stat -c %i /mnt/gluster + inode= + '[' 1 -ne 0 ']' How old is your mount.glusterfs script? It's fresh (I think so). It's from official repo: --- [root@apache2 ~]# which mount.glusterfs /usr/sbin/mount.glusterfs [root@apache2 ~]# ls -l /usr/sbin/mount.glusterfs -rwxr-xr-x 1 root root 16908 Jan 22 14:00 /usr/sbin/mount.glusterfs [root@apache2 ~]# yum provides /usr/sbin/mount.glusterfs glusterfs-fuse-3.6.2-1.el7.x86_64 : Fuse client Repo: @glusterfs-epel Matched from: Filename: /usr/sbin/mount.glusterfs [root@apache2 ~]# md5sum /usr/sbin/mount.glusterfs a302f984367c93fd94ab3ad73386e66a /usr/sbin/mount.glusterfs --- ___ Gluster-users mailing list Gluster-users@gluster.org http://www.gluster.org/mailman/listinfo/gluster-users
Re: [Gluster-users] Mount failed
Well I'm stumped, just seems like the mount.glusterfs script isn't working. I'm still running 3.5.1 and the getinode bit of my script looks like this: ... Linux) getinode=stat -c %i $i ... inode=$( ${getinode} $mount_point 2/dev/null); # this is required if the stat returns error if [ -z $inode ]; then inode=0; fi if [ $inode -ne 1 ]; then err=1; fi On Tue, 2015-01-27 at 09:12 +0100, Bartłomiej Syryjczyk wrote: W dniu 2015-01-27 o 09:08, Franco Broi pisze: So what is the inode of your mounted gluster filesystem? And does running 'mount' show it as being fuse.glusterfs? --- [root@apache2 ~]# stat -c %i /mnt/gluster 101729533 [root@apache2 ~]# /usr/sbin/glusterfs --volfile-server=apache1 --volfile-id=/testvol /mnt/gluster [root@apache2 ~]# stat -c %i /mnt/gluster 1 [root@apache2 ~]# mount|grep fuse fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime) apache1:/testvol on /mnt/gluster type fuse.glusterfs (rw,relatime,user_id=0,group_id=0,default_permissions,allow_other,max_read=131072) --- ___ Gluster-users mailing list Gluster-users@gluster.org http://www.gluster.org/mailman/listinfo/gluster-users
Re: [Gluster-users] Mount failed
W dniu 2015-01-27 o 09:08, Franco Broi pisze: So what is the inode of your mounted gluster filesystem? And does running 'mount' show it as being fuse.glusterfs? --- [root@apache2 ~]# stat -c %i /mnt/gluster 101729533 [root@apache2 ~]# /usr/sbin/glusterfs --volfile-server=apache1 --volfile-id=/testvol /mnt/gluster [root@apache2 ~]# stat -c %i /mnt/gluster 1 [root@apache2 ~]# mount|grep fuse fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime) apache1:/testvol on /mnt/gluster type fuse.glusterfs (rw,relatime,user_id=0,group_id=0,default_permissions,allow_other,max_read=131072) --- -- Z poważaniem, *Bartłomiej Syryjczyk* ___ Gluster-users mailing list Gluster-users@gluster.org http://www.gluster.org/mailman/listinfo/gluster-users
Re: [Gluster-users] Mount failed
W dniu 2015-01-27 o 09:20, Franco Broi pisze: Well I'm stumped, just seems like the mount.glusterfs script isn't working. I'm still running 3.5.1 and the getinode bit of my script looks like this: ... Linux) getinode=stat -c %i $i ... inode=$( ${getinode} $mount_point 2/dev/null); # this is required if the stat returns error if [ -z $inode ]; then inode=0; fi if [ $inode -ne 1 ]; then err=1; fi (My) script should check return code, not inode. There is right comment about that. Or maybe I don't understand construction in 298 line: --- [...] 49 Linux) 50 getinode=stat -c %i [...] 298 inode=$( ${getinode} $mount_point 2/dev/null); 299 # this is required if the stat returns error 300 if [ $? -ne 0 ]; then 301 warn Mount failed. Please check the log file for more details. 302 umount $mount_point /dev/null 21; 303 exit 1; 304 fi --- When I paste between lines 298 and 300 something with 0 exit code, eg. echo $?; it works. With script from 3.6.1 package there was the same problem. -- Z poważaniem, *Bartłomiej Syryjczyk* ___ Gluster-users mailing list Gluster-users@gluster.org http://www.gluster.org/mailman/listinfo/gluster-users
Re: [Gluster-users] Mount failed
Could this be a case of Oracle Linux being evil? On Tue, 2015-01-27 at 16:20 +0800, Franco Broi wrote: Well I'm stumped, just seems like the mount.glusterfs script isn't working. I'm still running 3.5.1 and the getinode bit of my script looks like this: ... Linux) getinode=stat -c %i $i ... inode=$( ${getinode} $mount_point 2/dev/null); # this is required if the stat returns error if [ -z $inode ]; then inode=0; fi if [ $inode -ne 1 ]; then err=1; fi On Tue, 2015-01-27 at 09:12 +0100, Bartłomiej Syryjczyk wrote: W dniu 2015-01-27 o 09:08, Franco Broi pisze: So what is the inode of your mounted gluster filesystem? And does running 'mount' show it as being fuse.glusterfs? --- [root@apache2 ~]# stat -c %i /mnt/gluster 101729533 [root@apache2 ~]# /usr/sbin/glusterfs --volfile-server=apache1 --volfile-id=/testvol /mnt/gluster [root@apache2 ~]# stat -c %i /mnt/gluster 1 [root@apache2 ~]# mount|grep fuse fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime) apache1:/testvol on /mnt/gluster type fuse.glusterfs (rw,relatime,user_id=0,group_id=0,default_permissions,allow_other,max_read=131072) --- ___ Gluster-users mailing list Gluster-users@gluster.org http://www.gluster.org/mailman/listinfo/gluster-users ___ Gluster-users mailing list Gluster-users@gluster.org http://www.gluster.org/mailman/listinfo/gluster-users
Re: [Gluster-users] Mount failed
W dniu 2015-01-27 o 09:00, Franco Broi pisze: Your getinode isn't working... + '[' 0 -ne 0 ']' ++ stat -c %i /mnt/gluster + inode= + '[' 1 -ne 0 ']' How old is your mount.glusterfs script? It's fresh (I think so). It's from official repo: --- [root@apache2 ~]# which mount.glusterfs /usr/sbin/mount.glusterfs [root@apache2 ~]# ls -l /usr/sbin/mount.glusterfs -rwxr-xr-x 1 root root 16908 Jan 22 14:00 /usr/sbin/mount.glusterfs [root@apache2 ~]# yum provides /usr/sbin/mount.glusterfs glusterfs-fuse-3.6.2-1.el7.x86_64 : Fuse client Repo: @glusterfs-epel Matched from: Filename: /usr/sbin/mount.glusterfs [root@apache2 ~]# md5sum /usr/sbin/mount.glusterfs a302f984367c93fd94ab3ad73386e66a /usr/sbin/mount.glusterfs --- -- Z poważaniem, *Bartłomiej Syryjczyk* ___ Gluster-users mailing list Gluster-users@gluster.org http://www.gluster.org/mailman/listinfo/gluster-users
Re: [Gluster-users] Mount failed
What do you get is you do this? bash-4.1# stat -c %i /mnt/gluster 1 -bash-4.1# echo $? 0 On Tue, 2015-01-27 at 09:47 +0100, Bartłomiej Syryjczyk wrote: W dniu 2015-01-27 o 09:20, Franco Broi pisze: Well I'm stumped, just seems like the mount.glusterfs script isn't working. I'm still running 3.5.1 and the getinode bit of my script looks like this: ... Linux) getinode=stat -c %i $i ... inode=$( ${getinode} $mount_point 2/dev/null); # this is required if the stat returns error if [ -z $inode ]; then inode=0; fi if [ $inode -ne 1 ]; then err=1; fi (My) script should check return code, not inode. There is right comment about that. Or maybe I don't understand construction in 298 line: --- [...] 49 Linux) 50 getinode=stat -c %i [...] 298 inode=$( ${getinode} $mount_point 2/dev/null); 299 # this is required if the stat returns error 300 if [ $? -ne 0 ]; then 301 warn Mount failed. Please check the log file for more details. 302 umount $mount_point /dev/null 21; 303 exit 1; 304 fi --- When I paste between lines 298 and 300 something with 0 exit code, eg. echo $?; it works. With script from 3.6.1 package there was the same problem. ___ Gluster-users mailing list Gluster-users@gluster.org http://www.gluster.org/mailman/listinfo/gluster-users
Re: [Gluster-users] Mount failed
On Tue, 2015-01-27 at 14:09 +0100, Bartłomiej Syryjczyk wrote: OK, I removed part 2/dev/null, and see: stat: cannot stat ‘/mnt/gluster’: Resource temporarily unavailable So I decided to add sleep just before line number 298 (this one with stat). And it works! Is it normal? Glad that you found the problem. I wouldn't have thought that glusterfs should return before the filesystem is properly mounted, you should file a bug. https://bugzilla.redhat.com/enter_bug.cgi?product=GlusterFS Cheers, ___ Gluster-users mailing list Gluster-users@gluster.org http://www.gluster.org/mailman/listinfo/gluster-users
Re: [Gluster-users] Mount failed
W dniu 2015-01-27 o 09:53, Franco Broi pisze: What do you get is you do this? bash-4.1# stat -c %i /mnt/gluster 1 -bash-4.1# echo $? 0 --- [root@apache2 ~]# /usr/sbin/glusterfs --volfile-server=apache1 --volfile-id=/testvol /mnt/gluster [root@apache2 ~]# stat -c %i /mnt/gluster 1 [root@apache2 ~]# echo $? 0 [root@apache2 ~]# umount /mnt/gluster/ [root@apache2 ~]# stat -c %i /mnt/gluster 101729533 [root@apache2 ~]# echo $? 0 --- -- Z poważaniem, *Bartłomiej Syryjczyk* ___ Gluster-users mailing list Gluster-users@gluster.org http://www.gluster.org/mailman/listinfo/gluster-users
Re: [Gluster-users] Mount failed
W dniu 2015-01-27 o 09:43, Franco Broi pisze: Could this be a case of Oracle Linux being evil? Yes, I'm using OEL. Now 7.0, earlier 6.6 -- Z poważaniem, *Bartłomiej Syryjczyk* ___ Gluster-users mailing list Gluster-users@gluster.org http://www.gluster.org/mailman/listinfo/gluster-users
Re: [Gluster-users] Mount failed
W dniu 2015-01-27 o 09:47, Bartłomiej Syryjczyk pisze: W dniu 2015-01-27 o 09:20, Franco Broi pisze: Well I'm stumped, just seems like the mount.glusterfs script isn't working. I'm still running 3.5.1 and the getinode bit of my script looks like this: ... Linux) getinode=stat -c %i $i ... inode=$( ${getinode} $mount_point 2/dev/null); # this is required if the stat returns error if [ -z $inode ]; then inode=0; fi if [ $inode -ne 1 ]; then err=1; fi (My) script should check return code, not inode. There is right comment about that. Or maybe I don't understand construction in 298 line: --- [...] 49 Linux) 50 getinode=stat -c %i [...] 298 inode=$( ${getinode} $mount_point 2/dev/null); 299 # this is required if the stat returns error 300 if [ $? -ne 0 ]; then 301 warn Mount failed. Please check the log file for more details. 302 umount $mount_point /dev/null 21; 303 exit 1; 304 fi --- When I paste between lines 298 and 300 something with 0 exit code, eg. echo $?; it works. With script from 3.6.1 package there was the same problem. OK, I removed part 2/dev/null, and see: stat: cannot stat ‘/mnt/gluster’: Resource temporarily unavailable So I decided to add sleep just before line number 298 (this one with stat). And it works! Is it normal? -- Z poważaniem, *Bartłomiej Syryjczyk* ___ Gluster-users mailing list Gluster-users@gluster.org http://www.gluster.org/mailman/listinfo/gluster-users
Re: [Gluster-users] Mount failed
The logs you show me are reminiscent of an issue I once faced and all it turned out to be was that service glusterd was not running. Did you check that out? Sorry if I'm stating the obvious, though. ;) Thanks, Anirban -Bart#322;omiej Syryjczyk bsyryjc...@kamsoft.pl wrote: - === To: From: Bart#322;omiej Syryjczyk bsyryjc...@kamsoft.pl Date: 01/26/2015 02:28PM Cc: gluster-users@gluster.org Subject: Re: [Gluster-users] Mount failed === W dniu 2015-01-22 o 17:37, A Ghoshal pisze: Maybe start the mount daemon from shell, like this? /usr/sbin/glusterfs --debug --volfile-server=glnode1 --volfile-id=/testvol /mnt/gluster You could get some useful debug data on your terminal. However, it's more likely you have a configuration related problem here. So the output of the following might also help: ls -la /var/lib/glusterd/vols/glnode1/ When I start mount daemon from shell it's works fine. After mount with -o log-level=DEBUG, I can see this: --- [...] [2015-01-26 08:19:48.191675] D [fuse-bridge.c:4817:fuse_thread_proc] 0-glusterfs-fuse: *terminating upon getting ENODEV when reading /dev/fuse* [2015-01-26 08:19:48.191702] I [fuse-bridge.c:4921:fuse_thread_proc] 0-fuse: unmounting /mnt/gluster [2015-01-26 08:19:48.191759] D [MSGID: 0] [dht-diskusage.c:96:dht_du_info_cbk] 0-testvol-dht: subvolume 'testvol-replicate-0': avail_percent is: 83.00 and avail_space is: 19188232192 and avail_inodes is: 99.00 [2015-01-26 08:19:48.191801] D [logging.c:1740:gf_log_flush_extra_msgs] 0-logging-infra: Log buffer size reduced. About to flush 5 extra log messages [2015-01-26 08:19:48.191822] D [logging.c:1743:gf_log_flush_extra_msgs] 0-logging-infra: Just flushed 5 extra log messages [2015-01-26 08:19:48.192118] W [glusterfsd.c:1194:cleanup_and_exit] (-- 0-: received signum (15), shutting down [2015-01-26 08:19:48.192137] D [glusterfsd-mgmt.c:2244:glusterfs_mgmt_pmap_signout] 0-fsd-mgmt: portmapper signout arguments not given [2015-01-26 08:19:48.192145] I [fuse-bridge.c:5599:fini] 0-fuse: Unmounting '/mnt/gluster'. --- And it won't work Output of few commands: --- [root@apache2 ~]# lsmod|grep fuse fuse 75687 3 [root@apache2 ~]# ls -l /dev/fuse crw-rw-rw- 1 root root 10, 229 Jan 26 09:19 /dev/fuse [root@apache2 ~]# ls -la /var/lib/glusterd/vols/testvol/ total 48 drwxr-xr-x 4 root root 4096 Jan 26 09:09 . drwxr-xr-x. 3 root root 20 Jan 26 07:11 .. drwxr-xr-x 2 root root 48 Jan 26 08:02 bricks -rw--- 1 root root 16 Jan 26 09:09 cksum -rw--- 1 root root 545 Jan 26 08:02 info -rw--- 1 root root 93 Jan 26 08:02 node_state.info -rw--- 1 root root 18 Jan 26 09:09 quota.cksum -rw--- 1 root root0 Jan 26 07:37 quota.conf -rw--- 1 root root 12 Jan 26 08:02 rbstate drwxr-xr-x 2 root root 30 Jan 26 09:09 run -rw--- 1 root root 13 Jan 26 08:02 snapd.info -rw--- 1 root root 1995 Jan 26 08:02 testvol.apache1.brick.vol -rw--- 1 root root 1995 Jan 26 08:02 testvol.apache2.brick.vol -rw--- 1 root root 1392 Jan 26 08:02 testvol-rebalance.vol -rw--- 1 root root 1392 Jan 26 08:02 testvol.tcp-fuse.vol -rw--- 1 root root 1620 Jan 26 08:02 trusted-testvol.tcp-fuse.vol --- -- Z powa#380;aniem, *Bart#322;omiej Syryjczyk* ___ Gluster-users mailing list Gluster-users@gluster.org http://www.gluster.org/mailman/listinfo/gluster-users =-=-= Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you ___ Gluster-users mailing list Gluster-users@gluster.org http://www.gluster.org/mailman/listinfo/gluster-users
Re: [Gluster-users] Mount failed
On 01/26/2015 02:27 PM, Bartłomiej Syryjczyk wrote: W dniu 2015-01-22 o 17:37, A Ghoshal pisze: Maybe start the mount daemon from shell, like this? /usr/sbin/glusterfs --debug --volfile-server=glnode1 --volfile-id=/testvol /mnt/gluster You could get some useful debug data on your terminal. However, it's more likely you have a configuration related problem here. So the output of the following might also help: ls -la /var/lib/glusterd/vols/glnode1/ When I start mount daemon from shell it's works fine. After mount with -o log-level=DEBUG, I can see this: --- [...] [2015-01-26 08:19:48.191675] D [fuse-bridge.c:4817:fuse_thread_proc] 0-glusterfs-fuse: *terminating upon getting ENODEV when reading /dev/fuse* Could you check if the device is present or not, using the following command? 07:16:10 :) ⚡ ls /dev/fuse -l crw-rw-rw-. 1 root root 10, 229 Jan 25 07:31 /dev/fuse Pranith [2015-01-26 08:19:48.191702] I [fuse-bridge.c:4921:fuse_thread_proc] 0-fuse: unmounting /mnt/gluster [2015-01-26 08:19:48.191759] D [MSGID: 0] [dht-diskusage.c:96:dht_du_info_cbk] 0-testvol-dht: subvolume 'testvol-replicate-0': avail_percent is: 83.00 and avail_space is: 19188232192 and avail_inodes is: 99.00 [2015-01-26 08:19:48.191801] D [logging.c:1740:gf_log_flush_extra_msgs] 0-logging-infra: Log buffer size reduced. About to flush 5 extra log messages [2015-01-26 08:19:48.191822] D [logging.c:1743:gf_log_flush_extra_msgs] 0-logging-infra: Just flushed 5 extra log messages [2015-01-26 08:19:48.192118] W [glusterfsd.c:1194:cleanup_and_exit] (-- 0-: received signum (15), shutting down [2015-01-26 08:19:48.192137] D [glusterfsd-mgmt.c:2244:glusterfs_mgmt_pmap_signout] 0-fsd-mgmt: portmapper signout arguments not given [2015-01-26 08:19:48.192145] I [fuse-bridge.c:5599:fini] 0-fuse: Unmounting '/mnt/gluster'. --- And it won't work Output of few commands: --- [root@apache2 ~]# lsmod|grep fuse fuse 75687 3 [root@apache2 ~]# ls -l /dev/fuse crw-rw-rw- 1 root root 10, 229 Jan 26 09:19 /dev/fuse [root@apache2 ~]# ls -la /var/lib/glusterd/vols/testvol/ total 48 drwxr-xr-x 4 root root 4096 Jan 26 09:09 . drwxr-xr-x. 3 root root 20 Jan 26 07:11 .. drwxr-xr-x 2 root root 48 Jan 26 08:02 bricks -rw--- 1 root root 16 Jan 26 09:09 cksum -rw--- 1 root root 545 Jan 26 08:02 info -rw--- 1 root root 93 Jan 26 08:02 node_state.info -rw--- 1 root root 18 Jan 26 09:09 quota.cksum -rw--- 1 root root0 Jan 26 07:37 quota.conf -rw--- 1 root root 12 Jan 26 08:02 rbstate drwxr-xr-x 2 root root 30 Jan 26 09:09 run -rw--- 1 root root 13 Jan 26 08:02 snapd.info -rw--- 1 root root 1995 Jan 26 08:02 testvol.apache1.brick.vol -rw--- 1 root root 1995 Jan 26 08:02 testvol.apache2.brick.vol -rw--- 1 root root 1392 Jan 26 08:02 testvol-rebalance.vol -rw--- 1 root root 1392 Jan 26 08:02 testvol.tcp-fuse.vol -rw--- 1 root root 1620 Jan 26 08:02 trusted-testvol.tcp-fuse.vol --- ___ Gluster-users mailing list Gluster-users@gluster.org http://www.gluster.org/mailman/listinfo/gluster-users
Re: [Gluster-users] Mount failed
Must be something wrong with your mount.glusterfs script, you could try running it with sh -x to see what command it tries to run. On Tue, 2015-01-27 at 07:28 +0100, Bartłomiej Syryjczyk wrote: W dniu 2015-01-27 o 02:54, Pranith Kumar Karampuri pisze: On 01/26/2015 02:27 PM, Bartłomiej Syryjczyk wrote: W dniu 2015-01-22 o 17:37, A Ghoshal pisze: Maybe start the mount daemon from shell, like this? /usr/sbin/glusterfs --debug --volfile-server=glnode1 --volfile-id=/testvol /mnt/gluster You could get some useful debug data on your terminal. However, it's more likely you have a configuration related problem here. So the output of the following might also help: ls -la /var/lib/glusterd/vols/glnode1/ When I start mount daemon from shell it's works fine. After mount with -o log-level=DEBUG, I can see this: --- [...] [2015-01-26 08:19:48.191675] D [fuse-bridge.c:4817:fuse_thread_proc] 0-glusterfs-fuse: *terminating upon getting ENODEV when reading /dev/fuse* Could you check if the device is present or not, using the following command? 07:16:10 :) ⚡ ls /dev/fuse -l crw-rw-rw-. 1 root root 10, 229 Jan 25 07:31 /dev/fuse I sent it earlier (difference is that I've got SELinux disabled) [root@apache2 ~]# ls -l /dev/fuse crw-rw-rw- 1 root root 10, 229 Jan 26 09:19 /dev/fuse ___ Gluster-users mailing list Gluster-users@gluster.org http://www.gluster.org/mailman/listinfo/gluster-users
Re: [Gluster-users] Mount failed
Seems to mount and then umount it because the inode isn't 1, weird! On Tue, 2015-01-27 at 08:29 +0100, Bartłomiej Syryjczyk wrote: W dniu 2015-01-27 o 07:45, Franco Broi pisze: Must be something wrong with your mount.glusterfs script, you could try running it with sh -x to see what command it tries to run. This is output: --- [root@apache2 ~]# sh -x mount.glusterfs apache1:/testvol /mnt/gluster + _init apache1:/testvol /mnt/gluster + LOG_NONE=NONE + LOG_CRITICAL=CRITICAL + LOG_ERROR=ERROR + LOG_WARNING=WARNING + LOG_INFO=INFO + LOG_DEBUG=DEBUG + LOG_TRACE=TRACE + HOST_NAME_MAX=64 + prefix=/usr + exec_prefix=/usr ++ echo /usr/sbin/glusterfs + cmd_line=/usr/sbin/glusterfs + export PATH ++ which getfattr + getfattr= + '[' 1 -ne 0 ']' + warn 'WARNING: getfattr not found, certain checks will be skipped..' + echo 'WARNING: getfattr not found, certain checks will be skipped..' WARNING: getfattr not found, certain checks will be skipped.. + mounttab=/proc/mounts ++ uname -s + uname_s=Linux + case ${uname_s} in + getinode='stat -c %i' + getdev='stat -c %d' + lgetinode='stat -c %i -L' + lgetdev='stat -c %d -L' + UPDATEDBCONF=/etc/updatedb.conf + main apache1:/testvol /mnt/gluster + '[' xLinux = xLinux ']' + volfile_loc=apache1:/testvol + mount_point=/mnt/gluster + shift 2 + getopts Vo:hn opt + '[' xLinux = xNetBSD ']' + '[' -r apache1:/testvol ']' ++ echo apache1:/testvol ++ sed -n 's/\([a-zA-Z0-9:.\-]*\):.*/\1/p' + server_ip=apache1 ++ echo apache1:/testvol ++ sed -n 's/.*:\([^ ]*\).*/\1/p' + volume_str=/testvol + '[' -n /testvol ']' + volume_id=/testvol + volfile_loc= + '[' -z /testvol -o -z apache1 ']' ++ echo /mnt/gluster ++ grep '^\-o' + grep_ret= + '[' x '!=' x ']' + '[' -z /mnt/gluster -o '!' -d /mnt/gluster ']' + grep -q '[[:space:]+]/mnt/gluster[[:space:]+]fuse' /proc/mounts + case $volume_id in + check_recursive_mount /mnt/gluster + '[' /mnt/gluster = / ']' + mnt_dir=/mnt/gluster + '[' -n '' ']' + GLUSTERD_WORKDIR=/var/lib/glusterd + ls -L /var/lib/glusterd/vols/testvol/bricks/apache1:-brick /var/lib/glusterd/vols/testvol/bricks/apache2:-brick + '[' 0 -ne 0 ']' ++ grep '^path' /var/lib/glusterd/vols/testvol/bricks/apache1:-brick /var/lib/glusterd/vols/testvol/bricks/apache2:-brick ++ cut -d = -f 2 + brick_path='/brick /brick' ++ stat -c %i -L / + root_inode=128 ++ stat -c %d -L / + root_dev=64513 ++ stat -c %i -L /mnt/gluster + mnt_inode=101729533 ++ stat -c %d -L /mnt/gluster + mnt_dev=64513 + for brick in '$brick_path' + ls /brick /brick + '[' 0 -ne 0 ']' + '[' -n '' ']' + continue + update_updatedb + test -f /etc/updatedb.conf + start_glusterfs + '[' -n '' ']' + '[' -n '' ']' + '[' -n '' ']' + '[' -n '' ']' + '[' -n '' ']' + '[' -n '' ']' + '[' -n '' ']' + '[' -n '' ']' + '[' -n '' ']' + '[' -n '' ']' + '[' -n '' ']' + '[' -n '' ']' + '[' -n '' ']' + '[' -n '' ']' + '[' -n '' ']' + '[' -n '' ']' + '[' -n '' ']' + '[' -n '' ']' + '[' -n '' ']' + '[' -n '' ']' + '[' -n '' ']' + '[' -n '' ']' + '[' -n '' ']' + '[' -n '' ']' + '[' -n '' ']' + '[' -z '' ']' + '[' -n apache1 ']' ++ parse_volfile_servers apache1 ++ local server_list=apache1 ++ local servers= ++ local new_servers= +++ echo apache1 +++ sed 's/,/ /g' ++ servers=apache1 ++ for server in '${servers}' ++ is_valid_hostname apache1 ++ local server=apache1 +++ echo apache1 +++ wc -c ++ length=8 ++ '[' 8 -gt 64 ']' ++ '[' 0 -eq 1 ']' +++ echo ' apache1' ++ new_servers=' apache1' ++ echo apache1 + servers=apache1 + '[' -n apache1 ']' ++ echo apache1 + for i in '$(echo ${servers})' ++ echo '/usr/sbin/glusterfs --volfile-server=apache1' + cmd_line='/usr/sbin/glusterfs --volfile-server=apache1' + '[' -n '' ']' + '[' -n '' ']' + '[' -n '' ']' + '[' -n /testvol ']' + '[' -n '' ']' ++ echo '/usr/sbin/glusterfs --volfile-server=apache1 --volfile-id=/testvol' + cmd_line='/usr/sbin/glusterfs --volfile-server=apache1 --volfile-id=/testvol' + '[' -n '' ']' ++ echo '/usr/sbin/glusterfs --volfile-server=apache1 --volfile-id=/testvol /mnt/gluster' + cmd_line='/usr/sbin/glusterfs --volfile-server=apache1 --volfile-id=/testvol /mnt/gluster' + /usr/sbin/glusterfs --volfile-server=apache1 --volfile-id=/testvol /mnt/gluster + '[' 0 -ne 0 ']' ++ stat -c %i /mnt/gluster + inode= + '[' 1 -ne 0 ']' + warn 'Mount failed. Please check the log file for more details.' + echo 'Mount failed. Please check the log file for more details.' Mount failed. Please check the log file for more details. + umount /mnt/gluster [root@apache2 ~]# which mount.glusterfs /usr/sbin/mount.glusterfs [root@apache2 ~]# yum provides /usr/sbin/mount.glusterfs glusterfs-fuse-3.6.2-1.el7.x86_64 : Fuse client Repo: @glusterfs-epel Matched from: Filename: /usr/sbin/mount.glusterfs --- ___ Gluster-users mailing list Gluster-users@gluster.org
Re: [Gluster-users] Mount failed
W dniu 2015-01-27 o 08:36, Franco Broi pisze: Seems to mount and then umount it because the inode isn't 1, weird! Why it must be 1? Are you sure it's inode, not exit code? Can you check your system? --- [root@apache2 ~]# stat -c %i /brick/ 68990719 [root@apache2 ~]# stat -c %i /mnt/gluster 101729533 [root@apache2 ~]# stat -c %i /tmp 100663425 [root@apache2 ~]# stat -c %i /root 67153025 --- -- Z poważaniem, *Bartłomiej Syryjczyk* ___ Gluster-users mailing list Gluster-users@gluster.org http://www.gluster.org/mailman/listinfo/gluster-users
Re: [Gluster-users] Mount failed
W dniu 2015-01-27 o 08:46, Franco Broi pisze: [franco@charlie4 ~]$ stat -c %i /data 1 [franco@charlie4 ~]$ stat -c %i /data2 1 Can you check that running the mount manually actually did work, ie can you list the files after mounting manually?? /usr/sbin/glusterfs --volfile-server=apache1 --volfile-id=/testvol /mnt/gluster Works fine --- [root@apache2 ~]# /usr/sbin/glusterfs --volfile-server=apache1 --volfile-id=/testvol /mnt/gluster [root@apache2 ~]# ls -l /brick /mnt/gluster /brick: total 1355800 -rw-r--r-- 2 root root 1152 Jan 26 08:04 passwd -rw-r--r-- 2 root root 104857600 Jan 26 11:49 zero-2.dd -rw-r--r-- 2 root root 104857600 Jan 26 11:50 zero-3.dd -rw-r--r-- 2 root root 104857600 Jan 26 11:52 zero-4.dd -rw-r--r-- 2 root root 1073741824 Jan 26 08:26 zero.dd /mnt/gluster: total 1355778 -rw-r--r-- 1 root root 1152 Jan 26 08:03 passwd -rw-r--r-- 1 root root 104857600 Jan 26 11:50 zero-2.dd -rw-r--r-- 1 root root 104857600 Jan 26 11:50 zero-3.dd -rw-r--r-- 1 root root 104857600 Jan 26 11:52 zero-4.dd -rw-r--r-- 1 root root 1073741824 Jan 26 08:25 zero.dd [root@apache2 ~]# umount /mnt/gluster/ [root@apache2 ~]# ls -l /mnt/gluster total 0 --- -- Z poważaniem, *Bartłomiej Syryjczyk* ___ Gluster-users mailing list Gluster-users@gluster.org http://www.gluster.org/mailman/listinfo/gluster-users
Re: [Gluster-users] Mount failed
[franco@charlie4 ~]$ stat -c %i /data 1 [franco@charlie4 ~]$ stat -c %i /data2 1 Can you check that running the mount manually actually did work, ie can you list the files after mounting manually?? /usr/sbin/glusterfs --volfile-server=apache1 --volfile-id=/testvol /mnt/gluster On Tue, 2015-01-27 at 08:43 +0100, Bartłomiej Syryjczyk wrote: W dniu 2015-01-27 o 08:36, Franco Broi pisze: Seems to mount and then umount it because the inode isn't 1, weird! Why it must be 1? Are you sure it's inode, not exit code? Can you check your system? --- [root@apache2 ~]# stat -c %i /brick/ 68990719 [root@apache2 ~]# stat -c %i /mnt/gluster 101729533 [root@apache2 ~]# stat -c %i /tmp 100663425 [root@apache2 ~]# stat -c %i /root 67153025 --- ___ Gluster-users mailing list Gluster-users@gluster.org http://www.gluster.org/mailman/listinfo/gluster-users
Re: [Gluster-users] Mount failed
W dniu 2015-01-22 o 17:37, A Ghoshal pisze: Maybe start the mount daemon from shell, like this? /usr/sbin/glusterfs --debug --volfile-server=glnode1 --volfile-id=/testvol /mnt/gluster You could get some useful debug data on your terminal. However, it's more likely you have a configuration related problem here. So the output of the following might also help: ls -la /var/lib/glusterd/vols/glnode1/ When I start mount daemon from shell it's works fine. After mount with -o log-level=DEBUG, I can see this: --- [...] [2015-01-26 08:19:48.191675] D [fuse-bridge.c:4817:fuse_thread_proc] 0-glusterfs-fuse: *terminating upon getting ENODEV when reading /dev/fuse* [2015-01-26 08:19:48.191702] I [fuse-bridge.c:4921:fuse_thread_proc] 0-fuse: unmounting /mnt/gluster [2015-01-26 08:19:48.191759] D [MSGID: 0] [dht-diskusage.c:96:dht_du_info_cbk] 0-testvol-dht: subvolume 'testvol-replicate-0': avail_percent is: 83.00 and avail_space is: 19188232192 and avail_inodes is: 99.00 [2015-01-26 08:19:48.191801] D [logging.c:1740:gf_log_flush_extra_msgs] 0-logging-infra: Log buffer size reduced. About to flush 5 extra log messages [2015-01-26 08:19:48.191822] D [logging.c:1743:gf_log_flush_extra_msgs] 0-logging-infra: Just flushed 5 extra log messages [2015-01-26 08:19:48.192118] W [glusterfsd.c:1194:cleanup_and_exit] (-- 0-: received signum (15), shutting down [2015-01-26 08:19:48.192137] D [glusterfsd-mgmt.c:2244:glusterfs_mgmt_pmap_signout] 0-fsd-mgmt: portmapper signout arguments not given [2015-01-26 08:19:48.192145] I [fuse-bridge.c:5599:fini] 0-fuse: Unmounting '/mnt/gluster'. --- And it won't work Output of few commands: --- [root@apache2 ~]# lsmod|grep fuse fuse 75687 3 [root@apache2 ~]# ls -l /dev/fuse crw-rw-rw- 1 root root 10, 229 Jan 26 09:19 /dev/fuse [root@apache2 ~]# ls -la /var/lib/glusterd/vols/testvol/ total 48 drwxr-xr-x 4 root root 4096 Jan 26 09:09 . drwxr-xr-x. 3 root root 20 Jan 26 07:11 .. drwxr-xr-x 2 root root 48 Jan 26 08:02 bricks -rw--- 1 root root 16 Jan 26 09:09 cksum -rw--- 1 root root 545 Jan 26 08:02 info -rw--- 1 root root 93 Jan 26 08:02 node_state.info -rw--- 1 root root 18 Jan 26 09:09 quota.cksum -rw--- 1 root root0 Jan 26 07:37 quota.conf -rw--- 1 root root 12 Jan 26 08:02 rbstate drwxr-xr-x 2 root root 30 Jan 26 09:09 run -rw--- 1 root root 13 Jan 26 08:02 snapd.info -rw--- 1 root root 1995 Jan 26 08:02 testvol.apache1.brick.vol -rw--- 1 root root 1995 Jan 26 08:02 testvol.apache2.brick.vol -rw--- 1 root root 1392 Jan 26 08:02 testvol-rebalance.vol -rw--- 1 root root 1392 Jan 26 08:02 testvol.tcp-fuse.vol -rw--- 1 root root 1620 Jan 26 08:02 trusted-testvol.tcp-fuse.vol --- -- Z poważaniem, *Bartłomiej Syryjczyk* ___ Gluster-users mailing list Gluster-users@gluster.org http://www.gluster.org/mailman/listinfo/gluster-users
Re: [Gluster-users] Mount failed
W dniu 2015-01-21 o 18:35, Bartłomiej Syryjczyk pisze: W dniu 2015-01-21 o 15:22, Lindsay Mathieson pisze: On 21 January 2015 at 23:46, Bartłomiej Syryjczyk bsyryjc...@kamsoft.pl mailto:bsyryjc...@kamsoft.pl wrote: # mount -t glusterfs apache1:/testvol /mnt/gluster *Mount failed. Please check the log file for more details.* Log: http://pastebin.com/GzkbEGCw Oracle Linux Server release 7.0 Kernel 3.8.13-55.1.2.el7uek.x86_64 glusterfs packages from official yum repository Name: glusterfs Arch: x86_64 Version : 3.6.1 Release : 1.el7 From the logs it looks like your server and client versions don't match - client version = 3.3 Client is 3.6.1 [...] I add that mount exported nfs works good. There is only problem with `mount -t glusterfs' mount.glusterfs -V also shows 3.6.1 Why it thinks that is 3.3? -- Z poważaniem, *Bartłomiej Syryjczyk* ___ Gluster-users mailing list Gluster-users@gluster.org http://www.gluster.org/mailman/listinfo/gluster-users
[Gluster-users] Mount failed
I've got problem with mount. Anyone help? # mount -t glusterfs apache1:/testvol /mnt/gluster *Mount failed. Please check the log file for more details.* Log: http://pastebin.com/GzkbEGCw Oracle Linux Server release 7.0 Kernel 3.8.13-55.1.2.el7uek.x86_64 glusterfs packages from official yum repository Name: glusterfs Arch: x86_64 Version : 3.6.1 Release : 1.el7 -- Z poważaniem, *Bartłomiej Syryjczyk* ___ Gluster-users mailing list Gluster-users@gluster.org http://www.gluster.org/mailman/listinfo/gluster-users
Re: [Gluster-users] Mount failed
Maybe start the mount daemon from shell, like this? /usr/sbin/glusterfs --debug --volfile-server=glnode1 --volfile-id=/testvol /mnt/gluster You could get some useful debug data on your terminal. However, it's more likely you have a configuration related problem here. So the output of the following might also help: ls -la /var/lib/glusterd/vols/glnode1/ Thanks, Anirban From: Bartłomiej Syryjczyk bsyryjc...@kamsoft.pl To: gluster-users@gluster.org Date: 01/22/2015 09:52 PM Subject:[Gluster-users] Mount failed Sent by:gluster-users-boun...@gluster.org I've got problem with mount. Anyone help? # mount -t glusterfs apache1:/testvol /mnt/gluster *Mount failed. Please check the log file for more details.* Log: http://pastebin.com/GzkbEGCw Oracle Linux Server release 7.0 Kernel 3.8.13-55.1.2.el7uek.x86_64 glusterfs packages from official yum repository Name: glusterfs Arch: x86_64 Version : 3.6.1 Release : 1.el7 -- Z poważaniem, *Bartłomiej Syryjczyk* ___ Gluster-users mailing list Gluster-users@gluster.org http://www.gluster.org/mailman/listinfo/gluster-users =-=-= Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you ___ Gluster-users mailing list Gluster-users@gluster.org http://www.gluster.org/mailman/listinfo/gluster-users
Re: [Gluster-users] Mount failed
W dniu 2015-01-21 o 15:22, Lindsay Mathieson pisze: On 21 January 2015 at 23:46, Bartłomiej Syryjczyk bsyryjc...@kamsoft.pl mailto:bsyryjc...@kamsoft.pl wrote: # mount -t glusterfs apache1:/testvol /mnt/gluster *Mount failed. Please check the log file for more details.* Log: http://pastebin.com/GzkbEGCw Oracle Linux Server release 7.0 Kernel 3.8.13-55.1.2.el7uek.x86_64 glusterfs packages from official yum repository Name: glusterfs Arch: x86_64 Version : 3.6.1 Release : 1.el7 From the logs it looks like your server and client versions don't match - client version = 3.3 Client is 3.6.1 # yum info glusterfs{,-server,-fuse,-geo-replication} Installed Packages Name: glusterfs Arch: x86_64 Version : 3.6.1 Release : 1.el7 Size: 5.1 M Repo: installed From repo : glusterfs-epel Summary : Cluster File System URL : http://www.gluster.org/docs/index.php/GlusterFS License : GPLv2 or LGPLv3+ Description : GlusterFS is a distributed 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. Name: glusterfs-fuse Arch: x86_64 Version : 3.6.1 Release : 1.el7 Size: 221 k Repo: installed From repo : glusterfs-epel Summary : Fuse client URL : http://www.gluster.org/docs/index.php/GlusterFS License : GPLv2 or LGPLv3+ Description : GlusterFS is a distributed 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 provides support to FUSE based clients. Name: glusterfs-geo-replication Arch: x86_64 Version : 3.6.1 Release : 1.el7 Size: 655 k Repo: installed From repo : glusterfs-epel Summary : GlusterFS Geo-replication URL : http://www.gluster.org/docs/index.php/GlusterFS License : GPLv2 or LGPLv3+ Description : GlusterFS is a distributed file-system capable of scaling to : several peta-bytes. 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 system 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 userspace and easily manageable. : : This package provides support to geo-replication. Name: glusterfs-server Arch: x86_64 Version : 3.6.1 Release : 1.el7 Size: 2.2 M Repo: installed From repo : glusterfs-epel Summary : Clustered file-system server URL : http://www.gluster.org/docs/index.php/GlusterFS License : GPLv2 or LGPLv3+ Description : GlusterFS is a distributed 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 provides the glusterfs server daemon. # gluster --version glusterfs 3.6.1 built on Nov 7 2014 15:16:40 Repository revision: git://git.gluster.com/glusterfs.git Copyright (c) 2006-2011 Gluster Inc. http://www.gluster.com GlusterFS comes with ABSOLUTELY NO WARRANTY. You may redistribute copies of GlusterFS under the terms of the GNU General Public License. # glusterd --version glusterfs 3.6.1 built on Nov 7 2014 15:16:38
[Gluster-users] Mount failed
I've got problem with mount. Anyone help? # mount -t glusterfs apache1:/testvol /mnt/gluster *Mount failed. Please check the log file for more details.* Log: http://pastebin.com/GzkbEGCw Oracle Linux Server release 7.0 Kernel 3.8.13-55.1.2.el7uek.x86_64 glusterfs packages from official yum repository Name: glusterfs Arch: x86_64 Version : 3.6.1 Release : 1.el7 -- Z poważaniem, *Bartłomiej Syryjczyk* ___ Gluster-users mailing list Gluster-users@gluster.org http://www.gluster.org/mailman/listinfo/gluster-users
Re: [Gluster-users] Mount failed
On 21 January 2015 at 23:46, Bartłomiej Syryjczyk bsyryjc...@kamsoft.pl wrote: # mount -t glusterfs apache1:/testvol /mnt/gluster *Mount failed. Please check the log file for more details.* Log: http://pastebin.com/GzkbEGCw Oracle Linux Server release 7.0 Kernel 3.8.13-55.1.2.el7uek.x86_64 glusterfs packages from official yum repository Name: glusterfs Arch: x86_64 Version : 3.6.1 Release : 1.el7 From the logs it looks like your server and client versions don't match - client version = 3.3 -- Lindsay ___ Gluster-users mailing list Gluster-users@gluster.org http://www.gluster.org/mailman/listinfo/gluster-users
[Gluster-users] mount failed
Hi, I tried gluster .3.0 with centos5.2 x86_64. I following the installation guide: * http://www.gluster.com/community/documentation/index.php/GlusterFS_User_Guide * * * *After configuring a distribute volume, the mount failed:** * */usr/bin/glusterfs-volgen --name testvol comp-1:/data/testvol comp-2:/data/testvol * *mount -t glusterfs /etc/glusterfs/testvol-tcp.vol /data//mnt/ * * * *Here is the log: /var/log/glusterfs/data-mnt-.log * * * * Version : glusterfs 3.0.0 built on Dec 8 2009 03:09:12 git: 2.0.1-886-g8379edd Starting Time: 2010-02-03 15:51:31 Command line : /usr/sbin/glusterfs --log-level=NORMAL --volfile-server-port=6996 --volfile-server=compute-5-2 /data2/zhaopeng/mnt/ PID : 32578 System name : Linux Nodename : compute-5-2.local Kernel Release : 2.6.18-92.el5xen Hardware Identifier: x86_64 Given volfile: +--+ 1: ### file: server-volume.vol.sample 2: 3: # 4: ### GlusterFS Server Volume File ## 5: # 6: 7: CONFIG FILE RULES: 8: ### # is comment character. 9: ### - Config file is case sensitive 10: ### - Options within a volume block can be in any order. 11: ### - Spaces or tabs are used as delimitter within a line. 12: ### - Multiple values to options will be : delimitted. 13: ### - Each option should end within a line. 14: ### - Missing or commented fields will assume default values. 15: ### - Blank/commented lines are allowed. 16: ### - Sub-volumes should already be defined above before referring. 17: 18: ### Export volume brick with the contents of /home/export directory. 19: volume brick 20: type storage/posix # POSIX FS translator 21: option directory /home/export # Export this directory 22: end-volume 23: 24: ### Add network serving capability to above brick. 25: volume server 26: type protocol/server 27: option transport-type tcp 28: # option transport-type unix 29: # option transport-type ib-sdp 30: # option transport.socket.bind-address 192.168.1.10 # Default is to listen on all interfaces 31: # option transport.socket.listen-port 6996 # Default is 6996 32: 33: # option transport-type ib-verbs 34: # option transport.ib-verbs.bind-address 192.168.1.10 # Default is to listen on all interfaces 35: # option transport.ib-verbs.listen-port 6996 # Default is 6996 36: # option transport.ib-verbs.work-request-send-size 131072 37: # option transport.ib-verbs.work-request-send-count 64 38: # option transport.ib-verbs.work-request-recv-size 131072 39: # option transport.ib-verbs.work-request-recv-count 64 40: 41: # option client-volume-filename /etc/glusterfs/glusterfs-client.vol 42: subvolumes brick 43: # NOTE: Access to any volume through protocol/server is denied by 44: # default. You need to explicitly grant access through # auth 45: # option. 46: option auth.addr.brick.allow * # Allow access to brick volume 47: end-volume +--+ [2010-02-03 15:51:31] E [mount.c:510:fuse_mount_sys] glusterfs-fuse: cannot open /dev/fuse (No such device) [2010-02-03 15:51:31] N [mount.c:587:gf_fuse_mount] glusterfs-fuse: direct mount failed (No such device), retry to mount via fusermount [2010-02-03 15:51:31] E [mount.c:611:gf_fuse_mount] glusterfs-fuse: mount failed [2010-02-03 15:51:31] E [xlator.c:838:xlator_init_rec] fuse: Initialization of volume 'fuse' failed, review your volfile again [2010-02-03 15:51:31] E [glusterfsd.c:583:_xlator_graph_init] glusterfs: initializing translator failed * *Has anyone ran into the same problem? * * * *BR, * *Gnep * * * ___ Gluster-users mailing list Gluster-users@gluster.org http://gluster.org/cgi-bin/mailman/listinfo/gluster-users
Re: [Gluster-users] mount failed
Hi Jass Zhao, Do you have fuse on client machine? Glusterfs requires fuse on client side. try checking it: lsmod | grep fuse and then load it, modprobe fuse. Cheers, Lakshmipathi.G - Original Message - From: Jass Zhao jass.z...@gmail.com To: gluster-users@gluster.org Sent: Wednesday, February 3, 2010 1:30:57 PM GMT +05:30 Chennai, Kolkata, Mumbai, New Delhi Subject: [Gluster-users] mount failed Hi, I tried gluster .3.0 with centos5.2 x86_64. I following the installation guide: * http://www.gluster.com/community/documentation/index.php/GlusterFS_User_Guide * * * *After configuring a distribute volume, the mount failed:** * */usr/bin/glusterfs-volgen --name testvol comp-1:/data/testvol comp-2:/data/testvol * *mount -t glusterfs /etc/glusterfs/testvol-tcp.vol /data//mnt/ * * * *Here is the log: /var/log/glusterfs/data-mnt-.log * * * * Version : glusterfs 3.0.0 built on Dec 8 2009 03:09:12 git: 2.0.1-886-g8379edd Starting Time: 2010-02-03 15:51:31 Command line : /usr/sbin/glusterfs --log-level=NORMAL --volfile-server-port=6996 --volfile-server=compute-5-2 /data2/zhaopeng/mnt/ PID : 32578 System name : Linux Nodename : compute-5-2.local Kernel Release : 2.6.18-92.el5xen Hardware Identifier: x86_64 Given volfile: +--+ 1: ### file: server-volume.vol.sample 2: 3: # 4: ### GlusterFS Server Volume File ## 5: # 6: 7: CONFIG FILE RULES: 8: ### # is comment character. 9: ### - Config file is case sensitive 10: ### - Options within a volume block can be in any order. 11: ### - Spaces or tabs are used as delimitter within a line. 12: ### - Multiple values to options will be : delimitted. 13: ### - Each option should end within a line. 14: ### - Missing or commented fields will assume default values. 15: ### - Blank/commented lines are allowed. 16: ### - Sub-volumes should already be defined above before referring. 17: 18: ### Export volume brick with the contents of /home/export directory. 19: volume brick 20: type storage/posix # POSIX FS translator 21: option directory /home/export # Export this directory 22: end-volume 23: 24: ### Add network serving capability to above brick. 25: volume server 26: type protocol/server 27: option transport-type tcp 28: # option transport-type unix 29: # option transport-type ib-sdp 30: # option transport.socket.bind-address 192.168.1.10 # Default is to listen on all interfaces 31: # option transport.socket.listen-port 6996 # Default is 6996 32: 33: # option transport-type ib-verbs 34: # option transport.ib-verbs.bind-address 192.168.1.10 # Default is to listen on all interfaces 35: # option transport.ib-verbs.listen-port 6996 # Default is 6996 36: # option transport.ib-verbs.work-request-send-size 131072 37: # option transport.ib-verbs.work-request-send-count 64 38: # option transport.ib-verbs.work-request-recv-size 131072 39: # option transport.ib-verbs.work-request-recv-count 64 40: 41: # option client-volume-filename /etc/glusterfs/glusterfs-client.vol 42: subvolumes brick 43: # NOTE: Access to any volume through protocol/server is denied by 44: # default. You need to explicitly grant access through # auth 45: # option. 46: option auth.addr.brick.allow * # Allow access to brick volume 47: end-volume +--+ [2010-02-03 15:51:31] E [mount.c:510:fuse_mount_sys] glusterfs-fuse: cannot open /dev/fuse (No such device) [2010-02-03 15:51:31] N [mount.c:587:gf_fuse_mount] glusterfs-fuse: direct mount failed (No such device), retry to mount via fusermount [2010-02-03 15:51:31] E [mount.c:611:gf_fuse_mount] glusterfs-fuse: mount failed [2010-02-03 15:51:31] E [xlator.c:838:xlator_init_rec] fuse: Initialization of volume 'fuse' failed, review your volfile again [2010-02-03 15:51:31] E [glusterfsd.c:583:_xlator_graph_init] glusterfs: initializing translator failed * *Has anyone ran into the same problem? * * * *BR, * *Gnep * * * ___ Gluster-users mailing list Gluster-users@gluster.org http://gluster.org/cgi-bin/mailman/listinfo/gluster-users ___ Gluster-users mailing list Gluster-users@gluster.org http://gluster.org/cgi-bin/mailman/listinfo/gluster-users