Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 22

Thread: Building a Mirror

  1. #11
    Join Date
    Feb 2006
    Location
    Pune, India
    Posts
    294
    Rep Power
    9

    Default

    Quote Originally Posted by arg
    Install again as upgrade.

    port conflicts and etc.

    Regarding port conflicts during upgrade, if it looked like the following, don't worry, it didn't mess up your upgrade. This is seen because you have configured ports other than default. But will not have any side effects.

    Code:
    Checking for port conflicts
    Port conflict detected: 80 (zimbra-store)
    Port conflict detected: 443 (zimbra-store)
    Port conflicts detected! - Any key to continue
    Regards,

    Chintan Zaveri
    (Yet another ZIMBRAN!)

    "Dhundhne par Bhagwan bhi ..."

  2. #12
    Join Date
    Oct 2006
    Location
    Boulder CO
    Posts
    14
    Rep Power
    9

    Default I am just trying to see valid mail from a backup

    I just want to be able to login as a user into the backup mail server to confirm I got mail.

    This is just a in case a server blows up can I prove I got the data.

    I have zimbra up from a back up.

    I just can not log into as a user.

    Class of service:
    default
    Mail Server:
    master.servername

    I would like this to be

    Class of service:
    default
    Mail Server:
    backup.servername


    SO I can actually log in and see the mail. Now it sends me to the master version when I try to log in.

  3. #13
    Join Date
    Feb 2006
    Location
    Pune, India
    Posts
    294
    Rep Power
    9

    Default

    Did ZmSetServerName not help?
    Regards,

    Chintan Zaveri
    (Yet another ZIMBRAN!)

    "Dhundhne par Bhagwan bhi ..."

  4. #14
    Join Date
    Oct 2006
    Location
    Boulder CO
    Posts
    14
    Rep Power
    9

    Default didnt change the server

    Yea I tried that it did not change the mail server .

  5. #15
    Join Date
    Feb 2006
    Location
    Pune, India
    Posts
    294
    Rep Power
    9

    Default

    I am not aware of other methods to change hostname.

    AFAIK, this is also not much recommended.

    Does someone else know how to do this? or why this command is now allowing change of hostname?

    arg, I have tried doing this using OpenVZ Virtual Server and succeeded. The trick was, I had 2 Virtual Private Servers. Both of them with the same hostname and same IP Address. At a time, I only kept one of them live and Rsynced periodically (stop zimbra - rsync - start zimbra).

    This works out really fast because you don't even have to send the data over network - it uses virtual network interfaces.

    If one VPS had a problem, stop the VPS itself and start the other one. It's like you have the backup up and running in very little time.

    For safety, you can also keep a few copies of entire VPS offline. So in case of hardware failure or something very serious, you have a copy. This will not affect uptime because you can create the copy from inactive VPS.
    Last edited by czaveri; 10-18-2006 at 07:23 AM.
    Regards,

    Chintan Zaveri
    (Yet another ZIMBRAN!)

    "Dhundhne par Bhagwan bhi ..."

  6. #16
    Join Date
    Oct 2006
    Location
    Boulder CO
    Posts
    14
    Rep Power
    9

    Default My goal

    Yea my goal is this:

    Tar up the live server /opt/zimbra

    move it to a different server and untar and access email like normal.
    It will be a different hostname and IP.

    This is a truely backup copy and could go live if needed.

    Is this possible.

  7. #17
    Join Date
    Feb 2006
    Location
    Pune, India
    Posts
    294
    Rep Power
    9

    Default

    Quote Originally Posted by arg
    Yea my goal is this:

    Tar up the live server /opt/zimbra

    move it to a different server and untar and access email like normal.
    It will be a different hostname and IP.

    This is a truely backup copy and could go live if needed.

    Is this possible.
    All sounds good. Except for different hostname and IP. For this I am not qualified to answer. Perhaps, someone else will.

    But, you can try the following (I, myself, have not done it):
    Install Zimbra on both servers - The normal Zimbra installation.

    Consider one as Server1 and the other as Server2.

    Let's say that normally you are using Server1 and Server2 is for backup (the mirror).

    When you want to backup, Stop Zimbra on Server1.
    Use Rsync to sync the following directories from Server1 to Server2:

    /opt/zimbra/db
    /opt/zimbra/store
    /opt/zimbra/index
    /opt/zimbra/openldap* (that is, all openldap directories)

    Once this is done, start Zimbra on Server1.

    Done!

    When you have a problem with Server1, Start Zimbra on Server2 and reverse the Rsync process after Server1 is online again. That is, now keep on using Server2 normally and Server1 as mirror - so, Rsync from Server2 to Server1.

    I have not done this, so this is an experiment.

    Note: You will lose the data that has entered or been modified since the last time you backed up. But this is true for most types of Cold backups.
    Regards,

    Chintan Zaveri
    (Yet another ZIMBRAN!)

    "Dhundhne par Bhagwan bhi ..."

  8. #18
    Join Date
    Oct 2006
    Location
    Boulder CO
    Posts
    14
    Rep Power
    9

    Default So let me ask this?

    Server 1 & Server 2 are in different locations and racks.

    Therefore different IPS and hostnames.

    You want me to have 2 servers with the same hostname and just resolve to themselves internally via /etc/hosts so it will stay on the local server ?

  9. #19
    Join Date
    Feb 2006
    Location
    Pune, India
    Posts
    294
    Rep Power
    9

    Default

    No, I am probably wrong.

    This would work out only in case of Virtualization when you can have two VPS on the same machine, with the same hostname and same IP address.

    What you can do is:

    1. Setup two machines with the same hostname and same IP address.
    Let's say, it is: server1.domain.com with IP 192.168.10.11

    2. Install Zimbra on both of them.

    3. Start Zimbra on one of them.

    4. Keep Zimbra stopped on the other

    5. Change the IP Address and Hostname on on the other (that is, on the server that has Zimbra stopped).

    6. So, now we have two different hostnames with different IP addresses.
    Let's say, these are:
    server1.domain.com with IP 192.168.10.11
    server2.domain.com with IP 192.168.10.12

    7. Daily, or as often as you want, backup like this:

    • Stop Zimbra on server1.domain.com
    • Kill all trailing Zimbra processes on server1.domain.com
    • Rsync Zimbra from server1.domain.com to server2.domain.com
    • Start Zimbra on server1.domain.com
    8. When server1.domain.com is not in good health, and you want to use server2.domain.com - Simply, change the hostname and IP address of the server.
    That is: change server2.domain.com to server1.domain.com and 192.168.10.2 to 192.168.10.1 (This is the machine's hostname and IP address)

    So what we did was we setup Zimbra in the same way on both servers and only so that we don't have network related problems, we are temporarily changing the hostname and IP address of the mirror.
    Regards,

    Chintan Zaveri
    (Yet another ZIMBRAN!)

    "Dhundhne par Bhagwan bhi ..."

  10. #20
    Join Date
    Oct 2006
    Location
    Boulder CO
    Posts
    14
    Rep Power
    9

    Default I see your angle

    thanks,

    I see your angle on this and how it might work.

    However there should be a way to have it on 2 different IP/hostname boxes.

    Granted if server 1 goes down the dns will be changed to point to server 2 . I have systems at 2 different colocation centers and I would like mail at each location. 1 is live the other is completely backup systems. So I would like to be able to login and just check mail on server 2 just to confirm it works not for a live server from the backup location.

    Has this be asked before or am I just doing things differently than others?

    How often does Zimbra employees montior and respond to the forums?

    Thanks again btw.

    arg

Similar Threads

  1. Replies: 6
    Last Post: 01-02-2008, 03:17 PM
  2. Building Zimbra
    By raks35 in forum Developers
    Replies: 1
    Last Post: 06-12-2007, 12:04 PM
  3. list of CPAN modules zimbra uses for building perl
    By ravinder in forum Developers
    Replies: 3
    Last Post: 06-28-2006, 11:39 AM
  4. problem while building perl
    By ravinder in forum Developers
    Replies: 7
    Last Post: 05-29-2006, 10:38 AM
  5. Building from zcs-3.0.0_M2_740-src.tgz
    By daly1 in forum Installation
    Replies: 5
    Last Post: 12-20-2005, 05:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •