Removing a node from a cluster will re-install the node OS and clear CCE components on the node.
Removing a node will not delete the server corresponding to the node. You are advised to remove nodes at off-peak hours to avoid impacts on your services.
After a node is removed from the cluster, the node is still running.
After the node is removed, workload pods on the node are automatically migrated to other available nodes.
You can perform the following steps to re-install the OS and clear the CCE components on the node if previous attempts fail:
Write the following scripts to the clean.sh file:
lsblkvgs --noheadings | awk '{print $1}' | xargs vgremove -fpvs --noheadings | awk '{print $1}' | xargs pvremove -flvs --noheadings | awk '{print $1}' | xargs -i lvremove -f --select {}function init_data_disk() {all_devices=$(lsblk -o KNAME,TYPE | grep disk | grep -v nvme | awk '{print $1}' | awk '{ print "/dev/"$1}')for device in ${all_devices[@]}; doisRootDisk=$(lsblk -o KNAME,MOUNTPOINT $device 2>/dev/null| grep -E '[[:space:]]/$' | wc -l )if [[ ${isRootDisk} != 0 ]]; thencontinuefidd if=/dev/urandom of=${device} bs=512 count=64returndoneexit 1}init_data_disklsblk
Run the following command:
bash clean.sh