aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2024-03-19 16:24:34 +0100
committerAlex Auvolat <alex@adnab.me>2024-03-19 16:24:34 +0100
commit3eab639c146f67fc67534633ae26c9aec116327d (patch)
tree3bb01998fa81651a54ade8bf17ba87b5a3eff970
parent3165ab926c665b795eab7a227f65a67a0874641e (diff)
downloadgarage-3eab639c146f67fc67534633ae26c9aec116327d.tar.gz
garage-3eab639c146f67fc67534633ae26c9aec116327d.zip
[block-ref-repair] mention `garage block repair-rc` in documentation
-rw-r--r--doc/book/operations/durability-repairs.md5
-rw-r--r--src/garage/cli/util.rs2
2 files changed, 5 insertions, 2 deletions
diff --git a/doc/book/operations/durability-repairs.md b/doc/book/operations/durability-repairs.md
index c76dc39e..fdf163e2 100644
--- a/doc/book/operations/durability-repairs.md
+++ b/doc/book/operations/durability-repairs.md
@@ -141,4 +141,7 @@ blocks may still be held by Garage. If you suspect that such corruption has occu
in your cluster, you can run one of the following repair procedures:
- `garage repair versions`: checks that all versions belong to a non-deleted object, and purges any orphan version
-- `garage repair block_refs`: checks that all block references belong to a non-deleted object version, and purges any orphan block reference (this will then allow the blocks to be garbage-collected)
+
+- `garage repair block-refs`: checks that all block references belong to a non-deleted object version, and purges any orphan block reference (this will then allow the blocks to be garbage-collected)
+
+- `garage repair block-rc`: checks that the reference counters for blocks are in sync with the actual number of non-deleted entries in the block reference table
diff --git a/src/garage/cli/util.rs b/src/garage/cli/util.rs
index 0511e2b1..21c14f42 100644
--- a/src/garage/cli/util.rs
+++ b/src/garage/cli/util.rs
@@ -451,7 +451,7 @@ pub fn print_block_info(
if refcount != nondeleted_count {
println!();
println!(
- "Warning: refcount does not match number of non-deleted versions (see issue #644)."
+ "Warning: refcount does not match number of non-deleted versions, you should try `garage repair block-rc`."
);
}
}