125 lines
3.4 KiB
HTML
125 lines
3.4 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of E2SCRUB</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>E2SCRUB</H1>
|
|
Section: Maintenance Commands (8)<BR>Updated: January 2020<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
e2scrub - check the contents of a mounted ext[234] filesystem
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSYS</H2>
|
|
|
|
<B>e2scrub [OPTION] MOUNTPOINT | DEVICE</B>
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<B>e2scrub</B>
|
|
|
|
attempts to check (but not repair) all metadata in a mounted ext[234]
|
|
filesystem if the filesystem resides on an LVM logical volume.
|
|
The block device of the LVM logical volume can also be passed in.
|
|
<P>
|
|
This program snapshots the volume and runs a file system check on the snapshot
|
|
to look for corruption errors.
|
|
The LVM volume group must have at least 256MiB of unallocated space to
|
|
dedicate to the snapshot or the logical volume will be skipped.
|
|
The snapshot will be named
|
|
<I>lvname</I>.e2scrub
|
|
|
|
and
|
|
<B>udev</B>
|
|
|
|
will not create symbolic links to it under
|
|
<I>/dev/disk</I>.
|
|
|
|
Every attempt will be made to remove the snapshots prior to running
|
|
<B>e2scrub</B>,
|
|
|
|
but in a dire situation it may be necessary to remove the snapshot manually.
|
|
<P>
|
|
If no errors are found,
|
|
<B>fstrim</B>
|
|
|
|
can be called on the file system if it is mounted.
|
|
If errors are found, the file system will be marked as having errors.
|
|
The filesystem should be taken offline and
|
|
<B>e2fsck</B>
|
|
|
|
run as soon as possible, because
|
|
<B>e2scrub</B>
|
|
|
|
does not fix corruptions.
|
|
If the filesystem is not repaired,
|
|
<B>e2fsck</B>
|
|
|
|
will be run before the next mount.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1"><B>-n</B><DD>
|
|
Print what commands
|
|
<B>e2scrub</B>
|
|
|
|
would execute to check the file system. (Note: the commands will not
|
|
actually be executed; however, since
|
|
<B>e2scrub</B>
|
|
|
|
needs to run some commands to query the system to determine what
|
|
commands would be executed, it still needs to be run as root.)
|
|
<DT id="2"><B>-r</B><DD>
|
|
Remove the e2scrub snapshot and exit without checking anything.
|
|
<DT id="3"><B>-t</B><DD>
|
|
Run
|
|
<B><A HREF="/cgi-bin/man/man2html?1+fstrim">fstrim</A>(1)</B>
|
|
|
|
on the mounted filesystem if no errors are found.
|
|
<DT id="4"><B>-V</B><DD>
|
|
Print version information and exit.
|
|
</DL>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>EXIT CODE</H2>
|
|
|
|
The exit codes are the same as in
|
|
<B><A HREF="/cgi-bin/man/man2html?8+e2fsck">e2fsck</A></B>(8)
|
|
|
|
<A NAME="lbAG"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?8+e2fsck">e2fsck</A></B>(8)
|
|
|
|
<A NAME="lbAH"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
Darrick J. Wong <<A HREF="mailto:darrick.wong@oracle.com">darrick.wong@oracle.com</A>>
|
|
<A NAME="lbAI"> </A>
|
|
<H2>COPYRIGHT</H2>
|
|
|
|
Copyright ©2018 Oracle. License is GPLv2+. <<A HREF="http://www.gnu.org/licenses/gpl-2.0.html">http://www.gnu.org/licenses/gpl-2.0.html</A>>
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="5"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="6"><A HREF="#lbAC">SYNOPSYS</A><DD>
|
|
<DT id="7"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="8"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="9"><A HREF="#lbAF">EXIT CODE</A><DD>
|
|
<DT id="10"><A HREF="#lbAG">SEE ALSO</A><DD>
|
|
<DT id="11"><A HREF="#lbAH">AUTHOR</A><DD>
|
|
<DT id="12"><A HREF="#lbAI">COPYRIGHT</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:06:12 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|