Results 1 to 2 of 2

Thread: Sorting out blobs after a filesystem restore

Hybrid View

  1. #1
    Join Date
    Jan 2011
    Posts
    23
    Rep Power
    4

    Default Sorting out blobs after a filesystem restore

    users reported NO_SUCH_BLOB errors on WebClient. running a zmblobchk showed many missing msg's. luckily i had a recent backup of the volume and rsynced the two filesystems.

    However, now zmbloblchk shows 'unexpected blobs' for some mailboxes. if i understand this correctly, this means that now i have msg' on the filesystem that i dont have data for in mysql.

    zmblobchk has '--missing-blob-delete-item' option to remove mysql data based on what doesnt exist on disk. But what im looking to do is mv or rm all these blobs that i have on disk after the restore that dont exist on mysql.

    whats a good way to go about clearing up my hsm volume at this point? im hoping its not a manual rm of all the files that show 'unexpected blob'

    thanks!

  2. #2
    Join Date
    Mar 2008
    Location
    Canada
    Posts
    148
    Rep Power
    7

    Default

    Since no one ever answered and I've had the same problem here's what I've done. I searched through endless postings such as Ajcody-Notes-No-Such-Blob - Zimbra :: Wiki and had some very good help on part of the problem but at the end of it I was not able to find a tool or any instructions that I could follow well enough to deal with the leftover blobs.

    My solution was to write a quick & dirty perl script that takes the output from:
    zmblobchk --unexpected-blob-list /tmp/unexpected-blobs.txt start
    then run that through grep:
    grep -v [.]bak /tmp/unexpected-blobs.txt >/tmp/unexpected-blobs-cleaned.txt

    After that, had a perl script search for the "for" and "From:" addresses in each file (some didn't have them) and if it passed a couple checks - I used:
    PHP Code:
    zmlmtpinject -r $toaddress -s $fromaddress $messagepath 
    to resend the messages.

    Most of the messages that had valid emails were resent... some wouldn't send as the recipient was rejected, but in the end the majority of them showed up in the mailboxes.

    I then took a copy of each blob file to an alternate location in case there's a need for further review.

    Where I'm stuck now is how to clean them out of the filesystem... I am not sure if it's safe to delete them. I've tried zmblobchk --missing-blob-delete-item but that doesn't seem to do anything to them.

Similar Threads

  1. How to restore the mail(/opt/zimbra/store)?
    By victorLeong in forum Administrators
    Replies: 11
    Last Post: 04-24-2009, 09:41 PM
  2. Disaster Recovery Restore of Zimbra on Apple OS X
    By k.beeby@albion.co.uk in forum Administrators
    Replies: 2
    Last Post: 03-11-2008, 08:40 AM
  3. Network Edition restore problems??
    By jdell in forum Administrators
    Replies: 0
    Last Post: 10-25-2006, 05:00 PM
  4. restore account to a point in time in the past
    By shanson in forum Administrators
    Replies: 1
    Last Post: 07-24-2006, 05:50 PM
  5. Restore options for OSS version
    By iain in forum Administrators
    Replies: 2
    Last Post: 03-22-2006, 07:38 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
  •