Removing xcatdb from MySQL/MariaDBΒΆ
If you no longer want to use MySQL/MariaDB to maintain xcatdb, and like to switch to PostgreSQL or just default SQLite ( Note: SQLite does not support xCAT Hierarchy (has service nodes)), use the following documentation as guide to remove xcatdb.
Run a backup of the database to save any information that is needed (optional):
mkdir -p ~/xcat-dbback dumpxCATdb -p ~/xcat-dbback
If you want to restore this database later:
XCATBYPASS=1 restorexCATdb -p ~/xcat-dbback
Change to PostgreSQL, following documentation: Install PostgreSQL
Change back to default xCAT database, SQLite (Note: xCAT Hierarchy cluster will no longer work)
Stop the
xcatddaemon on the management node.service xcatd stopRemove the
xatdbfrom MySQL/MariaDB (optional):/usr/bin/mysql -u root -pdrop the xcatdb:
mysql> drop database xcatdb;remove the xcatadm database owner :
mysql> drop user xcatadm;Move, or remove, the
/etc/xcat/cfglogfile as it points xCAT to MySQL/MariaDB. (without this file, xCAT defaults to SQLite):rm /etc/xcat/cfglocRestart
xcatd:service xcatd start