VMware Cloud Community
srodenburg
Expert
Expert

Delete huge number of dump files

Hello,

I'm working at a customer right now that has hundreds of ESXi 6.7 Servers, divided over many clusters and those clusters have a lot of LUNs. The ESXi servers boot from small SAN bootluns so the coredump folder is configured on SAN LUN's. Nothing special so far.

However, in total there are hundreds and hundreds of 5GB ".dumpfile" files scattered in the /vmkdump  folders on those datastores. This environment has been collecting dumpfiles over many years and has never been cleaned up. I'm the lucky guy tasked with cleaning up the mess.

I know how to deal with old dumpfiles. Search for the owning ESXi server, deactivating it yadiyadiya and then delete it.

I'm under time-pressure (not lazy) so does anyone have something (Powercli thingy) on the shelf that can handle deleting stale  .dumpfile  files on this scale?

I'll be doing it on a cluster by cluster basis. Basically cycling through and quering all ESXi servers to see what they have, then deactivate the files so they can be deleted etc. We are not interessted in retaining anything at the moment (no open tickets etc.).

Thanks in advance,

Steven Rodenburg

0 Kudos
1 Reply
berndweyand
Expert
Expert

why not opening an esxcli-session with powercli ?

$esxcli = get-esxcli -vmhost <name> -V2

then you can use all esxcli-commands that you normally use from the esxi-shell

0 Kudos