Users Guide

Table Of Contents
装载 /dev/pmem0 /dev/pmem1
# mount -t xfs -o dax /dev/pmem0 /mnt/nvdimm0
要查看它在 /dev/pmem0 /dev/pmem1 上是否可写入
# touch /mnt/nvdimm0/write.txt
# shutdown
管理公用程序
管理公用程序 ndctl && mdadm
1. 按服务器上的“开机”按钮。
2. 请按照第 4 节中的指南设置 BIOS
3. 启用“永久性内存”禁用“NVDIMM 交叉存取”禁用“NVDIMM 只读”。
4. 安装 RHEL 或启动操作系统如果已安装
ndctl
安装 ndctl 开发人员选项
当操作系统正在运行时启用以太网并获取 IP 地址
$ ifconfig –a
$ git clone https://github.com/pmem/ndctl.git
$ cd ndctl
$ ./autogen.sh
$ ./configure CFLAGS='-g -O0' --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib64
$ make
# make install
安装 ndctl 用户选项
可以通过以下方式从 RHEL 7.4 版本安装 ndctl rpm
# yum install ndctl
检查 NVDIMM-N 的运行状况
# ndctl list --dimms --health --idle'
Sample output of 'ndclt list --dimms --health --idle'
{
"dev":"nmem0",
"id":"802c-0f-1711-1648dd20",
"state":"disabled",
"health":{
"health_state":"ok",
"temperature_celsius":27.000000,
"life_used_percentage":3
}
}
Linux 43