NDCTL-CHECK-NAMESPACE(1) | ndctl Manual | NDCTL-CHECK-NAMESPACE(1) |
ndctl-check-namespace - check namespace metadata consistency
ndctl check-namespace <namespace> [<options>]
A namespace in the sector mode will have metadata on it to describe the kernel BTT (Block Translation Table). The check-namespace command can be used to check the consistency of this metadata, and optionally, also attempt to repair it, if it has enough information to do so.
The namespace being checked has to be disabled before initiating a check on it as a precautionary measure. The --force option can override this.
Check a namespace (only report errors)
ndctl disable-namespace namespace0.0 ndctl check-namespace namespace0.0
Check a namespace, and perform repairs if possible
ndctl disable-namespace namespace0.0 ndctl check-namespace --repair namespace0.0
-R, --repair
-L, --rewrite-log
WARNING: Do not interrupt this operation as it can potentially cause unrecoverable metadata corruption. It is highly recommended to create a backup of the raw namespace before attempting this.
-f, --force
-v, --verbose
-r, --region=
-b, --bus=
Copyright © 2016 - 2022, Intel Corporation. License GPLv2: GNU GPL version 2 <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
ndctl-disable-namespace(1), ndctl-enable-namespace(1), UEFI NVDIMM Label Protocol <http://www.uefi.org/sites/default/files/resources/UEFI_Spec_2_7.pdf>
2023-02-24 | ndctl |