• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 381
  • Last Modified:

Vmware datatore delet and remove from storage question

I have created a lun for testing from storage and I finished my VM testing. Now I deleted the volumes from, OS and removed it from VM.  I want to know the proper way to remove the LUN. Can I now go ahead and delete the datastore, and then delete the LUN?
3 Solutions
Yep...as long as no needed VMs or data is on it. Just rt-click on it and select Delete (NOTE: this operation wipes all data off it). Once deleted from your Host/vCenter, you can then remove the LUN on your SAN if you want.

Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
the proper way to remove the LUN from an ESXi host

1. is the mask the LUN first.

see here


2. then  re-scan storage.

3. remove the LUN from SAN. (using SAN GUI or Tools).
mokkanAuthor Commented:
I already removed as coolsport00 suggested.
A proven path to a career in data science

At Springboard, we know how to get you a job in data science. With Springboard’s Data Science Career Track, you’ll master data science  with a curriculum built by industry experts. You’ll work on real projects, and get 1-on-1 mentorship from a data scientist.

Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
if you continue todo that you will expose a bug in ESXi, which hangs your server for hours!

mask first, then remove! (proper way!)
Karthik RajasekaranConsultantCommented:
1. Power off the VMs from the datastore which you are planning to remove.
2.remove from inventory,
3.Delete the datastore and remove the lun from the storage side (SAN GUI tool) , unmask the lun.
4.Initiate a new scan to get update all esxi that the luns are removed.
5.try to add a new datastore , you shouldnt see any raw lun in ready mode to configure.

Karthik rajasekaran
mokkanAuthor Commented:
thanks a lot guys.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now