关于GlusterFS客户端机安装

qq_38362424 2019-07-01 10:57:41
最近在centOS7上安装GLusterFS 这个分布式的软件,在服务器上已经安装且配置好了集群,服务器节点有两个,也创建了存储卷,如下:
[root@host3 ~]# gluster volume info
Volume Name: app1-mysql-vol
Type: Replicate
Volume ID: f4fe26c1-77a9-469a-a5e9-dfb5fa0c4b7a
Status: Started
Snapshot Count: 0
Number of Bricks: 1 x 2 = 2
Transport-type: tcp
Bricks:
Brick1: host3:/data/gluster/app1-mysql
Brick2: host4:/data/gluster/app1-mysql
Options Reconfigured:
performance.client-io-threads: off
nfs.disable: on
transport.address-family: inet

这是存储卷的信息(注:服务器节点上安装了yum install -y centos-release-gluster yum install -y glusterfs glusterfs-server
yum install -y glusterfs-fuse yum install -y glusterfs-rdma 由于安装文档上没有写版本,所以我就直接安装了)
现在客户端安装了yum install -y glusterfs glusterfs-fuse,也没有版本,打开服务器和客户端的glusterfs-fuse版本信息,分别是glusterfs-fuse-6.3-1.el7.x86_64和glusterfs-fuse-3.12.2-18.el7.x86_64,这个暂且不说,但是在服务器的虚拟机上执行[root@host3 ~]# yum install glusterfs-fuse-3.12.2-18.el7.x86_64时,却提示已经安装,这个暂且不说。
现在准备将客户端机器挂载到服务器存储卷上,执行mount.glusterfs 192.168.198.135:/app1-mysql-vol /var/data/app1-mysql
出现了Mount failed. Please check the log file for more details.这样的提示,查看log显示:[2019-06-30 03:31:48.748284] W [MSGID: 101095] [xlator.c:213:xlator_dynload] 0-xlator: /usr/lib64/glusterfs/3.12.2/xlator/features/utime.so: cannot open shared object file: No such file or directory
发现运行到这一步有问题,打开 /usr/lib64/glusterfs/3.12.2/xlator/features文件夹,发现的确没有这个utime.so链接库,我并不知道这是不是版本的问题,只是猜测,按理说yum安装的不应该是最新的版本吗?还有,为啥我在服务器上尝试安装客户端的gluster-fuse版本,或者在客户端机上安装服务器上的glusterfs-fuse版本,却提示No package glusterfs-fuse-6.3-1.el7.x86_64 available.
Error: Nothing to do呢?

...全文
387 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
laolvbig 2019-08-01
  • 打赏
  • 举报
回复
同样的问题:server是6.4,另一个节点直接安装客户端是3.12.2 ,挂载失败 ,没有utime.so。 解决方案:在client节点先执行 yum install centos-release-gluster ,再执行 yum install -y glusterfs glusterfs-fuse; 这个时候就会安装一个新的版本(6.4),之前是3.12.2,再查看新版本下 /usr/lib64/glusterfs/6.4/xlator/features 是有utime.so的。 mount -t glusterfs gluster1:models /opt/gfsmnt 再次执行挂载成功。 摸索了好久,希望可以帮到你。

18,828

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 专题技术讨论区
社区管理员
  • 专题技术讨论区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧