2025-03-14 21:59:59 -06:00
|
|
|
# ndctl
|
|
|
|
|
|
|
|
|
|
> Utility for managing Non-Volatile DIMMs.
|
|
|
|
|
> More information: <https://manned.org/ndctl>.
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Create an `fsdax` mode namespace:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
`ndctl create-namespace --mode={{fsdax}}`
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Change the mode of a namespace to `raw`:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
`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}}`
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Run a monitor to watch for SMART health events for NVDIMMs on the `ACPI.NFIT` bus:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
`ndctl monitor --bus={{ACPI.NFIT}}`
|
|
|
|
|
|
|
|
|
|
- Remove a namespace (when applicable) or reset it to an initial state:
|
|
|
|
|
|
|
|
|
|
`ndctl destroy-namespace --force {{namespaceX.Y}}`
|