Product Version: 10.6
Last Modified: 06 December 2021
In application-aware mode, NAKIVO Backup & Replication triggers provided custom scripts before taking snapshots of LVM volumes. In addition, application-aware mode for Linux VMs in Microsoft Hyper-V may encounter issues due to a lack of required files.
For application-aware mode to work on Linux guest OS, put the custom scripts called
/usr/sbin directory and grant them executive permissions. When the backup job starts running, NAKIVO Backup & Replication triggers these scripts before snapshots of LVM volumes. The
post-thaw-script scripts require
root permissions to be executed. When a non-root user is used, script invocation is done via
sudo, therefore the following requirements must be met.
Provided credentials must have full access without a password in
- If NAKIVO Backup & Replication logs in to an Amazon EC2 instance and there is no password for the Linux user, provided credentials must have a password to execute
- Log into the instance via SSH client using pem key
sudo passwd ubuntu
/etc/sudoersin a text editor
ubuntu ALL=(ALL) NOPASSWD:ALLto the bottom of the file
/etc/ssh/sshd_configin a text editor
set up PasswordAuthentication yes
- Reboot the instance
- Log in to the instance via SSH client without pem key, enter password
If you are encountering problems with application-aware mode with Linux VMs in Hyper-V, this may be due to a lack of the crucial "hv-kvp-daemon-init" package. To install this tool in Ubuntu, simply execute the following commands in your terminal:
For debugging or monitoring the status of the Hyper-V Data Exchange Service and the associated key-value pairs (KVPs), enter the following script in PowerShell:
This script will create an XML object and populate it with KVP information based on the prompted user input for Hyper-V server and VM information.
If you run a VM with Linux or FreeBSD guest OS under Hyper-V and the above information is insufficient, refer to this Microsoft support article.