From 11b78886d058a9f8c15e8ee1132b8cfe03fba220 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Thu, 7 Jan 2021 11:06:18 +0000 Subject: [PATCH] btrfs-scrub: add page (#5104) --- pages/linux/btrfs-scrub.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 pages/linux/btrfs-scrub.md diff --git a/pages/linux/btrfs-scrub.md b/pages/linux/btrfs-scrub.md new file mode 100644 index 000000000..c96225081 --- /dev/null +++ b/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: . + +- 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}}`