The following prerequisites must be performed before running the snapshot and restore operations on the YugabyteDB cluster:
1. Log in to the YBA UI.
2. Go to the Admin tab on the left-hand side of the screen to bring up the Platform Configuration screen.
3. Go to the Advanced tab on the top screen. This brings up the Global Configuration tab.
4. In the search bar on the Advanced tab, type node_agent. This brings up the setting for Enable Node Agent Client. Click Actions, Edit Configuration and set it to false.
Figure 19. Configuring the Node Agent Client
Note: Disable the Enable Node Agent Client, because the self-signed certificate that the system generates do not work with certain combinations of hostnames.
5. Create an on-premises provider as mentioned in Configuration of YugabyteDB Anywhere. While configuring the on-premises provider, override the directory for software from /home/yugabyte to /opt/yugabyte. This ensures that the software installation can reside on a volume (PowerFlex volume is mounted on /opt) that will be “cloned” to the new instances. This directory contains the systemd units and any relevant configuration for the universe.
Note: On each of the database nodes, create two user accounts, for example, user and yugabyte with SUDO permissions configured on both. Let the home directory of the user account be the default /home/user and configure the home directory of yugabyte account to be /opt/yugabyte.
Figure 20. OnPrem provider configuration
6. Create the database nodes as mentioned in Preparing on-prem YugabyteDB database nodes. On each of the database nodes, create /etc/hosts entries reflecting the database nodes. An example /etc/hosts file from one of the database nodes looks like the following:
7. Create the YugabyteDB cluster using the configured database nodes as mentioned in Deployment of Universe (cluster). Use the hostname of the nodes to discover and add the instances. For the purpose of this test, do not enable Encryption-in-transit and Encryption-at-rest.
The following provides a high-level summary of steps to be performed to createa snapshot and restore the YugabyteDB cluster.
7. Restore the database on the cloned nodes by following the steps provided in the following use-cases.
The detailed instructions of snapshot and restore operations for each of the use-cases are provided in the Use cases section.