VMware Cloud Community
warnox
Enthusiast
Enthusiast
Jump to solution

Remove Datastore - 'The resource '12345....' is in use'

Hey,

I'm trying to remove an iSCSI datastore from a standalone ESXi 5.5 host but getting the error above.

  • There are no VM's on this datastore.
  • I've deleted all the snapshots from the VM's which are on this ESX host.
  • The logs and crashdump files have been removed.
  • The server has been restarted.
  • Deleted VMKDump files.
  • There might have been VM's on this host in the past which possibly had snapshots, I'm not sure exactly how to check this.

This is all that exists on this datastore from what I can see.

         /vmfs/volumes/529cb07d-237b69a0-3fc2-f4ce46b911ec # ls -l -a -h

total 793608

drwxr-xr-t    1 root     root        1.2K Apr 30 16:25 .

drwxr-xr-x    1 root     root         512 Apr 30 16:30 ..

-r--------    1 root     root        5.8M Dec  2 16:08 .fbb.sf

-r--------    1 root     root      254.7M Dec  2 16:08 .fdc.sf

-r--------    1 root     root        1.1M Dec  2 16:08 .pb2.sf

-r--------    1 root     root      256.0M Dec  2 16:08 .pbc.sf

-r--------    1 root     root      250.6M Dec  2 16:08 .sbc.sf

-r--------    1 root     root        4.0M Dec  2 16:08 .vh.sf

Any help appreciated.

0 Kudos
1 Solution

Accepted Solutions
a_p_
Leadership
Leadership
Jump to solution

How many VMs do you have? If you only have a few VM's, check each VM's Summary page to see which datastores are shown as used by the VM. Maybe there's a VM with an active snapshot where - at the time the snapshot was created - the VM had a connection to this datastore (e.g. an ISO image attached to the virtual CD-ROM drive).

André

View solution in original post

0 Kudos
2 Replies
a_p_
Leadership
Leadership
Jump to solution

How many VMs do you have? If you only have a few VM's, check each VM's Summary page to see which datastores are shown as used by the VM. Maybe there's a VM with an active snapshot where - at the time the snapshot was created - the VM had a connection to this datastore (e.g. an ISO image attached to the virtual CD-ROM drive).

André

0 Kudos
warnox
Enthusiast
Enthusiast
Jump to solution

Oh man, that was it. I was looking for actual mounted ISO's instead of the CDRom hardware settings.

Thanks for the prompt response!

0 Kudos