Initializing Direct Access Devices
To initialize the server's direct access (DAX) devices and start the Distributed Persistent Memory Engine (DPME) service, use the command mvmallocd <dax device> ... [--socket=<socket>] [--format_dax].
Before you begin
About this task
Before you run DPME on a data host, you must initialize the host's DAX devices. During initialization DPME writes a signature to the DAX device.
Procedure
-
Edit the names of the DAX devices in the DPME configuration file, /etc/memverge/mvmallocd.yml, to
reflect the DAX devices on the host. For example:
PMEM: /dev/dax1.0 PMEM: /dev/dax0.0
-
Configure the DAX devices using the following command:
Warning: This command erases all of the data in the PMEM.
# /opt/memverge/sbin/mvmallocd --format_pmem --config=config-file
where:- --format_pmem
-
instructs DPME to format the DAX devices as PMEM for use by Memory Machine.
- config-file
-
is the file path of the DPME configuration file. The default path is /etc/memverge/mvmallocd.yml.
For example:# mvmallocd --format_pmem --config=/etc/memverge/mvmallocd.yml
You might see a license failure message:
Failed to load license from /etc/memverge/license.lic: LicenseError::LICENSE_FILE_OPEN_FAILED
Ignore this message for now. The following message should also be displayed:
Formatted successfully.
-
Start DPME:
# systemctl start mvmallocd #
-
Configure the host to start DPME on startup:
# systemctl enable mvmallocd Created symlink /etc/systemd/system/multi-user.target.wants/mvmallocd.service -> /etc/systemd/system/mvmallocd.service. #