Question & Answer
Question
How should you stop a DB2 server when DB2 is configured for use with Microsoft Clustering?
Answer
It is recommended to use the Microsoft Cluster Administration user interface to start and stop the DB2 server.
You can also use the Windows command line to start or stop the DB2 server.
With Windows 2008 and earlier version you can use the commands:
To start the DB2 instance:
cluster resource <resourcename> start
To stop the DB2 instance:
cluster resource <resourcename> stop
With Windows 2012 you can use the commands:
To start the DB2 instance:
Start-ClusterResource <resourcename>
To stop the DB2 instance:
Stop-ClusterResource <resourcename>
If you try to stop the DB2 server using the 'db2stop' command then this will be treated as a failure of the resource by the Microsoft Cluster. This failure will then trigger the action configured the Microsoft Cluster configuration, for example, a failover or a restart of the resource.
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21675599