Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

btrfs-scrub: add page #5104

Merged
merged 1 commit into from Jan 7, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
29 changes: 29 additions & 0 deletions pages/linux/btrfs-scrub.md
@@ -0,0 +1,29 @@
# btrfs scrub

> Scrub btrfs filesystems to verify data integrity.
> It is recommended to run a scrub once a month.
> More information: <https://btrfs.wiki.kernel.org/index.php/Manpage/btrfs-scrub>.

- Start a scrub:

`sudo btrfs scrub start {{path/to/btrfs_mount}}`

- Show the status of an ongoing or last completed scrub:

`sudo btrfs scrub status {{path/to/btrfs_mount}}`

- Cancel an ongoing scrub:

`sudo btrfs scrub cancel {{path/to/btrfs_mount}}`

- Resume a previously cancelled scrub:

`sudo btrfs scrub resume {{path/to/btrfs_mount}}`

- Start a scrub, but wait until the scrub finishes before exiting:

`sudo btrfs scrub start -B {{path/to/btrfs_mount}}`

- Start a scrub in quiet mode (does not print errors or statistics):

`sudo btrfs scrub start -q {{path/to/btrfs_mount}}`