1E2SCRUB(8)                  System Manager's Manual                 E2SCRUB(8)
2
3
4

NAME

6       e2scrub - check the contents of a mounted ext[234] filesystem
7

SYNOPSYS

9       e2scrub [OPTION] MOUNTPOINT | DEVICE
10

DESCRIPTION

12       e2scrub  attempts  to  check (but not repair) all metadata in a mounted
13       ext[234] filesystem if the filesystem resides on an LVM logical volume.
14       The block device of the LVM logical volume can also be passed in.
15
16       This  program  snapshots the volume and runs a file system check on the
17       snapshot to look for corruption errors.  The LVM volume group must have
18       at least 256MiB of unallocated space to dedicate to the snapshot or the
19       logical  volume  will  be  skipped.   The  snapshot   will   be   named
20       lvname.e2scrub  and  udev  will  not  create symbolic links to it under
21       /dev/disk.  Every attempt will be made to remove the snapshots prior to
22       running  e2scrub, but in a dire situation it may be necessary to remove
23       the snapshot manually.
24
25       If no errors are found, fstrim can be called on the file system  if  it
26       is  mounted.   If  errors  are found, the file system will be marked as
27       having errors.  The filesystem should be taken offline and  e2fsck  run
28       as  soon as possible, because e2scrub does not fix corruptions.  If the
29       filesystem is not repaired, e2fsck will be run before the next mount.
30

OPTIONS

32       -n     Print what commands e2scrub would execute to check the file sys‐
33              tem.   (Note:  the  commands will not actually be executed; how‐
34              ever, since e2scrub needs to run some commands to query the sys‐
35              tem to determine what commands would be executed, it still needs
36              to be run as root.)
37
38       -r     Remove the e2scrub snapshot and exit without checking anything.
39
40       -t     Run fstrim(1) on the mounted filesystem if no errors are found.
41
42       -V     Print version information and exit.
43

EXIT CODE

45       The exit codes are the same as in e2fsck(8)
46

SEE ALSO

48       e2fsck(8)
49

AUTHOR

51       Darrick J. Wong <darrick.wong@oracle.com>
52
54       Copyright      ©2018      Oracle.        License       is       GPLv2+.
55       <http://www.gnu.org/licenses/gpl-2.0.html>
56
57
58
59E2fsprogs version 1.45.6          March 2020                        E2SCRUB(8)
Impressum