Zimbra Next Generation Modules/DR/Broken or corrupted Volume (Missing BLOBs): Difference between revisions
(Created page with "=Missing BLOBs in ZCS 8.8= {{ZCS 8.8}} {{WIP}} To check for missing blobs on an account, you can do the following<br> Get the user's mailboxID<br> <code><pre> zmprov gmi us...") |
|||
Line 5: | Line 5: | ||
To check for missing blobs on an account, you can do the following<br> | To check for missing blobs on an account, you can do the following<br> | ||
Get the user's mailboxID | ==1.Get the user's mailboxID== | ||
<code><pre> | <code><pre> | ||
Line 17: | Line 17: | ||
</pre></code> | </pre></code> | ||
Now we will check if there are missing blobs for the account | ==2.Now we will check if there are missing blobs for the account== | ||
<code><pre> | <code><pre> | ||
Line 27: | Line 27: | ||
operationId bdbd8112-8c2f-4f8f-bc7b-a82ef5388378 | operationId bdbd8112-8c2f-4f8f-bc7b-a82ef5388378 | ||
server mailstore3.example.com | server mailstore3.example.com | ||
log path | log path /opt/zimbra/log/op_CheckBlobs_bdbd8112-8c2f-4f8f-bc7b-a82ef5388378.log | ||
</pre></code> | </pre></code> | ||
Now search for the word WARN in the CheckBlobs log | ==3.Now search for the word WARN in the CheckBlobs log== | ||
<code><pre> | <code><pre> | ||
grep WARN /opt/zimbra/log/op_CheckBlobs_bdbd8112-8c2f-4f8f-bc7b-a82ef5388378.log | grep WARN /opt/zimbra/log/op_CheckBlobs_bdbd8112-8c2f-4f8f-bc7b-a82ef5388378.log | ||
Line 40: | Line 40: | ||
</pre></code> | </pre></code> | ||
Now, lets restore the missing blob, but first we need the ID of the message volume | ==4.Now, lets restore the missing blob, but first we need the ID of the message volume== | ||
<code><pre> | <code><pre> | ||
zxsuite hsm getAllVolumes | zxsuite hsm getAllVolumes | ||
Line 71: | Line 71: | ||
The output for /opt/zimbra/store is 1<br> | The output for /opt/zimbra/store is 1<br> | ||
Now lets see what will restored. <strong>Keep in mind this is a dry run, nothing is restored yet!</strong> | ==5.Now lets see what will restored. <strong>Keep in mind this is a dry run, nothing is restored yet!</strong>== | ||
<code><pre> | <code><pre> | ||
zxsuite --progress backup dorestoreblobs 1 | zxsuite --progress backup dorestoreblobs 1 | ||
Line 87: | Line 87: | ||
</pre></code> | </pre></code> | ||
When you are ready to restore the blob, run the same dorestoreblobs command again, but this time add the <strong>dryrun false</strong> option | ==6.When you are ready to restore the blob, run the same dorestoreblobs command again, but this time add the <strong>dryrun false</strong> option== | ||
<code><pre> | <code><pre> | ||
zxsuite --progress backup dorestoreblobs 1 dryrun false | zxsuite --progress backup dorestoreblobs 1 dryrun false |
Revision as of 19:54, 22 August 2017
Missing BLOBs in ZCS 8.8
To check for missing blobs on an account, you can do the following
1.Get the user's mailboxID
zmprov gmi user001@example.com
You will see output something like this
mailboxId: 5
quotaUsed: 64498843
2.Now we will check if there are missing blobs for the account
zxsuite hsm docheckblobs start mailbox_ids 5
You will see output something like this
operationId bdbd8112-8c2f-4f8f-bc7b-a82ef5388378
server mailstore3.example.com
log path /opt/zimbra/log/op_CheckBlobs_bdbd8112-8c2f-4f8f-bc7b-a82ef5388378.log
3.Now search for the word WARN in the CheckBlobs log
grep WARN /opt/zimbra/log/op_CheckBlobs_bdbd8112-8c2f-4f8f-bc7b-a82ef5388378.log
if there was a missing BLOB, you would see similar output like this
2017-08-22 15:16:53,877 WARN Missing Blob file: Mailbox id: 5 - Item id: 4610 - Revision: 8720 - Blob path: /opt/zimbra/store/0/5/msg/1/4610-8720.msg - Size: 1859 - Digest: dYV2+dXtH9AUAHH4au1jWquWgCeBCz7XpsYtHza0ofw=
4.Now, lets restore the missing blob, but first we need the ID of the message volume
zxsuite hsm getAllVolumes
Typically, you should see
primaries
id 1
name message1
path /opt/zimbra/store
compressed false
threshold 4096
storeType LOCAL
isCurrent true
volumeType primary
secondaries
indexes
id 2
name index1
path /opt/zimbra/index
compressed false
threshold 4096
storeType LOCAL
isCurrent true
volumeType index
The output for /opt/zimbra/store is 1
5.Now lets see what will restored. Keep in mind this is a dry run, nothing is restored yet!
zxsuite --progress backup dorestoreblobs 1
You will see a lot of verbose output, and at the bottom, you will see results similar to this
Total blobs volume fixed: 0
Total blobs checked: 8156
Total broken blobs: 1
Total restorable blobs: 1
Total unrestorable blobs: 0
Total failed blob restores: 0
Total restored blob: 0
6.When you are ready to restore the blob, run the same dorestoreblobs command again, but this time add the dryrun false option
zxsuite --progress backup dorestoreblobs 1 dryrun false
You will see a lot of verbose output, and now you will see the number of restored blobs
Total blobs volume fixed: 0
Total blobs checked: 8156
Total broken blobs: 1
Total restorable blobs: 1
Total unrestorable blobs: 0
Total failed blob restores: 0
Total restored blob: 1