'\" t .\" Title: ndctl-check-namespace .\" Author: [see the "AUTHOR(S)" section] .\" Generator: Asciidoctor 2.0.12 .\" Date: 2022-04-08 .\" Manual: ndctl Manual .\" Source: ndctl .\" Language: English .\" .TH "NDCTL\-CHECK\-NAMESPACE" "1" "2022-04-08" "ndctl" "ndctl Manual" .ie \n(.g .ds Aq \(aq .el .ds Aq ' .ss \n[.ss] 0 .nh .ad l .de URL \fI\\$2\fP <\\$1>\\$3 .. .als MTO URL .if \n[.g] \{\ . mso www.tmac . am URL . ad l . . . am MTO . ad l . . . LINKSTYLE blue R < > .\} .SH "NAME" ndctl\-check\-namespace \- check namespace metadata consistency .SH "SYNOPSIS" .sp .sp .nf \fIndctl check\-namespace\fP [] .fi .br .SH "DESCRIPTION" .sp A namespace in the \fIsector\fP 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. .sp The namespace being checked has to be disabled before initiating a check on it as a precautionary measure. The \-\-force option can override this. .SH "EXAMPLES" .sp Check a namespace (only report errors) .sp .sp .nf ndctl disable\-namespace namespace0.0 ndctl check\-namespace namespace0.0 .fi .br .sp Check a namespace, and perform repairs if possible .sp .sp .nf ndctl disable\-namespace namespace0.0 ndctl check\-namespace \-\-repair namespace0.0 .fi .br .SH "OPTIONS" .sp \-R, \-\-repair .RS 4 Perform metadata repairs if possible. Without this option, the raw namespace contents will not be touched. .RE .sp \-L, \-\-rewrite\-log .RS 4 Regenerate the BTT log and write it to media. This can be used to convert from the old (pre 4.15) padding format that was incompatible with other BTT implementations to the updated format. This requires the \-\-repair option to be provided. .sp .if n .RS 4 .nf .fam C 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. .fam .fi .if n .RE .RE .sp \-f, \-\-force .RS 4 Unless this option is specified, a check\-namespace operation will fail if the namespace is presently active. Specifying \-\-force causes the namespace to be disabled before checking. .RE .sp \-v, \-\-verbose .RS 4 Emit debug messages for the namespace check process. .RE .sp \-r, \-\-region= .RS 4 A \fIregionX\fP device name, or a region id number. Restrict the operation to the specified region(s). The keyword \fIall\fP can be specified to indicate the lack of any restriction, however this is the same as not supplying a \-\-region option at all. .RE .sp \-b, \-\-bus= .RS 4 A bus id number, or a provider string (e.g. "ACPI.NFIT"). Restrict the operation to the specified bus(es). The keyword \fIall\fP can be specified to indicate the lack of any restriction, however this is the same as not supplying a \-\-bus option at all. .RE .SH "COPYRIGHT" .sp Copyright \(co 2016 \- 2020, Intel Corporation. License GPLv2: GNU GPL version 2 \c .URL "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. .SH "SEE ALSO" .sp ndctl\-disable\-namespace(1), ndctl\-enable\-namespace(1), .URL "http://www.uefi.org/sites/default/files/resources/UEFI_Spec_2_7.pdf" "UEFI NVDIMM Label Protocol" ""