repDiskState

The repDiskState event producer monitors for repository disks.

Overview
The repDiskState event producer resides under the disk directory and monitors for repository disk. This event producer is available only when the system is part of a cluster. This event is generated when a repository disk goes down or comes up.
Capabilities
AHAFS_THRESHOLD_STATE
AHAFS_REMOTE_EVENT_ENABLED
AHAFS_CALLBACK_INTRCNTX
Return codes
The repDiskState returns 0 as the return code. Only if the cluster is removed then AHAFS_CLUSTER_REMOVE (-1) is returned.
Event producer message
This event producer passes REP_UP and REP_DOWN messages as part of its event data in the EVENT_TYPE field, along with the disk name of the concerned repository disk. Also, as since it is a cluster event producer it will additionally pass NODE_NUMBER, NODE_ID and the CLUSTER_ID information.
Acceptable monitor files
To monitor repository disks, a monitor file should be created under the repDiskState.monFactory directory. The monitor file name
/aha/disk/ repDiskState.monFactory/repDiskStateEvent.mon
has to be used. No other monitor files may be created in this directory.
Example event data

The following is event data from a repDiskState event with the default INFO_LVL.

BEGIN_EVENT_INFO
TIME_tvsec=1271933757
TIME_tvnsec=134003703
SEQUENCE_NUM=1
RC_FROM_EVPROD=0
BEGIN_EVPROD_INFO
EVENT_TYPE=REP_UP
DISK_NAME=hdisk2
NODE_NUMBER=2
NODE_ID=0xF079E8C801C11DF
CLUSTER_ID=0x6EA7B08888D811DFB918BEB25635B404
END_EVPROD_INFO
END_EVENT_INFO