ndctl
utility for managing Non-Volatile DIMMs on Linux
TLDR
Create an fsdax mode namespace
SYNOPSIS
ndctl command [options] [namespace]
DESCRIPTION
ndctl is a utility for managing Non-Volatile DIMMs (NVDIMMs) on Linux. NVDIMMs are persistent memory modules that retain data without power, providing storage-class memory capabilities.
The tool manages namespaces (logical storage units), regions (physical NVDIMM groupings), and monitors NVDIMM health. Different namespace modes support various use cases: fsdax for filesystem DAX, devdax for device DAX, sector for legacy block access.
PARAMETERS
--mode _mode_
Namespace mode: fsdax, devdax, sector, raw--reconfigure _namespace_
Reconfigure existing namespace--repair
Repair errors found during check--force, -f
Force operation without confirmation--bus _bus_
Operate on specific bus--region _region_
Operate on specific region--idle
Include disabled/idle objects in listing-v, -vv, -vvv
Increase verbosity level
COMMANDS
create-namespace
Create a new namespace with specified modedestroy-namespace
Remove or reset namespace to initial statecheck-namespace
Check namespace for consistencylist
List namespaces, regions, buses, and dimmsmonitor
Watch for SMART health eventsenable-namespace
Enable a disabled namespacedisable-namespace
Disable an active namespaceenable-region
Enable a regiondisable-region
Disable a region
CAVEATS
Operations on active namespaces may require unmounting filesystems first. Destroying namespaces is irreversible. NVDIMM support requires appropriate hardware and kernel configuration. Health monitoring requires ACPI NFIT support.
HISTORY
ndctl was developed by Intel and the Linux community as part of the pmem (persistent memory) project. It provides userspace tools for managing NVDIMMs as standardized by ACPI NFIT and the NVDIMM driver subsystem.
