Authentication Bypass in MailboxImportServlet vulnerability (reminder)
https://blog.zimbra.com/2022/08/authentication-bypass-in-mailboximportservlet-vulnerability/

Restoring with doRestoreBlobs

Forum to discuss, report issues, or provide feedback about Zimbra HSM Plus
rewart01
Posts: 2
Joined: Tue Apr 29, 2014 10:46 am

Restoring with doRestoreBlobs

Postby rewart01 » Thu Sep 15, 2022 12:52 am

Hi all.

I have a question that I seem to be having trouble getting an answer from support on but it seems so stupid simple or at least something has to come up.

We are running Zimbra Network Edition 8.8.15 P33.

The situation is I need to restore the data that was on a HSM volume. we had the main volume id 1 and a HSM S3 volume as volume id 4. This S3 volume is no longer operational. We have been backing up things using the NG Backup to a separate volume, which is fine. So I am reading this article to ensure I know how to do a restore.
https://wiki.zimbra.com/wiki/Zimbra_NG_Modules/DR/Broken_or_corrupted_Volume_(Missing_BLOBs)

The command is seemingly straightforward:
zxsuite backup dorestoreblobs [volume id] dryrun false

But what I cannot get clarity on is, if I am restoring volume ID 4 but need to restore it to volume ID 1, am I specifying 1 or 4 in the command for the volume ID? Since it will no doubt take days to complete, I a) don't want to get it wrong and b) don't wnat to mess up anything further.

I appreciate any assistance you might be able to offer.

Thanks,
Rick


User avatar
L. Mark Stone
Elite member
Elite member
Posts: 2457
Joined: Wed Oct 09, 2013 11:35 am
Location: Portland, Maine, US
ZCS/ZD Version: 8.8.15 Network Edition
Contact:

Re: Restoring with doRestoreBlobs

Postby L. Mark Stone » Thu Sep 15, 2022 7:39 pm

My understanding, which I think comports with https://docs.zextras.com/suite/html/cli ... storeblobs, is that the volume ID you specify is the target volume for the blob restore.

Consider that if you have a lost or damaged volume, when you create a new/replacement volume it will likely have a different ID, so it makes sense that you would want to specify the target volume for the restore. To be 110% safe, why not execute with "dryrun true"? Presumably the log file, even if you cancel the dry run job after an hour or two, will provide confirmation and clarity about the target for the restore.

Hope that helps,
Mark
___________________________________
L. Mark Stone
Mission Critical Email - Zimbra VAR/BSP/Training Partner https://www.missioncriticalemail.com/
Zeta Alliance http://www.zetalliance.org/
User avatar
gabrieles
Advanced member
Advanced member
Posts: 182
Joined: Tue Feb 14, 2017 9:40 am

Re: Restoring with doRestoreBlobs

Postby gabrieles » Fri Sep 16, 2022 7:24 am

It is a very rare method of restore, in these years we had to use it only two times by now.
From what we've seen it's basically an extended blobchk. It scans all the db entries (or a subset related to the specified volume) and for every missing blob it tries to restore from the backup.
Following this logic the volume ID should be the same, we too had to restore them on HSM but we gave the new volume the same ID of the previous.
As suggested by Mark, a dryrun will give you more details.

Return to “Zimbra HSM Plus”

Who is online

Users browsing this forum: No registered users and 3 guests