Игорь Бирюлин
2015-Jun-17 13:34 UTC
[Gluster-users] mount with one alive node in replica set
Hello. I have installation with 2 servers and one volume with type "Replicate". Volume mounted on these 2 server too. If we turn off one server, another will be work and mounted volume will be use without problem. But if we rebooted our another server, when first was turned off (or gluster was stopped on this server), our volume cann't mount (glusterd started). We will be get error "Mount failed. Please check the log file for more details." In log for this mount point we will be see: [2015-06-17 12:13:53.207698] E [client-handshake.c:1496:client_query_portmap_cbk] 0-repofiles-client-0: failed to get the port number for remote subvolume. Please run 'gluster volume status' on server to see if brick process is running. [2015-06-17 12:13:53.207760] I [client.c:2215:client_rpc_notify] 0-repofiles-client-0: disconnected from repofiles-client-0. Client process will keep trying to connect to glusterd until brick's port is available [2015-06-17 12:14:00.213279] E [socket.c:2267:socket_connect_finish] 0-repofiles-client-1: connection to xxx.xxx.xxx.xxx:24007 failed (Connection timed out) [2015-06-17 12:14:00.213336] E [MSGID: 108006] [afr-common.c:3591:afr_notify] 0-repofiles-replicate-0: All subvolumes are down. Going offline until atleast one of them comes back up. [2015-06-17 12:14:00.217300] I [fuse-bridge.c:5080:fuse_graph_setup] 0-fuse: switched to graph 0 [2015-06-17 12:14:00.217518] I [fuse-bridge.c:4009:fuse_init] 0-glusterfs-fuse: FUSE inited with protocol versions: glusterfs 7.22 kernel 7.22 [2015-06-17 12:14:00.217620] I [afr-common.c:3722:afr_local_init] 0-repofiles-replicate-0: no subvolumes up [2015-06-17 12:14:00.217746] I [afr-common.c:3722:afr_local_init] 0-repofiles-replicate-0: no subvolumes up [2015-06-17 12:14:00.217771] W [fuse-bridge.c:779:fuse_attr_cbk] 0-glusterfs-fuse: 2: LOOKUP() / => -1 (Transport endpoint is not connected) [2015-06-17 12:14:00.219877] I [fuse-bridge.c:4921:fuse_thread_proc] 0-fuse: unmounting /repo [2015-06-17 12:14:00.220171] W [glusterfsd.c:1194:cleanup_and_exit] (--> 0-: received signum (15), shutting down [2015-06-17 12:14:00.220189] I [fuse-bridge.c:5599:fini] 0-fuse: Unmounting '/repo'. In /etc/fstab mount has written as: 127.0.0.1:/files /repo glusterfs rw,_netdev 0 0 I found recomendation: 1. gluster peer probe on localhost by his hostname (or ip). But I get "peer probe: success. Probe on localhost not needed" and problem preserved. 2. mount by file like mount -t glusterfs /var/lib/glusterd/vols/files/trusted-files.tcp-fuse.vol /repo or mount -t glusterfs /var/lib/glusterd/vols/files/files.tcp-fuse.vol /repo But it doesn't work too. Version of gluster is 3.6.2-3. How I can get configuration file for mount share/volume from localhost if other nodes in replica set have down? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20150617/199fd4ad/attachment.html>
Ravishankar N
2015-Jun-17 15:46 UTC
[Gluster-users] mount with one alive node in replica set
On 06/17/2015 07:04 PM, ????? ??????? wrote:> If we turn off one server, another will be work and mounted volume > will be use without problem. > But if we rebooted our another server, when first was turned off (or > gluster was stopped on this server), our volume cann't mount (glusterd > started).If both nodes are down and you bring up only one node, glusterd will not start the volume (i.e. the brick, nfs and glustershd processes) automatically. It waits for the other node's glusterd also to be up so that they are in sync. You can override this behavior by doing a `gluster volume start <volname> force` to bring up the gluster process only on this node and then mount the volume. -Ravi