• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

ndctl Command Examples in Linux

by Deepika

“ndctl” is a utility tool for managing Non-Volatile DIMMs (NVDIMMs), which are a type of memory module that can store data even after the power has been turned off. NVDIMMs are used in servers and high-performance computing systems to provide faster storage than traditional disk drives and to enhance data persistence.

The “ndctl” utility provides a set of commands for discovering and configuring NVDIMMs in a system, as well as for creating and managing storage regions on NVDIMMs. It can also be used to monitor the health of NVDIMMs and to provide information about their performance and usage.

With “ndctl,” users can perform tasks such as creating persistent memory regions, setting up device dax, checking NVDIMM health and firmware, and listing NVDIMMs and their regions. “ndctl” is particularly useful for system administrators and developers who need to manage NVDIMMs in their systems.

ndctl Command Examples

1. Create an ‘fsdax’ mode namespace:

# ndctl create-namespace --mode=fsdax

2. Change the mode of a namespace to ‘raw’:

# ndctl create-namespace --reconfigure=namespaceX.Y --mode=raw

3. Check a sector mode namespace for consistency, and repair if needed:

# ndctl check-namespace --repair namespaceX.Y

4. List all namespaces, regions, and buses (including disabled ones):

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

5. List a specific namespace and include lots of additional information:

# ndctl list -vvv --namespace=namespaceX.Y

6. Run a monitor to watch for SMART health events for NVDIMMs on the ‘ACPI.NFIT’ bus:

# ndctl monitor --bus=ACPI.NFIT

7. Remove a namespace (when applicable) or reset it to an initial state:

# ndctl destroy-namespace --force namespaceX.Y

Filed Under: Linux

Some more articles you might also be interested in …

  1. whoami: command not found
  2. qjoypad: command not found
  3. “git replace” Command Examples
  4. lsblk Command Examples in Linux
  5. clang++: Compiles C++ source files
  6. gh config: Change configuration for GitHub cli
  7. bison Command Examples (GNU parser generator)
  8. grex Command Examples
  9. trace-cmd: command not found
  10. cpufreq-aperf Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright