Mirror troubles

Discussion in 'Installation/Configuration' started by ColdDoT, Jun 7, 2012.

  1. ColdDoT

    ColdDoT Member

    Hello,

    I've setted up a server mirror like this.
    server1 (master):
    install ispconfig like normal
    mysql db dbispconfig
    mysql user dbispconfig
    set server2 as mirror of server1

    server2 (mirror):
    install isconfig expert and join in the remote mysql
    mysql db dbispconfig2
    mysql db dbisconfig2


    All existing sites are not visible on server2, but as soon as i update something or create a site they are visible on server2 (interface). But the problem is that users (users perhaps directorys) are not created on server2.

    Is this correct behavior or do i need to change more things for a mirror setup?

    What more info do you need to figure out where this comes from?
    ~ColdDoT
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Thats the correct behaviour as only changes get mirrored. For that reason, a mirror has to be setup before the first site is added to the master server. I guess you added the mirror server to a master that already contained websites?

    What you can do is to use the resync tool avaialble since ispconfig 3.0.4.5 to resync all sites.
     
  3. ColdDoT

    ColdDoT Member

    Yep that is true.

    But when i create a new site on the master, the mirror picks it up and shows it in the interface. But the web user is not created.

    (I also synched /etc/groups, /etc/passwd, /etc/shadow)

    //EDIT
    Resync tools works wonders, only to bad it does not have the email resync
     
    Last edited: Jun 8, 2012
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Then there must be a problem with the passwd and group files, copying them from one server to another can work but may also fail if the second server is not a exact clone of the first one.

    See ispconfig faq on how to debug the creation of websites. Another problem can occur if the webs on both servers were not initially created with the connect web id tu userid option as this can cause that userid's differ on master and slave.
     

Share This Page