Service manual

Example Registration and Configuration
178 Sun ONE Directory Server Installation and Tuning Guide • June 2003
Example Registration and Configuration
Code Example C-1 shows how you might register and configure the data service
for the cluster illustrated in Figure C-1 on page 173.
Configuring Extension Properties
Extension properties allow you to configure how the cluster software handles the
application software. For example, you can adjust how the cluster determines
whenthe data service must fail over.
Code Example C-1 Registering and Configuring the Data Service
(Create a failover resource group on the node that is online.)
# scrgadm -a -g ds-resource-group-1 -h foo,bar
(Add a logical hostname resource to the resource group.)
# scrgadm -a -L -g ds-resource-group-1 -l ds-1.example.com
(Bring the resource group online.)
# scswitch -Z -g ds-resource-group-1
(Install packages on each node in the cluster.)
(Stop the servers on the node that is online.)
# /usr/sbin/directoryserver stop
# /usr/sbin/mpsadminserver stop
(Register the SUNW.dsldap and SUNW.mps resource types.)
# scrgadm -a -t SUNW.dsldap -f /etc/ds/v5.2/cluster/SUNW.dsldap
# scrgadm -a -t SUNW.mps -f /etc/mps/admin/v5.2/cluster/SUNW.mps
(Create resources for the servers and add them to the resource group.)
# scrgadm -a -j ds-1 -g ds-resource-group-1 \
-t SUNW.dsldap -y Network_resources_used=ds-1.example.com \
-y Port_list=389/tcp \
-x Confdir_list=/global/ds/slapd-ds-1
# scrgadm -a -j as-1 -g ds-resource-group-1 \
-t SUNW.mps -y Network_resources_used=ds-1.example.com \
-y Port_list=5201/tcp \
-x Confdir_list=/global/ds
(Enable the application resources.)
#scswitch-e-jds-1
#scswitch-e-jas-1