Secondary server

  1. Create a resource group that contains an SY.ase resource and a SUNW.HAStorage resource for the secondary companion server.

    scrgadm -a -g resource_group -y Nodelist=secondary-node
    

    For example:

    scrgadm -a -g ase_rg2 -y Nodelist=node2
    
  2. Add SUNW.HAStorage to the resource group:

    scrgadm -a -j hastorage_name -g resource_group -t SUNW.HAStorage -x ServicePaths=shared-disk-storage-path
    

    For example:

    scrgadm -a -j PERSONEL1_storage -g ase_rg2 -t SUNW.HAStorage -x ServicePaths=/global/node2_share
    
  3. Add SUNW.LogicalHostname to the resource group:

    scrgadm -a -L -j loghost_resource -g resource_group -L loghostname
    

    For example:

    scrgadm -a -L -j PERSONEL1_lhost -g ase_rg2 -l loghost-node2
    
  4. Add the SY.ase resource:

    scrgadm -a -j ase_resource_name -g resource_group \
    -t SY.ase \
    -x Sybase_home=sybase_home_value \
    -x Environment_file=environment_file_path \
    -x Dataserver_name=dataserver_name_value \
    -x Dataserver_login_file=login_file_path \
    -x RUN_server_file=run_server_file_path
    

    For example:

    scrgadm -a -j PERSONEL1 -g ase_rg2 \
    -t SY.ase \
    -x Sybase_home=/sybase \
    -x Environment_file=/sybase/SYBASE.sh \
    -x Dataserver_name=PERSONEL1 \
    -x Dataserver_login_file=/sybase/ASE-12_5/SC-3_0/etc/ase_login_file \
    -x RUN_server_file=/sybase/ASE-12_5/install/RUN_PERSONEL1
    
  5. Establish resource dependency between SY.ase and SUNW.HAStorage so the SY.ase resource always depends on SUNW.HAStorage resource:

    scrgadm -c -j ase-resource-name -y Resource_dependencies=hastorage-name
    

    For example:

    scrgadm -c -j PERSONEL1 -y Resource_dependencies=PERSONEL1_storage
    
  6. Run SCSwitch command to complete the following tasks:

Use isql to connect to both MONEY1 and PERSONEL1 and test whether both servers are online.