Uninstall Exasol
This section explains how to completely uninstall Exasol 8 from a host system.
Prerequisites
The user performing this procedure must either be root or a user with sudo access.
Procedure
The following examples use the c4 and confd_client command-line tools in a Linux terminal. For more information about these tools, see Exasol Deployment Tool (c4) and ConfD.
Step 1: Shut down the database
-
Connect to EXAClusterOS (COS) using
c4 connect -t <DEPLOYMENT>[.<NODE>]/cos
. For example:For more information about how to use
c4 connect
, see How to use c4. -
If the database is running, stop it now using the ConfD job db_stop. For example:
-
To verify that the database has stopped, use the ConfD job db_state. If the result is
setup
, the database is stopped. For example:
Step 2: Remove resources on the hosts
-
To remove all resources that were created by c4 on the host system, run the following commands as sudo in a Linux terminal:
If you are carrying out this operation as root, the sudo command should be omitted.
# stop and disable the c4 services
sudo systemctl stop c4_cloud_command
sudo systemctl stop c4
sudo systemctl disable c4
sudo systemctl disable c4_cloud_command
# remove the c4 services
sudo rm /etc/systemd/system/c4_cloud_command.service
sudo rm /etc/systemd/system/c4_cloud_command.env
sudo rm /etc/systemd/system/c4.service
sudo rm /etc/systemd/system/c4.env
# remove directories and files created by c4
sudo rm -r /var/lib/ccc
sudo rm -r /usr/local/bin/c4
sudo rm -r /var/log/ccc
# unmount and remove the /x mount point
sudo umount /x && sudo rm -rf /x -
Remove the
.ccc
directory in the home directory of the installation user: -
Repeat these steps on all hosts where you have installed Exasol 8.
After Exasol has been uninstalled, you can remove the installation user on the hosts if it is no longer needed. In that case you must be logged in as another user with sudo permissions or as root.