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

Install MemVerge Memory Machine data service on the host. See Installing the Data Service.

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.

Warning: Formatting the DAX devices deletes all data on the devices. Do this only on a new installation.
Note: This is the only case where you should run DPME directly from the command line. Normally DPME runs as a service. See Starting the Distributed Persistent Memory Engine.

Procedure

  1. 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
  2. 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.
  3. Start DPME:
    # systemctl start mvmallocd
    #
  4. 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.
    #