I setup a database cluster using Till tutorial https://www.howtoforge.com/installi...ase-cluster-on-debian-6.0-with-ispconfig-3-p3 for mirrored servers Now I lost the Master but no backup since I intended the slave server to be the backup. How do I promote the slave to be the new master? and then I can setup a new slave. Thanks
The MySQL server on the slave contains the master and the slave database (dbispconfig1 = master, dbispconfig2 = slave). I would recommend to restore the master instead of making the slave the master, or do you want to use it as single server system in futire?
Then I would recommend to rebuild the master instead of making the slave the master. First, you have to install all software again on it, except of ispconfig 3. Then rebuild the master/master replication so that all databases exist again on both servers. Then rebuild the unison or glusterfs data sync of /var/www and /var/vmail, restore the web users and client groups plus ispconfig, vmail and ispapps user/group from passwd, shadow, group and gshadow file. Then copy back /usr/local/ispconfig from slave to master and replace the server config.inc.php file with the one from interface. finally a ispconfig update with reconfigure services should be run on the new master. This whole process is a bit complicated, maybe you should consider to contact Florian who does the ispconfig support by remote login. His username here in the forum is @florian030 .