Sun Java System Calendar Server 6 2005Q4 Administration Guide

ProcedureTo Move a User Calendar to a Different Back-End Server

To move a user calendar from one back-end server to another back-end server, follow these steps:

  1. On the original server, disable the calendar user using the csuser utility. For example to disable the user with the user ID and calid bkamdar:

    csuser disable bkamdar
  2. On the original server, export each of the user’s calendars from the calendar database to a file using the csexport utility. For example:

    csexport -c bkamdar calendar bkamdar.ics
  3. Copy the exported calendar (*.ics) files from the original server to the new server.

  4. On the new server, for each of the calendars exported, import the calendar from the file to the calendar database using the csimport utility. For example:

    csimport -c bkamdar calendar bkamdar.ics
  5. On the LDAP directory server, update the calendar owner’s icsDWPHost LDAP attribute to point to the new back-end server using the csattribute utility. To update an attribute, you must first delete the attribute and then add it with the new value. For example, to set the new server name to

    csattribute -a icsDWPHost delete bkamdar
     csattribute -a add bkamdar
  6. On the new server, enable the calendar user using the csuser utility for a user calendar. For example:

    csuser enable bkamdar
  7. On the new server, use the following commands to verify that the attributes are correct and that each calendar has been moved correctly. For example:

    cscal -v -o bkamdar list bkamdar
     csattribute -v list bkamdar
  8. On the original server, delete each calendar you just moved. For example:

    cscal -o bkamdar delete bkamdar

    The -o option deletes all calendars whose primary owner is bkamdar.

    Note –

    If you are using the CLD cache option, after moving a calendar to a different back-end server, you should clear the CLD cache to remove the server names. An out-of-date entry in the CLD cache can prevent a front-end server from finding a calendar after it has been moved. To clear the CLD cache, follow these steps:

    • Stop Calendar Server.

    • Remove all files in the /var/opt/SUNWics5/csdb/cld_cache directory, but do not remove the cld_cache directory itself.

    • Restart Calendar Server.