2022-03-03 11:44:45 +00:00
|
|
|
= Graceful Startup of an Openshift 4 Cluster
|
2021-09-24 15:07:45 +09:00
|
|
|
This SOP should be followed in the following scenarios:
|
|
|
|
|
|
|
|
- Graceful start up of an Openshift 4 cluster.
|
|
|
|
|
2022-03-03 11:44:45 +00:00
|
|
|
== Steps
|
2021-09-24 15:07:45 +09:00
|
|
|
Prequisite steps:
|
|
|
|
|
|
|
|
|
2022-03-03 11:44:45 +00:00
|
|
|
=== Start the VM Control Plane instances
|
2021-09-24 15:07:45 +09:00
|
|
|
Ensure that the control plane instances start first.
|
|
|
|
|
|
|
|
----
|
|
|
|
# Virsh command to start the VMs
|
|
|
|
----
|
|
|
|
|
|
|
|
|
2022-03-03 11:44:45 +00:00
|
|
|
=== Start the physical nodes
|
2021-09-24 15:07:45 +09:00
|
|
|
To connect to `idrac`, you must be connected to the Red Hat VPN. Next find the management IP associated with each node.
|
|
|
|
|
|
|
|
On the `batcave01` instance, in the dns configuration, the following bare metal machines make up the production/staging OCP4 worker nodes.
|
|
|
|
|
|
|
|
----
|
2025-07-04 11:55:02 +02:00
|
|
|
oshift-dell01 IN A 10.16.160.180 # worker01 prod
|
|
|
|
oshift-dell02 IN A 10.16.160.181 # worker02 prod
|
|
|
|
oshift-dell03 IN A 10.16.160.182 # worker03 prod
|
|
|
|
oshift-dell04 IN A 10.16.160.183 # worker01 staging
|
|
|
|
oshift-dell05 IN A 10.16.160.184 # worker02 staging
|
|
|
|
oshift-dell06 IN A 10.16.160.185 # worker03 staging
|
2021-09-24 15:07:45 +09:00
|
|
|
----
|
|
|
|
|
|
|
|
Login to the `idrac` interface that corresponds with each worker, one at a time. Ensure the node is booting via harddrive, then power it on.
|
|
|
|
|
2022-03-03 11:44:45 +00:00
|
|
|
=== Once the nodes have been started they must be uncordoned if appropriate
|
2021-09-24 15:07:45 +09:00
|
|
|
|
|
|
|
----
|
|
|
|
oc get nodes
|
|
|
|
NAME STATUS ROLES AGE VERSION
|
|
|
|
dumpty-n1.ci.centos.org Ready,SchedulingDisabled worker 77d v1.18.3+6c42de8
|
|
|
|
dumpty-n2.ci.centos.org Ready,SchedulingDisabled worker 77d v1.18.3+6c42de8
|
|
|
|
dumpty-n3.ci.centos.org Ready,SchedulingDisabled worker 77d v1.18.3+6c42de8
|
|
|
|
dumpty-n4.ci.centos.org Ready,SchedulingDisabled worker 77d v1.18.3+6c42de8
|
|
|
|
dumpty-n5.ci.centos.org Ready,SchedulingDisabled worker 77d v1.18.3+6c42de8
|
|
|
|
kempty-n10.ci.centos.org Ready,SchedulingDisabled worker 106d v1.18.3+6c42de8
|
|
|
|
kempty-n11.ci.centos.org Ready,SchedulingDisabled worker 106d v1.18.3+6c42de8
|
|
|
|
kempty-n12.ci.centos.org Ready,SchedulingDisabled worker 106d v1.18.3+6c42de8
|
|
|
|
kempty-n6.ci.centos.org Ready,SchedulingDisabled master 106d v1.18.3+6c42de8
|
|
|
|
kempty-n7.ci.centos.org Ready,SchedulingDisabled master 106d v1.18.3+6c42de8
|
|
|
|
kempty-n8.ci.centos.org Ready,SchedulingDisabled master 106d v1.18.3+6c42de8
|
|
|
|
kempty-n9.ci.centos.org Ready,SchedulingDisabled worker 106d v1.18.3+6c42de8
|
|
|
|
|
|
|
|
nodes=$(oc get nodes -o name | sed -E "s/node\///")
|
|
|
|
|
|
|
|
for node in ${nodes[@]}; do oc adm uncordon $node; done
|
|
|
|
node/dumpty-n1.ci.centos.org uncordoned
|
|
|
|
node/dumpty-n2.ci.centos.org uncordoned
|
|
|
|
node/dumpty-n3.ci.centos.org uncordoned
|
|
|
|
node/dumpty-n4.ci.centos.org uncordoned
|
|
|
|
node/dumpty-n5.ci.centos.org uncordoned
|
|
|
|
node/kempty-n10.ci.centos.org uncordoned
|
|
|
|
node/kempty-n11.ci.centos.org uncordoned
|
|
|
|
node/kempty-n12.ci.centos.org uncordoned
|
|
|
|
node/kempty-n6.ci.centos.org uncordoned
|
|
|
|
node/kempty-n7.ci.centos.org uncordoned
|
|
|
|
node/kempty-n8.ci.centos.org uncordoned
|
|
|
|
node/kempty-n9.ci.centos.org uncordoned
|
|
|
|
|
|
|
|
oc get nodes
|
|
|
|
NAME STATUS ROLES AGE VERSION
|
|
|
|
dumpty-n1.ci.centos.org Ready worker 77d v1.18.3+6c42de8
|
|
|
|
dumpty-n2.ci.centos.org Ready worker 77d v1.18.3+6c42de8
|
|
|
|
dumpty-n3.ci.centos.org Ready worker 77d v1.18.3+6c42de8
|
|
|
|
dumpty-n4.ci.centos.org Ready worker 77d v1.18.3+6c42de8
|
|
|
|
dumpty-n5.ci.centos.org Ready worker 77d v1.18.3+6c42de8
|
|
|
|
kempty-n10.ci.centos.org Ready worker 106d v1.18.3+6c42de8
|
|
|
|
kempty-n11.ci.centos.org Ready worker 106d v1.18.3+6c42de8
|
|
|
|
kempty-n12.ci.centos.org Ready worker 106d v1.18.3+6c42de8
|
|
|
|
kempty-n6.ci.centos.org Ready master 106d v1.18.3+6c42de8
|
|
|
|
kempty-n7.ci.centos.org Ready master 106d v1.18.3+6c42de8
|
|
|
|
kempty-n8.ci.centos.org Ready master 106d v1.18.3+6c42de8
|
|
|
|
kempty-n9.ci.centos.org Ready worker 106d v1.18.3+6c42de8
|
|
|
|
----
|
|
|
|
|
|
|
|
|
2022-03-03 11:44:45 +00:00
|
|
|
== Resources
|
2021-09-24 15:07:45 +09:00
|
|
|
|
|
|
|
- [1] https://docs.openshift.com/container-platform/4.5/backup_and_restore/graceful-cluster-restart.html[Graceful Cluster Startup]
|
|
|
|
- [2] https://docs.openshift.com/container-platform/4.5/backup_and_restore/disaster_recovery/scenario-2-restoring-cluster-state.html#dr-restoring-cluster-state[Cluster disaster recovery]
|