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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • 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. How to create a Python Dictionary
  2. Understanding the dm-multipath Configuration file /etc/multipath.conf
  3. ORA-01031: insufficient privileges when creating a materialized view
  4. Troubleshooting Common GUI / X-Window Issues on CentOS/RHEL
  5. How to disable or enable an HBA without reboot under CentOS/RHEL
  6. module Command Examples in Linux
  7. A File Is Claimed to Be Disappearing – How to monitor a file for deletion in Linux
  8. Extend volume on non-partitioned disk (XFS) under VMware guest
  9. faillog Command Examples in Linux
  10. i3-scrot Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • protonvpn-cli Command Examples in Linux
  • protonvpn-cli connect Command Examples
  • procs Command Examples in Linux
  • prlimit: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright