sysdumpdev 명령어 (AIX 5.3·6.1)

핵심 정리

  • 시스템 덤프(커널이 멈출 때 메모리 내용을 남기는 것)를 쓸 주·보조 덤프 장치를 보고 바꿉니다. root만 실행할 수 있습니다.
  • sysdumpdev -l은 현재 설정(주·보조 장치, 복사 디렉터리, forcecopy, 6.1은 덤프 유형)을, sysdumpdev -L은 마지막 덤프의 날짜·크기·상태를 보여 줍니다.
  • -p 장치·-s 장치는 주·보조 장치를 임시로, -P를 함께 주면 영구로 바꿉니다. 메모리가 4GB 이상이면 기본 덤프 장치는 전용 LV /dev/lg_dumplv입니다.
  • sysdumpdev -e로 덤프 크기를 어림잡아 덤프 장치가 충분한지 봅니다. 모자라면 덤프 상태가 -2(LED 0C4)가 됩니다.
  • 부팅 때 덤프를 복사할 디렉터리는 -d(실패하면 버림)·-D(실패하면 메뉴로 외부 매체에 복사)로 정합니다. 덤프 파일은 savecore로 꺼내고 snap으로 모아 IBM에 보냅니다.
  • 6.1에서는 POWER6 이후에서 펌웨어 지원 덤프(-t fw-assisted)를 쓸 수 있고, 덤프는 늘 압축됩니다.
항목 내용
버전 AIX 5.3, AIX 6.1 (5.3의 -c·-C(덤프 압축 끄기·켜기)는 6.1에서 빠지고(늘 압축), 6.1에 -t(덤프 유형)·-f(펌웨어 지원 덤프의 메모리 범위)가 더해짐)
원문 IBM Commands Reference — 5.3 Volume 5, 6.1 Volume 5
파일 /usr/bin/sysdumpdev, /etc/objrepos/SWservAt, /dev/hd6, /dev/lg_dumplv
관련 명령어 sysdumpstart, savecore, dmpuncompress, snap, kdb

목적

기존 시스템 덤프와 펌웨어 지원 시스템 덤프에 관련된 정보와 설정을 보여 주고 바꿉니다. (5.3: 실행 중인 시스템의 주·보조 덤프 장치 지정을 바꿉니다.)

영어 원문

Displays and modifies the information and settings that are related to traditional system dump and firmware-assisted system dump.

구문

text
sysdumpdev -P { -p device | -s device } [ -q ] [ -i ]
sysdumpdev [ -p device | -s device ] [ -q ]
sysdumpdev [ -d directory | -D directory | -e | -I | [ -k | -K ] | -l | -p device | -q | -s device | -z ]
sysdumpdev [ -i ]
sysdumpdev -L { -v | -S device }
sysdumpdev [ -t { traditional | fw-assisted } ] [ -f { disallow | allow | require } ]

5.3에는 넷째 줄이 sysdumpdev [ -c | -C ] [ -i ]이고 마지막 줄(-t, -f)이 없습니다.

설명

sysdumpdev 명령은 실행 중인 시스템의 주(primary)·보조(secondary) 덤프 장치 지정을 바꿉니다. 주·보조 덤프 장치는 시스템 구성 객체에 지정되며, 새 지정은 sysdumpdev를 다시 실행하거나 시스템을 다시 시작할 때까지 유효합니다.

플래그 없이 실행하면 SWservAt ODM 객체 클래스에 정의된 덤프 장치를 씁니다. 기본 주 덤프 장치는 /dev/hd6, 기본 보조 덤프 장치는 /dev/sysdumpnull입니다. 메모리가 4GB 이상이면 기본 덤프 장치는 전용 덤프 장치 /dev/lg_dumplv입니다.

참고:

  • 미러된 페이징 공간을 덤프 장치로 쓸 수 있습니다.
  • 디스켓 드라이브는 덤프 장치로 쓰지 않습니다.
  • 페이징 장치를 쓴다면 주 페이징 장치 hd6만 씁니다. rootvg의 어느 페이징 장치든 보조 덤프 장치로 쓸 수 있습니다.
  • 테이프나 DVD 같은 이동식 장치를 쓰면 덤프가 여러 매체에 걸치지 않으므로 한 매체에 들어가야 합니다.
  • (6.1) 6100-01 기술 수준부터 rootvg의 iSCSI 소프트웨어 이니시에이터 장치를 펌웨어 지원 덤프의 덤프 장치로 쓸 수 있습니다.
  • (6.1) 씬 서버의 원격 덤프를 지원합니다. NIM 마스터에 덤프 자원을 정의하면 NIM 클라이언트에서 주 덤프 장치로만 쓸 수 있는 iSCSI 디스크로 보입니다. iSCSI 디스크에는 펌웨어 지원 덤프만 구성할 수 있습니다.
  • (6.1) 6100-06 기술 수준부터 커널 메모리의 펌웨어 지원 덤프를 구성할 수 있습니다.

Web-based System Manager(wsm)의 Devices 응용 프로그램으로도 이 명령을 실행합니다.

덤프 압축

  • 5.3: sysdumpdev로 덤프를 덤프 장치에 쓰기 전에 압축할지 정할 수 있습니다(-c·-C). 압축하면 덤프 장치가 작아도 되지만 덤프 시간이 길어질 수 있습니다. 압축 기능은 AIX 4.3.2부터이고, 5.3에서는 기본으로 켜져 있습니다.
  • 6.1: 모든 덤프가 압축됩니다.
  • 어느 버전이든 덤프 장치에서 파일로 덤프를 옮길 때는 savecore 명령을 씁니다.

펌웨어 지원 시스템 덤프(6.1)

sysdumpdev는 펌웨어 지원(firmware-assisted) 시스템 덤프에 대해 덤프 크기 어림, 가장 최근 덤프 정보 보기, 새 덤프 감지를 지원하고, 덤프 유형(traditional 또는 fw-assisted)도 보여 줍니다. -t는 덤프 유형을, -f는 펌웨어 지원 덤프의 메모리 범위 모드를 정합니다. 전체 메모리 모드에서는 운영 체제와 상관없이 덤프하며 파티션 메모리 전체를 덤프에 저장합니다.

rootvg가 아닌 볼륨 그룹에서 쓰기

영구 덤프 장치가 아니면(곧 -P를 주지 않으면) rootvg 밖의 덤프용 논리 볼륨을 쓸 수 있습니다. 6.1에서는 기존(traditional) 덤프에만 해당합니다. 다만 페이징 공간을 고르면 rootvg에 있지 않은 한 덤프 장치를 복사할 수 없습니다. 덤프 장치를 복사해야 할 때는 페이징이 시작되기 전이라 rootvg만 활성화되어 있기 때문입니다.

영구 덤프 장치라면 주 덤프 장치는 늘 rootvg에 있어야 합니다. 보조 장치는 페이징 공간이 아니면 rootvg 밖에 있어도 됩니다.

영어 원문

The sysdumpdev command changes the primary or secondary dump device designation in a system that is running. The primary and secondary dump devices are designated in a system configuration object. The new device designations are in effect until you run the sysdumpdev command again, or you restart the system.

If you use no flags with the sysdumpdev command, the dump devices defined in the SWservAt ODM object class are used. The default primary dump device is /dev/hd6. The default secondary dump device

is /dev/sysdumpnull. If the system has 4 GB or more of memory, then the default dump device is /dev/lg_dumplv, and /dev/lg_dumplv is a dedicated dump device.

Note:

  • A mirrored paging space might be used as a dump device.

  • Do not use a diskette drive as your dump device.

  • If you use a paging device, only use hd6, the primary paging device. The AIX operating system supports using any paging device in the root volume group (rootvg) as the secondary dump device.

  • If you use a removable device such as a tape or DVD, be aware that the dump does not span volumes. Thus, the dump must fit on a single volume.

  • You can configure an iSCSI software initiator device in the root volume group (rootvg) as the dump device for a firmware-assisted system dump, for AIX Version 6.1 with the 6100-01 Technology Level.

  • Remote dumps for thin servers are supported for AIX 6.1. You must define the relative dump resource on the NIM master to see the dump resource on the NIM client as an iSCSI disk that can only be used to configure the primary dump device. Only firmware-assisted system dump can be configured on an iSCSI disk device.

  • For AIX Version 6.1 with the 6100-06 Technology Level, you can configure a firmware-assisted dump of kernel memory.

For AIX 6.1 and later versions, all dumps are compressed. You should use the savecore command to copy dumps from the dump device to a file.

You must use the Devices application in Web-based System Manager (wsm) to run this command.

The sysdumpdev command supports firmware-assisted system dump for the following features:

  • Return of dump size estimation

  • Display of information about most recent dump

  • Detection of a new dump

The sysdumpdev command also provides the dump type including the traditional dump type or the fw-assisted dump type.

The -t flag specifies the type of dump. Its possible values are traditional and fw-assisted.

The -f flag specifies the full memory system dump mode. This mode is relevant only for the firmware-assisted system dump. In this mode, the dump is performed independently of the operating system. All of the partition memory is saved to the dump.

Running sysdumpdev in Non-rootvg Volume Groups

You can use a dump-logical volume outside the root volume group, if it is not a permanent dump device and for a traditional system dump only. For example, if the -P flag is not specified. However, if you choose a paging space, the dump device cannot be copied unless it is in rootvg. If the dump device must be copied, only rootvg is active before paging is started.

The primary dump devices must always be in the root volume group for permanent dump devices. The secondary device might be outside the root volume group unless it is a paging space.

플래그

플래그 설명
-c 덤프를 압축하지 않습니다. 5.3만
-C 앞으로의 모든 덤프를 덤프 장치에 쓰기 전에 압축합니다. 5300-05 기술 수준부터 새 압축 형식을 씁니다. 5.3만
-d directory 부팅 때 덤프를 복사할 디렉터리. 부팅 때 복사에 실패하면 덤프를 버립니다.
-D directory 부팅 때 덤프를 복사할 디렉터리. 부팅 때 복사에 실패하면 외부 매체로 복사할 수 있습니다.
-e 지금 시스템의 덤프 크기(바이트)를 어림합니다. 보이는 크기는 압축한 덤프의 어림 크기입니다.
-f 값 펌웨어 지원 덤프가 커널 메모리나 전체 메모리 덤프를 허용·요구·금지할지 정합니다. 값은 disallow, allow_kernel, require_kernel, allow_full, require_full입니다. 6.1부터 (아래 표)
-i 시스템 기능이 sysdumpdev를 불렀음을 나타냅니다. 시스템 유틸리티만 씁니다. 그 값이 IBM 자동 기능이 아닌 다른 방법으로 이미 바뀌었으면 바꾸지 않습니다. 곧 이전 변경을 덮어쓰지 않습니다.
-I 이전 변경 표시를 되돌려, 다시 -i로 바꿀 수 있게 합니다.
-k 키 모드 스위치가 있는 머신이면, 덤프 키 순서로 덤프를 강제하기 전에 스위치가 서비스 위치에 있어야 합니다. AIX 5.3 전에는 리셋 단추에도 이 제한이 있었습니다.
-K 키 모드 스위치가 정상 위치이거나 스위치가 없는 머신에서도 리셋 단추나 덤프 키 순서로 덤프를 강제합니다. 스위치가 없는 머신에서는 이 값을 설정하지 않으면 키 순서로 덤프를 강제할 수 없습니다(5.3 전에는 리셋 단추도 마찬가지).
-l 주·보조 덤프 장치, 복사 디렉터리, forcecopy 속성의 현재 값을 보여 줍니다. 6.1에서는 덤프 유형도 보여 줍니다(아래 표).
-L 가장 최근 시스템 덤프의 통계(날짜와 시간, 쓴 바이트 수, 완료 상태)를 보여 줍니다. 압축 크기(실제로 덤프 장치에 쓴 크기)와 압축 전 크기를 모두 보여 줍니다. 비휘발성 메모리에 이전 덤프 기록이 없으면 덤프 장치를 훑어 덤프를 찾습니다.
-P -p나 -s로 지정한 덤프 장치를 영구로 합니다. -p나 -s와 함께만 씁니다.
-p device 주 덤프 장치를 임시로 바꿉니다. 논리 볼륨, 쓰기 가능한 DVD, 테이프 장치, (6.1) 원격 덤프용으로 NIM이 구성한 iSCSI 디스크를 쓸 수 있습니다.
-q 표준 출력 메시지를 모두 막습니다. -l, -z, -L과 함께 쓰면 무시됩니다.
-s device 보조 덤프 장치를 임시로 바꿉니다. -p에 쓸 수 있는 장치를 씁니다.
-S device 특정 덤프 장치에서 유효한 압축 덤프를 찾습니다. 병렬 덤프를 지원하는 AIX 릴리스의 덤프여야 합니다. -L과 함께만 씁니다.
-t 유형 덤프 유형을 traditional이나 fw-assisted로 정합니다. 6.1부터 (아래 표)
-v 덤프 상태가 0이 아니면 쓸 수 있는 덤프 디버그 정보를 보여 줍니다. 서비스 담당이 덤프 실패를 진단할 때 씁니다. -L과 함께만 씁니다.
-z 새 시스템 덤프가 있는지 봅니다. 있으면 덤프 크기(바이트)와 덤프 장치 이름을 표준 출력에 쓰고, 없으면 아무것도 돌려주지 않습니다. 한 번 실행하면 그 덤프는 더는 최근 덤프로 치지 않습니다.

플래그 없이 실행하면 기본 덤프 장치를 씁니다.

-d·-D 디렉터리는 다음 오류를 검사합니다: 디렉터리가 없음, 로컬 JFS에 없음, rootvg에 없음.

-f 값(6.1):

값 뜻
disallow 전체 메모리도 커널 메모리 모드도 허용하지 않음. 선택적 메모리 모드
allow_kernel, require_kernel 커널 메모리 덤프를 허용·늘 수행(원문에 설명 줄이 빠짐)
allow_full 전체 메모리 덤프를 허용하되, 운영 체제가 덤프 요청을 제대로 처리하지 못할 때만 수행
require_full 전체 메모리 덤프를 허용하고 늘 수행. 이때 -e의 어림 크기는 메모리 크기에 압축 비율을 적용한 값

커널 메모리 모드는 커널 관련 메모리를, 전체 메모리 모드는 파티션 메모리 전체를 운영 체제와 상관없이 저장합니다.

-t 값(6.1):

값 뜻
traditional 기존 덤프. 재부팅 전에 덤프 데이터를 저장합니다. 펌웨어 지원 덤프를 지원하지 않거나, 시작할 때 메모리가 모자라거나, POWER6 이후 하드웨어가 아니면 이것만 쓸 수 있습니다. iSCSI 소프트웨어 이니시에이터 덤프 장치에서는 쓸 수 없습니다.
fw-assisted 펌웨어 지원 덤프. 재부팅과 나란히 덤프 데이터를 저장합니다. 메모리가 적은 구성으로 시작하면 -f로 전체 메모리 덤프를 명시해야 하며, 특히 iSCSI 구성에서는 기존 덤프로 돌아갈 수 없으니 주의합니다. 주 덤프 장치가 없거나 펌웨어 지원 덤프를 지원하지 않으면 기존 덤프를 합니다.

구성할 때 펌웨어 지원 덤프가 허용되지 않거나 덤프 요청 때 강제되지 않으면 기존 덤프를 합니다. 또 작업 영역(scratch area)은 초기화 때만 예약하므로, 기존 덤프에서 펌웨어 지원 덤프로 바꾼 설정은 재부팅해야 적용됩니다.

-l이 보여 주는 덤프 유형(6.1):

값 뜻
fw-assisted 선호 덤프 유형이 펌웨어 지원 덤프
fw-assisted (suspend) 선호 유형은 펌웨어 지원 덤프지만 주 덤프 장치가 없거나 지원하지 않음. 지원하지 않으면 기존 덤프를 함
traditional sysdumpdev -t traditional을 실행했거나 시스템이 펌웨어 지원 덤프를 지원하지 않아 기존 덤프만 씀. 펌웨어 지원 덤프에는 시작할 때 충분한 메모리, POWER6 이후 하드웨어, 지원하는 펌웨어가 필요

-L 참고: 보이는 덤프 크기는 디스크와 복사 블록 크기 때문에 매체의 실제 크기와 조금 다를 수 있습니다. I/O 오류로 덤프가 실패했으면 주·부 장치 번호는 실패한 장치의 번호입니다.

영어 원문
  • -d directory — Specifies the directory the dump is copied to at system boot. If the copy fails at boot time, you can use the -d flag to ignore the system dump.
  • -D directory — Specifies the directory the dump is copied to at system boot. If the copy fails at boot time, you can use the -D flag to copy the dump to an external media. Note: When using the -d directory or -D directory flags, the following error conditions are detected: • directory does not exist. • directory is not in the local journaled file system. • directory is not in the rootvg volume group.
  • -e — Estimates the size of the dump (in bytes) for the current running system. The size that is shown is the estimated size of the compressed dump.
  • -f{ disallow | allow_kernel

| require_kernel | allow_full | require_full } Specifies whether firmware-assisted system dump does allow, require or forbid the dump of either the kernel memory or the full memory. In kernel memory or full memory mode, the dump is performed independently of the operating system. All of the kernel relevant memory is saved to a kernel memory system dump. All of the partition memory is saved to a full memory system dump. The -f flag has the following variables:

  • The disallow variable specifies that neither the full memory system dump mode nor the kernel memory system dump mode is allowed. It is the selective memory mode. • The allow_full variable specifies that the full memory system dump mode is allowed but is performed only when operating system cannot properly handle the dump request.

  • The require_full variable specifies that the full memory system dump mode is allowed and is always performed. When the full memory dump is allowed, the dump size estimation specified with the -e flag corresponds to the memory size with the applied compression factor.

-i Indicates that the sysdumpdev command was called from a system function. This flag is only used by system utilities. The -i flag will not make the requested change if the effected value has already been modified by other than an automatic IBM function; that is, the -i flag will not override a previous change. -I Resets the indications of previous changes. After the -I flag is specified, changes are allowed with the -i flag. -k If your machine has a key mode switch, it is required to be in the service position before a dump can be forced with the dump key sequences. Prior to AIX 5.3, this restriction also applies to the reset button. -K If your machine has a key mode switch, the reset button or the dump key sequences will force a dump with the key in the normal position, or on a machine without a key mode switch. Note: On a machine without a key mode switch, a dump can not be forced with the key sequence without this value set. This is also true of the reset button prior to AIX 5.3. -l Lists the current value of the primary and secondary dump devices, copy directory, and forcecopy attribute. The -l flag also displays the current dump type. The following list indicates the possible values that are displayed:

  • fw-assisted: The preferred dump type is firmware-assisted system dump.

  • fw-assisted (suspend): The preferred dump type is firmware-assisted system dump, but the primary dump device is either not configured or it does not support firmware-assisted system dump. In the latter case, a traditional system dump is triggered.

  • traditional: Only the traditional system dump is available after the sysdumpdev -t traditional command. It might also because the firmware-assisted system dump is not supported on this system. To support firmware-assisted system dump, there must be sufficient memory when the system starts up, and POWER6® or later hardware and the supported firmware must be installed.

-L Displays statistical information about the most recent system dump. This includes date and time of last dump, number of bytes written, and completion status. The -L flag shows both the compressed size and the uncompressed size of the dump. The compressed size is the size of what was actually written to the dump device. If no previous dump was recorded in nonvolatile memory, this flag scans the dump devices for the existing dump. Note:

  1. The dump sizes shown might not reflect the exact size of the dump on the media. There can be a small difference because of disk and copy block sizes.

  2. If the dump has failed due to an I/O error, the major and minor device numbers will be those for the failing device.

  • -P — Makes permanent the dump device specified by -p or -s flags. The -P flag can only be used with the -p or -s flags.
  • -p device — Temporarily changes the primary dump device to the specified device. The device can be a logical volume, writable DVD, or a tape device or an iSCSI disk configured by NIM for remote dump.
  • -q — Suppresses all messages to standard output. If this flag is used with the -l, -z, or -L flag, the -q flag will be ignored.
  • -s device — Device Temporarily changes the secondary dump device to the specified device. The same devices valid for the -p flag are valid here.
  • -S device — Scans a specific dump device for a valid compressed dump. The dump must be from an AIX release with parallel dump support. This flag can be used only with the -L flag.
  • -t{ traditional | fw-assisted

} Specifies the type of dump to perform. The -t flag has the following variables:

  • The traditional variable specifies that the traditional system dump is performed. In this dump type, the dump data is saved before the system reboot. Under any of the following circumstances, you can only specify the traditional variable: – Firmware-assisted system dump is not supported. – Memory is not sufficient when the system starts. – POWER6 or later hardware is not installed. You cannot use the traditional system dump on an iSCSI software initiator dump device.

  • The fw-assisted variable specifies that the firmware-assisted system dump is performed. In this dump type, the dump data is saved in parallel with the system reboot. If the system starts in a low memory configuration, you must explicitly enable the full memory dump using the -f flag, especially in iSCSI software initiator configuration where firmware-assisted system dump cannot fall back on the traditional system dump if the full memory dump is not allowed. If you specify the fw-assisted variable but the primary dump device is either not configured or it does not support firmware-assisted system dump, a traditional system dump is triggered.

When the firmware-assisted system dump type is not allowed at configuration time, or is not enforced at dump request time, a traditional system dump is performed. In addition, because the scratch area is only reserved at initialization, a configuration change from traditional system dump to firmware-assisted system dump is not effective until the system is rebooted.

-v When the dump status is not 0, this option will display available dump debug information. The debug data, when available, is used by service to diagnose dump failures. This flag can only be used with the -L flag. -z Determines if a new system dump is present. If one is present, a string containing the size of the dump in bytes and the name of the dump device will be written to standard output. If a new system dump does not exist, nothing is returned. After the sysdumpdev -z command is run on an existing system dump, the dump will no longer be considered recent.

If no flags are used with the sysdumpdev command, the default dump devices are used.

보안

접근 제어: root만 실행할 수 있습니다.

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

영어 원문

Access Control: Only the root user can run this command.

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.

Error Codes

참고: 덤프 상태가 0이 아니면 덤프가 실패한 것입니다. 덤프 상태 값과 LED 값은 다음과 같습니다(5.3 문서에서는 예 4 아래에 있음).

덤프 상태 뜻 LED 값
0 덤프 성공 0C0
-1 덤프 장치가 정의되지 않음 0C8
-2 덤프 장치가 너무 작음 0C4
-3 덤프가 중단됐거나 시작되지 않음 0C5
-4 I/O 오류 0C1
영어 원문

Note: A nonzero dump status indicates a failed dump. The following values are the possible dump status values and their corresponding light-emitting diode (LED) values:

Dump status Description LED value
0 Dump completed successfully 0C0
-1 No dump device defined 0C8
-2 Dump device too small 0C4
-3 Dump crashed or did not start 0C5
-4 I/O error 0C1

예제

명령 하는 일
sysdumpdev -l 현재 덤프 장치 설정. 보이는 덤프 유형은 -l 설명을 봄
sysdumpdev -p /dev/hd7 논리 볼륨 hd7을 주 덤프 장치로
sysdumpdev -s /dev/rmt0 테이프 장치 rmt0을 보조 덤프 장치로
sysdumpdev -L 이전 덤프 정보
sysdumpdev -P -p /dev/newdisk1 주 덤프 장치의 데이터베이스 객체를 /dev/newdisk1로 영구로 바꿈
sysdumpdev -z 새 시스템 덤프가 있는지. 최근 덤프가 있으면 4537344 /dev/hd7처럼 보임
sysdumpdev -d /tmp/dump 덤프 장치가 /dev/hd6일 때 시스템이 멈춘 뒤 덤프를 /tmp/dump로 복사. 복사 중 오류가 나면 부팅을 계속하고 덤프는 잃음
sysdumpdev -D /tmp/dump 위와 같되, 복사가 실패하면 메뉴가 떠서 덤프를 외부 매체로 직접 복사할 수 있음
sysdumpdev -L -S /dev/hd6 덤프 장치 /dev/hd6에서 덤프를 찾음

자주 쓰는 형태:

bash
sysdumpdev -l                    # 지금 설정
sysdumpdev -e                    # 덤프 크기 어림(덤프 장치가 충분한지 확인)
lslv lg_dumplv                   # 덤프 LV 크기 확인, 모자라면 extendlv로 늘림
sysdumpdev -L                    # 마지막 덤프 결과
sysdumpdev -P -p /dev/lg_dumplv  # 주 덤프 장치를 전용 LV로 영구 지정
영어 원문
  1. To display current dump device settings, enter the following command:
sysdumpdev -l

For information about the types of dump that this command shows, see the -l flag description under the Flags section.

  1. To designate logical volume hd7 as the primary dump device, enter the following command:
sysdumpdev -p /dev/hd7
  1. To designate tape device rmt0 as the secondary dump device, enter the following command:
sysdumpdev -s /dev/rmt0
  1. To display information from the previous dump invocation, enter the following command:
sysdumpdev -L
  1. To permanently change the database object for the primary dump device to /dev/newdisk1, enter the following command:
sysdumpdev -P -p /dev/newdisk1
  1. To determine if a new system dump exists, enter the following command:
sysdumpdev -z

If a system dump has occurred recently, an output that is similar to the following is displayed:

4537344 /dev/hd7
  1. To specify the directory that a dump is copied to after a system crash, if the dump device is /dev/hd6, enter the following command:
sysdumpdev -d /tmp/dump

This attempts to copy the dump from /dev/hd6 to /tmp/dump after a system crash. If there is an error during the copy, the system continues to boot and the dump is lost.

  1. To specify the directory that a dump is copied to after a system crash, if the dump device is /dev/hd6, enter the following command:
sysdumpdev -D /tmp/dump

This attempts to copy the dump from /dev/hd6 to the /tmp/dump directory after a crash. If the copy fails, you are prompted with a menu. You can copy the dump manually to some external media through this menu.

  1. To scan a dump device for a dump, enter the following command:
sysdumpdev -L -S /dev/hd6

Related reference:

  • savecore Command

“sysdumpstart Command”

Related information:

  • dmpuncompress command
  • System Dump Facility
  • Trusted AIX®

리눅스(GNU)와 다른 점

리눅스에서는 커널 크래시 덤프를 kdump(kexec로 띄운 보조 커널이 /var/crash에 vmcore를 저장)로 남깁니다. 설정은 /etc/kdump.conf와 커널 매개변수 crashkernel=로 하고, 분석은 crash 도구로 합니다. AIX처럼 주·보조 덤프 장치를 따로 지정하는 개념은 없습니다.