Oracle PCA X9 2 Automatic+Virtual+IP+Failover+in+Cluster+Deployment
Oracle PCA X9 2 Automatic+Virtual+IP+Failover+in+Cluster+Deployment
DISCLAIMER
This document in any form, software, or printed matter, contains proprietary information that is the exclusive property of
Oracle. Your access to and use of this confidential material is subject to the terms and conditions of your Oracle software
license and service agreement, which has been executed and with which you agree to comply. This document and
information contained herein may not be disclosed, copied, reproduced, or distributed to anyone outside Oracle without
prior written consent of Oracle. This document is not part of your license agreement, nor can it be incorporated into any
contractual agreement with Oracle or its subsidiaries or affiliates.
This document is for informational purposes only and is intended solely to assist you in planning for the implementation
and upgrade of the product features described. It is not a commitment to deliver any material, code, or functionality, and
should not be relied upon in making purchasing decisions. The development, release, and timing of any features or
functionality described in this document remains at the sole discretion of Oracle.
1 TECHNICAL PAPER | Oracle Private Cloud Appliance X9-2 Virtual IP Failover | Version 1.05
Copyright © 2022, Oracle and/or its affiliates | Public
CONTENTS
Purpose Statement 1
Disclaimer 1
Introduction 3
Scope and content 3
Advantages of Oracle Private Cloud Appliance 3
SETUP Requirements 4
Reference Architecture 4
Useful secondary private ip commands 9
References 9
2 TECHNICAL PAPER | Oracle Private Cloud Appliance X9-2 Virtual IP Failover | Version 1.05
Copyright © 2022, Oracle and/or its affiliates | Public
INTRODUCTION
Oracle Private Cloud Appliance X9-2 supports Secondary Private IP provisioning with the release of the latest PCA-X9 SW
3.0.1. This Technical Brief provides the steps required to provision Secondary IP and ensure Automatic Virtual IP Failover in
case of unexpected instance failure.
Oracle PCA X9-2 allows users to assign a secondary Private IP after instance is launched. The Secondary Private IP must be
from the CIDR of the VNIC’s subnet and can also be moved to another instance’s VNIC in the same subnet. Secondary
Private IP can be assigned to another instance, which a member of a cluster, if the primary instance encounters a failure. The
assigned Public IP moves with the Private IP, and hence Automatic Virtual IP failover provides the capability to keep the
application running in case of unexpected instance failure in a cluster environment running on PCA X9-2.
The key new feature of PCA X9-2 compared to previous PCA versions is that it delivers private cloud infrastructure and
architecture consistent with Oracle Cloud Infrastructure (OCI). Core IaaS services use the same APIs, methods, tools, and
interfaces familiar to OCI users, delivered on a modernized infrastructure, capable of high levels of scale and performance.
PCA X9-2 brings services compatible with Oracle Cloud Infrastructure’s (OCI) to an on-premises implementation at rack
scale, making workloads, user experience, tool sets and skills portability between private and public clouds. PCA X9-2 can be
paired with Oracle Exadata to create an ideal infrastructure for scalable, multi-tier applications. Customers preferring or
requiring an on-premises solution, can realize the operational benefits of public cloud deployments, using the Oracle Private
Cloud Appliance X9-2.
3 TECHNICAL PAPER | Oracle Private Cloud Appliance X9-2 Virtual IP Failover | Version 1.05
Copyright © 2022, Oracle and/or its affiliates | Public
SETUP REQUIREMENTS
REFERENCE ARCHITECTURE
Reference Architecture for PCA X9 Automatic Virtual IP Failover on a corosync pacemaker cluster
4 TECHNICAL PAPER | Oracle Private Cloud Appliance X9-2 Virtual IP Failover | Version 1.05
Copyright © 2022, Oracle and/or its affiliates | Public
Console Showcasing Secondary IP Assignment
1. Package Install
yum install corosync pacemaker pcs
yum install python36-oci-cli
Note: Setup proxy as per the lab requirements to reach to yum repos
5 TECHNICAL PAPER | Oracle Private Cloud Appliance X9-2 Virtual IP Failover | Version 1.05
Copyright © 2022, Oracle and/or its affiliates | Public
− Username: hacluster
− Password:
− a-node1: Authorized
− a-node2: Authorized
8. Cluster Setup:
sudo pcs cluster setup --name <clustername> <node1-name> <node2-name>
− <clustername> : Cluster Name
− <node1-name> : Cluster Node1/Hostname
− <node2-name> : Cluster Node1/Hostname
Example:
− sudo pcs cluster auth a-node1 a-node2
Username: hacluster
Password:
a-node1: Authorized
a-node2: Authorized
[root@a-node1 opc] # sudo pcs cluster setup HACluster a-node1 a-node2
Error: A cluster name (--name <name>) is required to setup a cluster
[root@a-node1 opc] # sudo pcs cluster setup --name HACluster a-node1 a-node2
Destroying cluster on nodes: a-node1, a-node2...
a-node1: Stopping Cluster (pacemaker)...
a-node2: Stopping Cluster (pacemaker)...
a-node2: Successfully destroyed cluster
a-node1: Successfully destroyed cluster
Sending 'pacemaker_remote authkey' to 'a-node1', 'a-node2'
a-node1: successful distribution of the file 'pacemaker_remote authkey'
a-node2: successful distribution of the file 'pacemaker_remote authkey'
Sending cluster config files to the nodes...
a-node1: Succeeded
a-node2: Succeeded
Synchronizing pcsd certificates on nodes a-node1, a-node2...
a-node1: Success
a-node2: Success
Restarting pcsd on the nodes in order to reload the certificates...
a-node1: Success
a-node2: Success
9. Start cluster for all the cluster nodes from any of the cluster nodes
sudo pcs cluster start --name clustername –all
Example:
− sudo pcs cluster start --name HACluster --all
− a-node1: Starting Cluster (corosync)...
− a-node2: Starting Cluster (corosync)...
− a-node2: Starting Cluster (pacemaker)...
− a-node1: Starting Cluster (pacemaker)...
6 TECHNICAL PAPER | Oracle Private Cloud Appliance X9-2 Virtual IP Failover | Version 1.05
Copyright © 2022, Oracle and/or its affiliates | Public
− Stack: corosync
− Current DC: a-node2 (version 1.1.23-1.0.1.el7_9.1-9acf116022) - partition with quorum
− Last updated: Fri Aug 19 03:07:25 2022
− Last change: Fri Aug 19 03:06:13 2022 by root via cibadmin on a-node1
− 2 nodes configured
− 0 resource instances configured
− PCSD Status:
− a-node1: Online
− a-node2: Online
12. Set the OCI Config as per your PCA settings on all the Cluster nodes
Reference OCI: Using the OCI CLI
− Note: Setting up config profile is very important to connect to PCA
Example: i.e. /root/.oci/config
− [DEFAULT]
− user=<User-ocid1>
− fingerprint=<fingerprint>
− key_file=<Key-Location>
− tenancy=<Tenancy ocid1>
− region=<PCA FQDN>
Get the cert for PCA X9
Ref: Obtaining the Certificate Authority Bundle
7 TECHNICAL PAPER | Oracle Private Cloud Appliance X9-2 Virtual IP Failover | Version 1.05
Copyright © 2022, Oracle and/or its affiliates | Public
sudo sed -i '636i\ if [ $server = "node1" ]; then\'
/usr/lib/ocf/resource.d/heartbeat/IPaddr2
8 TECHNICAL PAPER | Oracle Private Cloud Appliance X9-2 Virtual IP Failover | Version 1.05
Copyright © 2022, Oracle and/or its affiliates | Public
USEFUL SECONDARY PRIVATE IP COMMANDS
Assign Private IP:
oci network vnic assign-private-ip --unassign-if-already-assigned --vnic-id <vnic-id> --ip-address <private-ip>
REFERENCES
See these reference documents for additional information:
9 TECHNICAL PAPER | Oracle Private Cloud Appliance X9-2 Virtual IP Failover | Version 1.05
Copyright © 2022, Oracle and/or its affiliates | Public
CONNECT WITH US
Call +1.800.ORACLE1 or visit oracle.com.
Outside North America, find your local office at oracle.com/contact.
Copyright © 2022, Oracle and/or its affiliates. All rights reserved. This document is provided for information purposes only, and the contents hereof are subject to change without
notice. This document is not warranted to be error-free, nor subject to any other warranties or conditions, whether expressed orally or implied in law, including implied warranties
and conditions of merchantability or fitness for a particular purpose. We specifically disclaim any liability with respect to this document, and no contractual obligations are formed
either directly or indirectly by this document. This document may not be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose, without
our prior written permission.
This device has not been authorized as required by the rules of the Federal Communications Commission. This device is not, and may not be, offered for sale or lease, or sold or
leased, until authorization is obtained.
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.
Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used under license and are trademarks or registered trademarks of
SPARC International, Inc. AMD, Opteron, the AMD logo, and the AMD Opteron logo are trademarks or registered trademarks of Advanced Micro Devices. UNIX is a registered
trademark of The Open Group. 0120