Zimbra NG Modules/Zimbra NG HSM/doMoveBlobs




Zimbra NG HSM - doMoveBlobs

The doMoveBlobs operation of Zimbra NG HSM

The doMoveBlobs is the heart of the Zimbra NG HSM Modules.

It's duty is to move items between the Current Primary Store and the Current Secondary Store according to the proper HSM policy.

The move is performed by a transactional algorythm, so should an error occour during one of the steps of the operation a rollback would take place and no change will be made to the data.

Once Zimbra NG HSM identifies the items to be moved, the following steps are performed:

  • Create a copy of the Blob to the Current Secondary Store.
  • Update the Zimbra Database in order to notify Zimbra of the new position of the item.
  • Delete the original Blob from the Current Primary Store.

What will be moved

Basically, every item that complies to the specified HSM policy.

Example:

The following policy

message,document:before:-20day
message:before:-10day has:attachment

will move all emails and documents older than 20 days along with all emails older than 10 days and containing an attachment.

Policy order

All conditions for a policy are executed in the exact order they are specified. Zimbra NG HSM will loop on all items in the Current Primary Store and apply each separate condition before starting the next one.

This mean that the following policies

message,document:before:-20day
message:before:-10day has:attachment
message:before:-10day has:attachment
message,document:before:-20day

applied daily on a sample server that sends/receives a total of 1000 emails per day, 100 of which containing one or more attachments, will have the same final result while the execution time will probably be slightly higher (or much higer, depending on the number and size of the emails in the server).

This is because in the first policy the first condition (message,document:before:-20day) will loop on all items, move many of them to the Current Secondary Store, leaving less items for the second condition to loop on.

Viceversa, having the "message:before:-10day has:attachment" as the first condition will leave more items for the second condition to loop on.


This is just an example and does not apply to all cases, but gives an idea on the need to carefully plan your HSM policy.

Executing the doMoveBlobs operation (a.k.a. Applying the HSM policy)

"Applying a policy" means running the "doMoveBlobs" operation in order to move items between the Primary and Secondary store according to the defined policy.

Zimbra NG HSM gives you 3 different options to do so:

  • via the Zimbra NG Modules Administration Zimlet
  • via the Zimbra NG Modules CLI
  • through Scheduling

Apply the HSM Policy via the Zimbra NG Modules Administration Zimlet

In order to apply the HSM Policy via the Zimbra NG Modules Administration Zimlet:

  • Log into the Zimbra Administration Console
  • Click the "Zimbra NG HSM" entry on the Zimbra NG Modules Administration Zimlet
  • Click the "Apply Policy" button

Apply the HSM Policy via the Zimbra NG Modules CLI

In order to apply the HSM Policy via the Zimbra NG Modules CLI, run the following command as the 'zimbra' user:

 zxsuite powerstore doMoveBlobs

Apply the HSM Policy through Scheduling

In order to schedule a daily execution of the "doMoveBlobs" operation:

  • Log into the Zimbra Administration Console
  • Click the "Zimbra NG HSM" entry on the Zimbra NG Modules Administration Zimlet
  • Enable the scheduling by selecting the "Enable Policy Application scheduling" button
  • Select the hour to run the operation under "Policy Application scheduled for:"

doMoveBlobs Stats and Info

Informations about disk space savings, operation performances and more are available by clicking the "Stats" button under the "Secondary Volumes" list in the Zimbra NG HSM tab of the Zimbra NG Modules Administration Zimlet.


Zimbra NG Modules

zimbra-logo-color.png

Latest Version: 8.8

Zimbra NG Modules Resources

Here you can find useful resources for your Zimbra NG Modules



Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »

Jump to: navigation, search