How to move data between volumes without HSM
How to move data between volumes without HSM
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