The command line utility for generating a VMkernel zdump is:
esxcfg-dumppart
Different options are available depending on the configuration and location of the dump files, and location for placing the zdump file.
Generating the VMkernel zdump from the current active dump file to the default location: /scratch/core
Note: These steps are not recommended if the /scratch partition is not configured on persistent storage as you may run out of space. For more information on scratch location, see Creating a persistent scratch location for ESXi 8.x/7.x/6.x
- Log in to the ESXi host using the SSH.
- Run this command to restore the current dump file configuration and ensure that the dump file is configured and activated:
esxcli system coredump file get
For example:
# esxcli system coredump file get
Active: /vmfs/volumes/527d1d8f-########-####-##########ab/vmkdump/564DDB42-####-####-####-##########AB.dumpfile
Configured: /vmfs/volumes/527d1d8f-########-####-##########ab/vmkdump/564DDB42-####-####-####-##########AB.dumpfile
- Run this command to generate the VMkernel zdump:
esxcfg-dumppart --file --copy --devname active
The path to the output file is displayed so that you can locate the zdump.
For example:
# esxcfg-dumppart --file --copy --devname active
Created file /scratch/core/vmkernel-zdump.1
Generating the VMkernel zdump from the current active dump file to a specific location
- Log in to the ESXi host using the SSH.
- Run this command to restore the current dump file configuration and ensure that the dump file is configured and activated:
esxcli system coredump file get
For example:
# esxcli system coredump file get
Active: /vmfs/volumes/527d1d8f-########-####-##########ab/vmkdump/564DDB42-####-####-####-##########AB.dumpfile
Configured: /vmfs/volumes/527d1d8f-########-####-##########ab/vmkdump/564DDB42-####-####-####-##########AB.dumpfile
- Run this command to generate the VMkernel zdump:
esxcfg-dumppart --file --copy --devname active --zdumpname /vmfs/volumes/<datastore_name>/<output_filename>
For example:
# esxcfg-dumppart --file --copy --devname active --zdumpname /vmfs/volumes/datastore1/vmkernel-zdump
Created file /vmfs/volumes/datastore1/vmkernel.zdump.1
Generating the VMkernel zdump from a specific dump file to a specific location
Note: Perform these steps to generate the VMkernel zdump file from the latest non-active dump file, if you have created and activated a new dump file after a previous host failure.
- Log in to the ESXi host using the SSH.
- List all potential files matching the ESXi host dump files:
For example:
# esxcli system coredump file list
Path Active Configured Size
------------------------------------------------------------------------------------------------------- ------ ---------- ---------
/vmfs/volumes/527d1d8f-########-####-##########ab/vmkdump/564DDB42-####-####-####-##########AB.dumpfile true true 119537664
/vmfs/volumes/527d1d8f-########-####-##########ab/vmkdump/manually_created_1.dumpfile false false 119537664
/vmfs/volumes/527d1d8f-########-####-##########ab/vmkdump/manually_created_2.dumpfile false false 119537664
- Generate the VMkernel zdump:
esxcfg-dumppart --file --copy --devname /vmfs/volumes/file_location_from_step_2 --zdumpname /vmfs/volumes/datastore_name/output_filename
For example:
# esxcfg-dumppart --file --copy --devname /vmfs/volumes/527d1d8f-########-####-##########ab/vmkdump/test.dumpfile --zdumpname /vmfs/volumes/datastore1/vmkernel-zdump
Created file /vmfs/volumes/datastore1/vmkernel-zdump.1
esxcli system coredump file list