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 05-30-2010, 09:46 AM
Moderator
 
Posts: 1,432
Default optimizing usage of /opt/zimbra/redolog/archive/ and rsyncing backups

So if I understand correctly, when the active redolog in /opt/zimbra/redolog/redo.log gets big enough, it's moved to /opt/zimbra/redolog/archive/

Then when an incremental is run, the contents of /opt/zimbra/redolog/archive/ are moved/copied into the redolog directory inside the current incremental session directory.

Now I'm noticing two things on my system after an incremental.
  • The last redolog in /opt/zimbra/backup/sessions/incr-<date-seq>/redologs/ is still in /opt/zimbra/redolog/archive/
  • They're separate files, you can tell by inspecting their index numbers with ls -i.

So I'm wondering:
  • Why isn't the redolog moved instead of copied?
  • If there's a reason to keep it in both places, why isn't it hardlinked?

Granted, hardlinks can't traverse filesystems, so if /opt/zimbra/backup/ is on different filesystem, a simple ln won't work. But you could instead do
Code:
ln /opt/zimbra/redolog/archive/foo /opt/zimbra/archive/tmp-foo
mv /opt/zimbra/archive/tmp-foo /opt/zimbra/backup/sessions/incr-<date-seq>/redologs/foo
rm /opt/zimbra/archive/foo
Benefit: when backup and /opt/ are on the same filesystem, the incremental is less expensive, takes up a little less space, and (most important) if someone is rsyncing redologs and backups in one command, the rsync will be faster/less bandwidth-intensive.

As things are currently, you should still be able to speed up rsync using some scripting with some combination of --compare-dest, --copy-dest, and/or --link-dest, but that's messier than it ought to be.
__________________
Elliot Wilen
Berkeley, CA

Don't forget to enter your Zimbra version in your forum profile.
Reply With Quote
  #2 (permalink)  
Old 06-06-2010, 12:42 AM
Moderator
 
Posts: 1,432
Default

No answers...other than locating why the redologs are kept in both places : Ajcody-Backup-Restore-Issues - Zimbra :: Wiki. Still not clear why a hardlink isn't used.

So I just filed Bug 47764 - when possible, create hard links instead of copying redologs from archive to incremental backup as an enhancement.
__________________
Elliot Wilen
Berkeley, CA

Don't forget to enter your Zimbra version in your forum profile.
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.