How to move data between volumes without HSM

How to move data between volumes without HSM

   KB 22698        Last updated on 05/31/2016  




0.00
(0 votes)

Purpose

This article explains how to move data from one volume to another without using HSM.

Resolution

1. For this purpose, we need to first find out the volume ids of the volumes that will be included in the process:

$ zmvolume -l 
   Volume id: 1
       name: message1
       type: primaryMessage
       path: /opt/zimbra/store
 compressed: false
    current: true
-
  Volume id: 2
       name: index1
       type: index
       path: /opt/zimbra/index
 compressed: false
    current: true
-
Volume id: 3
       name: message2
       type: primaryMessage
       path: /opt/zimbra/store2
 compressed: false
    current: true


2. From the output we see that the ids are 1, 2 and 3. If you have more volumes their numbers will be different. To move data we are going to use SOAP:

zmsoap -z MoveBlobsRequest @types=all @sourceVolumeIds=3 @destVolumeId=1 query=is:anywhere

The command above will move all data from the message2 to message1 volume. The command is recommended to be run off-working hours.

3. Finally restart Mailboxd:

zmmailboxdctl restart


Verified Against: Zimbra Collaboration 8.6, 8.5, 8.0 Date Created: THE DATE WHEN THE WIKI HAS BEEN CREATED dd/mm/yyyy
Article ID: https://wiki.zimbra.com/index.php?title=How_to_move_data_between_volumes_without_HSM Date Modified: 05/31/2016



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 »


Wiki/KB reviewed by SME1 SME2 COPY EDITOR Last edit by Teodor Vizirov
Jump to: navigation, search