Geo-replication often faulty after upgrade from v7 to v8
Often geo-replication can't start after it is stopped or restarted: infinite "faulty" loop. I've inspected logs (see below), checked xattr support, tried different file systems (xfs and ext4), and found no solution.
How to reproduce: stop and start geo-replication multiple times, reboot servers.
Workaround:
- recreating geo-replication with
delete reset-sync-timealways helps to start geo-replication at least one time, - delete master volume and create again — often helps to fix geo-replication start issue, but only temporary.
- downgrade to v7 both master and slave and create new volumes on both master and slave.
Logs during this issue
Master node, /var/log/gluster/bricks/mnt-data-gluster-bricks-conf-brick1.log:
[2020-11-06 22:57:00.314227] I [addr.c:54:compare_addr_and_update] 0-/mnt/data/gluster-bricks/conf/brick1: allowed = "*", received addr = "127.0.0.1"
[2020-11-06 22:57:00.314275] I [login.c:110:gf_auth] 0-auth/login: allowed user names: af46ae6f-6301-41aa-88fe-913bc3d1ae4f
[2020-11-06 22:57:00.314283] I [MSGID: 115029] [server-handshake.c:561:server_setvolume] 0-conf-server: accepted client from CTX_ID:4e3bcfa7-26d5-4bbc-9055-fa3f8786ae5d-GRAPH_ID:0-PID:9169-HOST:node1-PC_NAME:conf-client-0-RECON_NO:-0 (version: 8.2) with subvol /mnt/data/gluster-bricks/conf/brick1
[2020-11-06 22:57:01.312541] E [MSGID: 113001] [posix-inode-fd-ops.c:3761:posix_getxattr] 0-conf-posix: getxattr failed on /mnt/data/gluster-bricks/conf/brick1/ (path: /): dht.subvol.status [Operation not supported]
[2020-11-06 22:57:03.339629] W [socket.c:767:__socket_rwv] 0-tcp.conf-server: readv on 127.0.0.1:49136 failed (No data available)
[2020-11-06 22:57:03.339680] I [MSGID: 115036] [server.c:498:server_rpc_notify] 0-conf-server: disconnecting connection [{client-uid=CTX_ID:4e3bcfa7-26d5-4bbc-9055-fa3f8786ae5d-GRAPH_ID:0-PID:9169-HOST:node1-PC_NAME:conf-client-0-RECON_NO:-0}]
[2020-11-06 22:57:03.339966] I [MSGID: 101055] [client_t.c:397:gf_client_unref] 0-conf-server: Shutting down connection CTX_ID:4e3bcfa7-26d5-4bbc-9055-fa3f8786ae5d-GRAPH_ID:0-PID:9169-HOST:node1-PC_NAME:conf-client-0-RECON_NO:-0
Master node, /var/log/glusterfs/geo-replication/conf_node1reserve_conf/changes-mnt-data-gluster-bricks-conf-brick1.log:
[2020-11-06 22:57:01.318599] I [MSGID: 132028] [gf-changelog.c:577:gf_changelog_register_generic] 0-gfchangelog: Registering brick [{brick=/mnt/data/gluster-bricks/conf/brick1}, {notify_filter=1}]
[2020-11-06 22:57:01.318649] I [MSGID: 101190] [event-epoll.c:670:event_dispatch_epoll_worker] 0-epoll: Started thread with index [{index=0}]
[2020-11-06 22:57:01.318694] I [MSGID: 101190] [event-epoll.c:670:event_dispatch_epoll_worker] 0-epoll: Started thread with index [{index=1}]
[2020-11-06 22:57:01.318730] I [MSGID: 101190] [event-epoll.c:670:event_dispatch_epoll_worker] 0-epoll: Started thread with index [{index=3}]
[2020-11-06 22:57:01.318761] I [MSGID: 101190] [event-epoll.c:670:event_dispatch_epoll_worker] 0-epoll: Started thread with index [{index=2}]
[2020-11-06 22:57:01.319613] I [socket.c:929:__socket_server_bind] 0-socket.gfchangelog: closing (AF_UNIX) reuse check socket 21
[2020-11-06 22:57:03.330528] I [MSGID: 132035] [gf-history-changelog.c:837:gf_history_changelog] 0-gfchangelog: Requesting historical changelogs [{start=1604695879}, {end=1604703423}]
[2020-11-06 22:57:03.330580] I [MSGID: 132019] [gf-history-changelog.c:755:gf_changelog_extract_min_max] 0-gfchangelog: changelogs min max [{min=1604639591}, {max=1604703414}, {total_changelogs=4283}]
[2020-11-06 22:57:03.330629] E [MSGID: 132009] [gf-history-changelog.c:941:gf_history_changelog] 0-gfchangelog: wrong result [{for=end}, {start=1604703414}, {idx=4282}]
Master node, /var/log/glusterfs/geo-replication/conf_node1reserve_conf/gsyncd.log:
[2020-11-06 22:56:58.891021] I [gsyncdstatus(monitor):248:set_worker_status] GeorepStatus: Worker Status Change [{status=Initializing...}]
[2020-11-06 22:56:58.891205] I [monitor(monitor):160:monitor] Monitor: starting gsyncd worker [{brick=/mnt/data/gluster-bricks/conf/brick1}, {slave_node=db1reserve}]
[2020-11-06 22:56:58.960613] I [resource(worker /mnt/data/gluster-bricks/conf/brick1):1387:connect_remote] SSH: Initializing SSH connection between master and slave...
[2020-11-06 22:57:00.249711] I [resource(worker /mnt/data/gluster-bricks/conf/brick1):1436:connect_remote] SSH: SSH connection between master and slave established. [{duration=1.2887}]
[2020-11-06 22:57:00.249943] I [resource(worker /mnt/data/gluster-bricks/conf/brick1):1116:connect] GLUSTER: Mounting gluster volume locally...
[2020-11-06 22:57:01.312882] E [syncdutils(worker /mnt/data/gluster-bricks/conf/brick1):110:gf_mount_ready] <top>: failed to get the xattr value
[2020-11-06 22:57:01.313086] I [resource(worker /mnt/data/gluster-bricks/conf/brick1):1139:connect] GLUSTER: Mounted gluster volume [{duration=1.0631}]
[2020-11-06 22:57:01.313175] I [subcmds(worker /mnt/data/gluster-bricks/conf/brick1):84:subcmd_worker] <top>: Worker spawn successful. Acknowledging back to monitor
[2020-11-06 22:57:03.320343] I [master(worker /mnt/data/gluster-bricks/conf/brick1):1645:register] _GMaster: Working dir [{path=/var/lib/misc/gluster/gsyncd/conf_node1reserve_conf/mnt-data-gluster-bricks-conf-brick1}]
[2020-11-06 22:57:03.320612] I [resource(worker /mnt/data/gluster-bricks/conf/brick1):1292:service_loop] GLUSTER: Register time [{time=1604703423}]
[2020-11-06 22:57:03.328516] I [gsyncdstatus(worker /mnt/data/gluster-bricks/conf/brick1):281:set_active] GeorepStatus: Worker Status Change [{status=Active}]
[2020-11-06 22:57:03.330209] I [gsyncdstatus(worker /mnt/data/gluster-bricks/conf/brick1):253:set_worker_crawl_status] GeorepStatus: Crawl Status Change [{status=History Crawl}]
[2020-11-06 22:57:03.330434] I [master(worker /mnt/data/gluster-bricks/conf/brick1):1559:crawl] _GMaster: starting history crawl [{turns=1}, {stime=(1604695879, 0)}, {entry_stime=(1604643565, 0)}, {etime=1604703423}]
[2020-11-06 22:57:03.330670] E [resource(worker /mnt/data/gluster-bricks/conf/brick1):1312:service_loop] GLUSTER: Changelog History Crawl failed [{error=[Errno 0] Success}]
[2020-11-06 22:57:04.317044] I [monitor(monitor):228:monitor] Monitor: worker died in startup phase [{brick=/mnt/data/gluster-bricks/conf/brick1}]
[2020-11-06 22:57:04.320183] I [gsyncdstatus(monitor):248:set_worker_status] GeorepStatus: Worker Status Change [{status=Faulty}]
Master node, /var/log/glusterfs/geo-replication/conf_node1reserve_conf/mnt-mnt-data-gluster-bricks-conf-brick1.log:
[2020-11-06 22:57:00.275127] I [MSGID: 100030] [glusterfsd.c:2689:main] 0-/usr/sbin/glusterfs: Started running version [{arg=/usr/sbin/glusterfs}, {version=8.2}, {cmdlinestr=/usr/sbin/glusterfs --aux-gfid-mount --acl --log-level=INFO --log-file=/var/log/glusterfs/geo-replication/conf_node1reserve_conf/mnt-mnt-data-gluster-bricks-conf-brick1.log --volfile-server=localhost --volfile-id=conf --client-pid=-1 /tmp/gsyncd-aux-mount-C9ugqd}]
[2020-11-06 22:57:00.275879] I [glusterfsd.c:2424:daemonize] 0-glusterfs: Pid of current running process is 9169
[2020-11-06 22:57:00.284447] I [MSGID: 101190] [event-epoll.c:670:event_dispatch_epoll_worker] 0-epoll: Started thread with index [{index=0}]
[2020-11-06 22:57:00.284480] I [MSGID: 101190] [event-epoll.c:670:event_dispatch_epoll_worker] 0-epoll: Started thread with index [{index=1}]
[2020-11-06 22:57:00.284815] I [glusterfsd-mgmt.c:2170:mgmt_getspec_cbk] 0-glusterfs: Received list of available volfile servers: node3:24007 node2:24007 node4:24007
[2020-11-06 22:57:00.289074] I [MSGID: 114020] [client.c:2315:notify] 0-conf-client-0: parent translators are ready, attempting connect on transport []
[2020-11-06 22:57:00.295119] I [MSGID: 114020] [client.c:2315:notify] 0-conf-client-1: parent translators are ready, attempting connect on transport []
[2020-11-06 22:57:00.295828] I [rpc-clnt.c:1967:rpc_clnt_reconfig] 0-conf-client-0: changing port to 49153 (from 0)
[2020-11-06 22:57:00.295850] I [socket.c:849:__socket_shutdown] 0-conf-client-0: intentional socket shutdown(12)
[2020-11-06 22:57:00.298150] I [MSGID: 114020] [client.c:2315:notify] 0-conf-client-2: parent translators are ready, attempting connect on transport []
[2020-11-06 22:57:00.301697] I [MSGID: 114020] [client.c:2315:notify] 0-conf-client-3: parent translators are ready, attempting connect on transport []
Final graph:
+------------------------------------------------------------------------------+
1: volume conf-client-0
2: type protocol/client
3: option ping-timeout 42
4: option remote-host node1
5: option remote-subvolume /mnt/data/gluster-bricks/conf/brick1
6: option transport-type socket
7: option transport.address-family inet
8: option username af46ae6f-6301-41aa-88fe-913bc3d1ae4f
9: option password 8bcb1f13-d715-4098-83f7-89471d7a315b
10: option transport.socket.ssl-enabled off
11: option transport.tcp-user-timeout 0
12: option transport.socket.keepalive-time 20
13: option transport.socket.keepalive-interval 2
14: option transport.socket.keepalive-count 9
15: option strict-locks off
16: option send-gids true
17: end-volume
18:
19: volume conf-client-1
20: type protocol/client
21: option ping-timeout 42
22: option remote-host node2
23: option remote-subvolume /mnt/data/gluster-bricks/conf/brick1
24: option transport-type socket
25: option transport.address-family inet
26: option username af46ae6f-6301-41aa-88fe-913bc3d1ae4f
27: option password 8bcb1f13-d715-4098-83f7-89471d7a315b
28: option transport.socket.ssl-enabled off
29: option transport.tcp-user-timeout 0
30: option transport.socket.keepalive-time 20
31: option transport.socket.keepalive-interval 2
32: option transport.socket.keepalive-count 9
33: option strict-locks off
34: option send-gids true
35: end-volume
36:
37: volume conf-client-2
38: type protocol/client
39: option ping-timeout 42
40: option remote-host node3
41: option remote-subvolume /mnt/data/gluster-bricks/conf/brick1
42: option transport-type socket
43: option transport.address-family inet
44: option username af46ae6f-6301-41aa-88fe-913bc3d1ae4f
45: option password 8bcb1f13-d715-4098-83f7-89471d7a315b
46: option transport.socket.ssl-enabled off
47: option transport.tcp-user-timeout 0
48: option transport.socket.keepalive-time 20
49: option transport.socket.keepalive-interval 2
50: option transport.socket.keepalive-count 9
51: option strict-locks off
52: option send-gids true
53: end-volume
54:
55: volume conf-client-3
56: type protocol/client
57: option ping-timeout 42
58: option remote-host node4
59: option remote-subvolume /mnt/data/gluster-bricks/conf/brick1
60: option transport-type socket
61: option transport.address-family inet
62: option username af46ae6f-6301-41aa-88fe-913bc3d1ae4f
63: option password 8bcb1f13-d715-4098-83f7-89471d7a315b
64: option transport.socket.ssl-enabled off
65: option transport.tcp-user-timeout 0
66: option transport.socket.keepalive-time 20
67: option transport.socket.keepalive-interval 2
68: option transport.socket.keepalive-count 9
69: option strict-locks off
70: option send-gids true
71: end-volume
72:
73: volume conf-replicate-0
74: type cluster/replicate
75: option afr-pending-xattr conf-client-0,conf-client-1,conf-client-2,conf-client-3
76: option use-compound-fops off
77: subvolumes conf-client-0 conf-client-1 conf-client-2 conf-client-3
78: end-volume
79:
80: volume conf-dht
81: type cluster/distribute
82: option lock-migration off
83: option force-migration off
84: subvolumes conf-replicate-0
85: end-volume
86:
87: volume conf-write-behind
88: type performance/write-behind
89: subvolumes conf-dht
90: end-volume
91:
92: volume conf-open-behind
93: type performance/open-behind
94: subvolumes conf-write-behind
95: end-volume
96:
97: volume conf-quick-read
98: type performance/quick-read
99: subvolumes conf-open-behind
100: end-volume
101:
102: volume conf-md-cache
103: type performance/md-cache
104: option cache-posix-acl true
105: subvolumes conf-quick-read
106: end-volume
107:
108: volume conf
109: type debug/io-stats
110: option log-level INFO
111: option threads 16
112: option latency-measurement off
113: option count-fop-hits off
114: option global-threading off
115: subvolumes conf-md-cache
116: end-volume
117:
118: volume posix-acl-autoload
119: type system/posix-acl
120: subvolumes conf
121: end-volume
122:
123: volume gfid-access-autoload
124: type features/gfid-access
125: subvolumes posix-acl-autoload
126: end-volume
127:
128: volume meta-autoload
129: type meta
130: subvolumes gfid-access-autoload
131: end-volume
132:
+------------------------------------------------------------------------------+
[2020-11-06 22:57:00.306309] I [rpc-clnt.c:1967:rpc_clnt_reconfig] 0-conf-client-3: changing port to 49153 (from 0)
[2020-11-06 22:57:00.306401] I [socket.c:849:__socket_shutdown] 0-conf-client-3: intentional socket shutdown(15)
[2020-11-06 22:57:00.306430] I [rpc-clnt.c:1967:rpc_clnt_reconfig] 0-conf-client-2: changing port to 49153 (from 0)
[2020-11-06 22:57:00.306444] I [socket.c:849:__socket_shutdown] 0-conf-client-2: intentional socket shutdown(14)
[2020-11-06 22:57:00.306464] I [rpc-clnt.c:1967:rpc_clnt_reconfig] 0-conf-client-1: changing port to 49153 (from 0)
[2020-11-06 22:57:00.306475] I [socket.c:849:__socket_shutdown] 0-conf-client-1: intentional socket shutdown(13)
[2020-11-06 22:57:00.314083] I [MSGID: 114057] [client-handshake.c:1128:select_server_supported_programs] 0-conf-client-0: Using Program [{Program-name=GlusterFS 4.x v1}, {Num=1298437}, {Version=400}]
[2020-11-06 22:57:00.314354] I [MSGID: 114057] [client-handshake.c:1128:select_server_supported_programs] 0-conf-client-3: Using Program [{Program-name=GlusterFS 4.x v1}, {Num=1298437}, {Version=400}]
[2020-11-06 22:57:00.314770] I [MSGID: 114057] [client-handshake.c:1128:select_server_supported_programs] 0-conf-client-2: Using Program [{Program-name=GlusterFS 4.x v1}, {Num=1298437}, {Version=400}]
[2020-11-06 22:57:00.314978] I [MSGID: 114046] [client-handshake.c:857:client_setvolume_cbk] 0-conf-client-0: Connected, attached to remote volume [{conn-name=conf-client-0}, {remote_subvol=/mnt/data/gluster-bricks/conf/brick1}]
[2020-11-06 22:57:00.314990] I [MSGID: 108005] [afr-common.c:5995:__afr_handle_child_up_event] 0-conf-replicate-0: Subvolume 'conf-client-0' came back up; going online.
[2020-11-06 22:57:00.315377] I [MSGID: 114046] [client-handshake.c:857:client_setvolume_cbk] 0-conf-client-3: Connected, attached to remote volume [{conn-name=conf-client-3}, {remote_subvol=/mnt/data/gluster-bricks/conf/brick1}]
[2020-11-06 22:57:00.315406] I [MSGID: 108002] [afr-common.c:6365:afr_notify] 0-conf-replicate-0: Client-quorum is met
[2020-11-06 22:57:00.315689] I [MSGID: 114046] [client-handshake.c:857:client_setvolume_cbk] 0-conf-client-2: Connected, attached to remote volume [{conn-name=conf-client-2}, {remote_subvol=/mnt/data/gluster-bricks/conf/brick1}]
[2020-11-06 22:57:00.317459] I [MSGID: 114057] [client-handshake.c:1128:select_server_supported_programs] 0-conf-client-1: Using Program [{Program-name=GlusterFS 4.x v1}, {Num=1298437}, {Version=400}]
[2020-11-06 22:57:00.318420] I [MSGID: 114046] [client-handshake.c:857:client_setvolume_cbk] 0-conf-client-1: Connected, attached to remote volume [{conn-name=conf-client-1}, {remote_subvol=/mnt/data/gluster-bricks/conf/brick1}]
[2020-11-06 22:57:00.319652] I [fuse-bridge.c:5300:fuse_init] 0-glusterfs-fuse: FUSE inited with protocol versions: glusterfs 7.24 kernel 7.31
[2020-11-06 22:57:00.319670] I [fuse-bridge.c:5926:fuse_graph_sync] 0-fuse: switched to graph 0
[2020-11-06 22:57:00.320243] I [MSGID: 108031] [afr-common.c:3134:afr_local_discovery_cbk] 0-conf-replicate-0: selecting local read_child conf-client-0
[2020-11-06 22:57:01.312737] E [fuse-bridge.c:4320:fuse_xattr_cbk] 0-glusterfs-fuse: extended attribute not supported by the backend storage
[2020-11-06 22:57:03.338190] I [fuse-bridge.c:6242:fuse_thread_proc] 0-fuse: initiating unmount of /tmp/gsyncd-aux-mount-C9ugqd
[2020-11-06 22:57:03.338442] W [glusterfsd.c:1439:cleanup_and_exit] (-->/lib64/libpthread.so.0(+0x7ea5) [0x7fc9bf6b1ea5] -->/usr/sbin/glusterfs(glusterfs_sigwaiter+0xe5) [0x556f79989b45] -->/usr/sbin/glusterfs(cleanup_and_exit+0x6b) [0x556f799899ab] ) 0-: received signum (15), shutting down
[2020-11-06 22:57:03.338465] I [fuse-bridge.c:7074:fini] 0-fuse: Unmounting '/tmp/gsyncd-aux-mount-C9ugqd'.
[2020-11-06 22:57:03.338473] I [fuse-bridge.c:7079:fini] 0-fuse: Closing fuse connection to '/tmp/gsyncd-aux-mount-C9ugqd'.
Slave node, /var/log/glusterfs/bricks/mnt-data-gluster-bricks-conf-brick1.log:
[2020-11-06 22:56:59.228184] I [addr.c:54:compare_addr_and_update] 0-/mnt/data/gluster-bricks/conf/brick1: allowed = "*", received addr = "192.168.242.17"
[2020-11-06 22:56:59.228205] I [login.c:110:gf_auth] 0-auth/login: allowed user names: 70ebafe2-e8ad-48d4-b9f9-0245c8b56b5c
[2020-11-06 22:56:59.228214] I [MSGID: 115029] [server-handshake.c:561:server_setvolume] 0-conf-server: accepted client from CTX_ID:54ea0917-078a-488c-b639-604e781ee8b1-GRAPH_ID:0-PID:22247-HOST:db1reserve-PC_NAME:conf-client-2-RECON_NO:-0 (version: 8.2) with subvol /mnt/data/gluster-bricks/conf/brick1
[2020-11-06 22:57:00.237230] E [MSGID: 113001] [posix-inode-fd-ops.c:3761:posix_getxattr] 0-conf-posix: getxattr failed on /mnt/data/gluster-bricks/conf/brick1/ (path: /): dht.subvol.status [Operation not supported]
[2020-11-06 22:57:03.368151] W [socket.c:767:__socket_rwv] 0-tcp.conf-server: readv on 192.168.242.17:49084 failed (No data available)
[2020-11-06 22:57:03.368215] I [MSGID: 115036] [server.c:498:server_rpc_notify] 0-conf-server: disconnecting connection [{client-uid=CTX_ID:54ea0917-078a-488c-b639-604e781ee8b1-GRAPH_ID:0-PID:22247-HOST:db1reserve-PC_NAME:conf-client-2-RECON_NO:-0}]
[2020-11-06 22:57:03.368547] I [MSGID: 101055] [client_t.c:397:gf_client_unref] 0-conf-server: Shutting down connection CTX_ID:54ea0917-078a-488c-b639-604e781ee8b1-GRAPH_ID:0-PID:22247-HOST:db1reserve-PC_NAME:conf-client-2-RECON_NO:-0
Slave node, /var/log/glusterfs/geo-replication-slaves/conf_node1reserve_conf/gsyncd.log:
[2020-11-06 22:56:59.187961] I [resource(slave node1/mnt/data/gluster-bricks/conf/brick1):1116:connect] GLUSTER: Mounting gluster volume locally...
[2020-11-06 22:57:00.237790] E [syncdutils(slave node1/mnt/data/gluster-bricks/conf/brick1):110:gf_mount_ready] <top>: failed to get the xattr value
[2020-11-06 22:57:00.238297] I [resource(slave node1/mnt/data/gluster-bricks/conf/brick1):1139:connect] GLUSTER: Mounted gluster volume [{duration=1.0501}]
[2020-11-06 22:57:00.239577] I [resource(slave node1/mnt/data/gluster-bricks/conf/brick1):1166:service_loop] GLUSTER: slave listening
[2020-11-06 22:57:03.339633] I [repce(slave node1/mnt/data/gluster-bricks/conf/brick1):96:service_loop] RepceServer: terminating on reaching EOF.
Slave node, /var/log/glusterfs/geo-replication-slaves/conf_node1reserve_conf/mnt-node1-mnt-data-gluster-bricks-conf-brick1.log:
[2020-11-06 22:56:59.194812] I [MSGID: 100030] [glusterfsd.c:2689:main] 0-/usr/sbin/glusterfs: Started running version [{arg=/usr/sbin/glusterfs}, {version=8.2}, {cmdlinestr=/usr/sbin/glusterfs --aux-gfid-mount --acl --log-level=INFO --log-file=/var/log/glusterfs/geo-replication-slaves/conf_node1reserve_conf/mnt-node1-mnt-data-gluster-bricks-conf-brick1.log --volfile-server=localhost --volfile-id=conf --client-pid=-1 /tmp/gsyncd-aux-mount-qqSAIU}]
[2020-11-06 22:56:59.195995] I [glusterfsd.c:2424:daemonize] 0-glusterfs: Pid of current running process is 22247
[2020-11-06 22:56:59.205180] I [MSGID: 101190] [event-epoll.c:670:event_dispatch_epoll_worker] 0-epoll: Started thread with index [{index=0}]
[2020-11-06 22:56:59.205208] I [MSGID: 101190] [event-epoll.c:670:event_dispatch_epoll_worker] 0-epoll: Started thread with index [{index=1}]
[2020-11-06 22:56:59.205498] I [glusterfsd-mgmt.c:2170:mgmt_getspec_cbk] 0-glusterfs: Received list of available volfile servers: node2reserve:24007 node1reserve:24007
[2020-11-06 22:56:59.210109] I [MSGID: 114020] [client.c:2315:notify] 0-conf-client-0: parent translators are ready, attempting connect on transport []
[2020-11-06 22:56:59.212511] I [MSGID: 114020] [client.c:2315:notify] 0-conf-client-1: parent translators are ready, attempting connect on transport []
[2020-11-06 22:56:59.213688] I [rpc-clnt.c:1967:rpc_clnt_reconfig] 0-conf-client-0: changing port to 49159 (from 0)
[2020-11-06 22:56:59.213748] I [socket.c:849:__socket_shutdown] 0-conf-client-0: intentional socket shutdown(12)
[2020-11-06 22:56:59.215991] I [MSGID: 114020] [client.c:2315:notify] 0-conf-client-2: parent translators are ready, attempting connect on transport []
[2020-11-06 22:56:59.219884] I [rpc-clnt.c:1967:rpc_clnt_reconfig] 0-conf-client-1: changing port to 49159 (from 0)
[2020-11-06 22:56:59.219937] I [socket.c:849:__socket_shutdown] 0-conf-client-1: intentional socket shutdown(13)
[2020-11-06 22:56:59.219973] I [MSGID: 114057] [client-handshake.c:1128:select_server_supported_programs] 0-conf-client-0: Using Program [{Program-name=GlusterFS 4.x v1}, {Num=1298437}, {Version=400}]
Final graph:
+------------------------------------------------------------------------------+
1: volume conf-client-0
2: type protocol/client
3: option opversion 80000
4: option clnt-lk-version 1
5: option volfile-checksum 0
6: option volfile-key conf
7: option client-version 8.2
8: option process-uuid CTX_ID:54ea0917-078a-488c-b639-604e781ee8b1-GRAPH_ID:0-PID:22247-HOST:db1reserve-PC_NAME:conf-client-0-RECON_NO:-0
9: option fops-version 1298437
10: option ping-timeout 42
11: option remote-host node1reserve
12: option remote-subvolume /mnt/data/gluster-bricks/conf/brick1
13: option transport-type socket
14: option transport.address-family inet
15: option username 70ebafe2-e8ad-48d4-b9f9-0245c8b56b5c
16: option password d28287a0-003a-4498-8b56-1c4f410e5139
17: option transport.socket.ssl-enabled off
18: option transport.tcp-user-timeout 0
19: option transport.socket.keepalive-time 20
20: option transport.socket.keepalive-interval 2
21: option transport.socket.keepalive-count 9
22: option strict-locks off
23: option send-gids true
24: end-volume
25:
26: volume conf-client-1
27: type protocol/client
28: option ping-timeout 42
29: option remote-host node2reserve
30: option remote-subvolume /mnt/data/gluster-bricks/conf/brick1
31: option transport-type socket
32: option transport.address-family inet
33: option username 70ebafe2-e8ad-48d4-b9f9-0245c8b56b5c
34: option password d28287a0-003a-4498-8b56-1c4f410e5139
35: option transport.socket.ssl-enabled off
36: option transport.tcp-user-timeout 0
37: option transport.socket.keepalive-time 20
38: option transport.socket.keepalive-interval 2
39: option transport.socket.keepalive-count 9
40: option strict-locks off
41: option send-gids true
42: end-volume
43:
44: volume conf-client-2
45: type protocol/client
46: option ping-timeout 42
47: option remote-host db1reserve
48: option remote-subvolume /mnt/data/gluster-bricks/conf/brick1
49: option transport-type socket
50: option transport.address-family inet
51: option username 70ebafe2-e8ad-48d4-b9f9-0245c8b56b5c
52: option password d28287a0-003a-4498-8b56-1c4f410e5139
53: option transport.socket.ssl-enabled off
54: option transport.tcp-user-timeout 0
55: option transport.socket.keepalive-time 20
56: option transport.socket.keepalive-interval 2
57: option transport.socket.keepalive-count 9
58: option strict-locks off
59: option send-gids true
60: end-volume
61:
62: volume conf-replicate-0
63: type cluster/replicate
64: option afr-pending-xattr conf-client-0,conf-client-1,conf-client-2
65: option use-compound-fops off
66: subvolumes conf-client-0 conf-client-1 conf-client-2
67: end-volume
68:
69: volume conf-dht
70: type cluster/distribute
71: option lock-migration off
72: option force-migration off
73: subvolumes conf-replicate-0
74: end-volume
75:
76: volume conf-write-behind
77: type performance/write-behind
78: subvolumes conf-dht
79: end-volume
80:
81: volume conf-open-behind
82: type performance/open-behind
83: subvolumes conf-write-behind
84: end-volume
85:
86: volume conf-quick-read
87: type performance/quick-read
88: subvolumes conf-open-behind
89: end-volume
90:
91: volume conf-md-cache
92: type performance/md-cache
93: option cache-posix-acl true
94: subvolumes conf-quick-read
95: end-volume
96:
97: volume conf
98: type debug/io-stats
99: option log-level INFO
100: option threads 16
101: option latency-measurement off
102: option count-fop-hits off
103: option global-threading off
104: subvolumes conf-md-cache
105: end-volume
106:
107: volume posix-acl-autoload
108: type system/posix-acl
109: subvolumes conf
110: end-volume
111:
112: volume gfid-access-autoload
113: type features/gfid-access
114: subvolumes posix-acl-autoload
115: end-volume
116:
117: volume meta-autoload
118: type meta
119: subvolumes gfid-access-autoload
120: end-volume
121:
+------------------------------------------------------------------------------+
[2020-11-06 22:56:59.223156] I [MSGID: 114046] [client-handshake.c:857:client_setvolume_cbk] 0-conf-client-0: Connected, attached to remote volume [{conn-name=conf-client-0}, {remote_subvol=/mnt/data/gluster-bricks/conf/brick1}]
[2020-11-06 22:56:59.223178] I [MSGID: 108005] [afr-common.c:5995:__afr_handle_child_up_event] 0-conf-replicate-0: Subvolume 'conf-client-0' came back up; going online.
[2020-11-06 22:56:59.223427] I [rpc-clnt.c:1967:rpc_clnt_reconfig] 0-conf-client-2: changing port to 49153 (from 0)
[2020-11-06 22:56:59.223458] I [socket.c:849:__socket_shutdown] 0-conf-client-2: intentional socket shutdown(12)
[2020-11-06 22:56:59.225662] I [MSGID: 114057] [client-handshake.c:1128:select_server_supported_programs] 0-conf-client-1: Using Program [{Program-name=GlusterFS 4.x v1}, {Num=1298437}, {Version=400}]
[2020-11-06 22:56:59.226980] I [MSGID: 114046] [client-handshake.c:857:client_setvolume_cbk] 0-conf-client-1: Connected, attached to remote volume [{conn-name=conf-client-1}, {remote_subvol=/mnt/data/gluster-bricks/conf/brick1}]
[2020-11-06 22:56:59.227076] I [MSGID: 108002] [afr-common.c:6365:afr_notify] 0-conf-replicate-0: Client-quorum is met
[2020-11-06 22:56:59.228055] I [MSGID: 114057] [client-handshake.c:1128:select_server_supported_programs] 0-conf-client-2: Using Program [{Program-name=GlusterFS 4.x v1}, {Num=1298437}, {Version=400}]
[2020-11-06 22:56:59.228673] I [MSGID: 114046] [client-handshake.c:857:client_setvolume_cbk] 0-conf-client-2: Connected, attached to remote volume [{conn-name=conf-client-2}, {remote_subvol=/mnt/data/gluster-bricks/conf/brick1}]
[2020-11-06 22:56:59.230210] I [fuse-bridge.c:5300:fuse_init] 0-glusterfs-fuse: FUSE inited with protocol versions: glusterfs 7.24 kernel 7.31
[2020-11-06 22:56:59.230227] I [fuse-bridge.c:5926:fuse_graph_sync] 0-fuse: switched to graph 0
[2020-11-06 22:56:59.231096] I [MSGID: 108031] [afr-common.c:3134:afr_local_discovery_cbk] 0-conf-replicate-0: selecting local read_child conf-client-2
[2020-11-06 22:57:00.237511] E [fuse-bridge.c:4320:fuse_xattr_cbk] 0-glusterfs-fuse: extended attribute not supported by the backend storage
[2020-11-06 22:57:03.365514] I [fuse-bridge.c:6242:fuse_thread_proc] 0-fuse: initiating unmount of /tmp/gsyncd-aux-mount-qqSAIU
[2020-11-06 22:57:03.366029] W [glusterfsd.c:1439:cleanup_and_exit] (-->/lib64/libpthread.so.0(+0x7ea5) [0x7f5dd5590ea5] -->/usr/sbin/glusterfs(glusterfs_sigwaiter+0xe5) [0x557d8130cb45] -->/usr/sbin/glusterfs(cleanup_and_exit+0x6b) [0x557d8130c9ab] ) 0-: received signum (15), shutting down
[2020-11-06 22:57:03.366074] I [fuse-bridge.c:7074:fini] 0-fuse: Unmounting '/tmp/gsyncd-aux-mount-qqSAIU'.
[2020-11-06 22:57:03.366093] I [fuse-bridge.c:7079:fini] 0-fuse: Closing fuse connection to '/tmp/gsyncd-aux-mount-qqSAIU'.
Additional info:
gluster volume info conf:
Volume Name: conf
Type: Replicate
Volume ID: bdccda8b-179a-4d6b-8f59-584503caba31
Status: Started
Snapshot Count: 0
Number of Bricks: 1 x 4 = 4
Transport-type: tcp
Bricks:
Brick1: node1:/mnt/data/gluster-bricks/conf/brick1
Brick2: node2:/mnt/data/gluster-bricks/conf/brick1
Brick3: node3:/mnt/data/gluster-bricks/conf/brick1
Brick4: node4:/mnt/data/gluster-bricks/conf/brick1
Options Reconfigured:
performance.client-io-threads: off
nfs.disable: on
transport.address-family: inet
geo-replication.indexing: on
geo-replication.ignore-pid-check: on
changelog.changelog: on
cluster.enable-shared-storage: enable
gluster volume geo-replication conf node1reserve::conf config:
access_mount:false
allow_network:
change_detector:changelog
change_interval:5
changelog_archive_format:%Y%m
changelog_batch_size:727040
changelog_log_file:/var/log/glusterfs/geo-replication/conf_node1reserve_conf/changes-${local_id}.log
changelog_log_level:INFO
checkpoint:0
cli_log_file:/var/log/glusterfs/geo-replication/cli.log
cli_log_level:INFO
connection_timeout:60
georep_session_working_dir:/var/lib/glusterd/geo-replication/conf_node1reserve_conf/
gfid_conflict_resolution:true
gluster_cli_options:
gluster_command:gluster
gluster_command_dir:/usr/sbin
gluster_log_file:/var/log/glusterfs/geo-replication/conf_node1reserve_conf/mnt-${local_id}.log
gluster_log_level:INFO
gluster_logdir:/var/log/glusterfs
gluster_params:aux-gfid-mount acl
gluster_rundir:/var/run/gluster
glusterd_workdir:/var/lib/glusterd
gsyncd_miscdir:/var/lib/misc/gluster/gsyncd
ignore_deletes:false
isolated_slaves:
log_file:/var/log/glusterfs/geo-replication/conf_node1reserve_conf/gsyncd.log
log_level:INFO
log_rsync_performance:false
master_disperse_count:1
master_distribution_count:1
master_replica_count:1
max_rsync_retries:10
meta_volume_mnt:/var/run/gluster/shared_storage
pid_file:/var/run/gluster/gsyncd-conf-node1reserve-conf.pid
remote_gsyncd:
replica_failover_interval:1
rsync_command:rsync
rsync_opt_existing:true
rsync_opt_ignore_missing_args:true
rsync_options:
rsync_ssh_options:
slave_access_mount:false
slave_gluster_command_dir:/usr/sbin
slave_gluster_log_file:/var/log/glusterfs/geo-replication-slaves/conf_node1reserve_conf/mnt-${master_node}-${master_brick_id}.log
slave_gluster_log_file_mbr:/var/log/glusterfs/geo-replication-slaves/conf_node1reserve_conf/mnt-mbr-${master_node}-${master_brick_id}.log
slave_gluster_log_level:INFO
slave_gluster_params:aux-gfid-mount acl
slave_log_file:/var/log/glusterfs/geo-replication-slaves/conf_node1reserve_conf/gsyncd.log
slave_log_level:INFO
slave_timeout:120
special_sync_mode:
ssh_command:ssh
ssh_options:-oPasswordAuthentication=no -oStrictHostKeyChecking=no -i /var/lib/glusterd/geo-replication/secret.pem
ssh_options_tar:-oPasswordAuthentication=no -oStrictHostKeyChecking=no -i /var/lib/glusterd/geo-replication/tar_ssh.pem
ssh_port:22
state_file:/var/lib/glusterd/geo-replication/conf_node1reserve_conf/monitor.status
state_socket_unencoded:
stime_xattr_prefix:trusted.glusterfs.bdccda8b-179a-4d6b-8f59-584503caba31.a330dc58-7758-413a-bf46-588aab5c55d3
sync_acls:true
sync_jobs:3
sync_method:rsync
sync_xattrs:true
tar_command:tar
use_meta_volume:false
use_rsync_xattrs:false
working_dir:/var/lib/misc/gluster/gsyncd/conf_node1reserve_conf/
Test xattr (dht.subvol.status), master node. Seems some xattr namespace issue?
# getfattr -d -m - /mnt/data/gluster-bricks/conf/brick1/
getfattr: Removing leading '/' from absolute path names
# file: mnt/data/gluster-bricks/conf/brick1/
trusted.gfid=0sAAAAAAAAAAAAAAAAAAAAAQ==
trusted.glusterfs.bdccda8b-179a-4d6b-8f59-584503caba31.a330dc58-7758-413a-bf46-588aab5c55d3.entry_stime=0sX6Tq7QAAAAA=
trusted.glusterfs.bdccda8b-179a-4d6b-8f59-584503caba31.a330dc58-7758-413a-bf46-588aab5c55d3.stime=0sX6Y2EAAAAAA=
trusted.glusterfs.bdccda8b-179a-4d6b-8f59-584503caba31.xtime=0sX6Y2BwAFFmA=
trusted.glusterfs.volume-id=0svczaixeaTWuPWVhFA8q6MQ==
# setfattr -n dht.subvol.status -v "hello" /mnt/data/gluster-bricks/conf/brick1/
setfattr: /mnt/data/gluster-bricks/conf/brick1/: Operation not supported
# setfattr -n user.test -v "hello" /mnt/data/gluster-bricks/conf/brick1/
# getfattr -d -m - /mnt/data/gluster-bricks/conf/brick1/
getfattr: Removing leading '/' from absolute path names
# file: mnt/data/gluster-bricks/conf/brick1/
trusted.gfid=0sAAAAAAAAAAAAAAAAAAAAAQ==
trusted.glusterfs.bdccda8b-179a-4d6b-8f59-584503caba31.a330dc58-7758-413a-bf46-588aab5c55d3.entry_stime=0sX6Tq7QAAAAA=
trusted.glusterfs.bdccda8b-179a-4d6b-8f59-584503caba31.a330dc58-7758-413a-bf46-588aab5c55d3.stime=0sX6Y2EAAAAAA=
trusted.glusterfs.bdccda8b-179a-4d6b-8f59-584503caba31.xtime=0sX6Y2BwAFFmA=
trusted.glusterfs.volume-id=0svczaixeaTWuPWVhFA8q6MQ==
user.test="hello"
The operating system / glusterfs version: Oracle Linux 7.9 (CentOS 7), kernel 5.4.17-2011.7.4.el7uek.x86_64, glusterfs 8.2, SELinux disabled on all nodes
Adding @Shwetha-Acharya
@BarakSason Any insights on the dht.subvol.status? qouting : [2020-11-06 22:57:00.314227] I [addr.c:54:compare_addr_and_update] 0-/mnt/data/gluster-bricks/conf/brick1: allowed = "*", received addr = "127.0.0.1" [2020-11-06 22:57:00.314275] I [login.c:110:gf_auth] 0-auth/login: allowed user names: af46ae6f-6301-41aa-88fe-913bc3d1ae4f [2020-11-06 22:57:00.314283] I [MSGID: 115029] [server-handshake.c:561:server_setvolume] 0-conf-server: accepted client from CTX_ID:4e3bcfa7-26d5-4bbc-9055-fa3f8786ae5d-GRAPH_ID:0-PID:9169-HOST:node1-PC_NAME:conf-client-0-RECON_NO:-0 (version: 8.2) with subvol /mnt/data/gluster-bricks/conf/brick1 [2020-11-06 22:57:01.312541] E [MSGID: 113001] [posix-inode-fd-ops.c:3761:posix_getxattr] 0-conf-posix: getxattr failed on /mnt/data/gluster-bricks/conf/brick1/ (path: /): dht.subvol.status [Operation not supported] [2020-11-06 22:57:03.339629] W [socket.c:767:__socket_rwv] 0-tcp.conf-server: readv on 127.0.0.1:49136 failed (No data available) [2020-11-06 22:57:03.339680] I [MSGID: 115036] [server.c:498:server_rpc_notify] 0-conf-server: disconnecting connection [{client-uid=CTX_ID:4e3bcfa7-26d5-4bbc-9055-fa3f8786ae5d-GRAPH_ID:0-PID:9169-HOST:node1-PC_NAME:conf-client-0-RECON_NO:-0}] [2020-11-06 22:57:03.339966] I [MSGID: 101055] [client_t.c:397:gf_client_unref] 0-conf-server: Shutting down connection CTX_ID:4e3bcfa7-26d5-4bbc-9055-fa3f8786ae5d-GRAPH_ID:0-PID:9169-HOST:node1-PC_NAME:conf-client-0-RECON_NO:-0
@Shwetha-Acharya I'm not familiar with this code path. Maybe @mohit84 can assist.
I've also run into same issue, is there any fix !.
I just hit this issue today after upgrading from Gluster 5.5 to 8.0. Same errors in the logs, and geo replication between clusters is broken.
[2020-12-30 22:14:28.791900] E [MSGID: 113001] [posix-inode-fd-ops.c:3758:posix_getxattr] 0-gogs-posix: getxattr failed on /storage/glusterfs/gogs/ (path: /): dht.subvol.status [Operation not supported]
My scenario:
- Three node cluster using replicated volumes geo-replicated to two different remote clusters (single node) using distributed volumes just for backup/DR reasons.
- All the nodes in all the clusters are running Debian 10 (Buster) and Gluster 8.0 (from Debian backports).
- Problem started right after upgrading the clusters from Gluster 5.5 to Gluster 8.0.
Any permanent fix beyond the workarounds mentioned by @Vanav?
I found this commit that may be related: https://github.com/gluster/glusterfs/commit/06eb3d0b8488d12a92ea21b92727497c585bae4b
Maybe I'm missing this virtual xattr from my volumes? Is it possible to manually create it?
After more digging I found this other commit that at least in my scenario sounds like it can potentially fix it: https://github.com/gluster/glusterfs/commit/260e9765d698702fb9852db8c5d73d0148a5b17d
Unfortunately as far as I can tell this was only merged to devel.
@mohit84, @itisravi will this be included in the next Gluster 8 release? Is there any workaround in the meantime beyond the ones mentioned by @Vanav?
Thanks and happy new year!
will this be included in the next Gluster 8 release?
@casasfernando Yes, I'll send the back port.
will this be included in the next Gluster 8 release?
@casasfernando Yes, I'll send the back port.
These are great news. I’ll be looking forward the next Gluster 8 release. Thanks.
v7 is EOL on 11-Dec-2020. Is this fixed in v8 or v9?
v7 is EOL on 11-Dec-2020. Is this fixed in v8 or v9?
It is fixed in v9. I upgrade from v8 to v9 last week and the problem is gone.
I had to recreate the geo-reps geo with delete reset-sync-time tough but didn't have any further problems afterwards.
Currently running Gluster 9.0 on Debian 10 (Buster) using gluster packages from Debian 11 (Bullseye/testing).
I may have rush myself in saying that I didn't have any further problems after upgrading to v9.
The "getxattr failed" + "dht.subvol.status [Operation not supported]" error is indeed gone but now I discovered that if I stop the geo-replication and then restart it again, it will go into Faulty state after a Changelog History Crawl failure.
I opened a new issue in case is unrelated: https://github.com/gluster/glusterfs/issues/2133
I thought that geo-replication was more stable to be honest but with every upgrade I've done to fix a previous issue, I'm finding a new one. Feels like it's not production ready yet. :(
Thanks.
You need to run the upgrade script https://github.com/gluster/glusterfs/commit/2857fe3fad4d2b30894847088a54b847b88a23b9 to make sure that older directory structure and htime files in v7 were updated as per newer directory structure introduced in v8 in https://review.gluster.org/#/c/glusterfs/+/23733/.
If not run, the search alogorithm during the history crawl will get wrong result. @casasfernando
that conversion script didn't help here - could very well be because the initial update was done without awareness of the script/if you already run into the issue the script won't fix the situation.
And even worse: deleting the geo-replication link with reset-sync time also is not enough to fix the problem. I had to reset the changelog.changelog and geo-replication.indexing on the master volume and remove the brick/.glusterfs/changelogs directory to not end up in the loop failing to switch from xsync crawl to changelog crawl.
I also had to patch the target's resource.py to fix syncing of symlinks with no target, that results in a ENODATA error that needs to be added to the list of failures not to retry (will file separate issue for that).
With that the geo-replication mostly works, just for some reason two volumes get stuck in changelog crawl mode and don't process any changelogs. Stopping and starting the geo-replication session solves that and processes the files in history mode, so it is workable (affects two of 15 volumes, did not investigate, would be different issue anyway)
We also have geo-replication broken after an upgrade to from 7.x to 8.4. It keeps going into "faulty" status and gsyncd.log contains lines as below.
Do I understand correctly that it should be fixed by manually running glusterfs-georep-upgrade.py? We use /nodirectwritedata/gluster for the raw GlusterFS data and the volume is gvol0, so would /nodirectwritedata/gluster/gvol0 be the correct brick path to pass to glusterfs-georep-upgrade.py?
BTW, I think a fix needs to go into the 8.x release as people are still installing that version and this release is still in "maintained" status.
From gsyncd.log:
[2021-03-23 02:49:32.771443] I [gsyncdstatus(monitor):248:set_worker_status] GeorepStatus: Worker Status Change [{status=Initializing...}]
[2021-03-23 02:49:32.771752] I [monitor(monitor):160:monitor] Monitor: starting gsyncd worker [{brick=/nodirectwritedata/gluster/gvol0}, {slave_node=nves6}]
[2021-03-23 02:49:32.890810] I [resource(worker /nodirectwritedata/gluster/gvol0):1387:connect_remote] SSH: Initializing SSH connection between master and slave...
[2021-03-23 02:49:35.332082] I [resource(worker /nodirectwritedata/gluster/gvol0):1436:connect_remote] SSH: SSH connection between master and slave established. [{duration=2.4409}]
[2021-03-23 02:49:35.332582] I [resource(worker /nodirectwritedata/gluster/gvol0):1116:connect] GLUSTER: Mounting gluster volume locally...
[2021-03-23 02:49:36.365076] I [resource(worker /nodirectwritedata/gluster/gvol0):1139:connect] GLUSTER: Mounted gluster volume [{duration=1.0322}]
[2021-03-23 02:49:36.365495] I [subcmds(worker /nodirectwritedata/gluster/gvol0):84:subcmd_worker] <top>: Worker spawn successful. Acknowledging back to monitor
[2021-03-23 02:49:38.380644] I [master(worker /nodirectwritedata/gluster/gvol0):1645:register] _GMaster: Working dir [{path=/var/lib/misc/gluster/gsyncd/gvol0_nves6_gvol0/nodirectwritedata-gluster-gvol0}]
[2021-03-23 02:49:38.381185] I [resource(worker /nodirectwritedata/gluster/gvol0):1292:service_loop] GLUSTER: Register time [{time=1616467778}]
[2021-03-23 02:49:38.404793] I [gsyncdstatus(worker /nodirectwritedata/gluster/gvol0):281:set_active] GeorepStatus: Worker Status Change [{status=Active}]
[2021-03-23 02:49:38.518661] I [gsyncdstatus(worker /nodirectwritedata/gluster/gvol0):253:set_worker_crawl_status] GeorepStatus: Crawl Status Change [{status=History Crawl}]
[2021-03-23 02:49:38.519160] I [master(worker /nodirectwritedata/gluster/gvol0):1559:crawl] _GMaster: starting history crawl [{turns=1}, {stime=(1616465405, 0)}, {etime=1616467778}, {entry_stime=(1616465245, 0)}]
[2021-03-23 02:49:38.519522] E [resource(worker /nodirectwritedata/gluster/gvol0):1312:service_loop] GLUSTER: Changelog History Crawl failed [{error=[Errno 0] Success}]
[2021-03-23 02:49:39.369580] I [monitor(monitor):228:monitor] Monitor: worker died in startup phase [{brick=/nodirectwritedata/gluster/gvol0}]
[2021-03-23 02:49:39.374781] I [gsyncdstatus(monitor):248:set_worker_status] GeorepStatus: Worker Status Change [{status=Faulty}]
You need to run the upgrade script 2857fe3 to make sure that older directory structure and htime files in v7 were updated as per newer directory structure introduced in v8 in https://review.gluster.org/#/c/glusterfs/+/23733/.
If not run, the search alogorithm during the history crawl will get wrong result. @casasfernando
Thanks for your reply @Shwetha-Acharya. I followed your advice, downloaded the script to one of the master cluster nodes. Then I went through the following steps:
1- Remove the replication session as it was already faulty (commands executed successfully):
sudo gluster volume geo-replication guacamole [email protected]::guacamole-slave stop
sudo gluster volume geo-replication guacamole [email protected]::guacamole-slave delete reset-sync-time
2- Executed the upgrade script, but it gave me the following error:
sudo ./glusterfs-georep-upgrade.py /storage/glusterfs/guacamole
Traceback (most recent call last):
File "./glusterfs-georep-upgrade.py", line 77, in <module>
modify_htime_file(args.brick_path)
File "./glusterfs-georep-upgrade.py", line 61, in modify_htime_file
shutil.copyfile(pth, os.path.join(path, changelog))
File "/usr/lib/python3.7/shutil.py", line 104, in copyfile
raise SameFileError("{!r} and {!r} are the same file".format(src, dst))
shutil.SameFileError: '/storage/glusterfs/guacamole/.glusterfs/changelogs/2020/12/30/CHANGELOG.1609357688' and '/storage/glusterfs/guacamole/.glusterfs/changelogs/2020/12/30/CHANGELOG.1609357688' are the same file
3- Repeated the same steps for another brick (ie: virtpanel) with the same results:
sudo ./glusterfs-georep-upgrade.py /storage/glusterfs/virtpanel
Traceback (most recent call last):
File "./glusterfs-georep-upgrade.py", line 77, in <module>
modify_htime_file(args.brick_path)
File "./glusterfs-georep-upgrade.py", line 61, in modify_htime_file
shutil.copyfile(pth, os.path.join(path, changelog))
File "/usr/lib/python3.7/shutil.py", line 104, in copyfile
raise SameFileError("{!r} and {!r} are the same file".format(src, dst))
shutil.SameFileError: '/storage/glusterfs/virtpanel/.glusterfs/changelogs/2020/12/30/CHANGELOG.1609357688' and '/storage/glusterfs/virtpanel/.glusterfs/changelogs/2020/12/30/CHANGELOG.1609357688' are the same file
Did I do something wrong? Can you please provide further advice?
Thanks.
@casasfernando I experienced the same error with the upgrade script.
What did work for me was to delete the session with resetting sync time, disabling changelogs, wiping all data in .glusterfs/changelogs and recreating the session afterwards as explained in https://github.com/gluster/glusterfs/issues/1766#issuecomment-802724427
@KirbyDE How did you disable the changelogs? Thank you.
@KirbyDE How did you disable the changelogs? Thank you.
You want to take a look at @KirbyDE 's comment here: https://github.com/gluster/glusterfs/issues/2133#issuecomment-804717675
Thank you for your contributions. Noticed that this issue is not having any activity in last ~6 months! We are marking this issue as stale because it has not had recent activity. It will be closed in 2 weeks if no one responds with a comment here.