How Do I Manually Clear Nodes of an On-Premises Cluster?
Precautions
Clearing a node is a high-risk operation. After the node is cleared, all processes (including the Kubernetes process and containerd) and data (including containers and images) on the node are cleared, and the node status cannot be restored. Therefore, before performing this operation, ensure that the node is no longer needed by the on-premises cluster.
Scenario
If the execution of the ucs-ctl delete cluster and ucs-ctl delete node commands fails on the on-premises cluster, you need to manually clear the node by referring to this section.
Procedure
- Obtain the node clearing script from the installed node.
Obtain the node clearing script uninstall_node.sh from the /var/paas/.ucs-package/ucs-onpremise/scripts/ directory generated after the decompression.
- Copy the script to the node to be cleared.
- Log in to the node to be cleared and run the following command:
bash uninstall_node.sh
To reduce residual processes or data, the script can be executed multiple times.
- After the script is executed, restart the node.
- Repeat the preceding operations to clear other nodes.
On-Premises Clusters FAQs
- Why Cannot I Connect an On-Premises Cluster to UCS?
- How Do I Manually Clear Nodes of an On-Premises Cluster?
- How Do I Downgrade a cgroup?
- How Do I Do If VM SSH Connection Times Out?
- How Do I Expand the Storage Disk Capacity of the CIA Add-on in an On-Premises Cluster?
- Why Is the Cluster Console Unavailable After the Master Node Is Shut Down?
- Why Is the Node Not Ready After Scaling-out?
- How Do I Update a CA/TLS Certificate in an On-Premises Cluster?
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbotmore