HP-UX HB v13.00 Ch-15 - Serviceguard

HP-UX Handbook Rev 13.00 Page 3 (of 108)
Chapter 15 Serviceguard
October 29, 2013
TABLE OF CONTENTS
Introduction _________________________________________________________________ 5
What is Serviceguard? _____________________________________________________________________ 6
What is a Serviceguard Cluster ______________________________________________________________ 6
Packages _______________________________________________________________________________ 8
Supported versions of Serviceguard and associated features ______________________________________ 9
Failure Management ______________________________________________________________________ 9
Quorum Rules and Cluster Arbitration Device Split-brain prevention ______________________________ 13
Serviceguard commands __________________________________________________________________ 15
Preparation to build a cluster __________________________________________________ 26
Version of Serviceguard installed ___________________________________________________________ 26
Network configuration ___________________________________________________________________ 26
Check for clusters _______________________________________________________________________ 26
LVM preparation ________________________________________________________________________ 27
Fast deployment of a cluster cmpreparecl, cmdeploycl ________________________________________ 28
Manual method to create a cluster - cmquerycl ________________________________________________ 29
Validating a Cluster Configuration - cmcheckconf ______________________________________________ 31
Generation and Distribution of a Cluster Configuration __________________________________________ 33
Adding packages to a cluster_______________________________________________________________ 34
Starting the cluster ______________________________________________________________________ 35
View Cluster Status ______________________________________________________________________ 36
Halting the Cluster ______________________________________________________________________ 37
Joining a node to a running cluster __________________________________________________________ 38
Halting Serviceguard on a node ____________________________________________________________ 38
Starting Packages _______________________________________________________________________ 39
Stopping Packages_______________________________________________________________________ 39
Modifying Package Switching Attributes _____________________________________________________ 39
Reconfiguring a Cluster ___________________________________________________________________ 40
Table: Online/Offline cluster configuration changes ____________________________________________ 40
Updating the arbitration device (cluster lock VG/PV, LUN or Quorum Server) ________________________ 42
Reconfiguring a Halted Cluster _____________________________________________________________ 42
Deleting Nodes from the Configuration While the Cluster is Running _______________________________ 42
Changing the LVM Configuration While the Cluster is Running ____________________________________ 43
Using Serviceguard Commands to Change the LVM Configuration While the Cluster is Running __________ 44
Reconfiguring a Package __________________________________________________________________ 44
Reconfiguring a Package on a Running Cluster _________________________________________________ 44
Reconfiguring a Package on a Halted Cluster __________________________________________________ 45
Adding a Package on a Running Cluster ______________________________________________________ 45
Deleting a Package on a Running Cluster _____________________________________________________ 45
Allowable Package States During Reconfiguration ______________________________________________ 46
Troubleshooting Serviceguard Problems ______________________________________________ 49
General Troubleshooting Commands _________________________________________________ 50
Serviceguard Logs ____________________________________________________________ 51
Debug logging __________________________________________________________________________ 51
Debug logging of cmcld (SG A.11.19 and later) _________________________________________________ 52
Flight Recorder _________________________________________________________________________ 57
Obtaining Flight Recorder Logs manually (SG A.11.15 and later on HPUX) ___________________________ 57