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
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.
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
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.
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.
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
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
Multiple LDAP Servers
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)
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
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"
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"
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"
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"
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"
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"