Results 1 to 3 of 3

Thread: Changing /opt to a symlink

  1. #1
    Join Date
    Jan 2009
    Posts
    11
    Rep Power
    6

    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?

  2. #2
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    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.

  3. #3
    Join Date
    Jan 2009
    Posts
    11
    Rep Power
    6

    Default

    Excellent, thanks. We are currently running 5.0.11. So would it be recommended that we upgrade to 5.0.13 first?

Similar Threads

  1. Mount /opt onto new array
    By carnold in forum Administrators
    Replies: 3
    Last Post: 08-01-2007, 08:00 AM
  2. Zimbra + Samba + changing passwords
    By agfeller in forum Administrators
    Replies: 2
    Last Post: 07-01-2007, 01:28 AM
  3. Replies: 2
    Last Post: 06-10-2007, 01:39 PM
  4. MTA is Dying after yum update
    By tonyawbrey in forum Administrators
    Replies: 27
    Last Post: 04-02-2006, 06:11 PM
  5. Replies: 0
    Last Post: 12-04-2005, 01:34 PM

Posting Permissions

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