ZGETDUMP(8) | System Manager's Manual | ZGETDUMP(8) |
zgetdump - Tool for copying and converting System z dumps
zgetdump DUMP [-s SYS] [-f FMT] > DUMP_FILE
-m DUMP [-s SYS] [-f FMT] DIR
-i DUMP [-s SYS]
-d DUMPDEV
-u DIR
-h|-v
The zgetdump tool copies a source dump into a target dump with a configurable dump format. The source dump can be located either on a dump device or on a file system. By default the source dump content is written to standard output, which you can redirect to a specific file. You can also mount the dump content, print dump information, check whether a dump device contains a valid dump tool, or create a non-disruptive dump on a live system.
- elf: Executable and Linking Format core dump (default)
- s390: s390 dump
- prod: Data for the initial crashed Linux instance
- kdump: Data for the crashed kdump system
- all: Data for the initial crashed Linux and kdump system
The "-s" option returns an error for dumps that capture only a single crashed system.
The default action of zgetdump is to copy the source dump to standard output in the target format specified by the --fmt option. Read the examples section below for more information.
Use the "--mount" option to make a source dump accessible to tools that cannot directly read the original dump format. Rather than creating a converted copy of the dump, zgetdump creates a virtual dump file with the requested target format. This is fast and does not consume any additional disk space. Also multi-volume dumps can be assimilated into a single virtual dump file, which can then be accessed directly with dump-processing tools like makedumpfile or crash.
Specify a command of this form to mount and convert a dump:
# zgetdump --mount <DUMP> <DIR> --fmt <FMT>
Where:
The virtual dump file exists until the directory is unmounted. Use zgetdump -u <DIR> to unmount a dump.
The zgetdump tool uses the file system in user space (fuse) to mount the source dump. Therefore, the fuse kernel module must to be loaded before using the "--mount" option.
Read the examples section below for more information.
The default target format of zgetdump is "elf". Use the "--fmt" option to change the target format. The following dump formats are supported for target and source dump:
Depending on the dump format, the following dump attributes are available when calling zgetdump with the "--info" option:
# TZ='Pacific/Honolulu' zgetdump -i DUMP
Depending on the dump tool, the following attributes are available when calling zgetdump with the "--device" option:
The DASD partition /dev/dasdx1 was prepared for dump with:
# zipl -d /dev/dasdx1
An IPL was performed on the corresponding single-volume dump tool and a dump has been created. To copy the dump from the DASD partition to file dump.elf issue:
# zgetdump /dev/dasdx1 > dump.elf
DASD partitions /dev/dasdx1 and /dev/dasdy1 contained in file dev_list.conf were prepared for multi-volume dump with:
# zipl -M dev_list.conf
An IPL was performed on the corresponding multi-volume dump tool and a dump has been created. To copy the dump from the DASD partitions to file dump.elf issue:
# zgetdump /dev/dasdx > dump.elf
The device mapper multipath partition on a SCSI disk /dev/mapper/3600..20c0-part1 was prepared for dump with:
# zipl -d /dev/mapper/3600..20c0-part1
An IPL was performed on the corresponding dump tool and a dump has been created. To copy the dump from the device mapper partition to file dump.elf issue:
# zgetdump /dev/mapper/3600..20c0-part1 > dump.elf
Tape device /dev/ntibm0 was prepared with:
# zipl -d /dev/ntibm0
An IPL was performed on the corresponding tape dump tool and a dump has been created. To copy the dump from the tape to file dump.elf issue:
# zgetdump /dev/ntibm0 > dump.elf
To store an ELF-format dump from a live system in a file called dump.elf issue:
# nice -n -20 zgetdump /dev/mem > dump.elf
You can redirect standard output to tools like ftp or ssh in order to transfer the dump over the network without copying it into the file system first.
Copy DASD dump using ssh:
# zgetdump /dev/dasdd1 | ssh user@host "cat > dump.elf"
Copy and compress DASD dump using ftp and gzip (note that not all ftp clients can do this):
# ftp host
ftp> put |"zgetdump /dev/dasdd1 | gzip" dump.elf.gz
The same effect can also be achieved by using the "--mount" option and run scp or ftp directly on the mounted virtual dump file.
Mount a single-volume DASD dump as virtual ELF dump file, compress it with the makedumpfile tool, and unmount it with zgetdump:
# zgetdump -m /dev/dasdc1 /dumps
# makedumpfile -c -d 31 -x vmlinux.debug \
/dumps/dump.elf dump.kdump
# zgetdump -u /dumps
Mount a multi-volume DASD dump, process it with the "crash" tool, and unmount it with fusermount:
# zgetdump -m /dev/dasdx /dumps
# crash vmlinux /dumps/dump.elf
# fusermount -u /dumps
Print information about a DASD dump on /dev/dasdd1:
# zgetdump -i /dev/dasdd1
Print information about a dump on a device mapper multipath partition device node of a SCSI disk:
# zgetdump -i /dev/mapper/3600..20c0-part1
Print information about a DASD dump tool on /dev/dasdd:
# zgetdump -d /dev/dasdd
Print information about a dump tool on a SCSI multipath device:
# zgetdump -d /dev/mapper/3600..02c0
The ELF dump format is not supported by the zgetdump tool under 31 bit.
While it is not recommended for reasons of recovery and redundancy, FCP attached SCSI disks can also be accessed directly without multipathing, for example via the "/dev/disk/by-path/" device nodes.
zipl(8),crash(8),makedumpfile(8),dumpconf(8),vmconvert(1),vmur(8) fdisk(8),parted(8)
April 2012 | s390-tools |