Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
  #1 (permalink)  
Old 05-08-2008, 09:49 PM
riccadus riccadus is offline
Member
 
Join Date: Oct 2006
Posts: 19
riccadus is on a distinguished road
Default Issue with full backup

I'm currently running the network edition of 5.0.1

I've recently noticed that sometimes the scheduled full backup reports success but doesn't seem to back up properly:

Label: full-20080409.150135.256
Type: full
Status: completed
Started: Thu, 2008/04/10 01:01:35.256 EST
Ended: Thu, 2008/04/10 01:01:51.859 EST
Redo log sequence range: 133 .. 133
Number of accounts: 1

The output of a successful full backup looks like this:

Label: full-20080404.150014.043
Type: full
Status: completed
Started: Sat, 2008/04/05 01:00:14.089 EST
Ended: Sat, 2008/04/05 01:33:57.708 EST
Redo log sequence range: 126 .. 126
Number of accounts: 52

Note the "Number of accounts: 1" instead of the expected 52. The size of the backup as reported by a "du" command is also around 500KB for the broken ones instead of the usual ~30GB of the other full backups. The backup process also takes around 15 seconds instead of an expected 30 minutes.

Incremental backups on the other hand always seem to work fine.

The disk is nowhere near full so that can't be an issue.

The backup system is not something you want to be flakey! Are error conditions reported correctly by the backup system?

Any ideas?

Thanks.
Reply With Quote
  #2 (permalink)  
Old 05-08-2008, 10:03 PM
mmorse's Avatar
mmorse mmorse is offline
Zimbra Forums Leader, Employee
 
Join Date: Jan 2007
Location: USA
ZCS Version: NE & OS - in the many flavors of 4.5 & 5.0
Posts: 3,889
mmorse is on a distinguished road
Send a message via AIM to mmorse Send a message via MSN to mmorse Send a message via Yahoo to mmorse Send a message via Skype™ to mmorse
Default

Might be Bug 20785 - Full backup starts everyday
(Not 100% sure as the key to identify that was 0 account fulls and you're 1 account fulls.)

Probably time to upgrade from 5.0.1 to 5.0.5
Of course after a good zmbackup -f -s server.domain.com -a all
A copy of your /opt/zimbra and any linked directories would 'play it safe'.
5.0.5 is Released!
Reply With Quote
  #3 (permalink)  
Old 05-08-2008, 10:21 PM
riccadus riccadus is offline
Member
 
Join Date: Oct 2006
Posts: 19
riccadus is on a distinguished road
Default

Thanks for the response.

I'd rather be sure that this will fix my issue as frankly zimbra upgrades make me nervous. Everytime I upgrade to fix an issue some other major function appears to break (I thought I was going well this time until I noticed this problem).

Sorry for the gripe, but we pay money for this for a reason - and that's because we need the enterprise features, and they need to work! I can get flakiness for free with the open source version.
Reply With Quote
  #4 (permalink)  
Old 05-08-2008, 10:38 PM
mmorse's Avatar
mmorse mmorse is offline
Zimbra Forums Leader, Employee
 
Join Date: Jan 2007
Location: USA
ZCS Version: NE & OS - in the many flavors of 4.5 & 5.0
Posts: 3,889
mmorse is on a distinguished road
Send a message via AIM to mmorse Send a message via MSN to mmorse Send a message via Yahoo to mmorse Send a message via Skype™ to mmorse
Default

Totally understand, let's get some more info: zmbackupquery -v
CLI zmbackupquery Network Edition only - Zimbra :: Wiki
Reply With Quote
  #5 (permalink)  
Old 05-08-2008, 11:50 PM
riccadus riccadus is offline
Member
 
Join Date: Oct 2006
Posts: 19
riccadus is on a distinguished road
Default

Output attached. I've removed the list of email addresses though.

I've just noticed that the issue seems to occur after a new account is added (i.e. the total number of accounts increases).
Attached Files
File Type: txt zmbackupquery output.txt (8.0 KB, 2 views)
Reply With Quote
  #6 (permalink)  
Old 05-09-2008, 01:12 PM
mmorse's Avatar
mmorse mmorse is offline
Zimbra Forums Leader, Employee
 
Join Date: Jan 2007
Location: USA
ZCS Version: NE & OS - in the many flavors of 4.5 & 5.0
Posts: 3,889
mmorse is on a distinguished road
Send a message via AIM to mmorse Send a message via MSN to mmorse Send a message via Yahoo to mmorse Send a message via Skype™ to mmorse
Default

If no full backup for an account is found, the backup process performs a full backup on this account, even if only an incremental backup was specified.

For new users there will be no existing full backup; so you're fine if the accounts listed in the 'random' fulls are the recently added accounts.

By default:
Full backup is scheduled for 1:00 a.m., every Saturday.
Incremental backups are scheduled for 1:00 a.m., Sunday through Friday.
(check your zmschedulebackup -q and crontabs)

Look at the below 2 examples:
-You've simply added a user on the day of the two bold thrusdays below going from 52 (drop 1 & add 1 on thurs?) so back up 52 then to 53 users:
-Italics is a normal full on a saturday.

Type: incremental
Started: Fri, 2008/05/09 01:00:23.409 EST
Accounts: 53

Type: full
Started: Thu, 2008/05/08 01:01:35.338 EST
Accounts: 1


Type: incremental
Started: Thu, 2008/05/08 01:00:19.234 EST
Accounts: 52

----snip---

Type: incremental
Started: Sun, 2008/04/13 01:00:21.593 EST
Accounts 52

Type: full
Started: Sat, 2008/04/12 01:00:13.311 EST
Accounts: 52


Type: incremental
Started: Fri, 2008/04/11 01:00:33.542 EST
Accounts: 52

Type: full
Started: Thu, 2008/04/10 01:01:35.256 EST
Accounts: 1


Type: incremental
Started: Thu, 2008/04/10 01:00:27.421 EST
Accounts: 51

Type: incremental
Status: completed
Started: Wed, 2008/04/09 01:00:20.844 EST
Number: 52

Notice that wed at the end - Did you remove one account then add another on thurs?
Wed: 52
Thurs: drop 1 & add 1? (52)
Fri: 52

Either your getting new workers/doing account maintenance on Thursdays or there's something scheduled on one account somewhere? (Do the 1 account's omitted match?)

Last edited by mmorse : 05-09-2008 at 01:39 PM.
Reply With Quote
  #7 (permalink)  
Old 05-09-2008, 01:43 PM
mmorse's Avatar
mmorse mmorse is offline
Zimbra Forums Leader, Employee
 
Join Date: Jan 2007
Location: USA
ZCS Version: NE & OS - in the many flavors of 4.5 & 5.0
Posts: 3,889
mmorse is on a distinguished road
Send a message via AIM to mmorse Send a message via MSN to mmorse Send a message via Yahoo to mmorse Send a message via Skype™ to mmorse
Default

All your action happens to be on Thursday.

So either your getting new workers and doing account maintenance on Thursdays or there's something else scheduled somewhere? (check your zmschedulebackup -q and crontabs)

I show you going from 52, drop 1 & add 1 on first thurs so back up to 52, then to 53 users.

If those 2 Thursday fulls are recently added accounts then you're fine, assuming their small because they don't have much mail yet.
Reply With Quote
  #8 (permalink)  
Old 05-13-2008, 10:26 PM
riccadus riccadus is offline
Member
 
Join Date: Oct 2006
Posts: 19
riccadus is on a distinguished road
Default

Hmmm... ok thanks for clarifying that this is expected behaviour.

Maybe I only add accounts on Thursday... strange coincidence but the sample size is too small to draw any grand conclusions.

Where this was biting me in the backside was that I was performing offsite backups by copying the most recent full backup onto an external drive. Alas now my life is not so simple...
Reply With Quote
  #9 (permalink)  
Old 05-13-2008, 10:28 PM
mmorse's Avatar
mmorse mmorse is offline
Zimbra Forums Leader, Employee
 
Join Date: Jan 2007
Location: USA
ZCS Version: NE & OS - in the many flavors of 4.5 & 5.0
Posts: 3,889
mmorse is on a distinguished road
Send a message via AIM to mmorse Send a message via MSN to mmorse Send a message via Yahoo to mmorse Send a message via Skype™ to mmorse
Default

Where those 1 account fulls indeed new users?
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Yet Another Backup Script for Community Version heinzg Administrators 72 05-15-2008 03:27 PM
[SOLVED] Backups failing, "unable to read metadata for account" smcgrath1111 Administrators 10 04-10-2008 03:15 PM
Full Backup Issue JamesWheatley Administrators 1 07-05-2007 12:38 PM
Restore single account failed from full backup fmodola Administrators 4 06-20-2007 05:27 AM
copying only last full backup to store offsite riccadus Administrators 0 01-11-2007 12:29 AM


freshmeat.net sourceforge.net The best Java IDE



 

Search Engine Optimization by vBSEO 3.0.0