- Code: Select all
[eric@node1 ~]$ sudo /usr/local/sbin/gluster --version
glusterfs 3.2.6 built on May 3 2012 15:53:02
...
[eric@node1 ~]$ sudo /usr/local/sbin/gluster peer status
Number of Peers: 1
Hostname: node2
Uuid: 793a855b-f4da-44f0-9de4-0be5c5e247a4
State: Peer in Cluster (Connected)
[eric@node1 ~]$ sudo /usr/local/sbin/gluster volume info mirror-1
Volume Name: mirror-1
Type: Replicate
Status: Started
Number of Bricks: 2
Transport-type: tcp
Bricks:
Brick1: node1:/srv
Brick2: node2:/srv
Options Reconfigured:
auth.allow: *
...and sometimes I'm able to mount the volume using NFS but not always:
- Sometimes the connection times-out...
- Code: Select all
[eric@localhost ~]$ sudo /usr/sbin/showmount -e node1.example.com
Export list for node1.example.com:
/mirror-1 *
[eric@localhost ~]$ sudo mount -t nfs node1.example.com:/mirror-1 /mnt
mount.nfs: Connection timed out
- and other times the connection is refused:
- Code: Select all
[eric@localhost ~]$ sudo mount -t nfs -o vers=3 node1.example.com:/mirror-1 /mnt
mount.nfs: access denied by server while mounting node1.example.com:/mirror-1
- Code: Select all
[eric@localhost ~]$ locate mount.glusterfs
/sbin/mount.glusterfs
/usr/share/man/man8/mount.glusterfs.8.xz
[eric@localhost ~]$ rpm -qf /sbin/mount.glusterfs
glusterfs-client-3.0.0-2.mga1
[eric@localhost ~]$ date
Fri May 4 16:33:29 PDT 2012
[eric@localhost ~]$ sudo mount.glusterfs node1.example.com:/mirror-1 /mnt
error while getting volume file from server node1.example.com
Try `/usr/sbin/glusterfs --help' or `/usr/sbin/glusterfs --usage' for more
information.
[eric@localhost ~]$ sudo tail /var/log/glusterfs/mnt.log
...
[2012-05-04 16:33:23] W [socket.c:1407:socket_init] trans: disabling non-blocking IO
[2012-05-04 16:33:23] W [socket.c:1407:socket_init] trans: disabling non-blocking IO
[2012-05-04 16:33:23] E [socket.c:1088:socket_connect] trans: connection attempt failed (Connection refused)
[2012-05-04 16:33:23] E [glusterfsd.c:386:_get_specfp] glusterfs: error while getting volume file from server node1.example.com
[2012-05-04 16:33:23] E [glusterfsd.c:1216:main] glusterfs: exiting
[eric@localhost ~]$ sudo mount.glusterfs node1.example.com:/mirror-1 /mnt
error while getting volume file from server node1.example.com
Try `/usr/sbin/glusterfs --help' or `/usr/sbin/glusterfs --usage' for more
information.
[eric@localhost ~]$ rpm -qa | grep glusterfs
glusterfs-common-3.0.0-2.mga1
glusterfs-client-3.0.0-2.mga1
glusterfs-server-3.0.0-2.mga1
libglusterfs0-3.0.0-2.mga1
I've already verified that rpcbind/portmap is running on all three systems (i.e., the two storage nodes and the client)...
- Code: Select all
[eric@node1 ~]$ sudo /sbin/service portmap status
portmap (pid 1739) is running...
[eric@node2 ~]$ sudo /sbin/service portmap status
portmap (pid 1741) is running...
[eric@localhost ~]$ sudo service rpcbind status
rpcbind (pid 2251) is running...
I've already verified that the firewall rules on all three systems (i.e., the two storage nodes and the client) have been flushed...
- Code: Select all
[eric@node1 ~]$ sudo /sbin/service iptables status
Firewall is stopped.
[eric@node2 ~]$ sudo /sbin/service iptables status
Firewall is stopped.
[eric@localhost ~]$ sudo /sbin/service iptables status
Table: raw
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Table: nat
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
Table: mangle
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
Table: filter
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
I'm not sure what to make of the entries in the storage cluster's log files...
- Code: Select all
[eric@node1 ~]$ date
Fri May 4 17:10:57 PDT 2012
[eric@node1 ~]$ sudo tail /usr/local/var/log/glusterfs/{mnt,nfs}.log
==> /usr/local/var/log/glusterfs/mnt.log <==
[2012-05-03 21:52:15.253073] I [glusterfsd.c:1493:main] 0-/usr/local/sbin/glusterfs: Started running /usr/local/sbin/glusterfs version 3.2.6
[2012-05-03 21:52:15.283475] E [mount.c:532:fuse_mount_sys] 0-glusterfs-fuse: cannot open /dev/fuse (No such file or directory)
[2012-05-03 21:52:15.283710] I [mount.c:639:gf_fuse_mount] 0-glusterfs-fuse: direct mount failed (No such file or directory), retry to mount via fusermount
[2012-05-03 21:52:15.286034] E [mount.c:343:fuse_mount_fusermount] 0-glusterfs-fuse: failed to exec fusermount: No such file or directory
[2012-05-03 21:52:15.289658] E [mount.c:343:fuse_mount_fusermount] 0-glusterfs-fuse: failed to exec fusermount: No such file or directory
[2012-05-03 21:52:15.292071] E [mount.c:669:gf_fuse_mount] 0-glusterfs-fuse: mount failed
[2012-05-03 21:52:15.292569] E [xlator.c:1447:xlator_init] 0-fuse: Initialization of volume 'fuse' failed, review your volfile again
==> /usr/local/var/log/glusterfs/nfs.log <==
[2012-05-04 16:39:05.384565] I [afr-common.c:3141:afr_notify] 0-mirror-1-replicate-0: Subvolume 'mirror-1-client-1' came back up; going online.
[2012-05-04 16:39:05.387251] I [client-handshake.c:913:client_setvolume_cbk] 0-mirror-1-client-0: Connected to 10.0.0.1:24009, attached to remote volume '/srv'.
[2012-05-04 16:39:05.394769] I [afr-common.c:1520:afr_set_root_inode_on_first_lookup] 0-mirror-1-replicate-0: added root inode
[2012-05-04 16:39:07.469623] W [socket.c:1494:__socket_proto_state_machine] 0-mirror-1-client-1: reading from socket failed. Error (Transport endpoint is not connected), peer (10.0.0.2:24009)
[2012-05-04 16:39:07.470303] I [client.c:1883:client_rpc_notify] 0-mirror-1-client-1: disconnected
[2012-05-04 16:39:11.404075] E [socket.c:1685:socket_connect_finish] 0-mirror-1-client-1: connection to 10.0.0.2:24009 failed (Connection refused)
[2012-05-04 16:39:14.397626] I [client-handshake.c:1090:select_server_supported_programs] 0-mirror-1-client-1: Using Program GlusterFS 3.2.6, Num (1298437), Version (310)
[2012-05-04 16:39:14.419861] I [client-handshake.c:913:client_setvolume_cbk] 0-mirror-1-client-1: Connected to 10.0.0.2:24009, attached to remote volume '/srv'.
[2012-05-04 16:39:35.466461] E [rpcsvc.c:500:nfs_rpcsvc_conn_peer_check_name] 0-nfsrpc: Failed to get remote addr: Temporary failure in name resolution
[2012-05-04 16:39:45.522037] E [rpcsvc.c:500:nfs_rpcsvc_conn_peer_check_name] 0-nfsrpc: Failed to get remote addr: Temporary failure in name resolution
And the client's log file isn't very helpful either...
- Code: Select all
[eric@localhost ~]$ sudo tail /var/log/glusterfs/mnt.log
...
[2012-05-04 16:33:23] W [socket.c:1407:socket_init] trans: disabling non-blocking IO
[2012-05-04 16:33:23] W [socket.c:1407:socket_init] trans: disabling non-blocking IO
[2012-05-04 16:33:23] E [socket.c:1088:socket_connect] trans: connection attempt failed (Connection refused)
[2012-05-04 16:33:23] E [glusterfsd.c:386:_get_specfp] glusterfs: error while getting volume file from server node1.example.com
[2012-05-04 16:33:23] E [glusterfsd.c:1216:main] glusterfs: exiting
Ideas? Suggestions?