| Previous Contents Index Next |
| iPlanet Calendar Server Installation Guide |
Chapter 4 Migrating iPlanet Calendar Server Data
This chapter describes how to migrate calendar data server to iPlanet Calendar Server 5.1:
Migrating From iPlanet Calendar Server 2.x
Migrating From iPlanet Calendar Server 2.x
The ics2migrate migration utility can migrate both iPlanet Calendar Server 2.x calendar data and LDAP user preferences to Calendar Server 5.1.
Migration Requirements
The migration from Calendar Server 2.x to 5.x is a one-way migration. You can migrate data from version 2.x to 5.1, but you cannot migrate version 5.x data to 2.x.
Migration Examples
- 1. Prepare to Migrate
- 2. Migrate the Data
- 3. Check the Migration Results
Migration Requirements
Calendar Server 2.x to 5.x migration requires the following hardware and software:
The source machine has the Calendar Server 2.x data that you plan to migrate.
The source machine and destination machine can be different servers or the same server. The following platforms are supported:The target machine is where the migrated data will be created. This machine must have Calendar Server 5.0 patch 4 (or later) installed.
- ics2migrate.exe. is located in the server-root\cal\bin directory.
What Gets Migrated?
The following tables show how ics2migrate migrates Calendar Server 2.x data and LDAP user preferences.
Table 4-1    Migration of Calendar Server 2.x Data
Calendar Server 2.x Data
Migration Results
Table 4-2    Migration of LDAP User Preferences
Calendar Server 2.x Attribute
Calendar Server 5.x Attribute
Before you migrate, backup both your Calendar Server 2.x and 5.x calendar databases.
On the target machine where Calendar Server is installed, log in as a user who has administration rights to the system:
On Solaris machines, log in as (or become) root, or as the user and group under which the Calendar Server is running that was specified during installation (such as icsuser and icsgroup).
Locate the Calendar Server 2.x caldb.conf file. The default directory for this file depends on your platform:On Windows NT machines, log in as an administrator with full administrator privileges.
Change the first line in the caldb.conf file as follows:
To ensure data integrity, stop all services for both Calendar Server 2.x and 5.x. For more information, see the respective iPlanet Calendar Server Administrator's Guide on the iPlanet documentation web site.
Change to the server-root\cal\bin directory where ics2migrate.exe is located.
To migrate both the Calendar Server 2.x database and LDAP user preferences
ics2migrate [-q] [-s def|none] [-f def|none] [-l min|max] source target
To migrate only the Calendar Server 2.x database
ics2migrate [-q] [-m db] [-s def|none] [-f def|none] [-l min|max] source target
To migrate only the LDAP user preferences
Note To display the syntax, type ics2migrate without any options.
Table 4-3 describes the ics2migrate options.
Check the Migration Results
After you have finished the migration, check the results:
Check the ics2migrate.log file in the server-root\cal\bin directory for the following messages (depending on your migration choices):
If you suspect a possible database corruption, run the csdb utility check command.
- Database migration successfully completed
LDAP user preference migration successfully completed
- The check command scans a calendar database for corruption. If the check command finds an inconsistency that cannot be resolved, it reports the situation in its output. If necessary, you can then run the csdb utility rebuild command to rebuild the calendar database (caldb).
- For documentation about the csdb utility check and rebuild commands, see the iPlanet Calendar Server Administration Guide on the iPlanet documentation web site.
Migrate Both Calendar Database and LDAP User Information
Migrate both the LDAP user information and the Calendar Server 2.x database. The Calendar Server 2.x database is stored in the /var/opt/SUNWicsrv/2x_db directory and the 5.1 database is in the /var/opt/SUNWics5/50_db directory.Grant scheduling and free/busy access to all calendars and log minimal migration statistics in a log file named ics2migrate.log in the server-root\cal\bin directory.
ics2migrate /var/opt/SUNWicsrv/2x_db /var/opt/SUNWics5/50_db -l min
Migrate in Quiet Mode
Perform the same migration as the previous example, except operate in quiet mode. ics2migrate does not display migration statistics on the console or generate a log file.ics2migrate -q /var/opt/SUNWicsrv/2x_db /var/opt/SUNWics5/50_db
Migrate Only the Calendar Database
Migrate only the 2.x calendar database stored in the 2x_db directory (relative to the current directory) and create a 5.1 database in the /var/opt/SUNWics5/50_db directory.ics2migrate -m db 2x_db /var/opt/SUNWics5/50_db
Migrate Only LDAP User Information
Migrate only the Calendar Server 2.x LDAP user information to version 5.1 format.
Migrate Both Calendar Database and LDAP User Information
Migrate both LDAP and calendar database information in the specified directories. Grant scheduling access only to each user's default calendar, deny free/busy access to all calendars on the server, and do not generate statistical information to a log file.ics2migrate -s def -f none 2x_db 50_db
Migrating From Netscape Calendar Server 4.x
This section describes how to migrate Netscape Calendar Server 4.x calendar data to iPlanet Calendar Server using the ncs4migrate migration utility.Netscape Calendar Server 4.x calendars are also known as CS&T calendars for the developer Corporate Software & Technologies Int. Inc.
This section includes the following information:
Migration Requirements
- 1. Backup the Calendar Server 5.0 Database
- 2. Prepare to Migrate
- 3. Migrate the Data
- Migrating Data From Multiple Nodes
- Checking the Migration Log File
- 4. Check the Migrated Data
Migration Requirements
The migration requires the following hardware and software:
Source machine This machine (or machines) has the Netscape Calendar Server 4.0 (or later) data that you plan to migrate.
The source machine and target machine can be different servers or the same server. The following platforms are supported:Target machine This machine has the Calendar Server 5.0 database that you plan to migrate to. It should be running Calendar Server 5.0 Patch 4 (or newer).
What Gets Migrated?
The following table shows how ncs4migrate migrates Netscape Calendar Server data to Calendar Server 5.0.
Backup the Calendar Server 5.0 Database
Before you migrate, iPlanet recommends that you perform these steps to ensure the integrity of your calendar database:
Backup your calendar database using the csbackup utility (or another backup utility).
Run the csdb utility check command on your calendar database to check for any database corruption. If the check command detects any corruption, run the csdb utility rebuild command to rebuild the database.
- For information about csbackup, see the iPlanet Calendar Server Administration Guide on the iPlanet documentation web site.
- For documentation about the csdb and csbackup utilities, see the iPlanet Calendar Server Administration Guide on the iPlanet documentation web site.
Prepare to Migrate
Before you run the ncs4migrate utility, perform these steps on the target machine:
Log in as (or become) root or a user who has administrator rights to the system.
You are now ready to migrate the Netscape Calendar Server 4.0 data.Change to the server-root\cal\bin directory.
Create a text file named ncs4dirpaths.dat and specify the fully qualified directory path to the Netscape Calendar Server 4.0 database. For example:
If you plan to migrate selected users, create a user filter file named ncs4userfilter.dat in the same server-root\cal\bin directory. ncs4userfilter.dat is a text file that specifies the users you want to migrate. Each line identifies a user in either of the following formats:
- /apps/ncs/calendar/unison/db/nodes/N0/perm
- To locate the directory that contains the Netscape Calendar Server 4.0 database, search for the unison.dbd file.
- If necessary, fulfill any requirements to allow ncs4migrate to access the node and read the directory where the Netscape Calendar Server 4.0 database is located.
Note Do not use variables such as $CAL_HOME in the pathname. Variables are not be resolved during migration.
- For information about creating an ncs4dirpaths.dat file for data on multiple nodes, see Migrating Data From Multiple Nodes.
node-number:user id in Netscape Calendar Server calendar system (nscalxitemid attribute)
Make sure that the LDAP server is running.
- For example, several entries in a ncs4userfilter.dat file might be:
- caluser1
caluser2
10000:00256
10000:00257
- You can use both formats in the same ncs4userfilter.dat file.
To prevent updates to the calendar database during the migration, stop the iPlanet Calendar Server. The Netscape Calendar Server, however, can be either running or stopped.
Migrate the Data
On the target machine, perform these steps:
While logged in as root or a user who has administrator rights to the system, change to the server-root\cal\bin directory (if necessary)
Type ncs4migrate on the command line.
From the ncs4migrate menu, specify the S option to migrate all users. Or, if you are migrating specific users in a user filter file (ncs4userfilter.dat), specify the O option.
- The ncs4migrate utility then displays its welcome menu with the options shown in Table 5:
Monitor the migration log file to check the migration status. See Checking the Migration Log File for more information.
After the migration is finished, check the migrated calendar database as described in Check the Migrated Data.
Migrating Data From Multiple Nodes
To migrate Netscape Calendar Server 4.0 data from multiple nodes, perform these steps on the target machine:
While logged in as root or a user who has administrator rights to the system, copy the Netscape Calendar Server 4.0 database directory from each node to the machine where you plan to run ncs4migrate. (Each Netscape Calendar Server 4.0 directory should contain a unison.dbd file.)
Change to the server-root\cal\bin directory.
- You can also migrate the Netscape Calendar Server 4.0 data directly from each node; however, you must first fulfill any requirements to allow ncs4migrate to access the Netscape Calendar Server 4.0 data on the other nodes.
In the ncs4dirpaths.dat file, specify a directory pathname for data from all nodes. For example, the following ncs4dirpaths.dat file incudes directory paths for three nodes:
To run the migration utility, type ncs4migrate on the command line.
- /apps/ncs/calendar/unison/db/nodes/N0/perm
/apps/ncs/calendar/unison/db/nodes/N1/perm
/apps/ncs/calendar/unison/db/nodes/N2/perm
From the ncs4migrate menu, specify the S option to migrate all users. Or, if you are migrating specific users in a user filter file (ncs4userfilter.dat), specify the O option.
Monitor the migration log file to check the migration status. See Checking the Migration Log File for more information.
After the migration is finished, check the migrated calendar database, as described in Check the Migrated Data.
Checking the Migration Log File
The ncs4migrate utility generates a log file with the following name in the directory where the binary is located (default is server-root\cal\bin):ncs4migrate_yyyymmdd-hhmmss.log
where yyyymmdd-hhmmss is a timestamp that indicates when the migration started.
If the ncs4migrate utility is taking a long time to run, check that the log file is increasing in size as an indication that the utility is still running.
Note To prevent the log file from becoming too large, consider omitting the ncs4migrate verbose (V) option.
Check the Migrated Data
After the migration is finished, perform these steps on the target machine:
Run the csdb utility check command to scan the calendar database to determine if any corruption has occurred. If the check command detects any corruption, run the csdb utility rebuild command to rebuild the database.
If necessary, restart the Calendar Server.
- For documentation about the csdb utility check and rebuild commands, see the iPlanet Calendar Server Administration Guide on the iPlanet documentation web site.
- Users can access the migrated calendar database using Calendar Express.
Previous Contents Index Next
Copyright © 2002 Sun Microsystems, Inc. All rights reserved.
Last Updated January 18, 2002