Rejoin a decommissioned Portworx node to the cluster in Tanzu
This document provides instructions for rejoining a previously decommissioned node with its original cluster.
Ensure the node is decommissioned from Portworx
If the node was previously part of a Portworx cluster, you must first ensure you followed steps to decommission it from the cluster. The Decommission a Node page has detailed steps for this.
Ensure the Portworx services are no longer running
You must ensure that the Portworx services are completely disabled from your system. You can check the status of the portworx systemd
service using the following systemctl
command:
sudo systemctl status portworx
If the systemd
service is still running, enter the following commands to stop and disable it:
sudo systemctl stop portworx
sudo systemctl disable portworx
sudo rm -f /etc/systemd/system/portworx*
grep -q '/opt/pwx/oci /opt/pwx/oci' /proc/self/mountinfo && sudo umount /opt/pwx/oci
Clean up Portworx metadata on the node
Portworx also stores local metadata on the node to fingerprint its identity. The method you used to decommission the node determines the steps you must follow to clean up local Portworx metadata.
Remove metadata using pxctl
If pxctl is still on your node, enter the following pxctl service
command to remove local metadata using pxctl:
pxctl service node-wipe --all