7.3 Restoring Your System after a Primary Server Failure

This section is applicable only if the PostgreSQL or Oracle datastore is hosted remotely. Before starting the process of converting a secondary server to a primary server, all the secondary servers that don't have a read/write replica of the ZENworks Object Store need to have eDirectory restarted. When it is restarted, eDirectory recognizes that the primary server is lost and no longer tries to communicate with it.

To restart eDirectory:

  1. Type etc/init.d/ndsd restart on each secondary server that doesn't have a read/write replica of eDirectory.

7.3.1 Converting a Secondary Server to a Primary Server

To convert a ZENworks Secondary Server to a ZENworks Primary Server:

  1. Choose a secondary server with a read/write replica to be the new primary server and change the ZENworks Object Store replica on that server to be the master replica by typing ndsrepair -P -Ad.

  2. On all the secondary servers, copy var/opt/novell/zenworks/zfs/pds/security/csr/*.csr to var/opt/novell/zenworks/zfs/pds/security/*.cer.

  3. If required, restore the ZENworks Data Store (for instructions, see ZENworks Object Store and Data Store Maintenance in the Novell ZENworks 7.2 Linux Management Administration Guide).

  4. From within the /opt/novell/convertserver directory, type ./convertserver on the server that is being promoted to the primary server, then follow the prompts. You'll need the administrator password.

  5. If you want to have all the devices that were using the old primary server, change the address of the old primary server name on the DNS server to that of the new primary server.

  6. Restore or re-create any zlmmirror configuration files that existed previously.

  7. Restore the package and bundle directories if they have been backed up.

  8. If you haven't done so already, install ConsoleOne® for Linux.

    1. Download the Linux version of ConsoleOne from www.novell.com/download. You are prompted to enter your Novell account username and password. If you don't have a Novell account, use the “create new account” link.

    2. Save the ConsoleOne compressed file to disk and uncompress it.

    3. Run the cl-install installation script. Install all the snap-ins.

  9. Use ConsoleOne to remove the old primary server object from the ZENworks Object Store.

    1. Start ConsoleOne by running the ConsoleOne executable located under /usr/ConsoleOne/bin.

    2. Authenticate to eDirectory by clicking the tree icon. You are prompted with a login credential dialog box. Log in to your server with the following information:

      • Login name: admin

      • Password: Password from the ZLM install

      • Tree: IP address of a secondary server that holds a read/write replica of the ZENworks Object Store

      • Context: system

      1. Under My World/NDS/.ZONENAME-TREE/system, select your old primary server object. Right-click and select Delete NDS object. Answer Yes.

  10. After a secondary server has been promoted to be the primary server, a read/write replica of the ZENworks Data Store needs to be created on one of the other secondary servers. Use ConsoleOne to create a new read/write eDirectory partition on one of the secondary servers that has no replica.

    1. In the left pane of ConsoleOne, expand NDS. The new zone name is appended with -TREE.

    2. Click the new zone name. Click View from the menu, then click Partition and Replica View. The servers and their replica types are listed.

    3. Select any server. Right-click it and select Add Replica.

    4. Select a server using the browse button. Navigate to the system container, then click the server object that will be your new read/write replica. Click OK.

    5. Click OK twice.