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

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 02-10-2009, 08:33 AM
Member
 
Posts: 11
Question Changing /opt to a symlink

We were looking to move zimbra to a larger partition than we currently have. If we shut it down, move all of the data to /mnt/opt, create a symlink for /opt to /mnt/opt, and restart zimbra, will this work or will it create issues?
Reply With Quote
  #2 (permalink)  
Old 02-10-2009, 09:31 AM
Moderator
 
Posts: 6,237
Default

What version are you currently on? You would have issues during upgrade from say 5.0.2 > 5.0.11 but 5.0.13 contains: Bug 22104 - Support /opt symlinks > Bug 14725 - Installer fails to follow and destroys symbolic links

So currently instead of symlink it's better to use mount, with the --bind switch to link two directories.

There was also discussion on symlinking /opt vs /opt/zimbra (with /opt/zimbra being better).

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). <There's other threads on why this isn't recommended.

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

http://www.zimbra.com/forums/announc...html#post62754 so we know which version your currently using.


EDIT:

I'll have to test if it was an actual fix or just that we now warn.

Options at the moment:
A)
Move your data to /backuplocation (or whatever device is /mnt/opt)
Remove the current /opt (careful)
In /etc/fstab change the devices directory from /mnt/opt to /opt from the get go.

B)
mount --bind /mnt/opt /opt
In fstab that would become:
mnt/opt /opt bind defaults,bind 0 0

Last edited by mmorse; 02-10-2009 at 12:22 PM..
Reply With Quote
  #3 (permalink)  
Old 02-10-2009, 11:20 AM
Member
 
Posts: 11
Default

Excellent, thanks. We are currently running 5.0.11. So would it be recommended that we upgrade to 5.0.13 first?
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.