[AIX 운영 체제와 장치 관리 31] AIX 커널 복구, 장치 관리, 논리 볼륨 관리자 개념 — vary-on, 쿼럼, 미러 풀, GLVM, 비쿼럼 볼륨 그룹

핵심 정리

  • AIX 6.1부터 커널이 일부 루틴의 오류에서 복구해 계획에 없던 중단을 피할 수 있습니다. 기본은 꺼져 있고, 복구하면 2초 안팎 멈춘 뒤 콘솔 메시지, 오류 로그, /var/adm/ras/livedump의 라이브 덤프를 남깁니다.
  • 커널 복구에 드는 추가 메모리는 4 KB x maxthread + 128 KB x procnum입니다. SMIT의 Problem Determination → Kernel Recovery에서 켜고 끕니다(다음 부팅부터).
  • LVM은 LVDD(논리 볼륨 장치 드라이버)와 서브루틴 라이브러리로 이루어집니다. vary-on 때 각 물리 볼륨의 VGDA·VGSA를 읽습니다.
  • 쿼럼은 활성 VGDA·VGSA의 과반 투표입니다. 디스크 하나 VG는 VGDA 둘, 둘이면 2+1, 셋 이상이면 디스크마다 하나이며, 절반 이상을 잃으면 VG가 스스로 vary-off합니다.
  • 미러 풀(6.1.1.0 이상)은 논리 볼륨 사본이 쓸 디스크를 제한하며 엄격도는 off·on·super입니다. 비쿼럼 VG는 VGDA·VGSA 한 쌍만 남아도 온라인을 유지하지만, 다시 활성화하려면 모든 디스크가 있어야 합니다.
항목 내용
버전 AIX 6.1 (커널 복구·미러 풀·GLVM은 6.1에서 추가)
원문 Operating system and device management — 5.3판 LVM 개념 일부, 6.1판 339~343쪽
관련 명령어 smit, varyonvg, varyoffvg, extendvg, chpv, lsvg, lslv -m, errpt
관련 파일 /var/adm/ras/livedump

AIX 6.1부터 커널은 선택한 루틴의 오류에서 선택적으로 복구해 계획에 없던 시스템 중단을 피할 수 있습니다.

커널 복구는 기본적으로 꺼져 있습니다. 커널 복구를 켜면 커널 복구 동작 중 시스템이 잠시 멈출 수 있습니다. 이 시간은 보통 2초보다 짧습니다. 커널 복구 동작 직후 다음 일이 일어납니다.

  • 시스템 콘솔에 다음 메시지가 나옵니다.
text
-------------------------------------------------------------------------
        A kernel error recovery action has occurred. A recovery log
         has been logged in the system error log.
-------------------------------------------------------------------------
  • AIX가 오류 로그에 항목을 더합니다. 전체 시스템 종료 때의 데이터를 보내는 것처럼 오류 로그 데이터를 IBM 서비스에 보낼 수 있습니다. 다음은 복구 오류 로그 항목의 예입니다.
text
LABEL:          RECOVERY
Date/Time:       Fri Feb 16 14:04:17 CST 2007
Type:            INFO
Resource Name:   RMGR
Description
Kernel Recovery Action
Detail Data
Live Dump Base Name
RECOV_20070216200417_0000
Function Name
w_clear
FRR Name
w_init_clear_frr
Symptom String
273
EEEE00009627A072
F10001001B18BBC0
w_clear+D0
wdog0030+288
test_index+4C
Recovery Log Data
0001 0000 0000 0000 F000 0000 2FFC AEB0 0000 0111 0000 0000 0000 0000 0021 25BC
8000 0000 0002 9032 EEEE 0000 9627 A072 F100 0100 1B18 BBC0 0000 0000 0000 0000
0000 0001 0000 0000 0006 0057 D2FF 8C00 0001 0148 0500 0000 8000 0000 0002 9032
.....
  • AIX가 라이브 덤프를 만듭니다. 라이브 덤프 데이터는 기본적으로 /var/adm/ras/livedump 디렉터리에 있으며 파일 이름은 RECOV_timestamp_sequence입니다. timestamp는 커널 복구가 일어난 시각, sequence는 커널 복구가 호출된 횟수입니다. 전체 시스템 종료 때처럼 라이브 덤프 데이터를 IBM 서비스에 보낼 수 있습니다. 라이브 덤프에 관한 자세한 내용은 Kernel Extensions and Device Support Programming Concepts의 라이브 덤프를 봅니다.

주의: 커널 복구 뒤 일부 기능을 잃을 수 있지만 운영 체제는 안정 상태를 유지합니다. 필요하면 시스템을 종료하고 다시 시작해 잃은 기능을 되살립니다.

영어 원문

AIX kernel recovery

Beginning with AIX 6.1, the kernel can optionally recover from errors in selected routines, avoiding an unplanned system outage.

Kernel recovery is disabled by default. If kernel recovery is enabled, the system might pause for a short time during a kernel recovery action. This time is generally less than two seconds. The following actions occur immediately after a kernel recovery action:

  • The system console displays the following message:
text
-------------------------------------------------------------------------
        A kernel error recovery action has occurred. A recovery log
         has been logged in the system error log.
-------------------------------------------------------------------------
  • AIX adds an entry into the error log. You can send the error log data to IBM for service, similar to sending data from a full system termination. The following is a sample recovery error log entry:

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

  • AIX generates a live dump. The data from a live dump is located by default in the /var/adm/ras/livedump directory and the file is named RECOV_timestamp_sequence, where timestamp specifies the time of the kernel recovery occurrence, and sequence specifies the number of times that kernel recovery has been invoked. You can send live dump data to IBM for service, similar to sending data from a full system termination. For more information about live dumps, see live dumps in Kernel Extensions and Device Support Programming Concepts.

Attention: Some functions might be lost after a kernel recovery, but the operating system remains in a stable state. If necessary, shut down and restart your system to restore the lost functions.

메모리와 프로세서 고려 사항

AIX는 주 커널 동작 중 커널 복구 상태 데이터를 유지합니다. 커널 복구를 켜면 이 데이터를 유지하려는 추가 프로세서 명령과 저장하려는 추가 메모리가 필요합니다. 프로세서 사용 영향은 아주 작습니다. 추가 메모리 사용은 다음 식으로 구할 수 있습니다. maxthread는 시스템에서 실행되는 최대 스레드 수, procnum은 프로세서 수입니다.

text
memory required = 4 KB x maxthread + 128 KB x procnum

다음 예처럼 프로세서 16개, 최대 스레드 1000개인 시스템은 6304KB를 더 씁니다.

text
4 x 1000 + 128 x 16 = 6304 KB
영어 원문

Memory and processor considerations

AIX maintains data on the status of kernel recovery during mainline kernel operations. When kernel recovery is enabled, additional processor instructions are required to maintain the data and additional memory is required to save the data. The impact to processor usage is minimal. Additional memory consumption can be determined by the following equation, where maxthread is the maximum number of threads running on the system and procnum is the number of processors:

text
memory required = 4 KB x maxthread + 128 KB x procnum

As show in the following example, a system with 16 processors and a maximum of 1000 threads consumes an additional 6304 KB:

text
4 x 1000 + 128 x 16 = 6304 KB

커널 복구 켜기와 끄기

SMIT 경로 인터페이스에서 커널 복구를 켜거나 끌 수 있습니다.

커널 복구를 켜거나 끄려면 다음 SMIT 경로를 씁니다.

Problem Determination > Kernel Recovery > Change Kernel Recovery State > Change Next Boot

커널 복구 상태

다음 SMIT 경로로 현재 커널 복구 상태를 볼 수도 있습니다.

Problem Determination > Kernel Recovery > Show Kernel Recovery State

영어 원문

Enabling and disabling kernel recovery

You can enable or disable kernel recovery from the SMIT path interface.

To enable, or disable kernel recovery, use the following SMIT path:

Problem Determination > Kernel Recovery > Change Kernel Recovery State > Change Next Boot

Kernel Recovery State

You can also display the current kernel recovery state by using the following SMIT path:

Problem Determination > Kernel Recovery > Show Kernel Recovery State

장치 관리

명령으로 AIX에서 쓸 수 있는 여러 장치를 관리할 수 있습니다. 관리할 수 있는 대상에는 논리 볼륨 관리자, 파일 시스템, 테이프 드라이브, 프린터 등이 있습니다.

영어 원문

Device management

You can use commands to manage the different devices that are available in AIX. Some of the devices that you can manage include Logical Volume Manager, file systems, tape drives, and printers.

논리 볼륨 관리자

논리 볼륨 저장소를 만들고 제어할 수 있게 하는 운영 체제 명령, 라이브러리 서브루틴, 기타 도구의 묶음을 논리 볼륨 관리자(LVM)라고 합니다.

LVM은 더 단순하고 유연한 저장 공간의 논리적 관점과 실제 물리 디스크 사이에서 데이터를 대응시켜 디스크 자원을 제어합니다. 이를 위해 전통적인 디스크 장치 드라이버 위에서 동작하는 장치 드라이버 코드 층을 씁니다.

LVM은 논리 볼륨 장치 드라이버(LVDD)와 LVM 서브루틴 인터페이스 라이브러리로 이루어집니다. LVDD는 모든 I/O를 관리하고 처리하는 의사 장치 드라이버입니다. 논리 주소를 물리 주소로 바꾸고 I/O 요청을 특정 장치 드라이버에 보냅니다. LVM 서브루틴 인터페이스 라이브러리에는 시스템 관리 명령이 시스템의 논리·물리 볼륨에 대한 관리 작업을 하는 데 쓰는 루틴이 들어 있습니다.

관련 정보

  • Logical Volume Programming Overview, Understanding the Logical Volume Device Driver
영어 원문

Logical Volume Manager

The set of operating system commands, library subroutines, and other tools that allow you to establish and control logical volume storage is called the Logical Volume Manager (LVM).

The LVM controls disk resources by mapping data between a more simple and flexible logical view of storage space and the actual physical disks. The LVM does this using a layer of device-driver code that runs above traditional disk device drivers.

The LVM consists of the logical volume device driver (LVDD) and the LVM subroutine interface library. The logical volume device driver (LVDD) is a pseudo-device driver that manages and processes all I/O. It translates logical addresses into physical addresses and sends I/O requests to specific device drivers. The LVM subroutine interface library contains routines that are used by the system management commands to perform system management tasks for the logical and physical volumes of a system.

Related information

Logical Volume Programming Overview Understanding the Logical Volume Device Driver

논리 볼륨 관리자 개념

논리 볼륨 관리자를 쓰기 전에 기본 동작 원리와 용어를 알아야 합니다.

vary-on 과정

vary-on 과정은 LVM이 볼륨 그룹을 쓸 준비가 됐고 최신 데이터를 담고 있는지 보장하는 메커니즘 가운데 하나입니다.

varyonvg와 varyoffvg 명령은 시스템에 정의한 볼륨 그룹을 활성화하거나 비활성화합니다(쓸 수 있거나 없게 합니다). 시스템이 볼륨 그룹에 접근하려면 먼저 vary-on해야 합니다. vary-on 과정에서 LVM은 볼륨 그룹에 정의된 물리 볼륨에서 관리 데이터를 읽습니다. 볼륨 그룹 설명자 영역(VGDA)과 볼륨 그룹 상태 영역(VGSA)을 포함한 이 관리 데이터는 볼륨 그룹의 각 물리 볼륨에 저장됩니다.

VGDA에는 볼륨 그룹의 각 논리 볼륨에 대해 물리 파티션과 논리 파티션의 대응을 설명하는 정보와, 타임스탬프를 포함한 다른 중요 정보가 들어 있습니다. VGSA에는 볼륨 그룹에 vary-on을 시도할 때 어떤 물리 파티션이 오래됐는지(stale), 어떤 물리 볼륨이 빠졌는지(쓸 수 없거나 활성이 아님) 같은 정보가 들어 있습니다.

vary-on 동작이 볼륨 그룹에 정의된 물리 볼륨 하나 이상에 접근할 수 없으면 명령은 그 볼륨 그룹에 정의된 모든 물리 볼륨의 이름과 상태를 보여 줍니다. 이를 보고 이 볼륨 그룹을 vary-off할지 정할 수 있습니다.

관련 개념

  • 디스크 고장 대비 고가용성 — 디스크 고장을 막는 주된 방법은 미러링 같은 논리 볼륨 구성 설정입니다.

쿼럼

쿼럼은 LVM이 볼륨 그룹을 쓸 준비가 됐고 최신 데이터를 담고 있는지 보장하는 메커니즘 가운데 하나입니다.

쿼럼은 활성인 볼륨 그룹 설명자 영역과 볼륨 그룹 상태 영역(VGDA/VGSA) 수에 대한 투표입니다. 쿼럼은 디스크가 고장 났을 때 VGDA/VGSA 영역의 데이터 무결성을 보장합니다. 볼륨 그룹의 각 물리 디스크에는 VGDA/VGSA가 적어도 하나 있습니다. 볼륨 그룹을 디스크 하나에 만들면 처음에 그 디스크에 VGDA/VGSA 영역이 둘 있습니다. 볼륨 그룹이 디스크 둘로 이루어지면 한 디스크에는 여전히 둘, 다른 디스크에는 하나가 있습니다. 디스크가 셋 이상이면 디스크마다 하나씩 할당됩니다.

디스크(곧 그 VGDA/VGSA 영역)의 절반 이상을 LVM이 읽을 수 없으면 쿼럼을 잃습니다. 디스크 둘인 볼륨 그룹에서 VGDA/VGSA가 하나뿐인 디스크를 잃으면 세 영역 가운데 둘에 아직 닿을 수 있으므로 쿼럼이 유지됩니다. VGDA/VGSA 영역이 둘인 디스크를 잃으면 그렇지 않습니다. 볼륨 그룹을 이루는 디스크가 많을수록 디스크 하나가 고장 날 때 쿼럼을 잃을 가능성이 낮아집니다.

쿼럼을 잃으면 볼륨 그룹은 스스로 vary-off해서 LVM이 더 이상 디스크에 접근할 수 없게 합니다. 그래서 그 볼륨 그룹에 디스크 I/O가 더 일어나지 않아, 물리적 문제가 생겼을 때 데이터를 잃거나 썼다고 잘못 가정하지 않게 됩니다. 또 vary-off 결과로 하드웨어 오류가 일어나 서비스가 필요하다고 오류 로그로 사용자에게 알립니다.

쿼럼을 잃어도 볼륨 그룹을 계속 운영하는 것이 바람직한 경우가 있습니다. 이때는 볼륨 그룹의 쿼럼 검사를 끌 수 있습니다. 이런 볼륨 그룹을 비쿼럼 볼륨 그룹이라고 합니다. 비쿼럼 볼륨 그룹의 가장 흔한 경우는 논리 볼륨을 미러링한 경우입니다. 디스크를 잃어도 논리 볼륨 사본이 꺼지지 않고 접근할 수 있는 디스크에 있으면 데이터를 잃지 않습니다. 그러나 비쿼럼 볼륨 그룹에서도(미러링했든 안 했든) 데이터(사본 포함)가 쓸 수 없게 된 디스크에만 있는 경우가 있습니다. 그러면 볼륨 그룹이 계속 vary-on 상태여도 데이터에 접근하지 못할 수 있습니다.

관련 개념

  • 볼륨 그룹을 비쿼럼 상태로 전환

미러 풀

미러 풀로 볼륨 그룹의 물리 볼륨을 별도 풀로 나눌 수 있습니다.

미러 풀은 물리 볼륨 하나 이상으로 이루어집니다. 각 물리 볼륨은 한 번에 한 미러 풀에만 속할 수 있습니다. 논리 볼륨을 만들 때 만드는 논리 볼륨의 각 사본을 미러 풀에 할당할 수 있습니다. 미러 풀에 할당한 논리 볼륨 사본은 그 미러 풀의 물리 볼륨에서만 파티션을 할당합니다. 그래서 논리 볼륨 사본이 쓸 수 있는 디스크를 제한할 수 있습니다. 미러 풀이 없으면 논리 볼륨을 만들거나 늘릴 때 할당에 쓸 물리 볼륨을 제한하는 유일한 방법은 맵 파일을 쓰는 것입니다. 그래서 미러 풀을 쓰면 이 과정이 크게 단순해집니다. 미러 풀은 extendvg 명령이나 chpv 명령으로 만들 수 있습니다.

새 미러 풀을 만들 때는 미러 풀 이름을 지정해야 합니다. 미러 풀 이름은 다음 규칙을 따라야 합니다.

  • 영숫자나 _(밑줄), -(빼기), .(마침표) 문자만 쓸 수 있습니다.
  • 15자 이하여야 합니다.
  • 볼륨 그룹 안에서 고유해야 합니다.

볼륨 그룹에서 미러 풀을 한 번 쓰면 그 볼륨 그룹은 미러 풀을 지원하지 않는 AIX 버전으로 더 이상 가져올 수 없습니다. 여기에는 6.1.1.0 이전의 모든 AIX 버전이 포함됩니다. 또 향상된 동시 모드 LVM에서 미러 풀을 쓰려면 클러스터의 모든 노드가 미러 풀을 지원해야 합니다.

미러 풀 엄격도

미러 풀 엄격도로 미러 풀 사용에 더 엄격한 제한을 걸 수 있습니다. 미러 풀 엄격도는 다음 세 값 가운데 하나입니다.

값 제한
off 미러 풀 사용에 제한이 없습니다. 기본값입니다.
on 볼륨 그룹에서 만드는 각 논리 볼륨 사본은 미러 풀에 할당해야 합니다.
super 로컬과 원격 물리 볼륨은 같은 미러 풀에 속할 수 없습니다(로컬·원격 물리 볼륨은 HACMP/XD GLVM 문서 참고). 볼륨 그룹에 미러 풀은 최대 셋입니다. 각 미러 풀에는 볼륨 그룹의 각 논리 볼륨 사본이 적어도 하나 있어야 합니다.

지리적 논리 볼륨 관리자

GLVM(Geographic Logical Volume Manager)으로 지리적으로 먼 곳에 데이터의 미러 사본을 유지할 수 있습니다.

GLVM은 중요 데이터를 원격 재해 복구 사이트에 미러링해 재해에서 비즈니스를 보호하도록 돕습니다. 화재나 홍수 같은 재해로 운영 사이트의 데이터가 파괴돼도 재해 복구 사이트에 데이터의 백업 사본이 있습니다.

데이터는 표준 TCP/IP 네트워크로 미러링됩니다. 운영 사이트와 재해 복구 사이트가 같은 물리 네트워크에 있을 필요는 없으며, 두 사이트 사이에 라우터와 게이트웨이가 있어도 됩니다. 아주 긴 디스크 케이블 대신 TCP/IP 네트워크와 RPV(Remote Physical Volume) 장치 드라이버로 원격 디스크에 접근합니다.

사용자는 지리적으로 먼 디스크를 원격 물리 볼륨으로 구성한 뒤 로컬 물리 볼륨과 합쳐 지리적으로 미러링된 볼륨 그룹을 만듭니다. 이 볼륨 그룹은 LVM이 관리하며 일반 볼륨 그룹과 비슷하게 동작합니다. GLVM은 동기와 비동기 원격 미러링을 모두 지원합니다.

비쿼럼 볼륨 그룹

LVM은 VGDA나 VGSA의 쿼럼이 모자라면 볼륨 그룹을 자동으로 비활성화합니다. 그러나 VGDA/VGSA 쌍이 하나라도 온전하면 그룹을 온라인으로 유지하는 옵션을 고를 수 있습니다. 이 옵션이 비쿼럼 볼륨 그룹을 만듭니다.

LVM은 비쿼럼 볼륨 그룹을 다시 활성화하기 전에 모든 디스크에 접근할 수 있어야 합니다. 그래야 VGDA와 VGSA가 최신임을 보장할 수 있습니다.

모든 논리 볼륨에 사본이 적어도 둘 있는 시스템에서는 비쿼럼 볼륨 그룹을 만들고 싶을 수 있습니다. 디스크가 고장 나도 활성 디스크가 하나라도 있으면 볼륨 그룹은 활성으로 남습니다.

참고: 사용자 정의 볼륨 그룹과 rootvg 볼륨 그룹 모두 비쿼럼 상태로 동작할 수 있지만, 비쿼럼으로 구성하고 하드웨어 고장 뒤 복구하는 방법은 서로 다릅니다. 해당 볼륨 그룹에 맞는 방법을 쓰도록 합니다.

비쿼럼 볼륨 그룹을 써도 쿼럼을 잃고 errpt 명령 출력에서 다음 메시지를 볼 수 있습니다.

text
QUORUM LOST,  VOLUME GROUP CLOSING LVM.

이 메시지는 모든 물리 볼륨이 missing 상태여서 LVM이 볼륨 그룹을 자동으로 vary-off할 때 나옵니다.

볼륨 그룹의 쿼럼을 끄면 쿼럼 요구가 1로 줄어들기 때문에 메시지가 QUORUM LOST라고 합니다. lsvg vgname 명령으로 QUORUM: 필드의 쿼럼 값을 볼 수 있습니다. 모든 물리 볼륨이 missing이면 이 최소 쿼럼 요구도 깨져 쿼럼 손실 메시지가 나오고 볼륨 그룹이 자동으로 vary-off됩니다.

관련 정보

  • AIX Logical Volume Manager, from A to Z: Introduction and Concepts

볼륨 그룹을 비쿼럼 상태로 전환

쿼럼이 없어도 데이터를 계속 쓸 수 있도록 볼륨 그룹을 비쿼럼 상태로 바꿀 수 있습니다.

이 절차는 다음 구성의 시스템에 자주 씁니다.

  • 논리 볼륨을 미러링한 디스크 두 개짜리 볼륨 그룹
  • 논리 볼륨을 한 번이나 두 번 미러링한 디스크 세 개짜리 볼륨 그룹

이런 볼륨 그룹이 비쿼럼 상태로 동작할 수 있으면 디스크가 고장 나도 볼륨 그룹의 디스크 하나라도 활성이면 볼륨 그룹은 활성으로 남습니다.

비쿼럼 그룹을 복구할 수 있게 하려면 다음을 확인합니다.

  • JFS나 JFS2 파일 시스템을 쓰면 JFS 로그 논리 볼륨을 미러링합니다.
  • 미러 사본을 서로 다른 디스크에 둡니다. 구성이 확실하지 않으면 다음 명령으로 각 논리 파티션의 물리 위치(PV1, PV2, PV3)를 확인합니다(사본을 다른 디스크에 두려면 PV1, PV2, PV3 열에 서로 다른 hdisk 번호가 있어야 합니다).
text
lslv -m LVName

논리 볼륨의 사본이 모두 같은 디스크에 있는데 그 디스크를 쓸 수 없게 되면, 볼륨 그룹이 쿼럼이든 비쿼럼이든 사용자는 그 볼륨을 쓸 수 없습니다.

사용자 정의 볼륨 그룹과 rootvg 볼륨 그룹 모두 비쿼럼 상태로 동작할 수 있지만 구성과 복구 방법이 다릅니다.

비쿼럼 사용자 정의 볼륨 그룹을 활성화하려면 볼륨 그룹의 모든 물리 볼륨에 접근할 수 있어야 하며, 아니면 활성화가 실패합니다. 비쿼럼 볼륨 그룹은 마지막 디스크에 접근할 수 없게 될 때까지 온라인으로 남으므로, 활성화할 때는 모든 디스크에 접근할 수 있어야 합니다.

주의: rootvg 볼륨 그룹에 속한 디스크가 빠졌으면, 빠진 디스크를 도저히 고칠 수 없는 경우가 아닌 한 시스템 전원을 켜지 않습니다. LVM은 비쿼럼 rootvg를 강제로 활성화(vary on)할 때 늘 -f 플래그를 쓰며, 이 동작에는 위험이 따릅니다. rootvg가 활성화되지 않으면 운영 체제를 시작할 수 없으므로 LVM은 활성화를 강제해야 합니다. 다시 말해 LVM은 디스크 하나에만 접근할 수 있어도 비쿼럼 rootvg를 활성화하려고 마지막까지 시도합니다.

관련 개념

  • 디스크 고장 대비 고가용성, 어댑터나 전원 공급 장치 고장 대비 고가용성, 볼륨 그룹 정책 구현(lspv 명령으로 현재 구성 분석), 쿼럼
영어 원문

Logical Volume Manager concepts

Before you can start using Logical Volume Manager you must understand the basic mechanics and terminology.

Vary-on process

The vary-on process is one of the mechanisms that the LVM uses to ensure that a volume group is ready to use and contains the most up-to-date data.

The varyonvg and varyoffvg commands activate or deactivate (make available or unavailable for use) a volume group that you have defined to the system. The volume group must be varied on before the system can access it. During the vary-on process, the LVM reads management data from the physical volumes defined in the volume group. This management data, which includes a volume group descriptor area (VGDA) and a volume group status area (VGSA), is stored on each physical volume of the volume group.

The VGDA contains information that describes the mapping of physical partitions to logical partitions for each logical volume in the volume group, as well as other vital information, including a time stamp. The VGSA contains information such as which physical partitions are stale and which physical volumes are missing (that is, not available or active) when a vary-on operation is attempted on a volume group.

If the vary-on operation cannot access one or more of the physical volumes defined in the volume group, the command displays the names of all physical volumes defined for that volume group and their status. This helps you decide whether to vary-off this volume group.

Related concepts

High availability in case of disk failure The primary methods used to protect against disk failure involve logical volume configuration settings, such as mirroring.

Quorum

The quorum is one of the mechanisms that the LVM uses to ensure that a volume group is ready to use and contains the most up-to-date data.

A quorum is a vote of the number of Volume Group Descriptor Areas and Volume Group Status Areas (VGDA/VGSA) that are active. A quorum ensures data integrity of the VGDA/VGSA areas in the event of a disk failure. Each physical disk in a volume group has at least one VGDA/VGSA. When a volume

group is created onto a single disk, it initially has two VGDA/VGSA areas residing on the disk. If a volume group consists of two disks, one disk still has two VGDA/VGSA areas, but the other disk has one VGDA/VGSA. When the volume group is made up of three or more disks, then each disk is allocated just one VGDA/VGSA.

A quorum is lost when at least half of the disks (meaning their VGDA/VGSA areas) are unreadable by LVM. In a two-disk volume group, if the disk with only one VGDA/VGSA is lost, a quorum still exists because two of the three VGDA/VGSA areas still are reachable. If the disk with two VGDA/VGSA areas is lost, this statement is no longer true. The more disks that make up a volume group, the lower the chances of quorum being lost when one disk fails.

When a quorum is lost, the volume group varies itself off so that the disks are no longer accessible by the LVM. This prevents further disk I/O to that volume group so that data is not lost or assumed to be written when physical problems occur. Additionally, as a result of the vary-off, the user is notified in the error log that a hardware error has occurred and service must be performed.

There are cases when it is desirable to continue operating the volume group even though a quorum is lost. In these cases, quorum checking can be turned off for the volume group. This type of volume group is referred to as a nonquorum volume group. The most common case for a nonquorum volume group occurs when the logical volumes have been mirrored. When a disk is lost, the data is not lost if a copy of the logical volume resides on a disk that is not disabled and can be accessed. However, there can be instances in nonquorum volume groups, mirrored or nonmirrored, when the data (including copies) resides on the disk or disks that have become unavailable. In those instances, the data might not be accessible even though the volume group continues to be varied on.

Related concepts

Conversion of a volume group to nonquorum status You can change a volume group to nonquorum status to have data continuously available even when there is no quorum.

Mirror Pools

Mirror pools make it possible to divide the physical volumes of a volume group into separate pools.

A mirror pool is made up of one or more physical volumes. Each physical volume can only belong to one mirror pool at a time. When creating a logical volume, each copy of the logical volume being created can be assigned to a mirror pool. Logical volume copies that are assigned to a mirror pool will only allocate partitions from the physical volumes in that mirror pool. This provides the ability to restrict the disks that a logical volume copy can use. Without mirror pools, the only way to restrict which physical volume is used for allocation when creating or extending a logical volume is to use a map file. Thus, using mirror pools greatly simplify this process. Mirror pools can be created with the extendvg command or the chpv command.

You must specify a mirror pool name when you create a new mirror pool. Mirror pool names must conform to the following rules:

  • Can only contain alphanumeric characters or the _ (underscore), - (minus sign), or . (period) characters.

  • Must be less than or equal to 15 characters.

  • Must be unique in the volume group.

Once mirror pools have been used in a volume group, the volume group can no longer be imported into a version of AIX that does not support mirror pools. This includes any version of AIX before 6.1.1.0. Additionally, in order to use mirror pools with enhanced concurrent-mode LVM, all nodes in the cluster must support mirror pools.

Mirror pool strictness

Mirror pool strictness can be used to enforce tighter restrictions on mirror pool use. Mirror pool strictness can have one of the following three values:

off When mirror pool strictness is set to off, no restrictions are placed on mirror pool use. This is the default value.

on When mirror pool strictness is set to on, each logical volume copy created in the volume group must be assigned to a mirror pool.

super When mirror pool strictness is set to super, the following restrictions apply:

  • Local and remote physical volumes cannot belong to the same mirror pool.

Note: For more information on local and remote physical volumes, refer to the HACMP/XD GLVM documentation.

  • There can be a maximum of three mirror pools in a volume group.

  • Each mirror pool must contain at least one copy of each logical volume in the volume group.

Geographic Logical Volume Manager

Geographic Logical Volume Manager (GLVM) allows you to maintain a mirror copy of your data at a geographically distant location.

GLVM can help protect your business from a disaster by mirroring critical data to a remote disaster recovery site. If a disaster, such as a fire or flood, were to destroy the data at your production site, you would have a back-up copy of the data at your disaster recovery site.

The data is mirrored over standard TCP/IP networks. The production and disaster recovery sites need not be on the same physical network. Routers and gateways between the two sites are allowed. Instead of extremely long disk cables, the TCP/IP network and the Remote Physical Volume (RPV) device driver are used for remote disk access.

The user configures geographically distant disks as remote physical volumes and then combines those remote physical volumes with local physical volumes to form geographically mirrored volume groups. These volume groups are managed by Logical Volume Manager (LVM) and work similar to ordinary volume groups. GLVM supports both synchronous and asynchronous remote mirroring.

Nonquorum volume groups

The Logical Volume Manager (LVM) automatically deactivates the volume group when it lacks a quorum of Volume Group Descriptor Areas (VGDAs) or Volume Group Status Areas (VGSAs). However, you can choose an option that allows the group to stay online as long as there is one VGDA/VGSA pair intact. This option produces a nonquorum volume group.

The LVM requires access to all of the disks in nonquorum volume groups before allowing reactivation. This ensures that the VGDA and VGSA are up-to-date.

You might want to produce a nonquorum volume group in systems where every logical volume has at least two copies. If a disk failure occurs, the volume group remains active as long as there is one active disk.

Note: Both user-defined and rootvg volume groups can operate in nonquorum status, but the methods used to configure user-defined volume groups and rootvg volume groups as nonquorum and for recovery after hardware failures are different. Be sure you use the correct method for the appropriate volume group.

Even when you are using nonquorum volume groups, it is possible to lose quorum and see the following message in the errpt command output:

text
QUORUM LOST,  VOLUME GROUP CLOSING LVM.

This message occurs when all physical volumes are in the missing state and the LVM automatically varies off the volume group.

The message says QUORUM LOST because disabling quorum on a volume group reduces the quorum requirement to 1. You can use the lsvg vgname command to display the quorum value which is in the QUORUM: field. In the case where all physical volumes are missing, even this minimum quorum requirement is violated, resulting in the lost quorum message and an automatic vary off of the volume group.

Related information

AIX Logical Volume Manager, from A to Z: Introduction and Concepts

Conversion of a volume group to nonquorum status

You can change a volume group to nonquorum status to have data continuously available even when there is no quorum.

This procedure is often used for systems with the following configurations:

  • A two-disk volume group in which the logical volumes are mirrored

  • A three-disk volume group in which the logical volumes are mirrored either once or twice

When a volume group under these circumstances can operate in nonquorum status, then even if a disk failure occurs, the volume group remains active as long as at least one disk in the volume group is active.

To make recovery of nonquorum groups possible, ensure the following:

  • If your system uses JFS or JFS2 file systems, mirror the JFS log logical volume.

  • Place mirrored copies on separate disks. If you are unsure of the configuration, type the following command to check the physical location (PV1, PV2, and PV3) of each logical partition. (To place the copies on separate disks, the PV1, PV2, and PV3 columns must contain different hdisk numbers.)

text
lslv -m LVName

If a logical volume has its only copies residing on the same disk, and that disk becomes unavailable, the volume will not be available to the user regardless of the quorum or nonquorum status of its volume group.

Both user-defined and rootvg volume groups can operate in nonquorum status, but their configuration and recovery methods are different.

To activate a nonquorum user-defined volume group, all of the volume group's physical volumes must be accessible or the activation fails. Because nonquorum volume groups stay online until the last disk becomes inaccessible, it is necessary to have each disk accessible at activation time.

Attention: When a disk associated with the rootvg volume group is missing, avoid powering on the system unless the missing disk cannot possibly be repaired. The Logical Volume Manager (LVM) always uses the -f flag to forcibly activate (vary on) a nonquorum rootvg; this operation involves risk. LVM must force the activation because the operating system cannot be started unless rootvg is activated. In other words, LVM makes a final attempt to activate (vary on) a nonquorum rootvg even if only a single disk is accessible.

Related concepts

High availability in case of disk failure The primary methods used to protect against disk failure involve logical volume configuration settings,

such as mirroring. High availability in case of adapter or power supply failure To protect against adapter or power supply failure, depending on your requirements, do one or more of the following. Implementing a volume group policy After you have decided which volume group policies you want to use, analyze your current configuration by typing the lspv command on the command line. Quorum The quorum is one of the mechanisms that the LVM uses to ensure that a volume group is ready to use and contains the most up-to-date data.