I am currently trying to prepare a old NetApp filer (FAS960C) for a cold hard life in the scrap yard.
I thought it would be as simple as storage vmotioning all the VMs off it, and then simply unmounting the datastore from vSphere. Unfortunately I get this message when trying to unmount the darn thing.
So the error message says see the VMKernel log. I enable ssh on the host and check out /var/log/messages. [na] is the name of my datastore.
So which files does it have open?!? I have removed all the VMs. This was the tricky part – on a normal Linux box, you would run lsof and in two seconds you would know which process using the files. In ESXi, you go:
This returns the following :
tcp 0 0 10.0.0.45:1014 10.0.0.10:2049 ESTABLISHED 5163
tcp 0 0 10.0.0.45:1013 10.0.0.10:2049 ESTABLISHED 5163
The first IP column is the host, the second is the datastore. The last column is the world ID , which is like a PID. So plugging this into ps gives me:
5163 5163 busybox syslogd
Well there you go – it looks like we have set this up this machine to use the Netapp as a place to store logs. Completely forgot I ever did that! A quick check of the software -> advanced settings dialog reveals this is the case:
Clearing that dialog and a quick reboot will fix that.