Knowledge Base
The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides

|
Manually regenerating core dump files in VMware ESXi/ESX (1002769)
Details
During a purple diagnostic screen, ESXi/ESX attempts to write a VMkernel core dump to a previously-configured VMKCore (type
0xFC) partition. This file is normally created during startup or while collecting vm-support logs.For more information about:
- Gathering logs following a purple diagnostic screen, see Collecting diagnostic information from an ESX or ESXi host that experiences a purple diagnostic screen (1004128).
- Setting up a core dump partition, see Configuring an ESXi/ESX host to capture a VMkernel coredump from a purple diagnostic screen (1000328).
- Investigating diagnostic information when it is gathered, see Interpreting an ESXi/ESX host purple diagnostic screen (1004250).
Solution
ESXi/ESX 3.x
To generate a core dump file on ESXi/ESX 3.x:- Log into the ESXi/ESX host:
- For ESX classic, log into the service console as root. For more information, see Unable to connect to an ESX host using Secure Shell (SSH) (1003807).
- For ESXi, log in using Tech Support Mode. For more information, see Tech Support Mode for Emergency Support (1003677).
- Determine the device identifiers for the core partition(s) by running the command:
esxcfg-dumppart -t
You see one of these outputs:vmhba1:0:0:7 /vmfs/devices/disks/vmhba1:0:0:7naa.600508b1001030374543433532300700:7 /vmfs/devices/disks/naa.600508b1001030374543433532300700:7naa.6d4ae520a23d1500178db21c1837fead:7 /vmfs/devices/disks/naa.6d4ae520a23d1500178db21c1837fead:7
naa.600508b1001030374543433532300700:7 /vmfs/devices/disks/naa.600508b1001030374543433532300700:7
- If there is no output in step 3, set one of the volumes as the dump partition using the command:
esxcfg-dumppart -s naa.ID - Verify whether the dump partition is activated using the command:
esxcfg-dumppart -d
This command may return one of these message:Dump Partition deactivatedDump Partition activated
- If the partition is deactivated, activate it using the command:
# esxcfg-dumppart -a
Dump Partition activated. - Change to a directory with sufficient space to store the core dump file.
For example:cd /vmfs/volumes/DatastoreName/ - Dump the partition contents to a file by running the command:
vmkdump --devname "identifier"
Whereidentifieris the value recorded in step 2.
For example:vmkdump --devname "/vmfs/devices/disks/vmhba1:0:0:0:7"
ESXi/ESX 4.x and ESXi 5.x
To regenerate a core dump file on ESXi/ESX 4.x and ESXi 5.0:- Log into the ESXi/ESX host:
- For ESX classic, log into the service console as root. For more information, see Unable to connect to an ESX host using Secure Shell (SSH) (1003807).
- For ESXi, log in using Tech Support Mode. For more information, see Using Tech Support Mode in ESXi 4.1 and ESXi 5.x (1017910).
- For ESXi or ESX, log into your vMA appliance as
vi-adminand run the command:vifpinit host
Note: In vMA, thevifpinitcommand is replaced with thevifptargetcommand.
- Determine the device identifiers for the core partition(s) by running the command:
esxcfg-dumppart -t
You see output similar to:mpx.vmhba2:C0:T0:L0:2 /dev/sda2
For ESXi 5.1 you may see output similar to:mpx.vmhba1:C0:T0:L0:7 /vmfs/devices/disks/mpx.vmhba1:C0:L0:7 - Change to a directory with sufficient space to store the core dump file.
For example:cd /vmfs/volumes/DatastoreName/
Note: A core dump file will normally be between 100MB and 300MB in size. Be sure to select a location with sufficient free space. - Dump the partition contents to a file by running the command:
esxcfg-dumppart --copy --devname "/vmfs/devices/disks/identifier" --zdumpname /vmfs/volumes/datastore1/filename.1
Whereidentifieris the value recorded in step 2.
For example:esxcfg-dumppart --copy --devname "/vmfs/devices/disks/mpx.vmhba2:C0:T0:L0:2" --zdumpname /vmfs/volumes/datastore1/filename.1
Tags
This Article Replaces
Update History
Request a Product Feature
To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.
Actions
KB:
- Updated:
- Categories:
- Languages:
- Product Family:
- Product(s):
- Product Version(s):

