Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Installation

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-28-2008, 08:21 AM
Junior Member
 
Posts: 8
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!
Reply With Quote
  #2 (permalink)  
Old 08-28-2008, 10:10 AM
Elite Member
 
Posts: 380
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.
Reply With Quote
  #3 (permalink)  
Old 08-28-2008, 01:54 PM
Moderator
 
Posts: 6,236
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/
Reply With Quote
  #4 (permalink)  
Old 08-29-2008, 09:55 AM
Elite Member
 
Posts: 380
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.
Reply With Quote
  #5 (permalink)  
Old 08-29-2008, 11:45 AM
OpenSource Builder & Moderator
 
Posts: 1,166
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.
Reply With Quote
  #6 (permalink)  
Old 08-29-2008, 11:51 AM
Junior Member
 
Posts: 8
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...
Reply With Quote
  #7 (permalink)  
Old 08-29-2008, 12:41 PM
Elite Member
 
Posts: 380
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... :-)
Reply With Quote
  #8 (permalink)  
Old 08-29-2008, 03:18 PM
OpenSource Builder & Moderator
 
Posts: 1,166
Default

Quote:
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..
Reply With Quote
  #9 (permalink)  
Old 08-29-2008, 11:48 PM
Junior Member
 
Posts: 8
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.
Reply With Quote
  #10 (permalink)  
Old 01-04-2011, 11:03 AM
Junior Member
 
Posts: 6
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.