Debian Codegraph @

upstream/fedora-rawhide/man8/xfs_healer.8

raw
1 .TH xfs_healer 8
2 .SH NAME
3 xfs_healer \- automatically heal damage to XFS filesystem metadata
4 .SH SYNOPSIS
5 .B xfs_healer
6 [
7 .B OPTIONS
8 ]
9 .I mount-point
10 .br
11 .B xfs_healer \-V
12 .SH DESCRIPTION
13 .B xfs_healer
14 is a daemon that tries to automatically repair damaged XFS filesystem metadata.
15 .PP
16 .B WARNING!
17 This program is
18 .BR EXPERIMENTAL ","
19 which means that its behavior and interface
20 could change at any time!
21 .PP
22 .B xfs_healer
23 asks the kernel to report all observations of corrupt metadata, media errors,
24 filesystem shutdowns, and file I/O errors.
25 The program can respond to runtime metadata corruption errors by initiating
26 targeted repairs of the suspect metadata or a full online fsck of the
27 filesystem.
28
29 Normally this program runs as a systemd service.
30 The service is activated via the
31 .I xfs_healer_start
32 service if systemd is supported.
33
34 The kernel may not support repairing or optimizing the filesystem.
35 If this is the case, the filesystem must be unmounted and
36 .BR xfs_repair (8)
37 run on the filesystem to fix the problems.
38 .SH OPTIONS
39 .TP
40 .BI \-\-everything
41 Ask the kernel to send us good metadata health events, not only events related
42 to metadata corruption, media errors, shutdowns, and I/O errors.
43 .TP
44 .B \-\-foreground
45 Start enough event handling threads to allow consumption of all online CPUs.
46 If not specified, start exactly one event handling thread.
47 .TP
48 .B \-\-no-autofsck
49 Do not use the
50 .I autofsck
51 filesystem property to decide whether or not to repair corrupt metadata.
52 If the
53 .B \-\-repair
54 option is given, then all corruptions will be repaired.
55 If the
56 .B \-\-repair
57 option is not given, then the program will never try to repair the filesystem.
58 .TP
59 .B \-\-quiet
60 Do not print every event to standard output.
61 .TP
62 .B \-\-repair
63 Always try to repair each piece of corrupt metadata when the kernel tells us
64 about it.
65 If an individual repair fails or the kernel tells us that health events were
66 lost, the
67 .I xfs_scrub
68 service for this mount point will be launched.
69 The default is not to try to repair anything.
70 If this option is specified but the kernel does not support repairs, the
71 program will exit.
72 .TP
73 .B \-\-supported
74 Check if the filesystem supports sending health events.
75 Exits with 0 if it does, and non-zero if not.
76 .TP
77 .BI \-V
78 Prints the version number and exit.
79
80 .SH AUTOFSCK
81 By default, this program will read the
82 .I autofsck
83 filesystem property to decide if it should try to repair corruptions.
84 If the property is set to these values:
85
86 .RS
87 .TP
88 .I repair
89 Corruptions will be repaired.
90 .TP
91 .IR check " or " optimize
92 Corruptions will be logged.
93 .TP
94 .I none
95 The program will exit.
96 .RE
97
98 If the property is not set but the filesystem supports any back-reference
99 metadata (reverse mappings and parent pointers), then corruptions will be
100 logged.
101 If no back-reference metadata are present, the program will exit.
102
103 See the
104 .BR xfs_scrub (8)
105 manual page for more details on this filesystem property.
106
107 .SH CAVEATS
108 .B xfs_healer
109 is an immature utility!
110 Do not run this program unless you have backups of your data!
111 This program takes advantage of in-kernel scrubbing to verify a given
112 data structure with locks held and can keep the filesystem busy for a
113 long time.
114 The kernel must be new enough to support the SCRUB_METADATA ioctl.
115 .PP
116 If errors are found and cannot be repaired, the filesystem must be
117 unmounted and repaired.
118 .SH SEE ALSO
119 .BR xfs_repair (8)
120 and
121 .BR xfs_scrub (8).