Change Master <> Slave

Discussion in 'Installation/Configuration' started by Petr, Aug 24, 2010.

  1. Petr

    Petr New Member

    Greetings,
    please, I have any question about ISP Confing 3.

    Is it possible to change the Master server in multiserver configuration ? ( from server1 to server2)
    (this multiservers configuration contains 6 servers , including 1 Master ,and 5 slaves )

    Problem is , the master server is unusually slowly. Slaves servers are OK.

    I need to change one slave server reconfigure to a new master server , and current master server reconfigure to slave server to work for a new master, at the same time.

    What is the correct procedure?
    How do I guarantee no lost working accounts on wrong master server? The current master server has about 60 accounts including webs, mails, DB and all of them work permanently.

    thanx for all answer
    Petr
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You can not change a slave to be the master as the slave does not have the information that is required to be the master.

    One solution for your problem is to make a full backup of the master and replace the hardware.
     
  3. Petr

    Petr New Member

    Till, thanks for your response.
    ok, i am know.

    little other questions.
    my idea be to change the master server, but not the tasks running on servers

    this scenario:
    server1.domain.ltd master
    serv2.domain.ltd slave
    serv3.domain.ltd slave

    ok, new i am make server4.domain.ltd and configure him that new master.
    step 1. from server 1domain.ltd migrate dbispconfig on server4.domain.ltd
    step 2. for all sleve servers change master (from server1.domain.ltd > server4.domain.ltd)

    I think it is posible. servers 2 , 3 must be work for server 4 new correctly.

    step3. ???
    on ispconfig on server1.domain.ltd run php -q install.php - select expert, select new master is server4.domain.ltd , select reconfigure all tasks - end......... but! all data , postfix, sql, apache , mailbox working continually from server1.domain.ltd , or this operation is delete or wrong data and server is emty new?

    sorry for my pure english :(
    Petr
     
    Last edited: Aug 25, 2010
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    This might work, but you will have to copy all permission records from the mysql database of the old masetr to the new master and then adjust the hostnames in the mysql permission records.

    But the much easier solution is to make a full backup of the current master harddisk and restore this full backup to the new master. Then switch of the old master and turn on the new one, so that it has the same IP and and hostname is used. Or in other words, you replace the hardware as I suggested above.
     

Share This Page