VMware Cloud Community
MattBayliss
Contributor
Contributor

Remove/Unmount datastore "A general system error occurred"

I'm trying to remove a datastore from a vSphere 6.0.0 cluster.  One of the hosts cannot remove the datastore, I get "A general system error has occurred".  There is no qualifying information.

There are no VMs on the Datastore.  What can i do to remove it?

Thanks

0 Kudos
4 Replies
msripada
Virtuoso
Virtuoso

Can you try to unmount from a single ESXi host instead of a cluster and then refresh storage from configuration?

Check the esxi host logs vmkernel.log and hostd.log if there is a failure

thanks,

MS

0 Kudos
berndweyand
Expert
Expert

is this datastore used for datastore heartbeat (vsphere HA)?

what folders do you see when ssh into one host and look in /vmfs/volumes/<datastorename> ?

0 Kudos
philke
Contributor
Contributor

There are some reasons why a datastore can not be removed. Sadly the error description is not very helpfull.

One reason can be that the esx host has coredumps on that datastore. To check that you have to connect to the host and use

esxcli system coredump file list

you will get some output like this:

Path Active Configured Size

------------------------------------------------------------------------------------------------------------------- ------ ---------- -----------

...

/vmfs/volumes/5582db59-64ef7f8d-2c50-0025b501003d/vmkdump/A046FC9D-3156-E111-0001-0000000000DF-6329204736.dumpfile true true 6329204736

/vmfs/volumes/55f95b48-be47d009-3f25-0017a477000c/vmkdump/A046FC9D-3156-E111-0001-0000000000AF-5084545024.dumpfile false false 5084545024

To extract which datastore is yours, you can have a look at /vmfs/volumes, there you find softlinks with the datastore names to those cryptic names.

After the identification you can deactivate and remove the coredump file with:

esxcli system coredump file remove -u

esxcli system coredump file remove -F -f /vmfs/volumes/5582db59-64ef7f8d-2c50-0025b501003d/vmkdump/A046FC9D-3156-E111-0001-0000000000DF-6329204736.dumpfile

If this is not working, than the reason would be, that you are not on the hosts, that this coredump file created. To identify the correct host see https://kb.vmware.com/s/article/10051

If no coredump file is the reason, that re removal is not working, it could still be, that the host is writing his syslog files to that datastore. In this case you have to give the esx host a new syslog destination and restart the host. Then you should be able to remove the datastore.

0 Kudos
msripada
Virtuoso
Virtuoso

I believe in that case, it would throw a message that the datastore resource is in use instead of general error, but worth checking

0 Kudos