Rejoin a decommissioned Portworx node back to the cluster in airgapped bare metal
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
Do not remove /opt/pwx or /etc/pwx at this stage if you want to use pxctl to clean up metadata in the next step. If you've already removed these directories, skip to the Remove metadata using wipefs section.
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.