Sun Java System Reference Configuration Series: Portal Service on Application Server Cluster

ProcedureTo Verify Directory Service Load Balancing

This procedure assumes that ds-inst-ds1 on ds1 and ds-inst-ds2 on ds2 are running.

  1. Shut down the Directory Server instance on ds1.

    # /opt/SUNWdsee/ds6/bin/dsadm stop /var/opt/SUNWdsee/ds-inst-ds1

  2. Verify that you can access the Directory Server instance on ds2 through the load balancer.

    Run the following command from a computer that can access ds.pstest.com.

    # ldapsearch -b "dc=pstest,dc=com" -h ds.pstest.com -p 389 -D "cn=Directory Manager" "objectClass=*"

    When prompted, type the directory-manager-password.

    A list of object classes currently in the directory is displayed.

  3. Start the Directory Server instance on ds1.

    # /opt/SUNWdsee/ds6/bin/dsadm start /var/opt/SUNWdsee/ds-inst-ds1

  4. Shut down the Directory Server instance on ds2.

    # /opt/SUNWdsee/ds6/bin/dsadm stop /var/opt/SUNWdsee/ds-inst-ds2

  5. Verify that you can access the Directory Server instance on ds1 through the load balancer.

    Run the following command from a computer that can access ds.pstest.com.

    # ldapsearch -b "dc=pstest,dc=com" -h ds.pstest.com -p 389 —D "cn=Directory Manager" "objectClass=*"

    When prompted, type the directory-manager-password.

    A list of object classes currently in the directory is displayed.