Results 1 to 10 of 10

Thread: Install in directory other than /opt/zimbra

  1. #1
    olafth is offline Junior Member
    Join Date
    Jul 2008
    Posts
    8
    Rep Power
    6

    Default Install in directory other than /opt/zimbra

    Quick question:

    Is there a list of things to be done when you would want to install Zimbra in a directory other than /opt/zimbra?

    Thanks!

  2. #2
    Baylink is offline Elite Member
    Join Date
    Aug 2008
    Location
    St Pete FL USA
    Posts
    392
    Rep Power
    6

    Default

    A quick examination of the installer script says there's no "official" way to do this -- I did it by merely making /opt/zimbra a symlink to /appl/zimbra509, which seems to be working ok... though I had a "can't find the license" problem on install, and don't know if that was why.

  3. #3
    mmorse's Avatar
    mmorse is offline Moderator
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    20

    Default

    Note: Bug 14725 – Installer fails to follow and destroyes symbolic links
    Better to use mount, with the --bind switch to link two directories.

    Hard links (ln without the -s) can be used on directories but it's not typical, thus a force flag (usage is -d, -F, or --directory) so you should read up on pro's vs con's, and can't cross file system boundaries (disk partition).

    Vote: Bug 10955 – allow installation to location other than /opt/zimbra/

  4. #4
    Baylink is offline Elite Member
    Join Date
    Aug 2008
    Location
    St Pete FL USA
    Posts
    392
    Rep Power
    6

    Default

    I'd never seen those switches to ln(1), but note that the man page says they'll probably fail... and even if you *do* get the link, everything else on your machine (fsck, updatedb, etc) will become very unhappy.

    I'm going to vote for both bugs; it is *not* the province of a release manager to decide where an application subsystem must live on my machines.

    FWIW, 5.0.9 on CentOS 5.2 installed over the symlink just fine for me.

  5. #5
    dijichi2 is offline OpenSource Builder & Moderator
    Join Date
    Oct 2005
    Posts
    1,176
    Rep Power
    11

    Default

    using hardlinks in that way is a horribly bad idea. don't do it.

    /opt/zimbra is hardcoded in quite a few places. as zimbra is such an isolated (mostly) self-sufficient package, keeping it in a known constant place isn't such a bad idea.

  6. #6
    olafth is offline Junior Member
    Join Date
    Jul 2008
    Posts
    8
    Rep Power
    6

    Default

    Quote Originally Posted by dijichi2 View Post
    using hardlinks in that way is a horribly bad idea. don't do it.

    /opt/zimbra is hardcoded in quite a few places. as zimbra is such an isolated (mostly) self-sufficient package, keeping it in a known constant place isn't such a bad idea.
    I agree, but our configuration (local storage mirrored pairwise via drdb) requires different install-directories, once we add an active-active cluster configuration to this. Or vhosts, but let's not open that can of worms...

  7. #7
    Baylink is offline Elite Member
    Join Date
    Aug 2008
    Location
    St Pete FL USA
    Posts
    392
    Rep Power
    6

    Default

    Yup, see?

    "Deciding the install location of a software package does not fall within the purview of a release manager". I know I've heard that somewhere... :-)

  8. #8
    dijichi2 is offline OpenSource Builder & Moderator
    Join Date
    Oct 2005
    Posts
    1,176
    Rep Power
    11

    Default

    I agree, but our configuration (local storage mirrored pairwise via drdb) requires different install-directories, once we add an active-active cluster configuration to this. Or vhosts, but let's not open that can of worms...
    have you got zimbra working succesfully under drbd? do you replicate the entire /opt/zimbra or just storage and use application-level replication for ldap/sql?

    zimbra was designed to really be the only thing on a box hence the certain assumptions it's made like installation path. why does /opt/zimbra cause a problem for your setup, is it not flexible to change paths?

    please do let us know how you get on with active-active, that would be a holy grail of HA for zimbra - it's currently a huge hole in it technically. it's rumoured to provide storage replication in version 5.5..

  9. #9
    olafth is offline Junior Member
    Join Date
    Jul 2008
    Posts
    8
    Rep Power
    6

    Default Zimbra and active-active HA clustering

    Quote Originally Posted by dijichi2 View Post
    have you got zimbra working succesfully under drbd? do you replicate the entire /opt/zimbra or just storage and use application-level replication for ldap/sql?
    No, we're succesfully replicating /opt/zimbra to another box. We're pairing them, two boxes mirror one another.

    Quote Originally Posted by dijichi2 View Post
    zimbra was designed to really be the only thing on a box hence the certain assumptions it's made like installation path. why does /opt/zimbra cause a problem for your setup, is it not flexible to change paths?
    It's not the setup that makes the problem. If we want to run a pair of those boxes as active-active cluster, we NEED the directories to be different, to run both packages at the same time on ONE box, in failure case. To be exact, we need one directory to be different. But it's easier to have them both different. The pathname is the one thing that keeps us from trying.

    Quote Originally Posted by dijichi2 View Post
    please do let us know how you get on with active-active, that would be a holy grail of HA for zimbra - it's currently a huge hole in it technically. it's rumoured to provide storage replication in version 5.5..
    I'll keep posting our accomplishments here.

  10. #10
    cherny is offline Junior Member
    Join Date
    Dec 2010
    Posts
    6
    Rep Power
    4

    Smile Solution

    Solved using:

    mount --bind /home/zimbra/ /opt/zimbra/

    You can change /home/zimbra for whatever you want And you must create both directories before

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. error on zmldapinit
    By DenisBY in forum Installation
    Replies: 5
    Last Post: 07-30-2008, 11:50 AM
  2. Replies: 21
    Last Post: 09-27-2007, 11:49 AM
  3. centos 5 zimbra 4.5.6 no statistics
    By rutman286 in forum Installation
    Replies: 9
    Last Post: 08-14-2007, 09:30 AM
  4. Replies: 5
    Last Post: 03-01-2007, 03:20 AM
  5. Replies: 16
    Last Post: 11-29-2006, 10:36 AM

Posting Permissions

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