glusterfs无法读取gsyncd状态文件

目标

我想在我的计算机上的某些虚拟机中尝试使用glusterfs geo-replication,以便以后在多个站点上使用。

组态

我在Ubuntu 32位服务器上安装glusterfs 3.6,如下所示:

add-apt-repository -y ppa:gluster/glusterfs-3.6 apt-get update -qq apt-get install glusterfs-server -y 

在每个virtualbox的/etc/hosts都是这样的一个条目,这样我就可以使用主机名:

 192.168.1.1 ivymaster.com 192.168.1.2 ivyslave2.com 192.168.1.3 ivyslave1.com 

build立

首先我在master上创build和启动一个卷( force在rootfs上创build):

 gluster volume create master ivymaster.com:/var/glustermaster/ force gluster volume start master 

工作正常。 我用ssh-copy-id设置了无密码的root用户login,并手动login一次,检查这是否设置正确,主机是否存储在known_hosts

我无法将同步设置到如地理复制术语 – 了解URI中所述的目录中。 创build地理复制失败与URI问题。

 gluster volume geo-replication master ivyslave2.com:/var/slave2 start Staging failed on localhost. Please check the log file for more details. 

创build成功复制后出错

日志文件包含Invalid slave nameUnable to store slave volume nameUnable to fetch slave or confpath details

当我在ivyslave2.com上创build一个卷并使用这个卷创build地理复制时,这是有效的:

  gluster volume geo-replication master ivyslave2.com::slave2 create push-pem force Creating geo-replication session between master & ivyslave2.com::slave2 has been successful 

不幸的是, gluster volume geo-replication master ivyslave2.com::slave2 status认为复制的状态是错误的。

 MASTER NODE MASTER VOL MASTER BRICK SLAVE STATUS CHECKPOINT STATUS CRAWL STATUS -------------------------------------------------------------------------------------------------------------------------------- ivyVirtMaster master /var/glusterfs_master_nv ivyslave2.com::slave2 faulty N/AN/A 

执行此命令后,master上的logfile包含Using passed config template(/var/lib/glusterd/geo-replication/master_ivyslave2.com_slave2/gsyncd.conf).Unable to read gsyncd status fileUnable to read the statusfile for /var/glusterfs_master_nv brick for master(master), ivyslave2.com::slave2(slave) session Unable to read gsyncd status file

问题与tune2fs?

从站上的日志文件包含Received status volume req for volume slave2 tune2fs exited with non-zero exit statusfailed to get inode size Received status volume req for volume slave2 failed to get inode size

这是奴隶的音量有问题吗? 这个问题是否与退出非零退出状态的tune2fs相关? 如何在没有卷的情况下设置地理复制? 地理复制configuration有问题吗?

关系这是在stackoverflow中的post的重复。