← 返回命令列表

Linux command

ndctl 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Example

ndctl create-namespace --mode=fsdax

Change mode

ndctl create-namespace --reconfigure=[namespaceX.Y] --mode=raw

Check and repair

ndctl check-namespace --repair [namespaceX.Y]

List all

ndctl list --namespaces --regions --buses --idle

Example

ndctl list -vvv --namespace=[namespaceX.Y]

Monitor

ndctl monitor --bus=ACPI.NFIT

Destroy

ndctl destroy-namespace --force [namespaceX.Y]

说明

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.

参数

--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

FAQ

What is the ndctl command used for?

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.

How do I run a basic ndctl example?

Run `ndctl create-namespace --mode=fsdax` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --mode _mode_ do in ndctl?

Namespace mode: fsdax, devdax, sector, raw