Is Mirror

Discussion in 'General' started by Toucan, May 11, 2010.

  1. Toucan

    Toucan Member

    I have one ISPConfig3 set up on lenny - it backs up nicely every night to a Western Digital My World Book using google's back-res script very nicely so I'm confident if the worst should happen, i do a fresh install and restore using the script.

    I'm looking now, at opportunities of using the 'is mirror' function in ISPConfig with a second server. Can someone give some advice as to:

    1. What functionallity does this give?
    2. Does is act as a fall back for the main server?
    3. I only have one public IP, can I still use an 'is mirror' service?
    4. Are there any guides to doing this?

    Thanks for any help.
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The mirror function mirrors the configuration to this server. So if you have a web server (server1) in your multiserver setup and another server (server2) that is configured to mirror server1 and you create a website on server1, it will get created on server2 as well. The mirror function mirrors only the configuration and not the content. So if you want to mirror the content of servers as well, you need a shared network drive like nfs, a SAN storage or a cluster filesystem for the directories /var/www and /var/vmail on both servers.
  3. Toucan

    Toucan Member

    Thank you. I have an nfs provided the wd network drive which I could use.

    In that scenario though, what functionality does it provide? Is it there as a fallback server if the master should fail, in which case I'd have to redirect port forwarding to that new internal ip address?

    Also, does it handle all SQL replication or just the config databases?
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    That depends on your setup and network routing. ISPConfig itself just mirros the configuration.

    The mirror option in ispconfig is made to replicate configuration changes. If you want to mirror content or databases (which are conten too), use network filesystems for files and the replication features from mysql for your databases. You will find a lot of tutorials on this topic here at howtoforge.
  5. Toucan

    Toucan Member

    OK, almost there I think:

    If I use the mirror function and I add the domain '' to master server, this will also be created on the slave server yes?

    However, although the domain has been created and if I go to slaveserver /var/www/ I will find /var/www/, there will be no content in there yes?

Share This Page