Skip to main content

Installing the Aerospike Shared-Memory Tool (asmt)

You can download a compiled binary of asmt that is statically built on CentOS 7 and should work for most x86-64 Linux distributions.

Alternatively, you can compile asmt yourself.

Procedure for using the compiled binary file

Download the compiled binary file from here

Copy the asmt binary (as an executable) to wherever is most convenient on the system running the node that you plan to back up the primary index for.

You can now go to the steps for backing up a primary index.

Procedure for compiling and using your own binary file

Get the source code by following either of these methods:

  • Clone the repository by running this command:
    $ git clone https://github.com/aerospike/asmt.git
    This method creates a directory named asmt.
  • Download the source code either in a .zip or .tar file from here. Then, unzip or untar the file. This method creates a directory named aerospike-asmt-<version>.

Install the dependencies.

  • If you are running CentOS, run this command:

    $ sudo yum install make gcc zlib-devel
  • If you are running Debian or Ubuntu, run this command:

    $ sudo apt-get install make gcc libc6-dev zliblg-dev

Compile the source code

Change to the proper directory.

  • If you cloned the repo, change to the asmt directory.
  • If you downloaded and extracted the source code, change to the aerospike-asmt-<version> directory.

Run the command make.

The outcome is a binary file in the directory target/bin/asmt.

Copy the asmt binary (as an executable) to wherever is most convenient on the system running the node that you plan to back up the primary index for.

You can now go to the steps for backing up a primary index.