Displays and modifies the information and settings that are related to traditional system dump and firmware-assisted system dump.
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 }]
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. AIX V7.1 extends firmware assisted dump capabilities to make it as the default system dump method if it is supported by the platform.
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 -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.
Item | Description |
---|---|
-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:
|
-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. |
Item | Description |
---|---|
-f{ disallow | allow_kernel | require_kernal | 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:
|
-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:
|
-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:
|
-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:
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.
Access Control: Only the root user can run this command.
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
For information about the types of dump that this command shows, see the -l flag description under the Flags section.sysdumpdev -p /dev/hd7
sysdumpdev -s /dev/rmt0
sysdumpdev -L
sysdumpdev -z
If a system dump has occurred recently, an output that is similar to the following is displayed:4537344 /dev/hd7
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.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.sysdumpdev -L -S /dev/hd6