JavaScript is required to for searching.
탐색 링크 건너뛰기
인쇄 보기 종료
Oracle® ZFS Storage Appliance 관리 설명서
Oracle 기술 네트워크
라이브러리
PDF
인쇄 보기
피드백
search filter icon
search icon

문서 정보

이 설명서 사용

 1 Oracle ZFS Storage Appliance 개요

 2 상태

 3 초기 구성

 4 네트워크 구성

 5 스토리지 구성

 6 SAN(Storage Area Network) 구성

 7 사용자 구성

 8 ZFSSA 환경 설정

 9 경보 구성

 10 클러스터 구성

 11 ZFSSA 서비스

 12 공유, 프로젝트 및 스키마

 13 복제

 14 섀도우 마이그레이션

 15 CLI 스크립트 작성

 16 유지 관리 워크플로우

워크플로우 사용

워크플로우 실행 컨텍스트

워크플로우 매개변수

제한된 매개변수

선택적 매개변수

워크플로우 오류 처리

워크플로우 입력 검증

워크플로우 실행 감사

워크플로우 실행 보고

버전 지정

어플라이언스 버전 지정

워크플로우 버전 지정

경보 조치로서의 워크플로우

경보 조치 실행 컨텍스트

경보 조치 감사

예약된 워크플로우 사용

CLI 사용

일정 코딩

예: 장치 유형 선택

BUI

CLI

워크플로우 다운로드

워크플로우 보기

워크플로우 실행

 17 통합

색인

경보 조치 감사

경보 조치로 실행되는 워크플로우에서는 audit 함수를 사용하여 감사 로그 항목을 생성할 수 있습니다. audit 함수를 통해 관련된 모든 디버깅 정보를 감사 로그에 생성해 넣는 것이 좋습니다. 예를 들어, 다음은 클러스터화된 상태에 있는 경우 페일오버를 실행하지만 재부트하기 위해 모든 오류를 감사하는 워크플로우입니다.

var workflow = {
       name: 'Failover',
       description: 'Fail the node over to its clustered peer',
       alert: true,
       setid: true,
       execute: function (params) {
               /*
                * To failover, we first confirm that clustering is configured
                * and that we are in the clustered state.  We then reboot,
                * which will force our peer to takeover.  Note that we're
                * being very conservative by only rebooting if in the
                * AKCS_CLUSTERED state:  there are other states in which it
                * may well be valid to failback (e.g., we are in AKCS_OWNER,
                * and our peer is AKCS_STRIPPED), but those states may also
                * indicate aberrent operation, and we therefore refuse to
                * failback.  (Even in an active/passive clustered config, a
                * FAILBACK should always be performed to transition the
                * cluster peers from OWNER/STRIPPED to CLUSTERED/CLUSTERED.)
                */
               var uuid = params.uuid;
               var clustered = 'AKCS_CLUSTERED';

               audit('attempting failover in response to alert ' + uuid);

               try {
                       run('configuration cluster');
               } catch (err) {
                       audit('could not get clustered state; aborting');
                       return;
               }

               if ((state = get('state')) != clustered) {
                       audit('state is ' + state + '; aborting');
                       return;
               }

               if ((state = get('peer_state')) != clustered) {
                       audit('peer state is ' + state + '; aborting');
                       return;
               }

               run('cd /');
               run('confirm maintenance system reboot');
       }
};