Replicating a Snapshot

Replicate (copy) a snapshot from a source host to a target host on the same Memory Machine service using the mvmcli snapshot replicate command.

Before you begin

Before replicating a snapshot, make sure that the mvcsnapd and mvsvcdservices are running on the target host.

Note: The required service is mvcsnapd, not mvsnapd; note the letter "c" in the first process name. They are two separate processes and both are part of Memory Machine. See Running Memory Machine Services.

About this task

The snapshot is replicated into PMem on the target machine. The replica snapshot has the same PID as it did on the source host.

For snapshots with a parent snapshot on the source host:

  • If the parent snapshot already exists on the target host, the snapshot is transferred as a difference from the parent image.
  • If the parent does not exist on the target host, the snapshot is transferred as a complete base image.

If a snapshot with the same label already exists on the target host, the command fails.

Important: Memory Machine does not support capturing and restoring snapshots on hosts with different OS versions. This includes replicating or exporting a snapshot to a different host as well as upgrading the OS on a host between capturing and restoring a snapshot.

Procedure

To replicate a snapshot, run the following command on the source host:
$ mvmcli snapshot replicate --label snapshot_label --remote remote_mvcsnapd_ip_and_port 
Where
snapshot_label
is the label of the snapshot that is to be replicated.
remote_mvcsnapd_ip_and_port
is the IP address or DNS resolvable name of the target host and port that the mvcsnapd service is configured with, for example:
10.0.0.25:5679
If you have not changed the default in the mvcsnapd.yml file, the default port is 5679.

Results

The snapshot is replicated (copied from PMem to PMem) from the source to the target host. Logs are written to the server in mvcsnapd_log (by default in the /var/log/memverge/ directory).