VMware Cloud Community
nabeelsayegh
Contributor
Contributor

Help with configuring alternate crash dump location

Hello all....

Our servers we use to run ESXi have SD Cards instead of HDD drives.  All of our persistent storage is served via fiberchannel via FCoE. For those of you who have done the same, you know that you have to deal with the pesky issue of defining where you want your syslog location to be as the SD is not considered persistent storage.  We have done this in our environment by using one of our SAN datastores.  Recently though, I found out that there is another item we needed to take into consideration, the crash dump location.  I found out (the hard way) that we were not creating a crash dump when I pulled a support bundle from one of our ESXi hosts and that I also need to define a location for it as well.  This does not seem to be as simple as it is with the syslog.  There is a KB article on how to do this....which is fine, but there is a caveat that FCoE and iSCSI are not supported locations.....soooo.....what are my options.  I cannot add physical HBA's nore can I add local block storage to the host.  Is there a way around this?  If there is, then this is what I would like to accomplish:

I want to automate this in a powercli script and need some help for those way smarter than me on how to do this.  The esxcli method is as follows:

esxcli system coredump file set -p /vmfs/volumes/DATASTORE_UUID/vmkdump/FILENAME

I am looking for the PowerCLI equivalent AND I would like it to be parked in a subfolder off the root of the datastore_uuid named after the fully qualitifed hostname of the ESXi host I would run the powercli script on.  IOW....lets say my fully qualified domain name for the host is esxi01.serverdomain.com.  I want to run a universal script that creates the vmkdump folder if it does not exist in the target path and to create a file number of the dump file to also be that of the FQDN of the host if possible.  if I was to do this manually for server names mentioned above, the esxcli would look like this:

esxcli system coredump file set -p /vmfs/volumes/DATASTORE_UUID/vmkdump/FQDN_of_Host/FQDN_of_Host.dumpfile

Any help you guys can lend would be much appreciated.

Reply
0 Kudos
0 Replies