From d04b5c9e877a4d4b2337e6b2b453c7650aed433d Mon Sep 17 00:00:00 2001 From: Fedor Uporov <60701163+fuporovvStack@users.noreply.github.com> Date: Thu, 11 Nov 2021 11:26:18 -0800 Subject: zhack: Add repair label option In case if all label checksums will be invalid on any vdev, the pool will become unimportable. The zhack with newly added cli options could be used to restore label checksums and make pool importable again. Reviewed-by: Brian Behlendorf Signed-off-by: Fedor Uporov Closes #2510 Closes #12686 --- man/man1/zhack.1 | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'man') diff --git a/man/man1/zhack.1 b/man/man1/zhack.1 index 83046ee8f..b03b87a1b 100644 --- a/man/man1/zhack.1 +++ b/man/man1/zhack.1 @@ -94,6 +94,13 @@ The flag indicates that the .Ar guid feature is now required to read the pool MOS. +. +.It Xo +.Nm zhack +.Cm label repair +.Ar device +.Xc +Repair corrupted labels by rewriting the checksum using the presumed valid contents of the label. .El . .Sh GLOBAL OPTIONS -- cgit v1.2.3