加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

nvme-cli

(2016-04-06 09:50:19)
标签:

it

分类: Software_Testing

nvme-cli

https://github.com/linux-nvme/nvme-cli

NVM-Express user space tooling for Linux.

To install, run:

# make && make install

If not sure how to use, find the top-level documentation with:

# man nvme

Or find a short summary with:

# nvme help

Distro Support

Fedora

nvme-cli is available in Fedora 23 and up. Install it with your favorite package manager. For example:


$ sudo dnf install nvme-cli

Ubuntu

nvme-cli is supported in the Universe package sources for Xenial for many architectures. For a complete list try running:


  rmadison nvme-cli
   nvme-cli | 0.3-1 | xenial/universe | source, amd64, arm64, armhf, i386, powerpc, ppc64el, s390x

A Debian based package for nvme-cli is currently maintained as a Ubuntu PPA. Right now there is support for Trusty, Vivid and Wiley. To install nvme-cli using this approach please perform the following steps:

  1. Add the sbates PPA to your sources. One way to do this is to run  sudo add-apt-repository ppa:sbates 
  2. Perform an update of your repository list:  sudo apt-get update 
  3. Get nvme-cli!  sudo apt-get install nvme-cli 
  4. Test the code.  sudo nvme list  In the case of no NVMe devices you will see  No NVMe devices detected.  otherwise you will see information about each NVMe device installed in the system.

AlpineLinux

nvme-cli is tested on AlpineLinux 3.3. Install it using:


# akp update && apk add nvme-cli nvme-cli-doc

the "list" command will not work unless you installed udev for some reason.
```
# nvme list
nvme-list: libudev not detected, install and rebuild.
```

if you just use the device you're after, it will work flawless.
```
# nvme smart-log /dev/nvme0

Smart Log for NVME device:/dev/nvme0 namespace-id:ffffffff critical_warning : 0 temperature : 49 C available_spare : 100% ```

openSUSE Tumbleweed

nvme-cli is available in openSUSE Tumbleweed. You can install it using zypper. For example:


$ sudo zypper install nvme-cli

Arch Linux

Install from AUR, e.g.:


$ yaourt -S nvme-cli-git

Other Distros



nvme error-log /dev/nvmeX
nvme smart-log /dev/nvmeX

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有