Sun Cluster 3.1 Data Service for SAP

How to Set Up a Lock File for Central Instance or the Failover Application Server

Use this procedure to set up a lock file for the central instance or the failover application server.

  1. Install the latest patch for the sapstart executable, which enables Sun Cluster HA for SAP users to configure a lock file.

  2. Set up the central instance lock file or the failover application server lock file on a cluster file system.

  3. Edit the profile that sapstart uses to start the instance such that you add the new SAP parameter, sapstart/lockfile, for central instance or failover application server. This profile is the one that is passed to sapstart as a parameter in the startsap script.

    For central instance, enter the following.


    sapstart/lockfile =/usr/sap/SID/ Service-StringSystem-Number/work/startup_lockfile
    

    For failover application server, enter the following.


    sapstart/lockfile =/usr/sap/SID/ Dinstance-id/work/startup_lockfile
    
    sapstart/lockfile

    New parameter name.

    /usr/sap/SID/Service-StringSystem-Number/work

    Work directory for the central instance.

    /usr/sap/SID/Dinstance-id/work

    Work directory for failover application server.

    startup_lockfile

    Lock file name that Sun Cluster HA for SAP uses.

    SAP creates the lock file.


    Note –

    You must locate the lock file path on a cluster file system. If you locate the lock file path locally on the nodes, a startup of the same instance from multiple nodes cannot be prevented.