redefinevg 명령어 (AIX 5.3·6.1)

핵심 정리

  • ODM(장치 구성 데이터베이스)의 볼륨 그룹 정보가 디스크의 LVM 정보(VGDA)와 어긋났을 때, 어느 디스크가 그 볼륨 그룹에 속하는지 다시 읽어 ODM에 넣습니다.
  • 시스템에 연결된 모든 디스크의 예약 영역을 읽어 판단합니다.
  • 형태: redefinevg -d hdisk0 rootvg(그 디스크에서 VGID를 읽음), redefinevg -i VGID datavg.
  • lspv에 디스크의 볼륨 그룹이 잘못 나오거나 None으로 나올 때 씁니다. LV 정보까지 맞추려면 synclvodm -v datavg를 함께 씁니다.
  • root나 system 그룹 구성원만 실행할 수 있습니다.
항목 내용
버전 AIX 5.3, AIX 6.1 (내용이 같고, 6.1 문서에 RBAC 안내가 더해짐)
원문 IBM Commands Reference — 5.3 Volume 4, 6.1 Volume 4
파일 /usr/sbin/redefinevg
관련 명령어 synclvodm, importvg, varyonvg, lsvg, lspv

목적

장치 구성 데이터베이스에서 볼륨 그룹의 물리 볼륨 묶음을 다시 정의합니다.

영어 원문

Redefines the set of physical volumes of the given volume group in the device configuration database.

구문

text
redefinevg { -d Device | -i Vgid } VolumeGroup

설명

평상시에는 장치 구성 데이터베이스가 물리 볼륨의 예약 영역에 있는 LVM 정보와 일치합니다. 둘 사이에 불일치가 생기면 redefinevg 명령이 지정한 볼륨 그룹에 속하는 물리 볼륨을 찾아 그 정보를 장치 구성 데이터베이스에 다시 넣습니다. 시스템에 연결되어 구성된 모든 물리 볼륨의 예약 영역을 읽어 불일치를 확인합니다.

참고: root 권한이 있거나 system 그룹 구성원이어야 합니다.

영어 원문

During normal operations the device configuration database remains consistent with the Logical Volume Manager (LVM) information in the reserved area on the physical volumes. If inconsistencies occur between the device configuration database and the LVM, the redefinevg command determines which physical volumes belong to the specified volume group and re-enters this information in the device configuration database. The redefinevg command checks for inconsistencies by reading the reserved areas of all the configured physical volumes attached to the system.

Note: To use this command, you must either have root user authority or be a member of the system group.

플래그

플래그 설명
-d Device 지정한 물리 볼륨 장치에서 볼륨 그룹 ID(Vgid)를 읽습니다. 다시 정의할 볼륨 그룹에 속한 어떤 물리 볼륨이든 줄 수 있습니다.
-i Vgid 다시 정의할 볼륨 그룹의 식별 번호.
영어 원문
  • -d Device — The volume group ID, Vgid, is read from the specified physical volume device. You can specify the Vgid of any physical volume belonging to the volume group that you are redefining.
  • -i Vgid — The volume group identification number of the volume group to be redefined.

보안

(6.1) RBAC와 Trusted AIX 사용자: 이 명령은 특권 작업을 할 수 있으며 특권 사용자만 할 수 있습니다. 권한과 특권은 lssecattr 명령이나 getcmdattr 하위 명령으로 봅니다.

영어 원문

Attention RBAC users and Trusted AIX users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.

예제

rootvg의 물리 볼륨을 장치 구성 데이터베이스에 다시 정의합니다.

bash
redefinevg -d hdisk0 rootvg

자주 쓰는 형태:

bash
lsvg -p datavg                 # ODM이 아는 디스크
redefinevg -d hdisk2 datavg
synclvodm -v datavg            # LV 정보까지 맞춤
영어 원문

To redefine rootvg physical volumes in the Device Configuration Database, enter a command similar to the following: redefinevg -d hdisk0 rootvg

파일

파일 설명
/usr/sbin/synclvodm synclvodm 명령
영어 원문
  • /usr/sbin/synclvodm — Contains the synclvodm command.

Related information:

  • varyonvg command
  • varyoffvg command
  • lsvg command

리눅스(GNU)와 다른 점

리눅스 LVM2도 물리 볼륨(PV), 볼륨 그룹(VG), 논리 볼륨(LV) 구조가 같지만 명령 이름이 다릅니다. AIX lspv·lsvg·lslv는 pvs/pvdisplay, vgs/vgdisplay, lvs/lvdisplay에, mkvg·extendvg·reducevg는 vgcreate·vgextend·vgreduce에, mklv·extendlv·rmlv는 lvcreate·lvextend·lvremove에, varyonvg·varyoffvg는 vgchange -ay/-an에, importvg·exportvg는 vgimport·vgexport에, migratepv는 pvmove에 해당합니다. AIX의 물리 파티션(PP)은 리눅스의 물리 익스텐트(PE)이고, 미러는 lvcreate --type raid1이나 lvconvert -m1로 만듭니다. 리눅스는 디스크마다 PVID 대신 PV UUID를 쓰며, 파일 시스템은 따로 mkfs로 만듭니다. 리눅스 LVM은 메타데이터를 디스크에만 두므로 ODM 같은 별도 데이터베이스와 맞출 일이 없습니다. 장치 캐시는 pvscan --cache, vgscan으로 다시 읽습니다.