ec2 实例无法挂载 glusterfs 服务器

ec2 实例无法挂载 glusterfs 服务器

我的 EC2 实例尝试挂载位于另一个 EC2 实例上的 glusterfs 卷。

客户端实例的 /etc/fstab 文件包含:

glusterserver1:/export/brick1 /mnt/glusterfs glusterfs defaults 0 0

当我尝试安装它时

mnt -a

但是它给出了错误。我的客户端的 glusterfs 日志如下:

[2013-02-19 17:49:46.757834] I [glusterfsd.c:1666:main] 0-/usr/sbin/glusterfs: Started running /usr/sbin/glusterfs version 3.3.1
[2013-02-19 17:49:46.777490] E [socket.c:1715:socket_connect_finish] 0-glusterfs: connection to  failed (Connection refused)
[2013-02-19 17:49:46.777581] E [glusterfsd-mgmt.c:1787:mgmt_rpc_notify] 0-glusterfsd-mgmt: failed to connect with remote-host: Transport endpoint is not connected
[2013-02-19 17:49:46.777608] I [glusterfsd-mgmt.c:1790:mgmt_rpc_notify] 0-glusterfsd-mgmt: -1 connect attempts left
[2013-02-19 17:49:46.777847] W [glusterfsd.c:831:cleanup_and_exit] (-->/usr/lib64/libgfrpc.so.0(rpc_transport_notify+0x28) [0x7f604baf7018] (-->/usr/lib64/libgfrpc.so.0(rpc_clnt_notify+0xc0) [0x7f604bafb850] (-->/usr/sbin/glusterfs() [0x40c066]))) 0-: received signum (1), shutting down
[2013-02-19 17:49:46.777894] I [fuse-bridge.c:4648:fini] 0-fuse: Unmounting '/mnt/glusterfs'.
[2013-02-19 21:18:48.036389] I [glusterfsd.c:1666:main] 0-/usr/sbin/glusterfs: Started running /usr/sbin/glusterfs version 3.3.1
[2013-02-19 21:19:51.210472] E [socket.c:1715:socket_connect_finish] 0-glusterfs: connection to  failed (Connection timed out)
[2013-02-19 21:19:51.210751] E [glusterfsd-mgmt.c:1787:mgmt_rpc_notify] 0-glusterfsd-mgmt: failed to connect with remote-host: Transport endpoint is not connected
[2013-02-19 21:19:51.210782] I [glusterfsd-mgmt.c:1790:mgmt_rpc_notify] 0-glusterfsd-mgmt: -1 connect attempts left
[2013-02-19 21:19:51.211347] W [glusterfsd.c:831:cleanup_and_exit] (-->/usr/lib64/libgfrpc.so.0(rpc_transport_notify+0x28) [0x7fde6181e018] (-->/usr/lib64/libgfrpc.so.0(rpc_clnt_notify+0xc0) [0x7fde61822850] (-->/usr/sbin/glusterfs() [0x40c066]))) 0-: received signum (1), shutting down
[2013-02-19 21:19:51.211452] I [fuse-bridge.c:4648:fini] 0-fuse: Unmounting '/mnt/glusterfs'.

请问你能帮帮我吗?

答案1

  1. 检查服务器实例的安全组。确保不是因为安全组为所有服务器实例启用了所有流量。
  2. 不要使用 fstab,尝试使用 mount.glusterfs server:vol mountpoint 进行挂载
  3. 检查卷是否已启动? gluster 卷卷名状态 | 启动

相关内容