Table of Contents
Reinstall
To easiest way to re-install ClusterControl is:
If you are running on MySQL, substitute “mariadb” with “mysql”:
$ systemctl stop mariadb cmon cmon-ssh cmon-events cmon-cloud
$ dnf remove clustercontrol* mariadb*
$ rm -Rf /var/lib/mysql
$ rm -Rf /var/lib/cmon
$ rm -Rf /etc/s9s.conf
$ rm -Rf /root/.s9s
If you are running on MySQL, substitute “mariadb” with “mysql”:
$ systemctl stop mariadb cmon cmon-ssh cmon-events cmon-cloud
$ apt purge clustercontrol* mariadb*
$ rm -Rf /var/lib/mysql
$ rm -Rf /var/lib/cmon
$ rm -Rf /etc/s9s.conf
$ rm -Rf /root/.s9s
Then, perform the installation using the installer script:
$ ./install-cc
Uninstall
If ClusterControl is installed on a dedicated host (i.e., not co-located with your application), uninstalling ClusterControl is pretty straightforward. It is enough to bring down the ClusterControl node and revoke the cmon user privileges from the managed database nodes:
mysql> DELETE FROM mysql.user WHERE user = 'cmon';
mysql> FLUSH PRIVILEGES;
Before removing the package, stop all cmon related services:
On systemd:
$ systemctl stop cmon cmon-ssh cmon-events cmon-cloud
On SysVinit:
$ service cmon stop
$ service cmon-ssh stop
$ service cmon-events stop
$ service cmon-cloud stop
If ClusterControl is installed through the Severalnines repository, use the following command to uninstall via the respective package manager:
$ yum remove -y clustercontrol*
$ sudo apt-get remove -y clustercontrol*
For CMON and ClusterControl UI databases and privileges:
mysql> DROP SCHEMA cmon;
mysql> DROP SCHEMA dcps;
mysql> DELETE FROM mysql.user WHERE user = 'cmon';
mysql> FLUSH PRIVILEGES;