[AIX 운영 체제와 장치 관리 58] AHAFS 이벤트 생산자와 클러스터 이벤트 — vmo·schedo·pidProcessMon·processMon, 클러스터 이벤트, CAA용 nodeList·nodeState·diskState·vgState 등

핵심 정리

  • vmo 생산자는 npskill, npswarn, maxpin%(maxpin_pct.mon으로 감시) 등 vmo 조정 값의 변경을, schedo 생산자는 지금은 vpm_xvcpus 하나의 변경을 감시합니다.
  • pidProcessMon은 PID.mon 파일로 PID 기준 프로세스 종료를, processMon은 프로세스를 시작한 경로와 같은 경로의 모니터 파일로 이름 기준 종료를 감시하며 둘 다 PROCESS_DOWN 메시지를 넘깁니다. processMon은 같은 이름 프로세스 가운데 맨 위 부모만 감시합니다.
  • AHAFS_REMOTE_EVENT_ENABLED 기능이 있는 생산자(pidProcessMon과 diskState 제외)는 CLUSTER=YES로 클러스터 다른 노드의 이벤트도 알립니다. 각 노드에서 CLUSTER=YES로 감시하는 소비자가 있어야 하고, 원격 이벤트에는 사용자·프로세스 정보와 스택 추적이 없습니다.
  • 클러스터 이벤트에는 BEGIN_EVPROD_INFO와 END_EVPROD_INFO 사이에 NODE_NUMBER, NODE_ID, CLUSTER_ID가 들어가며 lscluster -m의 노드 약식 ID, 노드 uuid, 클러스터 uuid에 해당합니다. mkcluster는 AHAFS가 안 올라와 있으면 /aha에 마운트합니다.
  • CAA 생산자는 활성 클러스터에서만 쓸 수 있으며 0을 돌려주고 클러스터가 제거되면 AHAFS_CLUSTER_REMOVE(-1)를 돌려줍니다. 노드 추가·삭제, 링크, 연결, 노드 상태, 주소, 어댑터, 클러스터·저장소·로컬 디스크, VG 상태를 감시합니다.
항목 내용
버전 AIX 6.1 (5.3판에 없는 새 장)
원문 Operating system and device management — 5.3판 없음, 6.1판 609~633쪽
관련 명령어 vmo, schedo, mkcluster, chcluster, lscluster -m
모니터 팩토리 /aha/mem/vmo.monFactory, /aha/cpu/schedo.monFactory, /aha/cpu/pidProcessMon.monFactory, /aha/cpu/processMon.monFactory, /aha/cluster/*.monFactory, /aha/disk/*.monFactory

vmo 이벤트 생산자는 vmo 조정 매개변수의 변경을 감시합니다.

개요

vmo 이벤트 생산자는 mem 디렉터리 아래에 있으며 다음 vmo 조정 값의 변경을 감시합니다.

참고: vmo 명령은 스스로를 설명하는 명령입니다. 다음 목록의 조정 매개변수 가운데 일부는 지원되지 않을 수 있습니다.

  • npskill
  • npswarn
  • force_relalias_lite
  • low_ps_handling
  • maxpin%(maxpin_pct.mon 파일로 감시해야 함)
  • nokilluid
  • relalias_percentage
  • vmm_default_pspa
  • npsrpgmin
  • npsrpgmax
  • npsscrubmin
  • npsscrubmax
  • scrubclean
  • rpgcontrol
  • rpgclean
  • vm_modlist_threshold
  • vmm_fork_policy
  • lru_poll_interval

기능

text
AHAFS_THRESHOLD_STATE
AHAFS_STKTRACE_AVAILABLE
AHAFS_REMOTE_EVENT_ENABLED

반환 코드

이 이벤트 생산자는 이벤트가 일어나면 늘 0을 돌려줍니다.

이벤트 생산자 메시지

이 이벤트 생산자는 이벤트 데이터에 메시지를 넘기지 않습니다.

허용되는 모니터 파일

위 조정 값 가운데 어느 것이든 감시하려면 다음 형식의 모니터 파일을 써야 합니다.

text
/aha/mem/vmo.monFactory/<tunable>.mon

위 이벤트에 해당하지 않는 파일은 이 디렉터리 아래에 만들 수 없습니다.

이벤트 데이터 예

다음은 INFO_LVL이 3일 때 감시하는 조정 값을 바꾼 이벤트 데이터입니다.

text
BEGIN_EVENT_INFO
TIME_tvsec=1271770698
TIME_tvnsec=787565808
SEQUENCE_NUM=0
PID=5701808
UID=0
UID_LOGIN=0
GID=0
PROG_NAME=vmo
RC_FROM_EVPROD=0
STACK_TRACE
aha_cbfn_wrapper+30
ahafs_evprods+510
vm_mon_tunable+B0
vm_chk_mod_tun+5CC
_vmgetinfo+53C
vmgetinfo+48
.svc_instr
vmo_write_vmsetkervars+134
vmo_write_dynamic_values+404
main+BC
__start+70
END_EVENT_INFO
영어 원문

vmo

The vmo event producer monitors for changes to the vmo tunable parameters.

Overview

The vmo event producer resides under the mem directory and monitors for changes to the following vmo tunables.

Note: The vmo command is a self documenting command. Some of the tunable parameters listed in the following list might not be supported.

  • npskill

  • npswarn

  • force_relalias_lite

  • low_ps_handling

  • maxpin% (should be monitored as maxpin_pct.mon file)

  • nokilluid

  • relalias_percentage

  • vmm_default_pspa

  • npsrpgmin

  • npsrpgmax

  • npsscrubmin

  • npsscrubmax

  • scrubclean

  • rpgcontrol

  • rpgclean

  • vm_modlist_threshold

  • vmm_fork_policy

  • lru_poll_interval

Capabilities

text
AHAFS_THRESHOLD_STATE
AHAFS_STKTRACE_AVAILABLE
AHAFS_REMOTE_EVENT_ENABLED

Return codes

This event producer always returns 0 when the event occurs.

Event producer message

This event producer does not pass any messages as part of its event data.

Acceptable monitor files

To monitor any of the above tunables, monitor files of the following format should be used:

text
/aha/mem/vmo.monFactory/<tunable>.mon

Files which do not correspond to the above events cannot be created under this directory.

Example event data

The following is event data from the modification of a monitored tunable, with an INFO_LVL of 3.

(23줄짜리 예는 위 한글 본문에 그대로 실었습니다.)

schedo

이 이벤트 생산자는 schedo 조정 값의 변경을 감시합니다.

개요

지금은 vpm_xvcpus 조정 값만 감시할 수 있습니다. 이 이벤트 생산자는 이벤트가 일어나면 스택 추적과 사용자 정보를 돌려줍니다. 이 이벤트 생산자는 cpu 디렉터리 아래에 있습니다.

기능

text
AHAFS_THRESHOLD_STATE
AHAFS_STKTRACE_AVAILABLE
AHAFS_REMOTE_EVENT_ENABLED

반환 코드

이 이벤트 생산자는 이벤트가 일어나면 늘 0을 돌려줍니다.

이벤트 생산자 메시지

이 이벤트 생산자는 이벤트 데이터에 메시지를 넘기지 않습니다.

허용되는 모니터 파일

이 조정 값을 감시하는 데 쓰는 모니터 파일은 다음과 같습니다.

text
/aha/cpu/schedo.monFactory/vpm_xvcpus.mon

이 디렉터리에는 다른 모니터 파일을 만들 수 없습니다.

이벤트 데이터 예

다음은 INFO_LVL이 3일 때 vpm_xvcpus 조정 값을 바꾼 이벤트 데이터입니다.

text
BEGIN_EVENT_INFO
TIME_tvsec=1271771009
TIME_tvnsec=251723285
SEQUENCE_NUM=0
PID=7143474
UID=0
UID_LOGIN=0
GID=0
PROG_NAME=schedo
RC_FROM_EVPROD=0
STACK_TRACE
aha_cbfn_wrapper+30
ahafs_evprods+510
schedtune+394
.svc_instr
schedo_write_schedparams+94
schedo_write_dynamic_values+6F0
main+1B0
__start+68
END_EVENT_INFO
영어 원문

schedo

This event producer monitors for changes to schedo tunables.

Overview

Currently, only the vpm_xvcpus tunable may be monitored. This event producer will return a stack trace and user information when the event occurs. This event producer resides under the cpu directory.

Capabilities

text
AHAFS_THRESHOLD_STATE
AHAFS_STKTRACE_AVAILABLE
AHAFS_REMOTE_EVENT_ENABLED

Return codes

This event producer always returns 0 when the event occurs.

Event producer message

This event producer does not pass any messages as part of its event data.

Acceptable monitor files

The monitor file used to monitor this tunable is:

text
/aha/cpu/schedo.monFactory/vpm_xvcpus.mon

No other monitor files may be created in this directory.

Example event data

The following is event data from the modification of the vpm_xvcpus tunable with an INFO_LVL of 3:

(20줄짜리 예는 위 한글 본문에 그대로 실었습니다.)

pidProcessMon

pidProcessMon 이벤트 생산자는 PID를 기준으로 프로세스 종료를 감시합니다.

개요

pidProcessMon 이벤트 생산자는 cpu 디렉터리 아래에 있으며 PID를 기준으로 프로세스 종료를 감시합니다.

기능

text
AHAFS_THRESHOLD_STATE
AHAFS_CALLBACK_INTRCNTX

반환 코드

pidProcessMon 이벤트 생산자는 반환 코드 0 하나만 돌려줍니다.

이벤트 생산자 메시지

이 이벤트 생산자는 이벤트 데이터에 PROCESS_DOWN 메시지를 넘깁니다.

허용되는 모니터 파일

프로세스 종료를 감시하려면 pidProcessMon.monFactory 디렉터리 아래에 모니터 파일을 만들어야 합니다. 다음 형식의 모니터 파일 이름을 써야 합니다.

text
/aha/cpu/pidProcessMon.monFactory/<process_PID>.mon

이벤트 데이터 예

다음 이벤트 데이터는 감시하는 프로세스가 종료될 때 생긴 것입니다. 기본 INFO_LVL일 때의 출력입니다.

text
BEGIN_EVENT_INFO
TIME_tvsec=1272348759
TIME_tvnsec=379259175
SEQUENCE_NUM=0
RC_FROM_EVPROD=0
BEGIN_EVPROD_INFO
EVENT_TYPE=PROCESS_DOWN
END_EVPROD_INFO
END_EVENT_INFO
영어 원문

pidProcessMon

The pidProcessMon event producer monitors for process death, based on PID.

Overview

The pidProcessMon event producer resides under the cpu directory and monitors for process death, based on PID.

Capabilities

text
AHAFS_THRESHOLD_STATE
AHAFS_CALLBACK_INTRCNTX

Return codes

The pidProcessMon event producer returns only a single return code 0.

Event producer message

This event producer passes PROCESS_DOWN message as part of its event data.

Acceptable monitor files

To monitor for process deaths, a monitor file should be created under the pidProcessMon.monFactory directory. A monitor file name with the format

text
/aha/cpu/pidProcessMon.monFactory/<process_PID>.mon

has to be used.

Example event data

The following event data was generated from the death of a monitored process. This is the output seen with the default INFO_LVL.

text
BEGIN_EVENT_INFO
TIME_tvsec=1272348759
TIME_tvnsec=379259175
SEQUENCE_NUM=0
RC_FROM_EVPROD=0
BEGIN_EVPROD_INFO
EVENT_TYPE=PROCESS_DOWN
END_EVPROD_INFO
END_EVENT_INFO

processMon

processMon 이벤트 생산자는 프로세스 종료를 감시합니다.

개요

processMon 이벤트 생산자는 cpu 디렉터리 아래에 있으며 프로세스 이름을 기준으로 프로세스 종료를 감시합니다. 같은 이름의 프로세스 가운데 부모 프로세스만 감시합니다. 곧 프로세스 트리가 abc(pid 123) → xyz(pid 345) → xyz(pid 567)이고 누군가 xyz 프로세스 감시를 요청하면 실제로는 pid 345가 감시됩니다.

기능

text
AHAFS_THRESHOLD_STATE
AHAFS_REMOTE_EVENT_ENABLED
AHAFS_CALLBACK_INTRCNTX

반환 코드

processMon 이벤트 생산자는 반환 코드 0 하나만 돌려줍니다.

이벤트 생산자 메시지

이 이벤트 생산자는 이벤트 데이터에 PROCESS_DOWN 메시지를 넘깁니다.

허용되는 모니터 파일

프로세스 종료를 감시하려면 프로세스를 시작할 때 쓴 것과 같은 경로의 모니터 파일을 processMon.monFactory 디렉터리 아래에 만들어야 합니다. 예를 들어 /usr/samples/ahafs 디렉터리에 있는 test라는 프로세스를 감시하려면 모니터 파일 /aha/cpu/processMon.monFactory/usr/samples/ahafs/test.mon을 씁니다.

이벤트 데이터 예

다음 이벤트 데이터는 감시하는 프로세스가 종료될 때 생긴 것입니다. 기본 INFO_LVL일 때의 출력입니다.

text
BEGIN_EVENT_INFO
TIME_tvsec=1272348909
TIME_tvnsec=482502597
SEQUENCE_NUM=0
RC_FROM_EVPROD=0
BEGIN_EVPROD_INFO
EVENT_TYPE=PROCESS_DOWN
END_EVPROD_INFO
END_EVENT_INFO
영어 원문

processMon

The processMon event producer monitors for process death.

Overview

The processMon event producer resides under the cpu directory and monitors for process death, based on process name. Only the parent process for a given process with same name is

monitored. That means if we have a process tree abc (pid 123)->xyz (pid 345)->xyz (pid 567) and some one requests to monitor the xyz process then (pid = 345) actually gets monitored.

Capabilities

text
AHAFS_THRESHOLD_STATE
AHAFS_REMOTE_EVENT_ENABLED
AHAFS_CALLBACK_INTRCNTX

Return codes

The processMon event producer returns only a single return code 0.

Event producer message

This event producer passes PROCESS_DOWN message as part of its event data.

Acceptable monitor files

To monitor for process deaths, a monitor file with the same path as the one used to start the process, should be created under the processMon.monFactory directory. For example, to monitor a process named test which is placed under the directory /usr/samples/ahafs, the monitor file /aha/cpu/processMon.monFactory/usr/samples/ahafs/test.mon would be used.

Example event data

The following event data was generated from the death of a monitored process. This is the output seen with the default INFO_LVL.

text
BEGIN_EVENT_INFO
TIME_tvsec=1272348909
TIME_tvnsec=482502597
SEQUENCE_NUM=0
RC_FROM_EVPROD=0
BEGIN_EVPROD_INFO
EVENT_TYPE=PROCESS_DOWN
END_EVPROD_INFO
END_EVENT_INFO

클러스터 이벤트

시스템이 클러스터의 일부이면 같은 클러스터에 속한 다른 노드에서 일어난 이벤트의 알림도 받을 수 있습니다. AHAFS_REMOTE_EVENT_ENABLED 기능을 지정한 이벤트 생산자는 클러스터 전체 감시를 지원합니다. pidProcessMon과 diskState를 뺀 모든 AIX 이벤트 인프라 이벤트 생산자가 이런 원격 알림을 줄 수 있습니다.

AIX 이벤트 인프라에서 mkcluster 명령의 동작

시스템에 AIX 이벤트 인프라가 로드돼 있지 않은 상태에서 mkcluster 명령을 실행하면 AIX 이벤트 인프라 가상 파일 시스템이 /aha 디렉터리에 마운트되고 모니터 파일 이름은 /aha 디렉터리부터 시작합니다. 시스템에 AIX 이벤트 인프라가 이미 로드된 상태에서 mkcluster 명령을 실행하면 가상 파일 시스템을 다시 마운트하지 않으며, 모니터 파일 이름은 가상 파일 시스템이 마운트된 디렉터리부터 시작합니다. 소비자 응용 프로그램은 모니터 파일 경로를 얻으려면 AIX 이벤트 인프라 가상 파일 시스템이 어디에 마운트됐는지 확인해야 합니다.

클러스터 이벤트를 받으려면 소비자 프로세스는 클러스터에서 감시할 이벤트를 나타내는 모니터 파일에 쓸 때 CLUSTER=YES를 지정해야 합니다. 원격 이벤트를 감지하려면 각 노드에서 소비자 프로세스가 CLUSTER=YES를 지정해 그 이벤트를 감시하고 있어야 합니다.

원격 노드에서 받은 이벤트에는 이벤트 생산자가 지원하더라도 사용자나 프로세스 정보, 스택 추적이 들어 있지 않습니다.

원격 노드에서 받은 이벤트에는 이벤트 생산자가 지원하더라도 스택 추적이 주어지지 않습니다.

모든 클러스터 이벤트에는 BEGIN_EVPROD_INFO와 END_EVPROD_INFO 구분자 사이에 클러스터 정보 NODE_NUMBER, NODE_ID, CLUSTER_ID가 들어 있습니다. 감시 프로그램은 이것으로 이벤트가 어느 노드에서 일어났는지 알 수 있습니다. lscluster -m 명령 출력의 Cluster shorthand id for node, uuid for node, cluster uuids 필드 정보가 AIX 이벤트 인프라 이벤트 출력의 NODE_NUMBER, NODE_ID, CLUSTER_ID 필드로 각각 돌아옵니다.

다음은 INFO_LVL이 2이고 AHAFS_STKTRACE_AVAILABLE 기능을 지정한 이벤트 생산자에서, 같은 이벤트가 로컬과 원격에서 일어났을 때의 출력 예입니다.

로컬 발생:

text
BEGIN_EVENT_INFO
TIME_tvsec=1262670289
TIME_tvnsec=453840229
SEQUENCE_NUM=0
PID=4194474
UID=0
UID_LOGIN=0
GID=0
PROG_NAME=rpc.statd
RC_FROM_EVPROD=0
BEGIN_EVPROD_INFO
NODE_NUMBER=1
NODE_ID=0xF079E8C801C11DF
CLUSTER_ID=0x6EA7B08888D811DFB918BEB25635B404
EVENT_TYPE=PROCESS_DOWN
END_EVPROD_INFO
END_EVENT_INFO

원격 발생:

text
BEGIN_EVENT_INFO
TIME_tvsec=1262670289
TIME_tvnsec=248144872
SEQUENCE_NUM=0
RC_FROM_EVPROD=0
BEGIN_EVPROD_INFO
EVENT_TYPE=PROCESS_DOWN
NODE_NUMBER=1
NODE_ID=0xF079E8C801C11DF
CLUSTER_ID=0x6EA7B08888D811DFB918BEB25635B404
END_EVPROD_INFO
END_EVENT_INFO
영어 원문

Cluster events

When a system is part of a cluster, it can receive notifications for events occurring on other nodes that are part of the same cluster. Event producers which specify the AHAFS_REMOTE_EVENT_ENABLED capability support cluster wide monitoring. All the AIX Event Infrastructure event producers except the pidProcessMon and diskState can provide such remote notifications.

Behaviour of mkcluster command with the AIX Event Infrastructure:

If the AIX Event Infrastructure is not loaded on a system and the mkcluster command is run then the AIX Event Infrastructure pseudo filesystem will be mounted on the /aha directory and the monitor file names will start from the /aha directory. If the AIX Event Infrastructure is already loaded on a system and mkcluster command is run then the AIX Event Infrastructure pseudo filesystem will not be remounted and the monitor file names will start from the directory over which the AIX Event Infrastructure pseudo filesystem has been mounted. Consumer applications must check where the AIX Event Infrastructure pseudo filesystem has been mounted, to get the monitor file paths.

In order to receive cluster events, consumer processes must specify CLUSTER=YES when writing to the monitor file representing the event to monitor in the cluster. In order for the remote events to be detected, a consumer process must be monitoring the event on each node with CLUSTER=YES specified.

Events received from a remote node do not include user or process information, or stack trace, even if the event producer supports it.

For events received on a remote node stack trace is not provided, even if the event producer supports it.

The cluster information NODE_NUMBER, NODE_ID and CLUSTER_ID will be available between BEGIN_EVPROD_INFO and END_EVPROD_INFO delimiters for all cluster events. This helps the monitoring program to identify on which node the event occurred. The information that is returned from the lscluster -m command output in the fields: Cluster shorthand id for node, uuid for node and cluster uuids is returned in the AIX Event Infrastructure event output in the NODE_NUMBER, NODE_ID, CLUSTER_ID fields respectively.

Below is example output from both a local and remote occurrence of an event with an INFO_LVL of 2, and an event producer which specifies the AHAFS_STKTRACE_AVAILABLE capability.

  • BEGIN_EVENT_INFO TIME_tvsec=1262670289 TIME_tvnsec=453840229 SEQUENCE_NUM=0 PID=4194474 UID=0 UID_LOGIN=0 GID=0 PROG_NAME=rpc.statd RC_FROM_EVPROD=0 BEGIN_EVPROD_INFO NODE_NUMBER=1 NODE_ID=0xF079E8C801C11DF CLUSTER_ID=0x6EA7B08888D811DFB918BEB25635B404 EVENT_TYPE=PROCESS_DOWN END_EVPROD_INFO END_EVENT_INFO — BEGIN_EVENT_INFO TIME_tvsec=1262670289 TIME_tvnsec=248144872 SEQUENCE_NUM=0 RC_FROM_EVPROD=0 BEGIN_EVPROD_INFO EVENT_TYPE=PROCESS_DOWN NODE_NUMBER=1 NODE_ID=0xF079E8C801C11DF CLUSTER_ID=0x6EA7B08888D811DFB918BEB25635B404 END_EVPROD_INFO END_EVENT_INFO

CAA(Cluster Aware AIX) 인스턴스용 사전 정의 이벤트 생산자

이 이벤트 생산자는 시스템이 활성 클러스터의 일부일 때만 쓸 수 있습니다.

영어 원문

Pre-defined event producers for a Cluster Aware AIX instance

These event producers are only available when the system is part of an active cluster.

nodeList

nodeList 이벤트 생산자는 클러스터 구성원 변경을 감시합니다.

개요

nodeList 이벤트 생산자는 cluster 디렉터리 아래에 있으며 클러스터에 노드가 더해지거나 빠지는 것을 감시합니다. 이 이벤트 생산자는 시스템이 클러스터의 일부일 때만 쓸 수 있습니다. 이 이벤트는 (예: chcluster 명령으로) 클러스터에 노드를 더하거나 뺄 때 생깁니다.

기능

text
AHAFS_THRESHOLD_STATE
AHAFS_REMOTE_EVENT_ENABLED
AHAFS_CALLBACK_INTRCNTX

반환 코드

nodeList는 반환 코드로 0을 돌려줍니다. 클러스터가 제거될 때만 AHAFS_CLUSTER_REMOVE(-1)를 돌려줍니다.

이벤트 생산자 메시지

이 이벤트 생산자는 이벤트 데이터에 NODE_ADD와 NODE_DELETE 메시지를 넘깁니다. 또 클러스터 이벤트 생산자이므로 NODE_NUMBER, NODE_ID, CLUSTER_ID 정보도 넘깁니다.

허용되는 모니터 파일

노드 목록 변경을 감시하려면 nodeList.monFactory 디렉터리 아래에 모니터 파일을 만들어야 합니다. 모니터 파일 이름은 다음과 같습니다.

text
/aha/cluster/nodeList.monFactory/nodeListEvent.mon

이 모니터 파일 이름을 써야 합니다. 이 디렉터리에는 다른 모니터 파일을 만들 수 없습니다.

이벤트 데이터 예

다음은 기본 INFO_LVL일 때 nodeList 이벤트의 이벤트 데이터입니다.

text
BEGIN_EVENT_INFO
TIME_tvsec=1271922590
TIME_tvnsec=886742634
SEQUENCE_NUM=1
RC_FROM_EVPROD=0
BEGIN_EVPROD_INFO
EVENT_TYPE=NODE_ADD
NODE_NUMBER=1
NODE_ID=0xF079E8C801C11DF
CLUSTER_ID=0x6EA7B08888D811DFB918BEB25635B404
END_EVPROD_INFO
END_EVENT_INFO
영어 원문

nodeList

The nodeList event producer monitors changes in cluster membership.

Overview

The nodeList event producer resides under the cluster directory and monitors for nodes added or

removed from the cluster. This event producer is available only when the system is part of a cluster. This event is generated when a node is added or removed from the cluster (for example, via the chcluster command).

Capabilities

text
AHAFS_THRESHOLD_STATE
AHAFS_REMOTE_EVENT_ENABLED
AHAFS_CALLBACK_INTRCNTX

Return codes

The nodeList 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 NODE_ADD and NODE_DELETE messages as part of its event data. Also, as it is a cluster event producer it will additionally pass NODE_NUMBER, NODE_ID and CLUSTER_ID information.

Acceptable monitor files

To monitor for changes in the list of nodes, a monitor file should be created under the

nodeList.monFactory directory. The monitor file name

text
/aha/cluster/nodeList.monFactory/nodeListEvent.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 nodeList event with the default INFO_LVL.

text
BEGIN_EVENT_INFO
TIME_tvsec=1271922590
TIME_tvnsec=886742634
SEQUENCE_NUM=1
RC_FROM_EVPROD=0
BEGIN_EVPROD_INFO
EVENT_TYPE=NODE_ADD
NODE_NUMBER=1
NODE_ID=0xF079E8C801C11DF
CLUSTER_ID=0x6EA7B08888D811DFB918BEB25635B404
END_EVPROD_INFO
END_EVENT_INFO

clDiskList

clDiskList 이벤트 생산자는 클러스터 디스크 구성원 변경을 감시합니다.

개요

clDiskList 이벤트 생산자는 disk 디렉터리 아래에 있으며 클러스터에 디스크가 더해지거나 빠지는 것을 감시합니다. 이 이벤트 생산자는 시스템이 클러스터의 일부일 때만 쓸 수 있습니다. 이 이벤트는 (예: chcluster 명령으로) 클러스터에 디스크를 더하거나 뺄 때 생깁니다.

기능

text
AHAFS_THRESHOLD_STATE
AHAFS_REMOTE_EVENT_ENABLED
AHAFS_CALLBACK_INTRCNTX

반환 코드

clDiskList는 반환 코드로 0을 돌려줍니다. 클러스터가 제거될 때만 AHAFS_CLUSTER_REMOVE(-1)를 돌려줍니다.

이벤트 생산자 메시지

이 이벤트 생산자는 이벤트 데이터의 EVENT_TYPE 필드에 DISK_ADD와 DISK_DELETE 메시지를 넘기며, 해당 디스크의 DISK_NAME과 DISK_UID도 넘깁니다. 또 클러스터 이벤트 생산자이므로 NODE_NUMBER, NODE_ID, CLUSTER_ID 정보도 넘깁니다.

허용되는 모니터 파일

디스크 목록 변경을 감시하려면 clDiskList.monFactory 디렉터리 아래에 모니터 파일을 만들어야 합니다. 모니터 파일 이름은 다음과 같습니다.

text
/aha/disk/clDiskList.monFactory/clDiskListEvent.mon

이 모니터 파일 이름을 써야 합니다. 이 디렉터리에는 다른 모니터 파일을 만들 수 없습니다.

이벤트 데이터 예

다음은 기본 INFO_LVL일 때 clDiskList 이벤트의 이벤트 데이터입니다.

text
BEGIN_EVENT_INFO
TIME_tvsec=1271927983
TIME_tvnsec=696543410
SEQUENCE_NUM=0
RC_FROM_EVPROD=0
BEGIN_EVPROD_INFO
EVENT_TYPE=DISK_ADD
DISK_NAME=cldisk1
DISK_UID=3E213600A0B800016726C000000FF4B8677C80F1724-100 FAStT03IBMfcp
NODE_NUMBER=2
NODE_ID=0xF079E8C801C11DF
CLUSTER_ID=0x6EA7B08888D811DFB918BEB25635B404
END_EVPROD_INFO
END_EVENT_INFO
영어 원문

clDiskList

The clDiskList event producer monitors changes in cluster membership.

Overview

The clDiskList event producer resides under the disk directory and monitors for disks added or removed from the cluster. This event producer is available only when the system is part of a cluster. This event is generated when a disk is added or removed from the cluster (for example, using the chcluster command).

Capabilities

text
AHAFS_THRESHOLD_STATE
AHAFS_REMOTE_EVENT_ENABLED
AHAFS_CALLBACK_INTRCNTX

Return codes

The clDiskList returns 0 as the return code. Only if the cluster is removed AHAFS_CLUSTER_REMOVE (-1) is returned.

Event producer message

This event producer passes the DISK_ADD and DISK_DELETE messages as part of its event data in the EVENT_TYPE field. It will pass the DISK_NAME and the DISK_UID of the concerned disk. Also, as it is part of a cluster event producer it will additionally pass the NODE_NUMBER, NODE_ID and CLUSTER_ID information.

Acceptable monitor files

To monitor for changes in the list of disks, a monitor file should be created under the

clDiskList.monFactory directory. The monitor file name

text
/aha/disk/clDiskList.monFactory/clDiskListEvent.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 clDiskList event with the default INFO_LVL.

(14줄짜리 예는 위 한글 본문에 그대로 실었습니다.)

linkedCl

linkedCl 이벤트 생산자는 클러스터가 다른 클러스터와 연결되거나 연결이 끊길 때 이벤트를 만듭니다.

개요

linkedCl 이벤트 생산자는 cluster 디렉터리 아래에 있으며 링크 상태 변경을 감시합니다. 이 이벤트 생산자는 시스템이 클러스터의 일부일 때만 쓸 수 있습니다. 이 이벤트는 클러스터가 다른 클러스터와 연결되거나 연결이 끊길 때 생깁니다.

기능

text
AHAFS_THRESHOLD_STATE
AHAFS_REMOTE_EVENT_ENABLED
AHAFS_CALLBACK_INTRCNTX

반환 코드

linkedCl는 반환 코드로 0을 돌려줍니다. 클러스터가 제거될 때만 AHAFS_CLUSTER_REMOVE(-1)를 돌려줍니다.

이벤트 생산자 메시지

이 이벤트 생산자는 이벤트 데이터에 LINK_UP이나 LINK_DOWN 메시지를 넘기며 LINK_ID 정보도 넘깁니다. 또 클러스터 이벤트 생산자이므로 NODE_NUMBER, NODE_ID, CLUSTER_ID 정보도 넘깁니다.

허용되는 모니터 파일

링크 상태 변경을 감시하려면 linkedCl.monFactory 디렉터리 아래에 모니터 파일을 만들어야 합니다. 모니터 파일 이름은 다음과 같습니다.

text
/aha/cluster/linkedCl.monFactory/linkedClEvent.mon

이 모니터 파일 이름을 써야 합니다. 이 디렉터리에는 다른 모니터 파일을 만들 수 없습니다.

이벤트 데이터 예

다음은 기본 INFO_LVL일 때 linkedCl 이벤트의 이벤트 데이터입니다.

text
BEGIN_EVENT_INFO
TIME_tvsec=1271224025
TIME_tvnsec=795042625
SEQUENCE_NUM=0
RC_FROM_EVPROD=0
BEGIN_EVPROD_INFO
EVENT_TYPE=LINK_DOWN
LINK_ID=0x7BE9C1BD
NODE_NUMBER=1
NODE_ID=0xF079E8C801C11DF
CLUSTER_ID=0x6EA7B08888D811DFB918BEB25635B404
END_EVPROD_INFO
END_EVENT_INFO
영어 원문

linkedCl

The linkedCl event producer is generated when a cluster is linked or unlinked with another cluster.

Overview

The linkedCl event producer resides under the cluster directory and monitors for link status changes. This event producer is available only when the system is part of a cluster. This event is generated when a cluster is linked or unlinked with another cluster.

Capabilities

text
AHAFS_THRESHOLD_STATE
AHAFS_REMOTE_EVENT_ENABLED
AHAFS_CALLBACK_INTRCNTX

Return codes

The linkedCl returns 0 as the return code. Only if the cluster is removed AHAFS_CLUSTER_REMOVE (-1) is returned.

Event producer message

This event producer passes LINK_UP or LINK_DOWN messages as part of its event data. It will pass the LINK_ID information. Also, as it is a cluster event producer it will additionally pass NODE_NUMBER, NODE_ID and CLUSTER_ID information.

Acceptable monitor files

To monitor for changes in the list of nodes, a monitor file should be created under the

linkedCl.monFactory directory. The monitor file name

text
/aha/cluster/linkedCl.monFactory/linkedClEvent.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 linkedCl event with the default INFO_LVL.

(13줄짜리 예는 위 한글 본문에 그대로 실었습니다.)

nodeContact

nodeContact 이벤트 생산자는 클러스터 안 노드의 마지막 연락 상태를 감시합니다.

개요

nodeContact 이벤트 생산자는 cluster 디렉터리 아래에 있으며 클러스터 안 노드의 마지막 연락 상태를 감시합니다. 이 이벤트 생산자는 시스템이 클러스터의 일부일 때만 쓸 수 있습니다.

기능

text
AHAFS_THRESHOLD_STATE
AHAFS_REMOTE_EVENT_ENABLED
AHAFS_CALLBACK_INTRCNTX

반환 코드

nodeContact는 반환 코드로 0을 돌려줍니다. 클러스터가 제거될 때만 AHAFS_CLUSTER_REMOVE(-1)를 돌려줍니다.

이벤트 생산자 메시지

이 이벤트 생산자는 이벤트 데이터에 CONNECT_UP과 CONNECT_DOWN 메시지를 넘기며 해당 INTERFACE_NAME도 넘깁니다. 또 클러스터 이벤트 생산자이므로 NODE_NUMBER, NODE_ID, CLUSTER_ID 정보도 넘깁니다.

허용되는 모니터 파일

노드 연락 상태 변경을 감시하려면 nodeContact.monFactory 디렉터리 아래에 모니터 파일을 만들어야 합니다. 모니터 파일 이름은 다음과 같습니다.

text
/aha/cluster/nodeContact.monFactory/nodeContactEvent.mon

이 모니터 파일 이름을 써야 합니다. 이 디렉터리에는 다른 모니터 파일을 만들 수 없습니다.

이벤트 데이터 예

다음은 기본 INFO_LVL일 때 nodeContact 이벤트의 이벤트 데이터입니다.

text
BEGIN_EVENT_INFO
TIME_tvsec=1271921874
TIME_tvnsec=666770128
SEQUENCE_NUM=0
RC_FROM_EVPROD=0
BEGIN_EVPROD_INFO
EVENT_TYPE=CONNECT_DOWN
INTERFACE_NAME=en0
NODE_NUMBER=2
NODE_ID=0xF079E8C801C11DF
CLUSTER_ID=0x6EA7B08888D811DFB918BEB25635B404
END_EVPROD_INFO
END_EVENT_INFO
영어 원문

nodeContact

The nodeContact event producer monitors the last contact status of the node in a cluster.

Overview

The nodeContact event producer resides under the cluster directory and monitors the last contact status of the node in the cluster. This event producer is available only when the system is part of a cluster.

Capabilities

text
AHAFS_THRESHOLD_STATE
AHAFS_REMOTE_EVENT_ENABLED
AHAFS_CALLBACK_INTRCNTX

Return codes

The nodeContact returns 0 as the return code. Only if the cluster is removed AHAFS_CLUSTER_REMOVE (-1) is returned.

Event producer message

This event producer passes the CONNECT_UP and CONNECT_DOWN messages as part of its event data. It will pass the concerned INTERFACE_NAME. Also, as it is a cluster event producer it will additionally pass the NODE_NUMBER, NODE_ID and CLUSTER_ID information.

Acceptable monitor files

To monitor for changes in the list of nodes, a monitor file should be created under the

nodeContact.monFactory directory. The monitor file name

text
/aha/cluster/nodeContact.monFactory/nodeContactEvent.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 nodeContact event with the default INFO_LVL.

(13줄짜리 예는 위 한글 본문에 그대로 실었습니다.)

nodeState

nodeState 이벤트 생산자는 클러스터 안 노드의 상태를 감시합니다.

개요

nodeState 이벤트 생산자는 cluster 디렉터리 아래에 있으며 클러스터 안 노드의 상태를 감시합니다. 이 이벤트 생산자는 시스템이 클러스터의 일부일 때만 쓸 수 있습니다. 이 이벤트는 예를 들어 노드가 멈추거나 종료될 때 생깁니다.

기능

text
AHAFS_THRESHOLD_STATE
AHAFS_REMOTE_EVENT_ENABLED
AHAFS_CALLBACK_INTRCNTX

반환 코드

nodeState는 반환 코드로 0을 돌려줍니다. 클러스터가 제거될 때만 AHAFS_CLUSTER_REMOVE(-1)를 돌려줍니다.

이벤트 생산자 메시지

이 이벤트 생산자는 이벤트 데이터에 NODE_UP과 NODE_DOWN 메시지를 넘깁니다. 또 클러스터 이벤트 생산자이므로 NODE_NUMBER, NODE_ID, CLUSTER_ID 정보도 넘깁니다.

허용되는 모니터 파일

노드 상태 변경을 감시하려면 nodeState.monFactory 디렉터리 아래에 모니터 파일을 만들어야 합니다. 모니터 파일 이름은 다음과 같습니다.

text
/aha/cluster/nodeState.monFactory/nodeStateEvent.mon

이 모니터 파일 이름을 써야 합니다. 이 디렉터리에는 다른 모니터 파일을 만들 수 없습니다.

이벤트 데이터 예

다음은 기본 INFO_LVL일 때 nodeState 이벤트의 이벤트 데이터입니다.

text
BEGIN_EVENT_INFO
TIME_tvsec=1271921536
TIME_tvnsec=68254861
SEQUENCE_NUM=1
RC_FROM_EVPROD=0
BEGIN_EVPROD_INFO
EVENT_TYPE=NODE_UP
NODE_NUMBER=2
NODE_ID=0xF079E8C801C11DF
CLUSTER_ID=0x6EA7B08888D811DFB918BEB25635B404
END_EVPROD_INFO
END_EVENT_INFO
영어 원문

nodeState

The nodeState event producer monitors for the state of a node in the cluster.

Overview

The nodeState event producer resides under the cluster directory and monitors for the state of a node in the cluster. This event producer is available only when the system is part of a cluster. This event is generated, for example, when a node crashes or is shutdown.

Capabilities

text
AHAFS_THRESHOLD_STATE
AHAFS_REMOTE_EVENT_ENABLED
AHAFS_CALLBACK_INTRCNTX

Return codes

The nodeState returns 0 as the return code. Only if the cluster is removed AHAFS_CLUSTER_REMOVE (-1) is returned.

Event producer message

This event producer passes NODE_UP and NODE_DOWN messages as part of its event data. Also, as it is a cluster event producer and it will additionally pass the NODE_NUMBER, NODE_ID and CLUSTER_ID information.

Acceptable monitor files

To monitor for changes in the status of nodes, a monitor file should be created under the

nodeState.monFactory directory. The monitor file name

text
/aha/cluster/nodeState.monFactory/nodeStateEvent.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 nodeState event with the default INFO_LVL.

text
BEGIN_EVENT_INFO
TIME_tvsec=1271921536
TIME_tvnsec=68254861
SEQUENCE_NUM=1
RC_FROM_EVPROD=0
BEGIN_EVPROD_INFO
EVENT_TYPE=NODE_UP
NODE_NUMBER=2
NODE_ID=0xF079E8C801C11DF
CLUSTER_ID=0x6EA7B08888D811DFB918BEB25635B404
END_EVPROD_INFO
END_EVENT_INFO

nodeAddress

nodeAddress 이벤트 생산자는 노드의 네트워크 주소를 감시합니다.

개요

nodeAddress 이벤트 생산자는 cluster 디렉터리 아래에 있으며 노드의 네트워크 주소를 감시합니다. 이 이벤트 생산자는 시스템이 클러스터의 일부일 때만 쓸 수 있습니다. 이 이벤트는 예를 들어 네트워크 인터페이스에 별칭이 더해지거나 빠질 때 생깁니다.

기능

text
AHAFS_THRESHOLD_STATE
AHAFS_REMOTE_EVENT_ENABLED
AHAFS_CALLBACK_INTRCNTX

반환 코드

nodeAddress는 반환 코드로 0을 돌려줍니다. 클러스터가 제거될 때만 AHAFS_CLUSTER_REMOVE(-1)를 돌려줍니다.

이벤트 생산자 메시지

이 이벤트 생산자는 이벤트 데이터에 ADDRESS_ADD와 ADDRESS_DELETE 메시지를 넘기며, 해당 인터페이스의 INTERFACE_NAME과 IP 주소의 FAMILY, ADDRESS, NETMASK도 넘깁니다. 또 클러스터 이벤트 생산자이므로 NODE_NUMBER, NODE_ID, CLUSTER_ID 정보도 넘깁니다.

허용되는 모니터 파일

노드 주소 변경을 감시하려면 nodeAddress.monFactory 디렉터리 아래에 모니터 파일을 만들어야 합니다. 모니터 파일 이름은 다음과 같습니다.

text
/aha/cluster/nodeAddress.monFactory/nodeAddressEvent.mon

이 모니터 파일 이름을 써야 합니다. 이 디렉터리에는 다른 모니터 파일을 만들 수 없습니다.

이벤트 데이터 예

다음은 기본 INFO_LVL일 때 nodeAddress 이벤트의 이벤트 데이터입니다.

text
BEGIN_EVENT_INFO
TIME_tvsec=1271922254
TIME_tvnsec=9053410
SEQUENCE_NUM=0
RC_FROM_EVPROD=0
BEGIN_EVPROD_INFO
EVENT_TYPE=ADDRESS_ADD
INTERFACE_NAME=et0
FAMILY=2
ADDRESS=0x0A0A0A0A
NETMASK=0xFF000000
NODE_NUMBER=2
NODE_ID=0xF079E8C801C11DF
CLUSTER_ID=0x6EA7B08888D811DFB918BEB25635B404
END_EVPROD_INFO
END_EVENT_INFO
영어 원문

nodeAddress

The nodeAddress event producer monitors the network address of the node.

Overview

The nodeAddress event producer resides under the cluster directory and monitors the network address of the node. This event producer is available only when the system is part of a cluster. This event is generated for example, when an alias is added or removed from a network interface.

Capabilities

text
AHAFS_THRESHOLD_STATE
AHAFS_REMOTE_EVENT_ENABLED
AHAFS_CALLBACK_INTRCNTX

Return codes

The nodeAddress returns 0 as the return code. Only if the cluster is removed AHAFS_CLUSTER_REMOVE (-1) is returned.

Event producer message

This event producer passes ADDRESS_ADD and ADDRESS_DELETE messages as part of its event data. It will pass the INTERFACE_NAME, of the concerned interface and the FAMILY, ADDRESS and NETMASK of the IP address. Also, as it is a cluster event producer it will additionally pass the NODE_NUMBER, NODE_ID and CLUSTER_ID information.

Acceptable monitor files

To monitor for changes in the list of nodes, a monitor file should be created under the

nodeAddress.monFactory directory. The monitor file name

text
/aha/cluster/nodeAddress.monFactory/nodeAddressEvent.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 nodeAddress event with the default INFO_LVL.

(16줄짜리 예는 위 한글 본문에 그대로 실었습니다.)

networkAdapterState

networkAdapterState 이벤트 생산자는 클러스터 안 노드의 네트워크 인터페이스를 감시합니다.

개요

networkAdapterState 이벤트 생산자는 cluster 디렉터리 아래에 있으며 클러스터 안 노드의 네트워크 인터페이스를 감시합니다. 이 이벤트 생산자는 시스템이 클러스터의 일부일 때만 쓸 수 있습니다. 이 이벤트는 네트워크 인터페이스가 내려가거나 올라올 때 생깁니다.

기능

text
AHAFS_THRESHOLD_STATE
AHAFS_REMOTE_EVENT_ENABLED
AHAFS_CALLBACK_INTRCNTX

반환 코드

networkAdapterState는 반환 코드로 0을 돌려줍니다. 클러스터가 제거될 때만 AHAFS_CLUSTER_REMOVE(-1)를 돌려줍니다.

이벤트 생산자 메시지

이 이벤트 생산자는 이벤트 데이터에 ADAPTER_UP, ADAPTER_DOWN, ADAPTER_ADD, ADAPTER_DEL 메시지를 넘기며 해당 INTERFACE_NAME도 넘깁니다. 또 클러스터 이벤트 생산자이므로 NODE_NUMBER, NODE_ID, CLUSTER_ID 정보도 넘깁니다.

허용되는 모니터 파일

네트워크 어댑터 상태 변경을 감시하려면 networkAdapterState.monFactory 디렉터리 아래에 모니터 파일을 만들어야 합니다. 모니터 파일 이름은 다음과 같습니다.

text
/aha/cluster/networkAdapterState.monFactory/networkAdapterStateEvent.mon

이 모니터 파일 이름을 써야 합니다. 이 디렉터리에는 다른 모니터 파일을 만들 수 없습니다.

이벤트 데이터 예

다음은 기본 INFO_LVL일 때 networkAdapterState 이벤트의 이벤트 데이터입니다.

text
BEGIN_EVENT_INFO
TIME_tvsec=1271920539
TIME_tvnsec=399378269
SEQUENCE_NUM=1
RC_FROM_EVPROD=0
BEGIN_EVPROD_INFO
EVENT_TYPE=ADAPTER_UP
INTERFACE_NAME=en0
NODE_NUMBER=2
NODE_ID=0xF079E8C801C11DF
CLUSTER_ID=0x6EA7B08888D811DFB918BEB25635B404
END_EVPROD_INFO
END_EVENT_INFO
영어 원문

networkAdapterState

The networkAdapterState event producer monitors the network interface of a node in the cluster.

Overview

The networkAdapterState event producer resides under the cluster directory and monitors the

network interface of a node in the cluster. This event producer is available only when the system is part of a cluster. This event is generated when a network interface goes down or comes up.

Capabilities

text
AHAFS_THRESHOLD_STATE
AHAFS_REMOTE_EVENT_ENABLED
AHAFS_CALLBACK_INTRCNTX

Return codes

The networkAdapterState returns 0 as the return code. Only if the cluster is removed AHAFS_CLUSTER_REMOVE (-1) is returned.

Event producer message

This event producer passes the ADAPTER_UP, ADAPTER_DOWN, ADAPTER_ADD and ADAPTER_DEL messages as part of its event data. It will pass the concerned INTERFACE_NAME. Also, as it is a cluster event producer it will additionally pass NODE_NUMBER, NODE_ID and CLUSTER_ID information.

Acceptable monitor files

To monitor for changes in the list of nodes, a monitor file should be created under the networkAdapterState.monFactory directory. The monitor file name

text
/aha/cluster/networkAdapterState.monFactory/networkAdapterStateEvent.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 networkAdapterState event with the default INFO_LVL.

(13줄짜리 예는 위 한글 본문에 그대로 실었습니다.)

clDiskState

clDiskState 이벤트 생산자는 클러스터 디스크를 감시합니다.

개요

clDiskState 이벤트 생산자는 disk 디렉터리 아래에 있으며 클러스터 디스크를 감시합니다. 이 이벤트 생산자는 시스템이 클러스터의 일부일 때만 쓸 수 있습니다. 이 이벤트는 클러스터 디스크가 내려가거나 올라올 때 생깁니다.

기능

text
AHAFS_THRESHOLD_STATE
AHAFS_REMOTE_EVENT_ENABLED
AHAFS_CALLBACK_INTRCNTX

반환 코드

clDiskState는 반환 코드로 0을 돌려줍니다. 클러스터가 제거될 때만 AHAFS_CLUSTER_REMOVE(-1)를 돌려줍니다.

이벤트 생산자 메시지

이 이벤트 생산자는 이벤트 데이터의 EVENT_TYPE 필드에 DISK_UP과 DISK_DOWN 메시지를 해당 클러스터 디스크 이름과 함께 넘깁니다. 또 클러스터 이벤트 생산자이므로 NODE_NUMBER, NODE_ID, CLUSTER_ID 정보도 넘깁니다.

허용되는 모니터 파일

클러스터 디스크를 감시하려면 clDiskState.monFactory 디렉터리 아래에 모니터 파일을 만들어야 합니다. 모니터 파일 이름은 다음과 같습니다.

text
/aha/disk/clDiskState.monFactory/clDiskStateEvent.mon

이 모니터 파일 이름을 써야 합니다. 이 디렉터리에는 다른 모니터 파일을 만들 수 없습니다.

이벤트 데이터 예

다음은 기본 INFO_LVL일 때 clDiskState 이벤트의 이벤트 데이터입니다.

text
BEGIN_EVENT_INFO
TIME_tvsec=1271935734
TIME_tvnsec=265210314
SEQUENCE_NUM=1
RC_FROM_EVPROD=0
BEGIN_EVPROD_INFO
EVENT_TYPE=DISK_DOWN
DISK_NAME=cldisk1
NODE_NUMBER=2
NODE_ID=0xF079E8C801C11DF
CLUSTER_ID=0x6EA7B08888D811DFB918BEB25635B404
END_EVPROD_INFO
END_EVENT_INFO
영어 원문

clDiskState

The clDiskState event producer monitors cluster disks.

Overview

The clDiskState event producer resides under the disk directory and monitors cluster disks. This event producer is available only when the system is part of a cluster. This event is generated when a cluster disk goes down or comes up.

Capabilities

text
AHAFS_THRESHOLD_STATE
AHAFS_REMOTE_EVENT_ENABLED
AHAFS_CALLBACK_INTRCNTX

Return codes

The clDiskState returns 0 as the return code. Only if the cluster is removedAHAFS_CLUSTER_REMOVE (-1) is returned.

Event producer message

This event producer passes the DISK_UP and DISK_DOWN messages as part of its event data in the EVENT_TYPE field along with the concerned cluster disk name. Also, as it is a cluster event producer it will additionally pass the NODE_NUMBER, NODE_ID and CLUSTER_ID information.

Acceptable monitor files

To monitor cluster disks, a monitor file should be created under the clDiskState.monFactory directory. The monitor file name

text
/aha/disk/clDiskState.monFactory/clDiskStateEvent.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 clDiskState event with the default INFO_LVL.

(13줄짜리 예는 위 한글 본문에 그대로 실었습니다.)

repDiskState

repDiskState 이벤트 생산자는 저장소(repository) 디스크를 감시합니다.

개요

repDiskState 이벤트 생산자는 disk 디렉터리 아래에 있으며 저장소 디스크를 감시합니다. 이 이벤트 생산자는 시스템이 클러스터의 일부일 때만 쓸 수 있습니다. 이 이벤트는 저장소 디스크가 내려가거나 올라올 때 생깁니다.

기능

text
AHAFS_THRESHOLD_STATE
AHAFS_REMOTE_EVENT_ENABLED
AHAFS_CALLBACK_INTRCNTX

반환 코드

repDiskState는 반환 코드로 0을 돌려줍니다. 클러스터가 제거될 때만 AHAFS_CLUSTER_REMOVE(-1)를 돌려줍니다.

이벤트 생산자 메시지

이 이벤트 생산자는 이벤트 데이터의 EVENT_TYPE 필드에 REP_UP과 REP_DOWN 메시지를 해당 저장소 디스크 이름과 함께 넘깁니다. 또 클러스터 이벤트 생산자이므로 NODE_NUMBER, NODE_ID, CLUSTER_ID 정보도 넘깁니다.

허용되는 모니터 파일

저장소 디스크를 감시하려면 repDiskState.monFactory 디렉터리 아래에 모니터 파일을 만들어야 합니다. 모니터 파일 이름은 다음과 같습니다.

text
/aha/disk/ repDiskState.monFactory/repDiskStateEvent.mon

이 모니터 파일 이름을 써야 합니다. 이 디렉터리에는 다른 모니터 파일을 만들 수 없습니다.

이벤트 데이터 예

다음은 기본 INFO_LVL일 때 repDiskState 이벤트의 이벤트 데이터입니다.

text
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
영어 원문

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

text
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

text
/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.

(13줄짜리 예는 위 한글 본문에 그대로 실었습니다.)

diskState

diskState 이벤트 생산자는 로컬 디스크 변경을 감시합니다.

개요

diskState 이벤트 생산자는 disk 디렉터리 아래에 있으며 로컬 디스크 변경을 감시합니다. 이 이벤트 생산자는 시스템이 클러스터의 일부일 때만 쓸 수 있습니다. 이 이벤트는 로컬 디스크가 내려가거나 올라올 때 생깁니다. 저장 프레임워크가 지원하는 디스크에 대해서만 알립니다.

기능

text
AHAFS_THRESHOLD_STATE
AHAFS_CALLBACK_INTRCNTX

반환 코드

diskState는 반환 코드로 0을 돌려줍니다. 클러스터가 제거될 때만 AHAFS_CLUSTER_REMOVE(-1)를 돌려줍니다.

이벤트 생산자 메시지

이 이벤트 생산자는 이벤트 데이터에 LOCAL_UP과 LOCAL_DOWN 메시지를 해당 로컬 디스크 이름과 함께 넘깁니다. 또 클러스터 이벤트 생산자이므로 NODE_NUMBER, NODE_ID, CLUSTER_ID 정보도 넘깁니다.

허용되는 모니터 파일

로컬 디스크를 감시하려면 diskState.monFactory 디렉터리 아래에 모니터 파일을 만들어야 합니다. 다음 형식의 모니터 파일 이름을 씁니다.

text
/aha/disk/diskState.monFactory/<hdiskn>.mon

hdiskn 자리에는 감시할 로컬 디스크 이름을 씁니다.

이벤트 데이터 예

다음은 기본 INFO_LVL일 때 diskState 이벤트의 이벤트 데이터입니다.

text
BEGIN_EVENT_INFO
TIME_tvsec=1271935029
TIME_tvnsec=958362343
SEQUENCE_NUM=1
RC_FROM_EVPROD=0
BEGIN_EVPROD_INFO
EVENT_TYPE=LOCAL_UP
DISK_NAME=hdisk4
NODE_NUMBER=2
NODE_ID=0xF079E8C801C11DF
CLUSTER_ID=0x6EA7B08888D811DFB918BEB25635B404
END_EVPROD_INFO
END_EVENT_INFO
영어 원문

diskState

The diskstate event producer monitors for local disk changes.

Overview

The diskState event producer resides under the disk directory and monitors for local disk changes. This event producer is available only when the system is part of a cluster. This event is generated when a local disk goes down or comes up. This event will be notified only for disks that are supported by the storage framework.

Capabilities

text
AHAFS_THRESHOLD_STATE
AHAFS_CALLBACK_INTRCNTX

Return codes

The diskState returns 0 as the return code. The AHAFS_CLUSTER_REMOVE (-1) is returned only if the cluster is removed.

Event producer message

This event producer passes LOCAL_UP and LOCAL_DOWN messages along with the concerned local disk name as part of its event data. Also, as a cluster event producer it will additionally pass NODE_NUMBER, NODE_ID and CLUSTER_ID information.

Acceptable monitor files

To monitor local disks, a monitor file should be created under the diskState.monFactory directory. The monitor file name of the format

text
/aha/disk/diskState.monFactory/<hdiskn>.mon

must be used, with the name of the local disk that has to be monitored.

Example event data

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

(13줄짜리 예는 위 한글 본문에 그대로 실었습니다.)

vgState

vgState 이벤트 생산자는 디스크에 있는 VG(볼륨 그룹)의 상태를 확인할 수 있게 합니다.

개요

vgState 이벤트 생산자는 disk 디렉터리 아래에 있습니다. 이 이벤트 생산자는 시스템이 클러스터의 일부일 때만 쓸 수 있습니다. (diskState에 등록된) 로컬 디스크나 클러스터 디스크의 up·down 이벤트가 일어날 때마다 그 디스크에 있는 볼륨 그룹에 대해 해당 VG_UP과 VG_DOWN 이벤트가 일어납니다. 이 이벤트 생산자로 응용 프로그램은 LVM 하위 시스템과 함께 디스크에 있는 VG의 상태를 확인할 수 있습니다.

기능

text
AHAFS_THRESHOLD_STATE
AHAFS_REMOTE_EVENT_ENABLED
AHAFS_CALLBACK_INTRCNTX

반환 코드

vgState는 반환 코드로 0을 돌려줍니다. 클러스터가 제거될 때만 AHAFS_CLUSTER_REMOVE(-1)를 돌려줍니다.

이벤트 생산자 메시지

이 이벤트 생산자는 이벤트 데이터에 VG_UP과 VG_DOWN 메시지를 넘기며 해당 디스크 이름과 볼륨 그룹 이름도 넘깁니다. 또 클러스터 이벤트 생산자이므로 NODE_NUMBER, NODE_ID, CLUSTER_ID 정보도 넘깁니다.

허용되는 모니터 파일

VG 상태 변경을 감시하려면 vgState.monFactory 디렉터리 아래에 모니터 파일을 만들어야 합니다. 모니터 파일 이름은 다음과 같습니다.

text
/aha/disk/vgState.monFactory/vgStateEvent.mon

이 모니터 파일 이름을 써야 합니다. 이 디렉터리에는 다른 모니터 파일을 만들 수 없습니다.

이벤트 데이터 예

다음은 기본 INFO_LVL일 때 vgState 이벤트의 이벤트 데이터입니다.

text
BEGIN_EVENT_INFO
TIME_tvsec=1271915408
TIME_tvnsec=699408296
SEQUENCE_NUM=0
RC_FROM_EVPROD=0
BEGIN_EVPROD_INFO
EVENT_TYPE=VG_UP
DISK_NAME=hdisk3
VG_NAME=myvg
NODE_NUMBER=2
NODE_ID=0xF079E8C801C11DF
CLUSTER_ID=0x6EA7B08888D811DFB918BEB25635B404
END_EVPROD_INFO
END_EVENT_INFO
영어 원문

vgState

The vgstate event producer can verify the status of the VG on a disk.

Overview

The vgState event producer resides under the disk directory. This event producer is available only when the system is part of a cluster. Whenever a local (registered with diskState) or cluster disk up or down event happens a corresponding VG_UP and VG_DOWN event is triggered for the volume group residing on that disk. Using this event producer, an application can verify the status of a VG on the disk, with the LVM subsystem.

Capabilities

text
AHAFS_THRESHOLD_STATE
AHAFS_REMOTE_EVENT_ENABLED
AHAFS_CALLBACK_INTRCNTX

Return codes

The vgState returns 0 as the return code. The AHAFS_CLUSTER_REMOVE (-1) is returned only if the cluster is removed.

Event producer message

This event producer passes VG_UP and VG_DOWN messages, as part of its event data. It will pass the concerned disk name and volume group name. Also, as this is a cluster event producer it will additionally pass NODE_NUMBER, NODE_ID and CLUSTER_ID information.

Acceptable monitor files

To monitor for changes in the list of nodes, a monitor file should be created under the

vgState.monFactory directory. The monitor file name

text
/aha/disk/vgState.monFactory/vgStateEvent.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 vgstate event with the default INFO_LVL.

(14줄짜리 예는 위 한글 본문에 그대로 실었습니다.)