Skip to content

Instantly share code, notes, and snippets.

@jsilberm
Created May 31, 2018 23:58
Show Gist options
  • Save jsilberm/1c0125a3fc9bb7d2f6d1be9cc6628337 to your computer and use it in GitHub Desktop.
Save jsilberm/1c0125a3fc9bb7d2f6d1be9cc6628337 to your computer and use it in GitHub Desktop.
# 1: Remove systemd service (if any)
sudo systemctl stop portworx
sudo systemctl disable portworx
sudo rm -f /etc/systemd/system/portworx*.service
# NOTE: if the steps below fail, please reboot the node, and repeat the steps 2..5
# 2: Unmount oci (if required)
grep -q '/opt/pwx/oci /opt/pwx/oci' /proc/self/mountinfo && sudo umount /opt/pwx/oci
# 3: Remove binary files
sudo rm -fr /opt/pwx
# 4: [OPTIONAL] Remove configuration files. Doing this means UNRECOVERABLE DATA LOSS.
sudo rm -fr /etc/pwx
sudo mv /etc/pwx /etc/pwx.wtf.$$
# wifefs -a /dev/wtf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment