VMware Cloud Community
paragsha
Hot Shot
Hot Shot

Force delete files from a datastore?

Hi,

I am running into the same problem as decribed in other posts like this http://communities.vmware.com/thread/210198. However in my case I have re-installed ESX on all the hosts that were connected to the SAN. Hence now no ESX is using the files on the SAN. However I am not able to delete them. I get an error: Device or resource busy. Is there any way to force delete all these files.

Thanks

Tags (1)
0 Kudos
7 Replies
AndreTheGiant
Immortal
Immortal

Which kind of SAN do you have?

Have you restart also the storage part?

Andre

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
0 Kudos
paragsha
Hot Shot
Hot Shot

I have a DCG FC SAN. I have not restarted the SAN. Unfortunately I am not a SAN expert and don't know how to do that. But I ask my lab admin to do that. Are you suggesting that restarting the SAN will get rid of this problem? (Kinda makes sense since any open handles will get deleted).

Will I have to do some reconfiguration if I restart the SAN?

0 Kudos
pramodupadhyay5
Enthusiast
Enthusiast

intially u have to format the lun with the VMFS...for more help just check

http://www.vmware.com/support/esx21/doc/esx21admin_mod_storage_server.html

If you found this or any other answer useful please consider the use of the Helpful or Correct buttons to award points

If you found this or any other answer useful please consider the use of the Helpful or Correct buttons to award points
0 Kudos
AndreTheGiant
Immortal
Immortal

DCG FC SAN

I do not know this mode... maybe you mean a EMC CX-something?

It's very strange that a FC SAN keep a look on a file.

How do you have reinstall all your node? One by one?

Do you have a DRS cluster?

Andre

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
0 Kudos
anujmodi1
Hot Shot
Hot Shot

VMFS datastore provides distributed locking mechanism to lock the files. If you files are shared on the datastore and other host also accessing the same file, then you can delete the files untill all the hosts are disconnected from the datastore or free write lock...

So you have two options here, either you can restart the san to disconnect all the connections from the hosts servers or otherwise run the vmkfstools command with lunreset to break the log on the host servers and then you can delete all the files from any of the servers.

Anuj Modi,

If you found my answer to be useful, feel free to mark it as Helpful or Correct.

The latest blogs and articles on Virtulization:

http://communities.vmware.com/blogs/amodi

Anuj Modi, If you found my answer to be useful, feel free to mark it as Helpful or Correct. The latest blogs and articles on Virtulization: anujmodi.wordpress.com
paragsha
Hot Shot
Hot Shot

The "model" shows as ISP2432... Not sure if this is what you were asking about. I have a custer but DRS/HA is currently turned off. I reinstalled all my hosts one-by-one and connected them to a new VC.

0 Kudos
paragsha
Hot Shot
Hot Shot

Can you point me to some details about the vmkfstools lunreset command? I want to know what exactly will it be doing before trying it out.

Thanks.

0 Kudos