Attaaching slave to master

Discussion in 'Installation/Configuration' started by scandal32, Feb 12, 2012.

  1. scandal32

    scandal32 New Member

    Hi. I have a problem with slave machine under ISPC3. WEverything worked ok till my master machine crashed. I had to make a new machine with master ISPC3 but I dunno how to add my slave (slave of course is on different machine with different IP). Thanks in advance for help.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The slave is connected only once during installation. How did you restore the master server, if you restored the ispconfig database and the mysql.mysql databse, then the slave should be connected automatically again.
     
  3. scandal32

    scandal32 New Member

    Slave

    Tahnks. I don't have mysql database. I need to know how to do it "by hand"
     
  4. falko

    falko Super Moderator Howtoforge Staff

    That makes no sense. How can you run ISPConfig without MySQL?
     
  5. scandal32

    scandal32 New Member

    Explain

    That's misunderstanding. I do not restore ISP. I had to install it again (MASTER) and I want to reconect my SLAVE ISPC. I dunno how to re-connect it or just connect to my new-installed master
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    A lave server contains only partial data of the master database, only the data that the slave requires for its operation is transferred to the slave. So if you would reconnect the slave to e ampty master database, it would just do nothing and none of the data of the slave would be visible in ispconfig on the master.

    Or in other words, it is possible to recreate a slave based on the master database, but you can not recreate the master based on the slave database as the slave database contains only parts of the data that the master has.

    You can try to copy the database contents from th slave to the master database with phpmyadmin, but I can not say for sure which data is missing then. Most likely client details, so you might have to recreate that data in ispconfig then.

    There is no script to reconnect the servers, but you can try to run a ispconfig update on the slave and choose to reconfigure permissions in the master database after you copied the data from the slave database to the master database.
     

Share This Page