Copying the dump to Linux

Copy the dump from the z/VM® reader with the vmur command and convert the dump format to elf with the zgetdump command.

Before you begin

Ensure that the device node for the reader device is available.
# ls /dev/vmrdr*
vmrdr-0.0.000c
The command output of the example shows the default device node for the reader device.
If the device is not available, you might have to load the vmur module and set the device online.
# modprobe vmur
# chzdev -e -a 0.0.000c

For more information about vmur, see Device Drivers, Features, and Commands, SC33-8411.

Procedure

  1. Find the spool ID of the VMDUMP spool file in the output of the vmur li command:
    # vmur li
    ORIGINID FILE CLASS RECORDS  CPY HOLD DATE  TIME     NAME      TYPE     DIST
    S8360046 0463 V DMP 00214395 001 NONE 02/13 15:10:13 VMDUMP    FILE     S8360046
    In the example, the required VMDUMP file spool ID is 463.
  2. Copy the dump into your Linux® file system using the vmur receive command.
    # vmur rec 0463 /dumps/myvmdumpfile
    vmur: INFO: Reader file 0463 has VMDUMP format.
    In the example, the reader file is received to a file, /dumps/myvmdumpfile, in the Linux file system.
  3. Display information about the dump file with the zgetdump -i command.
    # zgetdump -i /dumps/myvmdumpfile
    General dump info:
      Dump format........: vmdump
      Version............: 2
      UTS node name......: s8360046
      UTS kernel release.: 6.6.0
      UTS kernel version.: #5 SMP Wed Oct 25 13:47:57 UTC 2023
      System arch........: s390x (64 bit)
      CPU count (online).: 2
      CPU count (real)...: 2
      Dump memory range..: 2048 MB
    
    Memory map:
      0000000000000000 - 000000007fffffff (2048 MB)
    The command output shows vmdump as the dump format.
  4. Convert the dump format from vmdump to elf, which is suitable for the crash tool.
    # zgetdump /dumps/myvmdumpfile > /dumps/myvmdumpfile.elf
    Format Info:
      Source: vmdump
      Target: elf
    
    Copying dump:
      00000000 / 00000837 MB
      00000359 / 00000837 MB
      00000512 / 00000837 MB
      00000630 / 00000837 MB
      00000728 / 00000837 MB
      00000812 / 00000837 MB
      00000837 / 00000837 MB
    
    Success: Dump has been copied

Results

The created file, named /dumps/myvmdumpfile.elf, can now be used as input to crash.