Link to home
Start Free TrialLog in
Avatar of mikeleahy
mikeleahy

asked on

lun removal

hi guys

whats the best way to remove a LUN from my vmware environment ?

i tried to unpresent it , i then did a rescan and the logs went crazy with apd's etc and the LUN showed in active

whats the best way to do it?
Avatar of coolsport00
coolsport00
Flag of United States of America image

I assume data is off of it? Where is the LUN created?...local storage or SAN? Typically, you can rt-click on it in your SAN Mgmt software/GUI and "destroy" it (delete it). If it's on your host or in vCenter, just rt-click on it and select 'Delete'. It will then be removed from your VMware infrastructure. ***BE WARNED: ALL DATA IS DELETED OFF THE DATASTORE, SO MAKE SURE ALL VMs/DATA IS MOVED TO A NEW LOCATION***

~coolsport00
ASKER CERTIFIED SOLUTION
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mikeleahy
mikeleahy

ASKER

does the LUN have to be empty before i remove it from esx ?

I think you'll only get warned about data being erased, but should still be able to remove it.
according to web you should mask the lun on esx etc, is that needed ?
LUNs are normally masked on the SAN.

Zoned, Selective Presentation, Initiator Groups are all words which are used.

It prevents other Servers attaching to the storage and overwriting.
yeah i know but if i search the web - a vmware kb says you should mask it on the esx - reclaim paths etc.

See this kb if you want to mask on ESX

http://kb.vmware.com/kb/1009449

It depends on your storage infrastructure.
I have never done, nor needed to mask on my FC SAN/ESX host. All you need to do is what has been posted by @hanccocka and I.
it keeps saying that the LUN is in use - there is no vm on it . i moved it to antoher datastore
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
bingo - we have a winner

removed the link to the ISO and it removed fine
GREAT! :)