Results 1 to 10 of 10

Thread: Change location for Zimbra due to to smal partition

  1. #1
    fredde_se is offline Junior Member
    Join Date
    May 2009
    Posts
    6
    Rep Power
    6

    Default Change location for Zimbra due to to smal partition

    Hi Zimbra-users!

    I did a little misstake when installing my os, SuSE 10.3.

    I made this partitions:

    / 20G
    /home 100G

    I thought zimbra would install in a home-folder, (my mistake could have rtfm-first).

    Now, / are running out of space but /home has lots of space!

    My idea is to:
    zmcontrol stop
    cp -r /opt/zimbra /home/zimbra
    mv /opt/zimbra /opt/zimbra_
    ln -s /home/zimbra/ /opt/zimbra
    zm controll start

    Is this a bad idea?
    Will this work?
    Are there any folders that will grow that suits better to softlink?

    Thanks in advance...

    /Fredde

  2. #2
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Welcome to the forums

    Have you only just installed ? Could you not re-install the O/S and ZCS ? You could always drop into single user mode, unmount /home and recreate it smaller, and then create a new partition for /opt/zimbra and mount it.

  3. #3
    fredde_se is offline Junior Member
    Join Date
    May 2009
    Posts
    6
    Rep Power
    6

    Default

    Hi and thanks for your answer. I just installed and tested it and migrated all accounts and have been running it for two weeks and then I saw the disk problem - DOH!

    I must say Im impressed about the Zimbra software it is really good.

    If the softlink solution works it is fine for me, do you see any problems with it?

    Thanks again!

    /Fredde

  4. #4
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Symlink will work fine ... Just ensure the permissions are okay.

  5. #5
    fredde_se is offline Junior Member
    Join Date
    May 2009
    Posts
    6
    Rep Power
    6

    Default

    Quote Originally Posted by uxbod View Post
    Symlink will work fine ... Just ensure the permissions are okay.
    Please, tell me about them!

    My idea was to have same permissions for the
    /home/zimbra as for /opt/zimbra

    when I do the cp -r all permissions are copied correct, right?

    Thanks,
    Fredrik

  6. #6
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Code:
    cp -rp {source} {target}
    You need the 'p' to preserve permissions.

  7. #7
    olekaas is offline Junior Member
    Join Date
    Jul 2009
    Posts
    6
    Rep Power
    6

    Default

    Use rsync instead of cp. With the right options you can even make an unclean copy while zimbra is running and clean it up by an extra run when zimbra is stopped. This will keep your downtime low.

    /Ole

  8. #8
    pagi is offline Starter Member
    Join Date
    Jul 2011
    Posts
    2
    Rep Power
    4

    Default

    And this works ??
    I don't wont to reinstall os and zimbra.

    Tell me what to do, and work.

  9. #9
    PhD
    PhD is offline Senior Member
    Join Date
    Jun 2011
    Posts
    68
    Rep Power
    4

    Default

    ive done the symlink way before - theres no problems with it at all...

    shutdown zimbra (zmcontrol stop as zimbra user)
    rsync -av /opt/zimbra /home/ (leave the trailing slash off the zimbra folder, so its re-created under /home)
    mv /opt/zimbra /opt/zimbra.bak
    ln -s /home/zimbra /opt/zimbra

    then you should have

    zimbra -> /home/zimbra
    zimbra.bak

    when you ls in /opt

    you should then be able to su - zimbra
    and zmcontrol start again

    ive also moved my whole zimbra installation to an nfs share and mounted it as /opt/zimbra - so that if theres a hardware fault with the server, i can litterally bring up another host with the same hostname/ip - re-present the nfs mount to it under /opt/zimbra and start it up there if need be.. (not sure if its a documented/supported practice though)

  10. #10
    pagi is offline Starter Member
    Join Date
    Jul 2011
    Posts
    2
    Rep Power
    4

    Default

    Thx PhD for help.
    Everything is ok.

    But right now ia must change mounting of /opt from md1 to md2 becouse i must downgrade zimbra network to open source.
    When i try do this right now i get error it's inposible when zimbra used symlinks

    Enybody can tell me what how to move mouting point from md1 to md2
    md1 have 10GB
    md2 have 2000GB

    I cant move and install downgrade on md1 becouse zimbra need 5gb to reinstall.

    Thx for any help.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Disk Stats. - How do I change target partition?
    By Robert Mortimer in forum Administrators
    Replies: 3
    Last Post: 04-11-2008, 04:40 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
  •