21.2 Migrating DHCP to OES 11 SP3

In this section, the source server refers to an OES 2 SP3, or OES 11 server and the target server refers to an OES 11 SP3 server.

21.2.1 Planning Your Migration

Make sure your setup addresses the following requirements before you migrate DHCP to the new platform.

Requirements

  • An eDirectory integrated DHCP server installed and configured on the target machine. This takes care of the schema extension on the target server tree and the creation of the dhcpLocator and DHCPGroup objects.

  • If the target server is in a different subnet, ensure that you create a subnet in the target server before migration.

Supported Platforms

The following platforms are valid source platforms for the migration process:

  • OES 2 SP3

  • OES 11

  • OES 11 SP1

  • OES 11 SP2

  • OES 11 SP3

21.2.2 Migration Scenarios

To migrate DHCP to the new platform, you can use the Java Management Console. During migration, the configuration details as well as the data are migrated to the destination platform.

NOTE:To enable DHCP to autostart after a successful migration, execute the chkconfig -a dhcpd command on the source server.

Migrating Servers within the Same eDirectory Tree

  1. Launch Java Console.

  2. Select the service container object that you want to migrate to the target DHCP server.

  3. From the Default DHCP Server list in the General Tab, select the DHCP server object of the target machine.

  4. Click Save.

  5. Migrate the DHCP leases from OES 2 SPx to OES 11. To migrate the DHCP leases, copy the /var/lib/dhcp/db/dhcpd.leases file from the source OES 2 server to the corresponding location in the OES 11 server.

  6. Perform Transfer ID. For more information, see Section IV, Transfer ID Migration.

  7. After this migration, proceed with performing the service-specific proxy migration. For more information, see Migrating Proxy Users to OES 11 SP3.

Migrating Servers Across eDirectory Trees

To migrate servers across eDirectory trees, you need to export the source server’s DHCP configuration and import the DHCP configuration to the target server.

The import and export operation is used to transfer the DHCP service configuration from files into eDirectory or from eDirectory to a text file in a dhcpd.conf format respectively. Only Linux DHCP configuration files should be used to import or export the DHCP configuration.

NOTE:Before importing a DHCP configuration file, check the syntax of the file with the rcnovell-dhcpd check-syntax command. The command reads /etc/dhcpd.conf and checks the syntax.

Exporting the DHCP Configuration

The file is exported in a dhcpd.conf format. These files can be imported anywhere and can also be imported back to eDirectory by using the DNS/DHCP Java-based Management Console Utility.

  1. Click the DHCP (OES Linux) tab of the Java Management Console.

  2. Click Export DHCP Database on the toolbar to open the Export - DHCP window.

  3. Specify the name of a destination file or browse to select a file name from the dialog box, then click Next.

  4. Select the services by using the Export DHCP - Service List window.

  5. Click Export to store your information in a file.

  6. Click Finish to complete the export.

    If the export program encounters any error, the Details button is enabled in the error window. Click Details to view the error details.

Importing the DHCP Configuration

The configuration file to import should be in DHCP V3 format. Importing the Linux DHCP configuration file overwrites the associated DHCP server's settings.

To import the DHCP files:

  1. Click the DHCP (OES Linux) tab of the Java Management Console.

  2. Click Import DHCP Database on the toolbar.

  3. Click Browse to select or specify the path for the DHCP database file.

  4. Click Next to open the Import - File Input window.

  5. Specify the service name in the Service Name text box.

  6. In the Select NDS Context text box, browse to select or enter the context where the service is to be created.

  7. (Optional) Select a Default DHCP Server from the drop-down list.

  8. Click Import.

  9. Click Finish to complete the import operation.

If the import program encounters any error, the Details button is enabled in the error window. Click Details to view the error details.

Migrating DHCP Leases from OES 2 SP3 or OES 11 to OES 11 SP3

To migrate the DHCP leases from OES 2 SP3 or OES 11 to OES 11 SP3, copy the /var/lib/dhcp/db/dhcpd.leases file from the source OES 2 server to the corresponding location in the OES 11 server.

21.2.3 Post-Migration Procedure

  1. In the /etc/dhcpd.conf file, change ldap-base-dn to reflect the context of the migrated DHCP Server and change ldap-dhcp-server-cn to reflect the name of the migrated DHCP Server.

21.2.4 Verifying the Migration

  1. Check the syntax of the dhcp configuration file with the rcnovell-dhcpd check-syntax command. The command reads /etc/dhcpd.conf and checks the syntax.

  2. Start the target OES 11 server dhcp server using the following command:

    rcnovell-dhcpd start

  3. Verify the /var/log/dhcp-ldap-startup.log file to check the dhcp configuration of the migrated server.