Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Product Version: 9.0
Last Modified: 06 Sep September 2019

...

Problem

In the Applicationapplication-aware mode, NAKIVO Backup & Replication triggers provided custom scripts you provide, prior to making before taking snapshots of LVM volumes.

Note

If you run a VM with Linux or FreeBSD guest OS under Hyper-V, refer to Hyper-V support article about supported Linux and FreeBSD versions.

Solution

To make For application-aware mode working to work on Linux guest OS, you need to put the custom scripts called pre-freeze-script and post-thaw-script into /usr/sbin directory and give grant them executive permissions. When the backup job starts running, NAKIVO Backup & Replication triggers these scripts prior to making before snapshots of LVM volumes. The pre-freeze-script and post-thaw-script scripts require root permissions to be executed. When a non-root user is used, scripts script invocation will be is done via sudo, therefore the following requirements must be met.

...

2. If NAKIVO Backup & Replication logs into in to  an Amazon EC2 instance and there 's is no password for the Linux user, provided credentials must have a password to execute sudo:

    1. Log into the instance via SSH client using pem key
    2. Execute sudo passwd ubuntu
    3. Open /etc/sudoers in a text editor
    4. Add ubuntu ALL=(ALL) NOPASSWD:ALL to the bottom of the file
    5. Open /etc/ssh/sshd_config in a text editor
    6. Add set up PasswordAuthentication yes
    7. Reboot the instance
    8. Log into in to the instance via SSH client without pem key, enter password

...