Utility to display a Summary of configured Resource Groups and Resources
The Open HA Cluster utilities available from this project page are released under the Common Development and Distribution License (CDDL) Version 1.0.
The cluster-RG-RS-summary shell script displays a summary for the cluster configuration (you can browse the source online, presented through OpenGrok):
- Name of the Cluster
- Name and state of the configured Cluster Nodes and Zones
- Name of the Resource Group
- Status of the Resource Group on the configured Nodes
- Resource Group Dependencies (if not empty)
- Resource Group Affinities (if not empty)
- For each Resource within the Resource Group:
- Resource Name
- Resource Type
- on_off_switch of the Resource for each configured Node
- status of the Resource for each configured Node
- Resource dependencies (if not empty)
Example output:
# ./cluster-RG-RS-summary.ksh
Cluster : evans
Localnode : pevans1 = up
Remotenode : pevans3 = up
Remotenode : pevans2 = up
Zone : pevans3:lxzone = down
Zone : pevans3:nativezone = up
zone-rg status : pevans2 = offline
zone-rg status : pevans3 = online
depend (implicit) : true (depend on all SUNW.LogicalHostname resources)
\
\
nativezone-rs
| \
| depend : zone-hasp-rs
| type : SUNW.gds:6
| on_off_switch : enabled (pevans2)
| status : offline (pevans2)
| on_off_switch : enabled (pevans3)
| status : online (pevans3)
|
lxzone-rs
| \
| depend : zone-hasp-rs
| type : SUNW.gds:6
| on_off_switch : enabled (pevans2)
| status : offline (pevans2)
| on_off_switch : enabled (pevans3)
| status : online (pevans3)
|
zone-hasp-rs
| \
| type : SUNW.HAStoragePlus:4
| on_off_switch : enabled (pevans2)
| status : offline (pevans2)
| on_off_switch : enabled (pevans3)
| status : online (pevans3)
|
*
sge-rg status : pevans1 = online
sge-rg status : pevans2 = offline
depend (implicit) : true (depend on all SUNW.LogicalHostname resources)
\
\
sge_schedd-rs
| \
| depend : sge_qmaster-rs sge-lh-rs
| type : SUNW.gds:6
| on_off_switch : enabled (pevans1)
| status : online (pevans1)
| on_off_switch : enabled (pevans2)
| status : offline (pevans2)
|
sge_qmaster-rs
| \
| depend : sge-hasp-rs sge-lh-rs
| type : SUNW.gds:6
| on_off_switch : enabled (pevans1)
| status : online (pevans1)
| on_off_switch : enabled (pevans2)
| status : offline (pevans2)
|
sge-nfs-rs
| \
| depend : sge-hasp-rs
| type : SUNW.nfs:3.2
| on_off_switch : enabled (pevans1)
| status : online (pevans1)
| on_off_switch : enabled (pevans2)
| status : offline (pevans2)
|
sge-lh-rs
| \
| type : SUNW.LogicalHostname:2
| on_off_switch : enabled (pevans1)
| status : online (pevans1)
| on_off_switch : enabled (pevans2)
| status : offline (pevans2)
|
sge-hasp-rs
| \
| type : SUNW.HAStoragePlus:4
| on_off_switch : enabled (pevans1)
| status : online (pevans1)
| on_off_switch : enabled (pevans2)
| status : offline (pevans2)
|
*
on 2009/10/26 12:14