Restore to a Different Host

<

When you restore your system to a different host, you should make some configuration changes on the vRealize Log Insight cluster.

The configuration changes listed are specific to vRealize Log Insight 3.3.0. It is assumed that the restored vRealize Log Insight nodes are assigned different IP addresses and FQDNs than their source counterparts from which the backup was taken.

Procedure

List all new IP addresses and FQDNs that were assigned to each vRealize Log Insight node.

Perform the following configuration changes on the master node:

Power on the master node, if it is not ON.

Note:

Steps b through e are applicable for vRealize Log Insight 2.5. You can not make changes to the configuration files directly from the appliance console for vRealize Log Insight 3.0 and higher. To make changes to the internal configuration options by using the web UI interface for vRealize Log Insight 3.0 and higher, refer to the Knowledge Base article KB 2123058.

Use SSH to connect as a root user to the node's virtual appliance.

If the vRealize Log Insight service is running, stop the service first by running this command service loginsight stop.

Run cd /storage/core/loginsight/config .

Run cp loginsight-config.xml#<n> backup-loginsight-config.xml where <n> represents the largest number that is automatically suffixed to loginsight-config.xml during configuration changes.

Open the copied version of the configuration file in your favorite editor or in the vRealize Log Insight 3.0 web UI and look for lines that resemble the following lines. This configuration change is applicable to both vRealize Log Insight 2.5 and 3.0.

In this code snippet, there are three nodes. The first one is the master node which shows <service-group name=standalone> and the remaining two nodes are worker nodes and show <service-group name="workernode">.

For the master node, in the newly recovered environment, veerify if the DNS entry that was used in the pre-recovery environment can be reused.

If the DNS entry can be reused, you only need to update the DNS entry to point to the new IP address of the master node.

If the DNS entry cannot be reused, replace the master node entry with the new DNS name, pointing to the new IP address.

If the DNS name cannot be assigned, as a last option, update the configuration entry with the new IP address.

Update the worker node IP addresses to reflect the new IP addresses.

In the same configuration file, look for entries that represent NTP, SMTP and database, and appenders sections.

This applies to vRealize Log Insight 2.5 and 3.0.

Note:

The <logging><appenders>...</appenders></logging> section is applicable only to the vRealize Log Insight 2.5 and is not available for vRealize Log Insight 3.0.

Under the <load-balancer>...</load-balancer> section, update the high-availability-ip value if it is different from the current setting.

In the vRealize Log Insight, make sure to also update the FQDN of the load balancer.

Rename the updated configuration file to finish the changes.

Note:

This step is applicable for vRealize Log Insight 2.5 only. In vRealize Log Insight 3.0 the changes are made through web UI.

Run : mv backup-loginsight-config.xml loginsight-config.xml#<n+1> where n represents the current maximum number suffixed to the loginsight-config.xml files.

For vRealize Log Insight 2.5, restart the vRealize Log Insight service and run : service loginsight start.

Note:

For vRealize Log Insight 3.0, this can be achieved from the web UI by going to the Cluster tab on the Administration page. For each node listed, select its hostname or IP address to open the details panel and click Restart Log Insight. The configuration changes are automatically applied to all cluster nodes.

Wait for two minutes after the vRealize Log Insight service starts in order to give enough time for Cassandra services to come up before bringing other worker nodes online.

Note:

You can skip steps 3 to 9 for vRealize Log Insight 3.0. These steps are only applicable for vRealize Log Insight 2.5.

SSH onto the first worker node using root credentials.

Stop the vRealize Log Insight service and run : service loginsight stop.

Copy the latest loginsight-conig.xml file from the master node to the worker node.

On the worker node, run : scp root@[master-node-ip]:/storage/core/loginsight/config/loginsight-config.xml#<n> /storage/core/loginsight/config/.

Run : service loginsight start.

Wait for 2 minutes after the vRealize Log Insight service starts in order to give enough time for Cassandra service to start completely.