• 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

How to monitor NVME drives on Centos 6

by admin

Recently, one of our customers asked us to upgrade his server hardware. Unfortunately, they can’t update their software and We had to install Centos 6 with new NVMe drives. But, We need to monitor them and default smartmontools don’t support NVMe on Centos 6.X. Also, you can read about how to install smartmontools in the below post:

Monitor HDD and SSD with smartd and smartctl

There is 2 solutions how you can monitor in that way.

  • nvme-cli – this program is a user-space utility to provide standards-compliant tooling for NVM-Express drives.
  • Upgrade smartmontools to the latest version.

Let’s check both this method:

nvme-cli installation

This tools doesn’t exist on standard Centos 6 repository. So, We had to build it from source using commands:

# cd /tmp
# wget https://github.com/linux-nvme/nvme-cli/archive/v1.11.1.tar.gz
# tar zxf v1.11.1.tar.gz
# cd nvme-cli-1.11.1
# make 
# make -s install

Now you can check NVMe drive status with following command:

# nvme smart-log /dev/nvme0

Upgrade smartmontools

Centos 6 repository doesn’t have smartmontools version which has nvme support. So, We have to build too:

# wget https://github.com/smartmontools/smartmontools/releases/download/RELEASE_6_6/smartmontools-6.6.tar.gz
# tar -zxf smartmontools-6.6.tar.gz
# cd smartmontools-6.6
# ./configure --without-cxx11-option --with-nvme-devicescan=yes
# make
# make -s install

After that, you can monitor your NVMe with smartctl.

Filed Under: CentOS/RHEL, Linux

Some more articles you might also be interested in …

  1. “btrfs” command examples to Create and Manage Btrfs File System
  2. How to find if NUMA configuration is enabled or disabled?
  3. How To Configure SNMP Daemons: snmpd and snmptrapd on CentOS/RHEL 5,6 and 7
  4. How to Schedule Tasks Using at in Linux
  5. pvs Command Examples in Linux
  6. Tutorial on Linux Clustering (High Availability)
  7. How to Add Network Printer via Command Line in CentOS/RHEL
  8. How to Install dmg File on Mac from Command Line
  9. How to use “xfs_admin” command to change parameters of an XFS filesystem
  10. Connection using SSH to a Host Not in DNS/hosts Stalls for Some Time at Connection Initiation

You May Also Like

Primary Sidebar

Recent Posts

  • JavaFX ComboBox: Set a value to the combo box
  • Nginx load balancing
  • nginx 504 gateway time-out
  • Images preview with ngx_http_image_filter_module

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright