我正在尝试为物理群集安装和配置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'.
答案 0 :(得分:0)
我今天遇到了这个问题,已经为客户端和服务器启用了ssl。就我而言,我没有在客户端上设置安全访问选项(使其使用/ etc / ssl /中的glusterfs.ca文件)
要解决此问题,请执行以下操作:
touch /var/lib/glusterd/secure-access