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 07-11-2008, 09:57 AM
Trained Alumni
 
Posts: 31
Default Moving /opt/zimbra to another partition.

I need to move /opt/zimbra/ to a larger partition to avoid having to reinstall for more space. I obviously underestimated space.

What is the most efficient way to do this and in the future during upgrading is there anything special I am going to need to do other than edit the install script to reflect the different directory?

Thanks!
__________________
vīdī, vīcī, vēnī
Reply With Quote
  #2 (permalink)  
Old 07-11-2008, 01:38 PM
Starter Member
 
Posts: 1
Default

+1
I ran out of space on / and had to add a seperate iscsi partition. The backup/restore seems like overkill is there an easier way?
Reply With Quote
  #3 (permalink)  
Old 07-11-2008, 02:39 PM
Special Member
 
Posts: 167
Default

If I understand the way Linux handles filesystems correctly; I think you can do this:

  • Add your new disk
  • Create filesystem and format with appropriate filesystem (eg ext3)
  • Create temporary mount point for new disk (eg /mnt/newdisk), and mount
  • Rysnc (to retain permissions) your /opt/zimbra to /mnt/newdisk
  • Modify your /etc/fstab to mount the new disk as /opt/zimbra

Quick HOWTO : Ch27 : Expanding Disk Capacity - Linux Home Networking

Add or Attach New Hard disk to Linux Machine
__________________
Craig Rodway » Flickr | Last.fm | Del.icio.us | Twitter
Reply With Quote
  #4 (permalink)  
Old 07-12-2008, 02:16 AM
Intermediate Member
 
Posts: 19
Default Lessons...

Use lvm and these sort of problems rarely if ever happen. All good linux distro's even allow you to install onto lvm so you can even have your root filesystem, swap and opt as part of an lvm volume group.
Reply With Quote
  #5 (permalink)  
Old 07-12-2008, 03:56 AM
Zimbra Consultant & Moderator
 
Posts: 20,316
Default

Quote:
Originally Posted by bards1888 View Post
Use lvm and these sort of problems rarely if ever happen. All good linux distro's even allow you to install onto lvm so you can even have your root filesystem, swap and opt as part of an lvm volume group.
A How-To in the wiki would be a welcome addition, all community contributions gladly received.
__________________
Regards


Bill
Reply With Quote
  #6 (permalink)  
Old 07-14-2008, 09:59 AM
Elite Member
 
Posts: 376
Default

webman's description would do it. The mv command would do it fine though without permission loss.

Shutdown Zimbra first before moving files or remounting. Also make a backup if you can.

Quote:
mkdir /tempdir
mount /dev/sdx# here /tempdir
mv -R /opt/zimbra/* /tempdir
umount /tempdir
mount /dev/sdx# /opt/zimbra
View mounted drives and available space.
Quote:
mount
df -h

If all looks good and the data is where it should be, restart Zimbra at this point and all should be well.
__________________
Culley
Mail | Dell 2950III | 2x Quad Core 5420 | 8gb RAM | 6x 146gb SAS RAID 0+1 | Red Hat 5.3 | Zimbra 6.0.10 Network Edition
Test | VMware ESXi Whitebox | Phenom II Black 3.2ghz | 12gb RAM | 6x 1tb SATA RAID 0+1 | CentOS 5.4 | FOSS, Not in use now
Reply With Quote
  #7 (permalink)  
Old 07-14-2008, 11:32 AM
Moderator
 
Posts: 441
Default

Personally, I would 'cp -a' instead of 'mv -R', then delete the old install after I was sure the system was functioning properly. I normally assume there will be no problems with a mv command, but I like to be extra cautious with something I can get yelled at for.
Reply With Quote
  #8 (permalink)  
Old 07-14-2008, 03:38 PM
Elite Member
 
Posts: 376
Default

Yeah, that would be a good idea. I'm paranoid about running backups and I can destroy all the data I want, but copy rather than move works prefectly.
__________________
Culley
Mail | Dell 2950III | 2x Quad Core 5420 | 8gb RAM | 6x 146gb SAS RAID 0+1 | Red Hat 5.3 | Zimbra 6.0.10 Network Edition
Test | VMware ESXi Whitebox | Phenom II Black 3.2ghz | 12gb RAM | 6x 1tb SATA RAID 0+1 | CentOS 5.4 | FOSS, Not in use now
Reply With Quote
  #9 (permalink)  
Old 07-14-2008, 04:37 PM
y@w y@w is offline
Moderator
 
Posts: 658
Default

I would use rsync to transfer the data as webman mentioned, especially when you're looking at a large amount of data. Hopefully nothing would stop your copy, but if it does, rsync would have a faster recovery time.
__________________
What a n00b!
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.