Recovery Kit for Oracle Cloud Infrastructure (RK for OCI) Quick Check
The RK for OCI runs the following command to verify that the secondary private IP address is assigned to the VNIC on the active node.
oci network private-ip list --vnic-id <vnicid> --query 'data[?"is-primary" == `false`]."ip-address"'
- The protected IP address is included in the return value.
- Failed to execute the
- The protected IP address is not included in the return value.
If the quick check of the RK for OCI fails, a local recovery of the RK for OCI is performed.
Local Recovery of RK for OCI
When the quick check of the RK for OCI fails, a local recovery of the RK for OCI is performed.
For local recovery, assign a secondary private IP address to the VNIC of the active node by executing the following command:
oci network vnic assign-private-ip --vnic-id <vnicid> --ip-address <ip>
If local recovery fails due to a failed
oci command or because the IP address is already assigned to another instance, LifeKeeper will failover the RK for OCI resources and all resources with dependencies to the standby node. When bringing the resources in service on the standby node during failover, the following command:
oci network vnic assign-private-ip --unassign-if-already-assigned --vnic-id <vnicid> --ip-address <ip>
is executed to un-assign the IP address. Therefore, the failover will succeed even if the IP address is assigned to an instance outside the cluster node.