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 at apache2 ~]# ls -l /dev/fuse > >> crw-rw-rw- 1 root root 10, 229 Jan 26 09:19 /dev/fuse >
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 at 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 at apache2 ~]# which mount.glusterfs /usr/sbin/mount.glusterfs [root at 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 --- -- Z powa?aniem, *Bart?omiej Syryjczyk*