Results 1 to 7 of 7

Thread: setting up a copy of production in staging...

  1. #1
    Join Date
    Sep 2008
    Location
    Belgium
    Posts
    91
    Rep Power
    7

    Default setting up a copy of production in staging...

    zcs-7.1.1_GA_3204.SLES11_64 (patched)

    Hi all,

    I am trying to set a server in staging to reflect what we have in production. The server in staging has less resources than in production

    My first attempt was to:
    - install zimbra in staging
    - rsync production to it
    - update zimbra to the next version (due to patch) to be sure that zimbra is clean
    - change tuning to match limited resources
    - reset the server name (zmsetservername)
    ... it failed

    I then tried to install using the installation configuration file from production:
    - cahnge hostname and network information
    - sudo ./install.sh config.prod
    ... it failed

    I was hoping a hostname change and some tuning would be enough but it seems I was wrong.

    How would you do this without having to set all parameters by hand and risk making mistakes?

    Thanks for your help!

  2. #2
    Join Date
    Sep 2011
    Location
    Texas
    Posts
    150
    Rep Power
    4

    Default

    Are you just trying to see if the upgrade will work on a production-like server? Or are you trying to setup a new server to eventually become the new production server?

    If you want an exact copy to make sure the upgrade will not fail on the actual production server, why not place the needed upgrade files on your production server, make a full-server backup and restore it to a new server as if it were a restore in a disaster recovery situation...but keep it from connecting to the network long enough to change the IP address (or just keep it off the network) and perform the upgrade to see how it goes.

    LHammonds
    Type su - zimbra -c "zmcontrol -v" to get your version and copy that into your profile (more info here)

  3. #3
    Join Date
    Sep 2008
    Location
    Belgium
    Posts
    91
    Rep Power
    7

    Default

    Hi LHammonds,

    The idea is to have a server in staging that matches as closely as possible what we have in production.

    We'd use it to test upgrades but also to test a load of other things such as interacting with the LDAP directly, running automated scripts, offering new services, ...

    In short, what one does in staging before moving to production.

    All I'm trying to do is avoid doing a clean installation in staging and have to compare each and every setting by hand with the risk of error that comes with that.

  4. #4
    Join Date
    Sep 2011
    Location
    Texas
    Posts
    150
    Rep Power
    4

    Default

    That sounds like something I plan on doing but have not yet done so. See here.
    Type su - zimbra -c "zmcontrol -v" to get your version and copy that into your profile (more info here)

  5. #5
    Join Date
    Sep 2008
    Location
    Belgium
    Posts
    91
    Rep Power
    7

    Default

    Thanks for that. Backups are of course the first step I want to play with when I have my new environment all setup.

    It looks like I'll be doing a fresh installation. I had managed to move a system from debian to ubuntu at one time by simply installing/rsync over/update over rsync but it did not work for a change in environment.

    Oh well, here we go.

  6. #6
    Join Date
    Sep 2011
    Location
    Texas
    Posts
    150
    Rep Power
    4

    Default

    From my limited understanding, if you want to setup a 2nd server that will eventually take over, you do a bare-bones install of Zimbra on the target server, then rsync the files over.

    I read about this procedure somewhere (probably the wiki)...I'll post a link if I find it. However, I don't know if that procedure will work when using different platforms...however, Debian and Ubuntu share a common codebase.

    LHammonds
    Type su - zimbra -c "zmcontrol -v" to get your version and copy that into your profile (more info here)

  7. #7
    Join Date
    Sep 2008
    Location
    Belgium
    Posts
    91
    Rep Power
    7

    Default

    Hi,

    sorry for the late reply.

    I managed to do a test move from a zimbra server running on debian to a zimbra server of the same version running on ubuntu.

    The way I did this was this:

    - install a basic zimbra server with no particular settings.
    - rsync my debian zimbra to the new ubuntu server.
    - update zimbra on the ubuntu server to the same version you are running to make sure all is in place and accepted by zimbra.

    ... don't forget to copy your crontab if you had changes in it!

    Hope this very basic howto can help someone. It really was straight forward but debian and ubuntu have a lot in common.

Similar Threads

  1. ** Retrieving CA private key from ldap...failed.
    By blusowiec in forum Administrators
    Replies: 6
    Last Post: 02-11-2012, 09:28 AM
  2. Upgrade error setting up syslog.conf
    By plastilin in forum Administrators
    Replies: 1
    Last Post: 11-21-2010, 04:52 AM
  3. Installer freezed while setting cron
    By jilingshu in forum Installation
    Replies: 0
    Last Post: 11-19-2010, 12:48 AM
  4. [SOLVED] Install Problem in Ubuntu 6.06 Server
    By xtimox in forum Installation
    Replies: 16
    Last Post: 03-27-2008, 09:36 AM
  5. Shared Folder
    By drdre in forum Administrators
    Replies: 20
    Last Post: 01-20-2008, 12:07 PM

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
  •