Upgrading Memory Machine

To upgrade Memory Machine, run the Memory Machine Package File on each host.

About this task

The same Memory Machine Package File is used to install or upgrade Memory Machine on a host. A command option is available to run the install script without prompting you for the configuration preferences. The script leaves your existing configuration files and installed directories in place.

Warning:

Upgrade all the data hosts and the management center to the same version. Failing to upgrade all hosts can result in data loss.

Procedure

  1. Stop all running application instances on the host. See Stopping an Application Instance in Memory Machine Management Center.
  2. Stop DPME as described in Stopping the Distributed Persistent Memory Engine.
  3. Determine whether the data service, the Management Service, or both were installed on the host.
  4. Run the installer with the -- --upgrade option. Note the extra pair of dashes; these are required.
    # MemoryMachine-release-OS.bin -- --upgrade
    #
    Warning: You can upgrade Memory Machine by running the installer without the --upgrade option. Doing this causes the installer to present installation options such as whether to retain the snapshot data directory and the Memory Machine database. Be careful if you choose to do this, and answer the questions carefully. Using the --upgrade option is much safer and retains all directories, snapshots, and data.
  5. Respond to the confirmation prompts.
    Verifying archive integrity... All good.
    Uncompressing MemVerge Memory Machine  100%
    Do you want to upgrade data services? [y/N]: y
    Start updating the Memory Machine data service? [y/N]: y
    Respond yes to both of these prompts if you are upgrading the data service on this host.
    --> Performing pre-installation checks...
    --> Installing binaries...
    --> Installing libraries...
    --> Installing configuration files...
    An existing version of mvmalloc.yml is found in /etc/memverge.
    Leaving the installed version of mvmalloc.yml unchanged.
    An existing version of mvmallocd.yml is found in /etc/memverge.
    Leaving the installed version of mvmallocd.yml unchanged.
    An existing version of mvmlog_groom.list is found in /etc/memverge.
    Leaving the installed version of mvmlog_groom.list unchanged.
    An existing version of mvcsnapd.yml is found in /etc/memverge.
    Leaving the installed version of mvcsnapd.yml unchanged.
    --> Installing mvmallocd system service...
    --> Installing mvcsnapd system service...
    --> Installing mvmlog_groom cron service...
    The Memory Machine data service has been updated.
    Uninstalling the old mmagent service...
    Stopping mmagent service.
    Removed /etc/systemd/system/multi-user.target.wants/mmagent.service.
    Existing mmagent path: /opt/memverge/sbin/mmagent
    Done.
    
    Upgrading the mmagent service...
    Done.
    
    Starting the mmagent service...
    mmagent service started.
    
    Do you want to upgrade the management center? [y/N]: y
    Respond yes to this prompt if this is the Management Service host.
    Uninstalling the old management service...
    Stopping management service.
    Removed /etc/systemd/system/multi-user.target.wants/mmctl.service.
    Done.
    
    Upgrading the management service...
    Done.
    
    Starting the management service...
    mmctl service started.
    The management service is running.
    
    
    To launch the Memory Machine data service (requires root):
    1. Start the mvmallocd and mvsnapd system services:
          systemctl start mvmallocd.service mvsnapd.service
    2. Make the data service start automatically when the system starts (optional):
          systemctl enable mvmallocd.service mvsnapd.service
    To allow an existing user to use Memory Machine:
          usermod -a -G mvmm user-id
    Re-login is recommended for the user-id to enable its mvmm group membership.
    #
    When the installer finishes, the Memory Machine software is updated on this host.
  6. Repeat this process for every host running either the Memory Machine data service or Management Service.