OK, então parece que eu tive que fazer o seguinte.
-
Adicione o atributo estendido
trusted.glusterfs.volume-id
- observe que ele precisa estar no diretório/brick
, tentei subir de nível e não funcionou$ setfattr -n trusted.glusterfs.volume-id -v 0xf0d72d64288c4e729c532d16ce5687ac /data/glusterfs/sde1/brick
NOTA: esse valor para o volume-id vem deste comando:
$ grep volume-id /var/lib/glusterd/vols/nova/info | cut -d= -f2 | sed 's/-//g' f0d72d64288c4e729c532d16ce5687ac
-
Reinicie o
glusterd
$ service restart glusterd.service
Se eu observar o log do bloco:
/var/log/glusterfs/bricks/data-glusterfs-sde1-brick.log
, você verá as mensagens do efeito:[2015-08-01 22:28:01.510200] I [login.c:81:gf_auth] 0-auth/login: allowed user names: a9c47852-7dcf-4f89-80e5-110101943f36 [2015-08-01 22:28:01.510254] I [server-handshake.c:585:server_setvolume] 0-nova-server: accepted client from icicle07.td.teradata.com-44127-2015/08/01-21:08:06:639278-nova-client-19-0-0 (version: 3.7.0) [2015-08-01 22:28:01.510584] I [login.c:81:gf_auth] 0-auth/login: allowed user names: a9c47852-7dcf-4f89-80e5-110101943f36 [2015-08-01 22:28:01.510614] I [server-handshake.c:585:server_setvolume] 0-nova-server: accepted client from icicle08.td.teradata.com-7291-2015/07/02-00:22:13:514999-nova-client-19-0-0 (version: 3.7.0) [2015-08-01 22:28:01.513443] I [login.c:81:gf_auth] 0-auth/login: allowed user names: a9c47852-7dcf-4f89-80e5-110101943f36
Agora, enquanto vejo o bloco que vejo, ele está sendo sincronizado com o restante do cluster:
$ while [ 1 ]; do du -sh /data/glusterfs/sde1/brick; sleep 30; done 38G /data/glusterfs/sde1/brick 40G /data/glusterfs/sde1/brick 41G /data/glusterfs/sde1/brick
-
Quando isso estiver concluído, execute um comando de recuperação para verificar novamente as coisas.
$ gluster volume heal nova full
Detalhes adicionais
Também vi essas mensagens logo depois que reiniciei o glusterd
:
[2015-08-01 22:27:56.882271] W [graph.c:357:_log_if_unknown_option] 0-nova-quota: option 'timeout' is not recognized
[2015-08-01 22:27:56.882303] W [graph.c:357:_log_if_unknown_option] 0-nova-trash: option 'brick-path' is not recognized
Final graph:
+------------------------------------------------------------------------------+
1: volume nova-posix
2: type storage/posix
3: option glusterd-uuid 5e09f3ec-bfbc-490b-bd93-8e083e8ebd05
4: option directory /data/glusterfs/sde1/brick
5: option volume-id f0d72d64-288c-4e72-9c53-2d16ce5687ac
6: end-volume
7:
8: volume nova-trash
9: type features/trash
10: option trash-dir .trashcan
11: option brick-path /data/glusterfs/sde1/brick
12: option trash-internal-op off
13: subvolumes nova-posix
14: end-volume
15:
16: volume nova-changetimerecorder
17: type features/changetimerecorder
18: option db-type sqlite3
19: option hot-brick off
20: option db-name brick.db
21: option db-path /data/glusterfs/sde1/brick/.glusterfs/
22: option record-exit off
23: option ctr_link_consistency off
24: option record-entry on
25: option ctr-enabled off
26: option record-counters off
27: subvolumes nova-trash
28: end-volume
29:
30: volume nova-changelog
31: type features/changelog
32: option changelog-brick /data/glusterfs/sde1/brick
33: option changelog-dir /data/glusterfs/sde1/brick/.glusterfs/changelogs
34: option changelog-barrier-timeout 120
35: subvolumes nova-changetimerecorder
36: end-volume
37:
38: volume nova-bitrot-stub
39: type features/bitrot-stub
40: option export /data/glusterfs/sde1/brick
41: subvolumes nova-changelog
42: end-volume
43:
44: volume nova-access-control
45: type features/access-control
46: subvolumes nova-bitrot-stub
47: end-volume
48:
49: volume nova-locks
50: type features/locks
51: subvolumes nova-access-control
52: end-volume
53:
54: volume nova-upcall
55: type features/upcall
56: option cache-invalidation off
57: subvolumes nova-locks
58: end-volume
59:
60: volume nova-io-threads
61: type performance/io-threads
62: subvolumes nova-upcall
63: end-volume
64:
65: volume nova-barrier
66: type features/barrier
67: option barrier disable
68: option barrier-timeout 120
69: subvolumes nova-io-threads
70: end-volume
71:
72: volume nova-index
73: type features/index
74: option index-base /data/glusterfs/sde1/brick/.glusterfs/indices
75: subvolumes nova-barrier
76: end-volume
77:
78: volume nova-marker
79: type features/marker
80: option volume-uuid f0d72d64-288c-4e72-9c53-2d16ce5687ac
81: option timestamp-file /var/lib/glusterd/vols/nova/marker.tstamp
82: option xtime off
83: option gsync-force-xtime off
84: option quota off
85: option inode-quota off
86: subvolumes nova-index
87: end-volume
88:
89: volume nova-quota
90: type features/quota
91: option volume-uuid nova
92: option server-quota off
93: option timeout 0
94: option deem-statfs off
95: subvolumes nova-marker
96: end-volume
97:
98: volume nova-worm
99: type features/worm
100: option worm off
101: subvolumes nova-quota
102: end-volume
103:
104: volume nova-read-only
105: type features/read-only
106: option read-only off
107: subvolumes nova-worm
108: end-volume
109:
110: volume /data/glusterfs/sde1/brick
111: type debug/io-stats
112: option latency-measurement off
113: option count-fop-hits off
114: subvolumes nova-read-only
115: end-volume
116:
117: volume nova-server
118: type protocol/server
119: option transport.socket.listen-port 49155
120: option rpc-auth.auth-glusterfs on
121: option rpc-auth.auth-unix on
122: option rpc-auth.auth-null on
123: option transport-type tcp
124: option auth.login./data/glusterfs/sde1/brick.allow a9c47852-7dcf-4f89-80e5-110101943f36
125: option auth.login.a9c47852-7dcf-4f89-80e5-110101943f36.password XXXXXXX
126: option auth.addr./data/glusterfs/sde1/brick.allow *
127: subvolumes /data/glusterfs/sde1/brick
128: end-volume
129:
+------------------------------------------------------------------------------+
Confirmando os atributos estendidos
Você pode usar o seguinte comando para ver quais atributos estão presentes:
$ getfattr -d -m . -e hex /data/glusterfs/sde1/brick
getfattr: Removing leading '/' from absolute path names
# file: data/glusterfs/sde1/brick
trusted.afr.dirty=0x000000000000000000000000
trusted.afr.nova-client-18=0x000000000000000000000000
trusted.afr.nova-client-19=0x000000000000000000000000
trusted.gfid=0x00000000000000000000000000000001
trusted.glusterfs.dht=0x00000001000000004ccccccb66666663
trusted.glusterfs.dht.commithash=0x3000
trusted.glusterfs.volume-id=0xf0d72d64288c4e729c532d16ce5687ac