Novell Home

My Favorites

Close

Please to see your favorites.

How to recreate clstrlib.conf file for Novell Cluster Services

This document (3147787) is provided subject to the disclaimer at the end of this document.

Environment

Novell Open Enterprise Server 11 (OES 11)
Novell Open Enterprise Server 2 (OES 2)
Novell Open Enterprise Server 1 (OES 1) Support Pack 2 Linux

Situation

There are several reasons you may want to recreate the clstrlib.conf file.
For example:
1. You change the admin password and need to have the clstrlib.conf reflect this change.
2. The LDAP server has changed so you need to use a new IP address.
3. You want to add an additional LDAP server.
4. The file may be corrupt.

Resolution

OES 1
Save the following lines in a python script called /opt/novell/ncs/bin/fixclstrlib.py

import clstrlibss
c = clstrlibss.data()
c.ldapUrl = 'ldaps://' + '151.155.247.116' + ':' + '636'
c.adminDn = 'cn=admin,o=novell'
c.adminPw = 'novell'
c.clusterDn = 'cn=wss-linux-cluster,o=novell'
clstrlibss.save(c)

Edit the information in single quotes to match your cluster setup - double check for accuracy.
Then run "python fixclstrlib.py" which will over-write the current clstrlib.conf file; you should make a backup first.


OES 2 and OES 11
1. Create a text file with configuration information. The following is the content of a sample file. The directives are self-explanatory.

CONFIG_NCS_CLUSTER_DN="cn=cluster.o=novell"
CONFIG_NCS_LDAP_IP="151.155.50.100"
CONFIG_NCS_LDAP_PORT="636"
CONFIG_NCS_ADMIN_DN="cn=admin.o=novell"
CONFIG_NCS_ADMIN_PASSWORD="novell"

2. Run command "/opt/novell/ncs/install/ncs_install.py -l -f configuration_file_name"
3. Delete the configuration file because it has your admin password in clear text.

If you have multiple LDAP servers, the syntax is slightly different. Here is an sample.

CONFIG_NCS_CLUSTER_DN="cn=cluster.o=novell"
CONFIG_NCS_LDAP_INFO="ldaps://151.155.50.100:636,ldaps://151.155.50.101:636"
CONFIG_NCS_ADMIN_DN="cn=admin.o=novell"
CONFIG_NCS_ADMIN_PASSWORD="novell"

Starting in the January 2010 version of Novell Cluster Services we use the local server IP address (from /etc/hosts) as the LDAP server.
The text file should have the following entries

CONFIG_NCS_CLUSTER_DN="cn=cluster.o=novell"
CONFIG_NCS_ADMIN_DN="cn=admin.o=novell"
CONFIG_NCS_ADMIN_PASSWORD="novell"

After running the ncs_install.py command you can manually modify the clstrlib.conf file to point to a different LDAP server.

OES2 SP3
Same steps as in OES2 with the following improvement.
You can now specify the LDAP server using the "CONFIG_NCS_LDAP_INFO" line.
Single LDAP Server
CONFIG_NCS_CLUSTER_DN="cn=cluster.o=novell"
CONFIG_NCS_ADMIN_DN="cn=admin.o=novell"
CONFIG_NCS_ADMIN_PASSWORD="novell"
CONFIG_NCS_LDAP_INFO="ldaps://192.168.1.1:636"

Multiple LDAP Servers
CONFIG_NCS_CLUSTER_DN="cn=cluster.o=novell"
CONFIG_NCS_ADMIN_DN="cn=admin.o=novell"
CONFIG_NCS_ADMIN_PASSWORD="novell"
CONFIG_NCS_LDAP_INFO="ldaps://192.168.1.1:636,ldaps://192.168.1.2:636,ldaps://192.168.1.3:636"

Disclaimer

This Support Knowledgebase provides a valuable tool for NetIQ/Novell/SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:3147787
  • Creation Date:07-MAR-08
  • Modified Date:30-MAY-14
    • NovellOpen Enterprise Server

Did this document solve your problem? Provide Feedback