Move CoS to a different disk (CentOS 6.4/Zimbra 8.0.4 OSE)
Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Move CoS to a different disk (CentOS 6.4/Zimbra 8.0.4 OSE)

  1. #1
    Active Member
    Join Date
    Jun 2013
    Posts
    15

    Move CoS to a different disk (CentOS 6.4/Zimbra 8.0.4 OSE)

    Hi all,

    I have a Zimbra 8.0.4 OSE running on CentOS 6.4 with ZextraSuite 1.8.8 .
    For now I have enough storage for my mailboxes but it gives me a more safe feeling if the COS would be stalled
    on a secondary (larger) disk.

    But I have no clue how I can accomplish this. I mounted the new HD and the CoS (messages and index) are
    placed in the default /opt/zimbra/store & /opt/zimbra/index directory. But what's the best way to do it?
    Do I use rsync to copy the data (messages & index) from LVM1 to disk HD2 (new disk)? Or should I use Zextra PowerStore?
    Should Zimbra be shutdowned or is there a live migartion possible. A wiki or a good procedure-url would be great!
    And off course without losing all the data (e-mails) in the mailboxes

    Any help and/or suggestion(s) are welcome.

    cheers,

    fobe
    Last edited by fobe; 07-21-2013 at 07:36 PM.

  2. #2
    CTO ZeXtras Employee d0s0n's Avatar
    Join Date
    Apr 2011
    Posts
    571
    Hi fobe,

    I think you have misunderstood the meaning of CoS:

    ZCS Administrator's Guide 8.0.4 - Glossary

    Class of Service (COS)
    Describes an object in the ZCS LDAP data schema, which contains settings for things like user mail quotas. Each ZCS account includes a COS, and the account inherits all the settings from the selected COS.
    If you add a new disk to your system you just need to add a new zimbra Store using the powerstore module. You can manage your different storages in hierarchical way defining the best policy for your server, for example you can move all items older than 1 month, on a new compressed Secondary Volume residing on the new disk.

    I hope this can help you.

    D0s0n
    ZeXtras Website # ZeXtras Wiki # ZeXtras Store

    Head of ZeXtras System Administrators

  3. #3
    Active Member
    Join Date
    Jun 2013
    Posts
    15
    Hi D0s0n,

    Thanks for your reply!
    I indeed misunderstood the meaning of CoS. Maybe I was not clear what I'm trying to accomplish.
    Now all e-mails are stored on the main volume ( /opt/zimbra/store & /opt/zimbra/index). I want to move this data to the second disk which is much larger. So I know for sure that I have enough space for all e-mail/calendar items.
    It's not for archiving purposes with a policy that e-mails are stored on the second disk after a particular date but to move all e-mails to the second disk.

    Hopefully I cleard this out

    cheers,

    fobe

  4. #4
    CTO ZeXtras Employee d0s0n's Avatar
    Join Date
    Apr 2011
    Posts
    571
    Hi fobe,

    with zxpowerstore you can safely add a new messagge store (but not the index one) on the new disk and set it as current and then you can start a doVolumeToVolumeMove operation from CLI with this command as zimbra user:
    Code:
    zxsuite powerstore doVolumeToVolumeMove {source_volume_name} {destination_volume_name}
    But I suggest you to reconsider the use of a Secondary compressed volume, in this way you can move almost every items from your first storage and you'll gain up to 40% of space with the compression in the secondary. If one month is not enought you can chose a policy with 1 week, this is not an archiving technique but an optimization of the storage usage.

    D0s0n
    ZeXtras Website # ZeXtras Wiki # ZeXtras Store

    Head of ZeXtras System Administrators

  5. #5
    Active Member
    Join Date
    Jun 2013
    Posts
    15
    Hi D0s0n,

    ok, I'l try to use the HSM Policy-method. I guess that if mails are stored in the Secondary Volume these
    items will still be backed up with ZxBackup. Am I correct?

    I'll try the following:
    1) Go to ZxPowerstore
    2) "Add" at Secondary Volumes
    3) Set the following settings: Volume Name: message2
    Path for the new volume: /hd2/zimbra/message2
    Enable compression (yes)
    Set as current (yes)

    4) Go to HSM Policy "Add" policy
    5) Set "yes" (enable) for the items: Emails, Documents, Tasks & Appointments
    6) Move items older then 1 Months
    7) Schedule the policy

    If I'm not correct, please let me know

    cheers,

    fobe

  6. #6
    CTO ZeXtras Employee d0s0n's Avatar
    Join Date
    Apr 2011
    Posts
    571
    Quote Originally Posted by fobe View Post
    Hi D0s0n,

    ok, I'l try to use the HSM Policy-method. I guess that if mails are stored in the Secondary Volume these
    items will still be backed up with ZxBackup. Am I correct?
    Yes, you are.

    Quote Originally Posted by fobe View Post
    I'll try the following:
    1) Go to ZxPowerstore
    2) "Add" at Secondary Volumes
    3) Set the following settings: Volume Name: message2
    Path for the new volume: /hd2/zimbra/message2
    Enable compression (yes)
    Set as current (yes)

    4) Go to HSM Policy "Add" policy
    5) Set "yes" (enable) for the items: Emails, Documents, Tasks & Appointments
    The appointments are very small items, so we suggest to keep them in the primary store, but It isn't very important.

    Quote Originally Posted by fobe View Post
    6) Move items older then 1 Months
    7) Schedule the policy

    If I'm not correct, please let me know

    cheers,

    fobe
    Just one note: Make sure that the path /hd2/zimbra/message2 is owned by zimbra user (with rw permission) and as last step clic on "Apply Policy".

    To follow the progress of the operation you can do the following CLI commands after clic the Applay Policy button:
    Code:
    zxsuite powerstore getalloperations
    to get the operation ID and
    Code:
    zxsuite powerstore monitor {operation_uuid}
    to view the progress.

    Keep us posted.

    D0s0n
    ZeXtras Website # ZeXtras Wiki # ZeXtras Store

    Head of ZeXtras System Administrators

  7. #7
    Active Member
    Join Date
    Jun 2013
    Posts
    15
    Thanks D0s0n,

    this evening I will do this operation and keep you posted.
    Thank you very much for your help!

    cheers,

    fobe

  8. #8
    Active Member
    Join Date
    Jun 2013
    Posts
    15
    Hi D0s0n,

    I followed the instructions and as far as I can see all went well
    This was the last message I received after running the policy:
    Policy: [chat:before:-30year], [task,message,document:before:-1month]
    Custom Policy: No custom policy set

    - stats -
    moved items: 4855
    linked items: 0
    skipped items: 0
    mbytes read: 545.8 MB
    mbytes written: 295.67 MB
    mbytes saved: 250.13 MB

    The policies will run everyday at 2:00. Another question: Why is the Chat only be archived for older then 30 years? I don't use ZxChat (yet) but it's just curiosity
    Anyway thanks for your support & patience

    cheers,

    fobe

  9. #9
    CTO ZeXtras Employee d0s0n's Avatar
    Join Date
    Apr 2011
    Posts
    571
    Quote Originally Posted by fobe View Post
    Hi D0s0n,

    I followed the instructions and as far as I can see all went well
    This was the last message I received after running the policy:
    Policy: [chat:before:-30year], [task,message,document:before:-1month]
    Custom Policy: No custom policy set

    - stats -
    moved items: 4855
    linked items: 0
    skipped items: 0
    mbytes read: 545.8 MB
    mbytes written: 295.67 MB
    mbytes saved: 250.13 MB
    It seems to be good!

    Quote Originally Posted by fobe View Post
    The policies will run everyday at 2:00.
    You can safely change the hour as you prefer.

    Quote Originally Posted by fobe View Post
    Another question: Why is the Chat only be archived for older then 30 years? I don't use ZxChat (yet) but it's just curiosity
    It's weird, there's no problem but I'm curious: could you please do these CLI commands as zimbra user and post the output?

    Code:
    zxsuite powerstore getHsmPolicy
    zmprov gs `zmhostname` zimbraHsmPolicy
    Quote Originally Posted by fobe View Post
    Anyway thanks for your support & patience

    cheers,

    fobe
    We are here to help you

    D0s0n
    ZeXtras Website # ZeXtras Wiki # ZeXtras Store

    Head of ZeXtras System Administrators

  10. #10
    Active Member
    Join Date
    Jun 2013
    Posts
    15
    Hi D0s0n,

    Here's the output. (I changed the hostname but it's the correct hostname)
    zxsuite powerstore getHsmPolicy
    policies
    chat:before:-30year
    task,message,document:before:-1month

    zmprov gs `zmhostname` zimbraHsmPolicy
    # name hostname.mydomain.com
    zimbraHsmPolicy: chat:before:-30year
    zimbraHsmPolicy: task,message,document:before:-1month

    Just another question: When I leave the Powerstore-menu and go back, the "Enable Policy Application scheduling" is not "marked" anymore. Is the policy still active at the given time? (in my case 1:00)

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •