[Gluster-users] georeplication woes
Maarten van Baarsel
mrten_glusterusers at ii.nl
Fri Jul 20 19:04:01 UTC 2018
Hi Sunny,
thanks for your reply!
> I think setup for gluster binary location is wrongly setup here.
>
> Can you please try setting it up by using following command
>
> on master
> #gluster vol geo-rep <mastervol> <slave-vol> config
> gluster-command-dir <gluster-binary-location>
>
> and on slave
> #gluster vol geo-rep <mastervol> <slave-vol> config
> slave-gluster-command-dir <gluster-binary-location>
Is there a difference between _ and -? I only seem to have the _ ones:
(gluster-3 is one of the master 3-replica, gluster-4 is the slave)
root at gluster-3:/home/mrten# gluster volume geo-rep gl0 ssh://georep@gluster-4.glstr::glbackup config | fgrep command
gluster_command:gluster
gluster_command_dir:/usr/sbin/
rsync_command:rsync
slave_gluster_command_dir:/usr/sbin/
ssh_command:ssh
tar_command:tar
Can't run that command on the slave, it doesn't know the gl0 volume:
root at gluster-4:/home/mrten# gluster volume geo-rep gl0 ssh://georep@gluster-4.glstr::glbackup config
Volume gl0 does not exist
geo-replication command failed
But the location is correct:
master:
root at gluster-3:/home/mrten# which gluster
/usr/sbin/gluster
slave:
root at gluster-4:/home/mrten# which gluster
/usr/sbin/gluster
and they work:
root at gluster-3:/home/mrten# /usr/sbin/gluster
gluster>
root at gluster-4:/home/mrten# /usr/sbin/gluster
gluster>
>
>> [2018-07-20 12:32:13.404048] W [gsyncd(slave gluster-2.glstr/var/lib/gluster):293:main] <top>: Session config file not exists, using the default config path=/var/lib/glusterd/geo-replication/gl0_gluster-4.glstr_glbackup/gsyncd.conf
this one is weird though; there is nothing in
/var/lib/glusterd/geo-replication/gl0_gluster-4.glstr_glbackup/gsyncd.conf
but
[vars]
stime-xattr-prefix = trusted.glusterfs.4054e7ad-7eb9-41fe-94cf-b52a690bb655.f7ce9a54-0ce4-4056-9958-4fa3f1630154
use-meta-volume = true
Maarten.
More information about the Gluster-users
mailing list