【问题标题】:GlusterFS failed on MountGlusterFS 挂载失败
【发布时间】:2018-09-21 21:15:00
【问题描述】:

我正在尝试为物理集群安装和配置 GlusterFS。

我做了下面链接的步骤,但是当我尝试时,挂载失败了。

https://www.howtoforge.com/tutorial/high-availability-storage-with-glusterfs-on-ubuntu-1804

卷信息:

# gluster volume info vol01

Volume Name: vol01
Type: Replicate
Volume ID: f6def2b8-24c5-41c8-bf1b-f8396bbac90a
Status: Started
Snapshot Count: 0
Number of Bricks: 1 x 2 = 2
Transport-type: tcp
Bricks:
Brick1: 192.168.100.104:/mnt/glusterfs
Brick2: 192.168.100.106:/mnt/glusterfs
Options Reconfigured:
performance.client-io-threads: off
nfs.disable: on
transport.address-family: inet

状态:

# gluster volume status
Status of volume: vol01
Gluster process                             TCP Port  RDMA Port  Online  Pid
------------------------------------------------------------------------------
Brick 192.168.100.104:/mnt/glusterfs        49152     0          Y       2085 
Brick 192.168.100.106:/mnt/glusterfs        49152     0          Y       2061 
Self-heal Daemon on localhost               N/A       N/A        Y       1857 
Self-heal Daemon on 192.168.100.106         N/A       N/A        Y       1795 

Task Status of Volume vol01
------------------------------------------------------------------------------
There are no active volume tasks

客户端日志:

[2018-09-21 21:11:09.275690] I [glusterfsd.c:1910:main] 0-/usr/sbin/glusterfs: Started running /usr/sbin/glusterfs version 3.4.2 (/usr/sbin/glusterfs --volfile-id=/mnt/glusterfs --volfile-server=tesla /mnt/glusterfs)
[2018-09-21 21:11:09.280052] I [socket.c:3480:socket_init] 0-glusterfs: SSL support is NOT enabled
[2018-09-21 21:11:09.280116] I [socket.c:3495:socket_init] 0-glusterfs: using system polling thread
[2018-09-21 21:11:09.284558] E [glusterfsd-mgmt.c:1574:mgmt_getspec_cbk] 0-glusterfs: failed to get the 'volume file' from server
[2018-09-21 21:11:09.284591] E [glusterfsd-mgmt.c:1674:mgmt_getspec_cbk] 0-mgmt: failed to fetch volume file (key:/mnt/glusterfs)
[2018-09-21 21:11:09.285217] W [glusterfsd.c:1002:cleanup_and_exit] (-->/usr/lib/x86_64-linux-gnu/libgfrpc.so.0(rpc_clnt_notify+0x105) [0x7f80043bbe15] (-->/usr/lib/x86_64-linux-gnu/libgfrpc.so.0(rpc_clnt_handle_reply+0x90) [0x7f80043bbc10] (-->/usr/sbin/glusterfs(mgmt_getspec_cbk+0x449) [0x7f8004a72d09]))) 0-: received signum (0), shutting down
[2018-09-21 21:11:09.285241] I [fuse-bridge.c:5260:fini] 0-fuse: Unmounting '/mnt/glusterfs'.

【问题讨论】:

  • 这与 Kubernetes 有什么关系?
  • 您使用什么命令将gluster 卷挂载到主机?
  • sudo mount -t glusterfs 192.168.100.104:/vol01 /mnt/glusterfs
  • @Rico 我在 kubernetes 上做了同样的事情,用这个工具部署了一个 glusterfs 服务器,但我遇到了同样的问题。
  • @mayconfsbrito 根据日志,您正在使用 glusterfs 客户端版本3.4.2,它已经过时了。您是否安装了 gluster 服务器版本 3.12 它在文档中是如何描述的?问题可能在这里。请尝试更新您的 glusterfs 客户端。

标签: persistence cluster-computing glusterfs


【解决方案1】:

我今天遇到了这个问题,我为客户端和服务器启用了 ssl。就我而言,我没有在客户端上设置安全访问选项(使其使用 /etc/ssl/ 中的 glusterfs.ca 文件)

要解决这个问题:

touch /var/lib/glusterd/secure-access

【讨论】:

  • 我还是遇到了同样的问题
猜你喜欢
  • 2013-12-02
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-05-18
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多