Monday, June 25, 2018

Cluster log information

Port Function

Port Function 

a   gab driver
b   I/O fencing (designed to guarantee data integrity)
d   ODM (Oracle Disk Manager)
f   CFS (Cluster File System)
h   VCS (VERITAS Cluster Server: high availability daemon)
o   VCSMM driver (kernel module needed for Oracle and VCS interface)
q   QuickLog daemon
v   CVM (Cluster Volume Manager)
w   vxconfigd (module for cvm)

===============================================================

Cluster Log Files:
---------------------
Log Directory                 /var/VRTSvcs/log
primary log file (engine log file)     /var/VRTSvcs/log/engine_A.log
==============================================================================================================
Dynamic Configuration
---------------------
Change configuration to read/write mode     haconf -makerw
Change configuration to read-only mode         haconf -dump -makero
Check what mode cluster is running in         haclus -display |grep -i 'readonly'

0 = write mode
1 = read only mode

Check the configuration file             hacf -verify /etc/VRTSvcs/conf/config
Note: you can point to any directory as long as it has main.cf and types.cf

convert a main.cf file into cluster commands     hacf -cftocmd /etc/VRTSvcs/conf/config -dest /tmp
convert a command file into a main.cf file     hacf -cmdtocf /tmp -dest /etc/VRTSvcs/conf/config
========================================================
Resource Operations
--------------------

Online a resource    
hares -online <resource> -sys [sys]

Offline a resource
hares -offline <resource> -sys  [-sys]

Display the state of a resource( offline, online, etc)    
hares -state

Display the parameters of a resource    
hares -display <resource>

Offline a resource and propagate the command to its children    
hares -offprop <resource> -sys <sys>

Cause a resource agent to immediately monitor the resource
hares -probe <resource> -sys <sys>

Clearing a resource (automatically initiates the onlining)
hares -clear <resource> [-sys]
====================================================================

Gab and LLT information


To view the LLT information:

#lltstat -n
To view the active llt information
#lltstat -nvv active

To view the llt port information:
#lltstat -p

To view the llt configuration information:
# lltstat -c

LLT configuration files
/etc/llthosts    -- This file contains node id with the node information
/etc/llttab - This file contains the information about the private and public heartbeat nic information

Lists information about each configured LLT link
lltstat -l   

List all MAC addresses in the cluster
lltconfig -a list

Stop the LLT running
lltconfig -U

Start the LLT    
lltconfig -c

Verify that GAB is operating    
gabconfig -a

Note: port a indicates that GAB is communicating, port h indicates that VCS is started

Stop GAB running
gabconfig -U

Start the GAB    
gabconfig -c -n <number of nodes>

Override the seed values in the gabtab file
gabconfig -c -x

configuratio files:
/etc/gabtab:
This file contains the information which willbe used by the gab driver. node count information is stored on this file.