How to move the existing data on the secondary volume to the new storage path

Revision as of 20:16, 11 July 2015 by Jorge de la Cruz (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

How to move the existing data on the secondary volume to the new storage path

   KB 21938        Last updated on 2015-07-11  




0.00
(0 votes)

Purpose

How to move the existing data on the secondary volume to the new storage path.

Resolution

Follow the next steps:

  • Create the secondary path
mkdir /opt/zimbra/secondary
  • Assign it the proper permissions
chown zimbra:zimbra
  • Mount new partition to /opt/zimbra/secondary - confirm permissions in directory and zimbra read/write
  • Rsync data from /other/secondary /opt/zimbra/secondary
  • Schedule a short downtime window .
  • Shutdown ZCS - confirm zimbra crontab won't be kicking off a job during downtime

window

  • Do a final rsync
  • Move the data between the secondary and the old one:
mv /other/secondary /other/secondary-old
  • Decide to either modify the zmvolume directory path for message2 volume to be /opt/zimbra/secondary, or remount and update /etc/fstab to have the 'new' partition

that was mounted at /opt/zimbra/secondary to now be /other/secondary

  • Start zimbra, confirm HSM works and no missing blob messages happen.

If you don't want any downtime, you could try using zmsoap 's MoveBlobsRequest - but there might be a bug in that approach. We have a case right now where not all the blobs moved and we're trying to thrash thru why that is.

Additional Content

  • No related content.
Verified Against: Zimbra Collaboration 8.6, 8.5, 8.0 Date Created: 05/05/2015
Article ID: https://wiki.zimbra.com/index.php?title=How_to_move_the_existing_data_on_the_secondary_volume_to_the_new_storage_path Date Modified: 2015-07-11



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 Copyeditor Last edit by Jorge de la Cruz
Jump to: navigation, search