1 .TH lctl-barrier 8 "2017 Apr 13" Lustre "Lustre write barrier on all MDTs"
4 .B lctl barrier_freeze \fR{fsname} [timeout]
7 .B lctl barrier_thaw \fR{fsname}
10 .B lctl barrier_stat \fR[--state|-s] [--timeout|-t] {fsname}
13 .B lctl barrier_rescan \fR{fsname} [timeout]
17 .B barrier_freeze \fR{fsname} [timeout]
18 Set write barrier on all MDTs. The command will not return until the
19 barrier is set (frozen) or failed. With the write barrier set, any
20 subsequent metadata modification will be blocked until the barrier is
21 thawed or expired. The barrier lifetime is started when triggering
22 freeze and will be terminated when barrier thawed. To avoid the system
23 being frozen for very long time if miss/fail to call barrier_thaw, you
24 can specify its lifetime via the
26 parameter in seconds, the default value is 30 (seconds). If the barrier
27 is not thawed before that, it will be expired automatically. The command
28 can only succeed when all registered MDTs are available. If some MDT is
29 registered but goes offline, then the freeze command will fail. To check
30 and update current status of MDTs, see the command
32 in subsequent section.
34 .B barrier_thaw \fR{fsname}
35 Reset write barrier on all MDTs. After the write barrier thawed, all the
36 blocked metadata modifications (because of the former
38 command) will be handled normally.
40 .B barrier_stat \fR[--state|-s] [--timeout|-t] {fsname}
42 Query the write barrier status, the possible status and related meanings are
45 'init': has never set barrier on the system
46 'freezing_p1': in the first stage of setting the write barrier
47 'freezing_p2': in the second stage of setting the write barrier
48 'frozen': the write barrier has been set successfully
49 'thawing': in thawing the write barrier
50 'thawed': the write barrier has been thawed
51 'failed': fail to set write barrier
52 'expired': the write barrier is expired
53 'rescan': in scanning the MDTs status, see the command barrier_rescan
54 'unknown': other cases
56 If the barrier is in 'freezing_p1', 'freezing_p2' or 'frozen' status, then
57 the lifetime remaining will be returned also. If no option is specified,
58 or both "-s" and "-t" options are specified, then the output format is:
63 Otherwise, only the value ('xxx' or 'nnn') corresponding to the given option
66 .B barrier_rescan \fR{fsname} [timeout]
68 Scan the system to check which MDTs are active. The status of the MDTs is
71 will be unsuccessful if any of the MDTs are permenantly offline. During
72 the rescan, the MDT status is updated. If an MDT does not respond the
76 seconds (where the default value is 30 seconds), then it will be marked
77 as unavailable or inactive.
86 .BR lctl-snapshot-create (8)