ndctl: add page (#2380)
This commit is contained in:

committed by
Starbeamrainbowlabs

parent
f7b073cc49
commit
21751a2315
31
pages/linux/ndctl.md
Normal file
31
pages/linux/ndctl.md
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
# ndctl
|
||||||
|
|
||||||
|
> Utility for managing Non-Volatile DIMMs.
|
||||||
|
|
||||||
|
- Create an 'fsdax' mode namespace:
|
||||||
|
|
||||||
|
`ndctl create-namespace --mode={{fsdax}}`
|
||||||
|
|
||||||
|
- Change the mode of a namespace to 'raw':
|
||||||
|
|
||||||
|
`ndctl create-namespace --reconfigure={{namespaceX.Y}} --mode={{raw}}`
|
||||||
|
|
||||||
|
- Check a sector mode namespace for consistency, and repair if needed:
|
||||||
|
|
||||||
|
`ndctl check-namespace --repair {{namespaceX.Y}}`
|
||||||
|
|
||||||
|
- List all namespaces, regions, and buses (including disabled ones):
|
||||||
|
|
||||||
|
`ndctl list --namespaces --regions --buses --idle`
|
||||||
|
|
||||||
|
- List a specific namespace and include lots of additional information:
|
||||||
|
|
||||||
|
`ndctl list -vvv --namespace={{namespaceX.Y}}`
|
||||||
|
|
||||||
|
- Run a monitor to watch for SMART health events for NVDIMMs on the 'ACPI.NFIT' bus:
|
||||||
|
|
||||||
|
`ndctl monitor --bus={{ACPI.NFIT}}`
|
||||||
|
|
||||||
|
- Remove a namespace (when applicable) or reset it to an initial state:
|
||||||
|
|
||||||
|
`ndctl destroy-namespace --force {{namespaceX.Y}}`
|
Reference in New Issue
Block a user