Install the Azure Application Consistent Snapshot tool
This article provides a guide for installation of the Azure Application Consistent Snapshot tool (AzAcSnap) that you can use with Azure NetApp Files or Azure Large Instances.
Important
Distributed installations are the only option for Azure Large Instances systems, because they're deployed in a private network. You must install AzAcSnap on each system to ensure connectivity.
AzAcSnap 10 supports more databases and operating systems, therefore a self-installer is no longer available.
Download AzAcSnap
First, download the AzAcSnap executable file to any directory on your computer. AzAcSnap is provided as an executable file, so there's nothing to install.
Linux x86-64 (binary)
- The Linux binary has an associated Linux signature file. This file is signed with Microsoft's public key to allow for GPG verification of the downloaded installer.
Important
The installer is no longer available for Linux. Please follow the guidelines here to setup the user's profile to run AzAcSnap and its dependencies.
Windows 64-bit (executable)
- The Windows binary is signed by Microsoft.
Once these downloads are completed, then Install Azure Application Consistent Snapshot tool.
Prerequisites for installation
Follow the guidelines to set up and run the snapshots and disaster-recovery commands. We recommend that you complete the following steps as root before you install and use the snapshot tools:
Patch the operating system
- For SUSE on Azure Large Instances, set up SUSE Subscription Management Tool (SMT). For more information, see Install and configure SAP HANA (Large Instances) on Azure.
Set up time synchronization. Provide a time server that's compatible with the Network Time Protocol (NTP), and configure the operating system accordingly.
Install the database. Follow the instructions for the supported database that you're using.
Select the storage back end that you're using for your deployment. For more information, see Enable communication with storage later in this article.
Enable communication with the database. For more information, see Enable communication with the database later in this article.
Set up an appropriate SAP HANA user by following the instructions in the section to enable communication with the database in the database configuration document.
After setup, you can test the connection from the command line by using the following examples. The following examples are for non-SSL communication to SAP HANA.
HANA 1.0:
hdbsql -n <HANA IP address> -i <HANA instance> -U <HANA user> "\s"
HANA 2.0:
hdbsql -n <HANA IP address> -i <HANA instance> -d SYSTEMDB -U <HANA user> "\s"
Install the snapshot tools
With the prerequisite steps completed, the steps to install AzAcSnap are as follows:
- Create snapshot user
azacsnap
, create the home directory, and set group membership. - Configure the
azacsnap
user's login~/.profile
information. - Search the file system for directories to add to
$PATH
(Linux) or%PATH%
(Windows) for AzAcSnap. This task allows the user who runs AzAcSnap to use database specific commands, such ashdbsql
andhdbuserstore
. - Search the file system for directories to add to
$LD_LIBRARY_PATH
(Linux) for AzAcSnap. Many commands require you to set a library path to run them correctly. - Copy AzAcSnap binary into a location on the user's
$PATH
(Linux) or%PATH%
(Windows). - On Linux it may be necessary to set the
azacsnap
binary permissions set correctly, including ownership and executable bit.
Performing the following steps to get azacsnap running:
For Linux via a shell session:
- As the root superuser, create a Linux User
useradd -m azacsnap
- Log in as the user
su – azacsnap
cd $HOME/bin
- Download azacsnap
wget -O azacsnap https://aka.ms/azacsnap-linux
- Run azacsnap
azacsnap -c about
- As the root superuser, create a Linux User
For Windows via a GUI:
- Create a Windows User
- Log in as the user
- Download
azacsnap.exe
- Open a terminal session and run azacsnap
azacsnap.exe -c about
Update user profile
The user running AzAcSnap needs to have any environment variables updated to ensure AzAcSnap can run the database specific commands without needing the command's full path. This method allows for overriding the database commands if needed for special purposes.
- SAP HANA requires
hdbuserstore
andhdbsql
. - OracleDB requires
sqlplus
. - IBM Db2 requires
db2
andssh
(for remote access to Db2 when doing a centralized installation).
Linux
On Linux setup of the user's $PATH
is typically done by updating the users $HOME/.profile
with the appropriate $PATH
information for locating binaries, and potentially the LD_LIBRARY_PATH
variable to ensure availability of shared objects for the Linux binaries.
Search the file system for directories to add to
$PATH
for AzAcSnap.For example:
# find the path for the hdbsql command export DBCMD="hdbsql" find / -name ${DBCMD} -exec dirname {} + 2> /dev/null | sort | uniq | tr '\n' ':' /hana/shared/PR1/exe/linuxx86_64/HDB_2.00.040.00.1553674765_c8210ee40a82860643f1874a2bf4ffb67a7b2add # # add the output to the user's profile echo "export PATH=\"\$PATH:/hana/shared/PR1/exe/linuxx86_64/HDB_2.00.040.00.1553674765_c8210ee40a82860643f1874a2bf4ffb67a7b2add\"" >> /home/azacsnap/.profile # # add any shared objects to the $LD_LIBRARY_PATH export SHARED_OBJECTS='*.so' NEW_LIB_PATH=`find -L /hana/shared/[A-z0-9][A-z0-9][A-z0-9]/HDB*/exe /usr/sap/hdbclient -name "*.so" -exec dirname {} + 2> /dev/null | sort | uniq | tr '\n' ':'` # # add the output to the user's profile echo "export LD_LIBRARY_PATH=\"\$LD_LIBRARY_PATH:$NEW_LIB_PATH\"" >> /home/azacsnap/.profile
Windows
Use the Windows specific tools to find the location of the commands and add their directories to the users profile.
Take the following actions, depending on the storage back end:
No special actions for Azure NetApp Files.
Uninstall the snapshot tools
If you installed the snapshot tools by using the default settings, uninstallation requires only removing the user that you installed the commands for and deleting the AzAcSnap binary.
Complete the setup of snapshot tools
These steps can be followed to configure and test the snapshot tools.
- Log in to the AzAcSnap user account.
a. For Linux,
su - azacsnap
. a. For Windows, log in as the AzAcSnap user. - If you have added the AzAcSnap binary to the user's
$PATH
(Linux) or%PATH%
(Windows), then run AzAcSnap withazacsnap
, or you need to add the full path to the AzAcSnap binary (for example./home/azacsnap/bin/azacsnap
(Linux) orC:\Users\AzAcSnap\azacsnap.exe
(Windows)). - Configure the customer details file.
azacsnap -c configure --configuration new
- Test the connection to storage.
azacsnap -c test --test storage
- Test the connection to the database.
a. SAP HANA
azacsnap -c test --test hana
a. Oracle DBazacsnap -c test --test oracle
a. IBM Db2azacsnap -c test --test db2
If the test commands run correctly, the test is successful. You can then perform the first database-consistent storage snapshot.
azacsnap -c backup --volume data --prefix adhoc_test --retention 1