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 lock file for the central instance or the failover application server 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 the central instance or failover application server. This profile is the one that is passed to sapstart as a parameter in the startsap script.
For the central instance, type the following.
sapstart/lockfile =/usr/sap/SAPSID/ \ Service-StringSystem-Number/work/startup_lockfile |
For the failover application server, type the following.
sapstart/lockfile =/usr/sap/SAPSID/ 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.