To Uninstall and Reinstall Anypoint Private Cloud
If you encounter problems during installation, you can attempt to reinstall. Before beginning a new install, ensure that all remnants of the original installation have been removed by performing the following commands on all nodes:
# remove installed system components sudo gravity system uninstall --confirm # remount and clear platform data sudo mount /var/lib/gravity sudo rm -rf /var/lib/gravity/* # remount and clear platform data sudo mount /var/lib/gravity/planet/etcd sudo rm -rf /var/lib/gravity/planet/etcd/* # remount and clear application data sudo mount /var/lib/data sudo rm -rf /var/lib/data/*
Restore Original State of the Docker Volume
In order to clean the Docker volumes, you may have to first reboot the server to force clean down any handles to the Docker Device. This will allow you to perform the proper clean-up. # identify whether the docker logical volume was created sudo lvs | grep docker # if the volume exists then remove it sudo lvremove docker # identify whether the docker volume group was created sudo vgs | grep docker # if the volume exists then remove it sudo vgremove docker # identify whether the docker physical volume was created sudo pvs | grep docker # if the volume exists then remove it sudo pvremove <PV Name>
# List iptables sudo iptables -L -n -v # Delete any entries created by the Anypoint PCE installer sudo iptables -X <entry_name> # Flush nat IP table sudo iptables -F -t nat # Flush filter IP table sudo iptables -F -t filter
Depending on the state of the full or partial install that you are replacing, these commands may not completely return the system to an installable state. Before beginning reinstall, ensure that your system is still setup correctly and meets the minimum disk and resource requirements.