ESXi stores its core dump files on the OSDATA partition by default.
This article provides steps for recreating a core dump file in OSDATA when you are unable to generate a core dump file due to an error such as "Unable to copy the dump file: Error: vmkernel dump version mismatch!".
For steps to specify VMFS as the destination for generating core dump files instead of OSDATA, refer to the article "Configuring ESXi coredump to file instead of partition."
VMware vSphere ESXi 8.x
VMware vSphere ESXi 7.x
Recreating the core dump file on OSDATA requires deleting the existing core dump file.
The procedure for removing an existing dump file and creating a new one is as follows:
esxcli storage filesystem list
Example output :
# esxcli storage filesystem listMount Point Volume Name UUID Mounted Type Size Free------------------------------------------------- ------------------------------------------ ----------------------------------- ------- ------ ------------ -----------/vmfs/volumes/6752####-########-####-#####6aab69c iscsi-101 6752####-########-####-#####6aab69c true VMFS-6 139318001664 48624566272/vmfs/volumes/6736####-########-####-#####6aab69c OSDATA-6736####-########-####-#####6aab69c 6736####-########-####-#####6aab69c true VMFSOS 25501368320 22177382400/vmfs/volumes/4c40####-########-####-#####eb6dae2 BOOTBANK1 4c40####-########-####-#####eb6dae2 true vfat 4293591040 4003332096/vmfs/volumes/2258####-########-####-#####608d64f BOOTBANK2 2258####-########-####-#####608d64f true vfat 4293591040 3989766144
In this example, 6736####-########-####-#####6aab69c is the OSDATA UUID.
esxcli system coredump file listExample output:
# esxcli system coredump file listPath Active Configured Size------------------------------------------------------------------------------------------------------- ------ ---------- ----------/vmfs/volumes/6736####-########-####-#####6aab69c/vmkdump/50EC####-####-####-####-#####B582956.dumpfile true true 1263534080
The red part in the Path matches the UUID in OSDATA
esxcfg-dumppart -d
After executing the command, the coredump file status will change to Active "false" and Configured "true".
Example output:
# esxcfg-dumppart -dDump file deactivated.
# esxcli system coredump file listPath Active Configured Size------------------------------------------------------------------------------------------------------- ------ ---------- ----------/vmfs/volumes/6736####-########-####-#####6aab69c/vmkdump/50EC####-####-####-####-#####582956.dumpfile false true 1263534080
esxcli system coredump file remove --force
After executing this command, coredump file will no longer be output by "esxcli system coredump file list" command.
esxcli system coredump file add -d <OSDATA UUID>esxcli system coredump file list
Example output:
# esxcli system coredump file add -d 6736####-########-####-#####6aab69c # esxcli system coredump file listPath Active Configured Size------------------------------------------------------------------------------------------------------- ------ ---------- ----------/vmfs/volumes/6736####-########-####-#####6aab69c/vmkdump/50EC####-####-####-####-#####B582956.dumpfile false false 1263534080
esxcli system coredump file set -p <Path of the core dump file confirmed in the previous step>
If the coredump file is successfully activated, the newly created dumpfile will be marked as Active "true" and Configured "true".
Example output:
# esxcli system coredump file set -p /vmfs/volumes/6736####-########-####-#####6aab69c/vmkdump/50EC####-####-####-####-#####B582956.dumpfile
# esxcli system coredump file listPath Active Configured Size------------------------------------------------------------------------------------------------------- ------ ---------- ----------/vmfs/volumes/6736####-########-####-#####6aab69c/vmkdump/50EC####-####-####-####-#####B582956.dumpfile true true 1263534080
Collecting a livedump to the active dumpfile and outputting it to a zdump file can be performed with the following commands.
Collect livedump to the active dumpfile:
esxcli --plugin-dir /usr/lib/vmware/esxcli/int/ debug livedump perform
Output the livedump to a zdump file:
esxcfg-dumppart --file --copy --devname active
For details on collecting a livedump and outputting to a zdump file, please refer to: Generating a VMkernel zdump manually from a dump file in ESXi host.