Use this procedure to set up a lock file for the central instance or the failover application server.
Install the latest patch for the sapstart executable, which enables Sun Cluster HA for SAP users to configure a lock file.
Set up the central instance lock file or the failover application server lock file on a cluster file system.
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
New parameter name.
Work directory for the central instance.
Work directory for failover application server.
Lock file name that Sun Cluster HA for SAP uses.
SAP creates the lock file.
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.