summaryrefslogtreecommitdiffstats
path: root/doc/xlators/meta.md
blob: da0d62ae3d761ddcc4881bcdf97796b1303b1f05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
Meta translator
===============

Introduction
------------

Meta xlator provides an interface similar to the Linux procfs, for GlusterFS
runtime and configuration. This document lists some useful information about
GlusterFS internals that could be accessed via the meta xlator. This is not
exhaustive at the moment. Contributors are welcome to improve this.

Note: Meta xlator is loaded automatically in the client graph, ie. in the
mount process' graph.

### GlusterFS native mount version

>[root@trantor codebase]# cat $META/version
>{
>  "Package Version": "3.7dev"
>}

### Listing of some files under the `meta` folder

>[root@trantor codebase]# mount -t glusterfs trantor:/vol /mnt/fuse
>[root@trantor codebase]# ls $META
>cmdline  frames  graphs  logging  mallinfo  master  measure_latency  process_uuid  version

### GlusterFS' process identifier

>[root@trantor codebase]# cat $META/process_uuid
>trantor-11149-2014/07/25-18:48:50:468259
>
This identifier appears in connection establishment log messages.
For eg.,

>[2014-07-25 18:48:49.017927] I [server-handshake.c:585:server_setvolume] 0-vol-server: accepted client from trantor-11087-2014/07/25-18:48:48:779656-vol-client-0-0-0 (version: 3.7dev)
>

### GlusterFS command line

>[root@trantor codebase]# cat $META/cmdline
>{
>  "Cmdlinestr": "/usr/local/sbin/glusterfs --volfile-server=trantor --volfile-id=/vol /mnt/fuse"
>}

### GlusterFS volume graph

The following directory structure reveals the way xlators are stacked in a
graph like fashion. Each (virtual) file under a xlator directory provides
runtime information of that xlator.  For eg. 'name' contains the name of the
xlator.

```
/mnt/fuse/.meta/graphs/active
|-- meta-autoload
|   |-- history
|   |-- meminfo
|   |-- name
|   |-- options
|   |-- private
|   |-- profile
|   |-- subvolumes
|   |   `-- 0 -> ../../vol
|   |-- type
|   `-- view
|-- top -> meta-autoload
|-- vol
|   |-- history
|   |-- meminfo
|   |-- name
|   |-- options
|   |   |-- count-fop-hits
|   |   `-- latency-measurement
|   |-- private
|   |-- profile
|   |-- subvolumes
|   |   `-- 0 -> ../../vol-md-cache
|   |-- type
|   `-- view
|-- vol-client-0
|   |-- history
|   |-- meminfo
|   |-- name
|   |-- options
|   |   |-- client-version
|   |   |-- clnt-lk-version
|   |   |-- fops-version
|   |   |-- password
|   |   |-- ping-timeout
|   |   |-- process-uuid
|   |   |-- remote-host
|   |   |-- remote-subvolume
|   |   |-- send-gids
|   |   |-- transport-type
|   |   |-- username
|   |   |-- volfile-checksum
|   |   `-- volfile-key
|   |-- private
|   |-- profile
|   |-- subvolumes
|   |-- type
|   `-- view
|-- vol-client-1
|   |-- history
|   |-- meminfo
|   |-- name
|   |-- options
|   |   |-- client-version
|   |   |-- clnt-lk-version
|   |   |-- fops-version
|   |   |-- password
|   |   |-- ping-timeout
|   |   |-- process-uuid
|   |   |-- remote-host
|   |   |-- remote-subvolume
|   |   |-- send-gids
|   |   |-- transport-type
|   |   |-- username
|   |   |-- volfile-checksum
|   |   `-- volfile-key
|   |-- private
|   |-- profile
|   |-- subvolumes
|   |-- type
|   `-- view
|-- vol-dht
|   |-- history
|   |-- meminfo
|   |-- name
|   |-- options
|   |-- private
|   |-- profile
|   |-- subvolumes
|   |   |-- 0 -> ../../vol-client-0
|   |   `-- 1 -> ../../vol-client-1
|   |-- type
|   `-- view
|-- volfile
|-- vol-io-cache
|   |-- history
|   |-- meminfo
|   |-- name
|   |-- options
|   |-- private
|   |-- profile
|   |-- subvolumes
|   |   `-- 0 -> ../../vol-read-ahead
|   |-- type
|   `-- view
|-- vol-md-cache
|   |-- history
|   |-- meminfo
|   |-- name
|   |-- options
|   |-- private
|   |-- profile
|   |-- subvolumes
|   |   `-- 0 -> ../../vol-open-behind
|   |-- type
|   `-- view
|-- vol-open-behind
|   |-- history
|   |-- meminfo
|   |-- name
|   |-- options
|   |-- private
|   |-- profile
|   |-- subvolumes
|   |   `-- 0 -> ../../vol-quick-read
|   |-- type
|   `-- view
|-- vol-quick-read
|   |-- history
|   |-- meminfo
|   |-- name
|   |-- options
|   |-- private
|   |-- profile
|   |-- subvolumes
|   |   `-- 0 -> ../../vol-io-cache
|   |-- type
|   `-- view
|-- vol-read-ahead
|   |-- history
|   |-- meminfo
|   |-- name
|   |-- options
|   |-- private
|   |-- profile
|   |-- subvolumes
|   |   `-- 0 -> ../../vol-write-behind
|   |-- type
|   `-- view
`-- vol-write-behind
    |-- history
    |-- meminfo
    |-- name
    |-- options
    |-- private
    |-- profile
    |-- subvolumes
    |   `-- 0 -> ../../vol-dht
    |-- type
    `-- view

```