Results 1 to 9 of 9

Thread: Multi Server Migration

Hybrid View

  1. #1
    Join Date
    Aug 2011
    Location
    Managua, Nicaragua
    Posts
    8
    Rep Power
    4

    Default Multi Server Migration

    Hi all!

    I have a multi server enviroment with my ldap, mailbox and mta in separated virtual guest but in the same virtual host. I'm using citrix XenServer community for the virtualization enviroment. Everything its going fine, but my mailbox its running out of space.

    [root@mailbox ~]# df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/xvda3 19G 11G 7.4G 59% /
    /dev/xvda1 114M 18M 91M 17% /boot
    tmpfs 6.0G 0 6.0G 0% /dev/shm
    /dev/xvda2 456G 396G 37G 92% /opt

    So i need to migrate my mailbox to another virtual guest in other virtual host because my actual virtual host its already full and i cannot just move virtual machines between hosts with the community edition of XenServer. And because my new virtual host is more powerfull I want to move the ldap server too.

    So here is my question. Do you have any tips, idea, howto, wiki page, etc... that could help me with this??

    I'll thanks a lot any suggestion.

  2. #2
    Join Date
    Oct 2005
    Location
    USA, Canada and India
    Posts
    777
    Rep Power
    11

    Default

    just follow this line by line:
    » Zimbra :: Blog
    * where its using external HD you can directly RSYNC to your new VM on new host

    Make sure OS ARCH + HSOTNAME and other setup + Zimbra Ver is indentical on NEW VM

    LDAP does not really take too much resources so you can leave it on your existing setup.

    Raj
    i2k2 Networks
    Dedicated & Shared Zimbra Hosting Provider

  3. #3
    Join Date
    Aug 2011
    Location
    Managua, Nicaragua
    Posts
    8
    Rep Power
    4

    Default

    Thanks a lot Raj, I'll give it a try and let you know the results later

  4. #4
    Join Date
    Aug 2011
    Location
    Managua, Nicaragua
    Posts
    8
    Rep Power
    4

    Default

    Excuse me Raj, If i add a new mailbox server to my existing setup, will I be able to move some user's mailboxes to this new server and make some balance on my storage?

    I cannot afford to have my services down even just for a couple hours

  5. #5
    Join Date
    Oct 2005
    Location
    USA, Canada and India
    Posts
    777
    Rep Power
    11

    Default

    Hi..moving some users is even bigger challange in OSS than moving the whole server.
    I think you need to understand the process of moving better.if you do everything right it takes < 5 min of downtime.

    main thing to know is you can do HOT RSYNC which will move all un-locked files (each are 98% of all zimbra files) then you do COLD RSYNC with services stop..which should take very less time.

    1) make sure all configs are same on new sever
    2) hot rsync (without stopping services)
    3) hot rsync (without stopping services)
    4) hot rsync (without stopping services)
    ....you can have as many as host sync's till your last host sync is < 3-5 min
    5) cold/full rsyc (stop zimbra services) it will only do DELTA of locked /new files and all Mysql and LDAP
    6) fix permissions on new server (zmfixperm)
    7) start services on new zimbra

    from step 5-to-7 even if your zimbra is 400GB -500GB it will not take more than 5-10 min MAX to do the last 3 steps

    you can do few DRY runs..i am sure out of 24 hours you can affors 10 min of downtime

    Raj
    i2k2 Networks
    Dedicated & Shared Zimbra Hosting Provider

  6. #6
    Join Date
    Aug 2011
    Location
    Managua, Nicaragua
    Posts
    8
    Rep Power
    4

    Default

    Thanks a lot Raj!

    I didn't know that I could do hot rsync and later a cold rsync, that seems way much better.

  7. #7
    Join Date
    Oct 2005
    Location
    USA, Canada and India
    Posts
    777
    Rep Power
    11

    Default

    Please read some backup scripts on the forums and that will give you a good insight into the SWICHES you need to use for rsync.
    more over you can IGNORE some folder during "HOT RSYNC" as you know they locked and can cause problem..i.e MYSQL, LDAP and postfix spool, amavis temp and then don use IGNORE on the final cold runs with stopped services

    i have seen that rsync will get stuck if the file is constantly changing and hot rsync will never finish.
    i had a file called
    zimbraskipfolders.txt with following lines
    zimbra/data/postfix
    zimbra/index
    work/resource-cache
    zimbra/data/amavisd/tmp
    host rsync
    rsync -avHK --timeout=999 --exclude-from="/opt/zimbrabackup/zimbraskipfolders.txt" -e ssh /opt/zimbra root@$BACKUP_SERVER_IP:/opt/target_folder

    rsync -avHK --delete --timeout=999 --exclude-from="/opt/zimbrabackup/zimbraskipfolders.txt" -e ssh /opt/zimbra root@$BACKUP_SERVER_IP:/opt/target_folder

    rsync -avHK --delete --timeout=999 --exclude-from="/opt/zimbrabackup/zimbraskipfolders.txt" -e ssh /opt/zimbra root@$BACKUP_SERVER_IP:/opt/target_folder
    cold rsync

    rsync -avHK --delete --timeout=999 -e ssh /opt/zimbra root@$BACKUP_SERVER_IP:/opt/target_folder
    its been a while since i have done this..so you need to check everything

    Raj
    i2k2 Networks
    Dedicated & Shared Zimbra Hosting Provider

  8. #8
    Join Date
    Aug 2011
    Location
    Managua, Nicaragua
    Posts
    8
    Rep Power
    4

    Default

    Hi Raj, i've succesfully migrate my mailbox server, thank you very much.

    I only have one problem, since the migration the pop3 ssl connections on the 995 port seems to hang after a while, I modified the zimbraPop3NumThreads value and the only think i get its to keep te connections more time. I mean, the value was 100 and the connections hang every 2 or 3 hours then I changed to 750 and the connections hang every 12 hours.

    The weird thing its that there is no warning or error messages in any log and there is only the pop3 ssl in port 995 that get freeze.

    Another think i have noticed, by tracking the IP, its that the connections come from an 3G provider. So it's posible that mobile device leave their sessions open and by some reason the server didn't close them making that the pop3 ssl connections hang.

    So a few days ago I blocked those IP on my firewall and the problem its gone.

    Do you have any idea what could went wrong on the migration that give me that problem? Is there another solution? because i need reconnect my 3G clients back again.

    Thanks

  9. #9
    Join Date
    Oct 2005
    Location
    USA, Canada and India
    Posts
    777
    Rep Power
    11

    Default

    Glad to know your migration went well ..
    I dont think so your problem is realted to any setting change during migration.
    May be your mobile usage has gone high..
    There are many setting for connection..so make sure you UP all of them
    specially the zimbraHttpSSLNumThreads as thats used for auth.

    we do the following on a modetaly high load machine

    zmprov ms `zmhostname` zimbraHttpSSLNumThreads 600
    zmprov ms `zmhostname` zimbraHttpNumThreads 600
    zmprov ms `zmhostname` zimbraPop3NumThreads 600
    zmprov ms `zmhostname` zimbraImapNumThreads 100
    zmprov ms `zmhostname` zimbraLmtpNumThreads 200

    zmlocalconfig -e mailboxd_java_heap_memory_percent=40
    zmlocalconfig -e mysql_memory_percent=20
    Also follow
    Performance Tuning Guidelines for Large Deployments - Zimbra :: Wiki

    ..no warning or error messages in any log..
    Check mailbox.log it has to be in there

    Raj
    i2k2 Networks
    Dedicated & Shared Zimbra Hosting Provider

Similar Threads

  1. How to: cold standby server (no cluster)
    By fisch09 in forum Installation
    Replies: 50
    Last Post: 02-18-2014, 10:51 AM
  2. Want to test Zimbra NE 7.1 multi server HOW?
    By cryppy in forum Installation
    Replies: 1
    Last Post: 08-04-2011, 09:38 AM
  3. Getting problems in FC4 while instalation
    By kitty_bhoo in forum Installation
    Replies: 13
    Last Post: 09-12-2006, 11:34 PM
  4. Multi server install not working
    By Nassri in forum Installation
    Replies: 18
    Last Post: 08-17-2006, 10:23 PM
  5. Replies: 5
    Last Post: 07-05-2006, 08:42 AM

Tags for this Thread

Posting Permissions

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