diff options
author | Brian Behlendorf <[email protected]> | 2023-05-18 10:02:20 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2023-05-18 10:02:20 -0700 |
commit | e34e15ed6d1882d29e314321b7642305d99f1b78 (patch) | |
tree | 8600f5bff9f383090a15901f50fb22aacca2282b /man | |
parent | e0d5007bcf7e4425d43ba2ad56489c7db5c4a4c5 (diff) |
Add the ability to uninitialize
zpool initialize functions well for touching every free byte...once.
But if we want to do it again, we're currently out of luck.
So let's add zpool initialize -u to clear it.
Co-authored-by: Rich Ercolani <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Signed-off-by: Rich Ercolani <[email protected]>
Closes #12451
Closes #14873
Diffstat (limited to 'man')
-rw-r--r-- | man/man8/zpool-initialize.8 | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/man/man8/zpool-initialize.8 b/man/man8/zpool-initialize.8 index eae711bff..a9c8fd35a 100644 --- a/man/man8/zpool-initialize.8 +++ b/man/man8/zpool-initialize.8 @@ -36,7 +36,7 @@ .Sh SYNOPSIS .Nm zpool .Cm initialize -.Op Fl c Ns | Ns Fl s +.Op Fl c Ns | Ns Fl s | Ns Fl u .Op Fl w .Ar pool .Oo Ar device Oc Ns … @@ -60,6 +60,14 @@ initialized, the command will fail and no suspension will occur on any device. Initializing can then be resumed by running .Nm zpool Cm initialize with no flags on the relevant target devices. +.It Fl u , -uninit +Clears the initialization state on the specified devices, or all eligible +devices if none are specified. +If the devices are being actively initialized the command will fail. +After being cleared +.Nm zpool Cm initialize +with no flags can be used to re-initialize all unallocoated regions on +the relevant target devices. .It Fl w , -wait Wait until the devices have finished initializing before returning. .El |