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?
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?
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.
-Mike Morse (MCode151)
ZCS-to-ZCS Migrations & Moves | Admin Tools & Tidbits » ZimbraBlog.com | ZimbraCommunity.com
Excellent, thanks. We are currently running 5.0.11. So would it be recommended that we upgrade to 5.0.13 first?
There are currently 1 users browsing this thread. (0 members and 1 guests)