• 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. How To Configure Restricted Bash Shell in Linux
  2. CentOS / RHEL 5 : How to use the faillog command to track failed login attempts
  3. “yum update” fails with “[package version 1] is a duplicate with [package version 2]”
  4. Linux / UNIX : Examples of find command to find files with specific sets of permissions
  5. mtr: command not found
  6. CentOS / RHEL : Resize (extend) non-root EXT3/4 filesystem on non-LVM device (hard disk partition)
  7. checkinstall: command not found
  8. Audit Log And Messages File Not Rotating on CentOS/RHEL
  9. How to Create yum Repository in CentOS/RHEL
  10. rsyslogd Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • ncat Command Examples in Linux
  • ncat: command not found
  • nautilus Command Examples in Linux
  • namei: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright