How to move data between volumes without HSM: Difference between revisions
(Created page with "{{BC|Certified}} __FORCETOC__ <div class="col-md-12 ibox-content"> =How to move data between volumes without HSM= {{KB|{{ZC}}|{{ZCS 8.6}}|{{ZCS 8.5}}|{{ZCS 8.0}}|}} ==Purpose...") |
|||
Line 14: | Line 14: | ||
$ '''zmvolume -l''' | $ '''zmvolume -l''' | ||
Volume id: 1 | Volume '''id''': 1 | ||
name: message1 | name: message1 | ||
type: primaryMessage | type: primaryMessage | ||
Line 21: | Line 21: | ||
current: true | current: true | ||
- | - | ||
Volume id: 2 | Volume '''id''': 2 | ||
name: index1 | name: index1 | ||
type: index | type: index | ||
Line 28: | Line 28: | ||
current: true | current: true | ||
- | - | ||
Volume id: 3 | Volume '''id''': 3 | ||
name: message2 | name: message2 | ||
type: primaryMessage | type: primaryMessage |
Latest revision as of 12:08, 31 May 2016
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