1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
|
# ipmctl
ipmctl is a utility for configuring and managing Intel Optane DC persistent memory modules (DCPMM).
It supports functionality to:
* Discover DCPMMs on the platform.
* Provision the platform memory configuration.
* View and update the firmware on DCPMMs.
* Configure data-at-rest security on DCPMMs.
* Track health and performance of DCPMMs.
* Debug and troubleshoot DCPMMs.
ipmctl refers to the following interface components:
* libipmctl: An Application Programming Interface (API) library for managing DCPMMs.
* ipmctl: A Command Line Interface (CLI) application for configuring and managing DCPMMs from the command line.
## Packages
Some distributions include ipmctl allowing installation via their package manager.
For example (on Fedora):
> dnf install ipmctl
This will update the required dependencies.
For systems that cannot reach the Internet use another system to download the following rpms required to install ipmctl and then copy them to the original system (e.g. via thumb drive).
> ipmctl.rpm, libipmctl.rpm, libsafec.rpm (only needed for 1.x releases), libndctl, json-c.rpm
Run
> rpm –ivh *.rpm
CentOS and RHEL systems maybe able to use an EPEL package found at: https://src.fedoraproject.org/rpms/ipmctl
OpenSUSE and SLES packages can be found at: https://build.opensuse.org/package/show/hardware:nvdimm/ipmctl
Ubuntu releases can be found at: https://launchpad.net/ubuntu/+source/ipmctl
### libndctl
ipmctl depends on libndctl (ndctl-libs).
It can be found here https://github.com/pmem/ndctl if not available as a package.
## Build
### Specific Instructions Reported as Working on RHEL7.6, CentOS7.6 and Fedora 30.
Ipmctl has dependency on libsafec-devel (for 1.x builds only), libndctl-devel and rubygem-asciidoctor
* copr/jhli repo has libipmctl and its dependency, libsafec-devel.
* cd /etc/yum.repos.d/
> wget https://copr.fedorainfracloud.org/coprs/jhli/ipmctl/repo/epel-7/jhli-ipmctl-epel-7.repo
> wget https://copr.fedorainfracloud.org/coprs/jhli/safeclib/repo/epel-7/jhli-safeclib-epel-7.repo
>
> * This should bring down both libipmctl and its dependency, libsafec-devel and
* epel repos has rubygem-asciidoctor
* get the epel repos
> yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
* Enable extra packages in RHEL for ndctl-devel or any other dependencies
* EPEL packages may depend on packages from these repositories:
> # subscription-manager repos --enable "rhel-*-optional-rpms" --enable "rhel-*-extras-rpms" --enable "rhel-ha-for-rhel-*-server-rpms"
* Install the prerequisite packages
> sudo yum install ndctl ndctl-libs ndctl-devel libsafec rubygem-asciidoctor
* Either Follow ipmctl make, rpmbuild instructions, or install the ipmctl package
### Linux
The latest stable Linux kernel version available is recommended.
libndctl-devel package is required.
All other dependencies are widely available.
```
mkdir output && cd output
cmake -DRELEASE=ON -DCMAKE_INSTALL_PREFIX=/usr ..
make -j all
sudo make install
```
build artifacts can be found in output/release
To build RPMs:
```
./rpmbuild.sh xx.xx.xx.xxxx
```
The RPMs will be in output/rpmbuild/RPMS/
### Windows
Install Visual Studio 2017 (or newer). Be sure to install optional component:
* Workloads -> Desktop Development with C++
* Individual Components -> Compilers, build tools, and runtimes -> Visual C++ tools for CMake
Open as a CMake project. See: https://docs.microsoft.com/en-us/cpp/build/cmake-projects-in-visual-studio
|