Solved

Need to disable the Rescan VMFS process after a datastore delete in VMWare ESX 4.1

Posted on 2011-09-07
4
1,079 Views
Last Modified: 2012-07-03
I've got to delete 85 datastores and my 7 blades have to rescan the VMFS files after each delete. Is there any way to disable this temporarily so i can get them all deleted in a timely manner, and then rescan the vmfs afterwards?
0
Comment
Question by:ciphron
  • 2
  • 2
4 Comments
 
LVL 117
ID: 36499034
fdisk at the command line can delete the partitions on the storage without rescan.

you can create later using vmkfstools, and issue re-scan if required.

Use fdisk with caution.
0
 
LVL 1

Author Comment

by:ciphron
ID: 36499308
I've already got the disks deleted off the guest OS, is that what you were referring to when you said fdisk?

I'm aware that i can delete the LUNs off of the storage, but without removing the datastores first, i've heard can have varying affects - and since its a production SAN, i don't exactly want to do something that could possibly bring important VMs down.

I've created them simply using the vSphere client's add storage process, are you suggesting a different method?

(You'll have to excuse the lack of knowledge, i'm relatively new to VMWare)
0
 
LVL 117

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) earned 500 total points
ID: 36499356
No, I mean using fdisk on the ESX HOST to destroy the VMFS datastore partition.

However, Anything done with fdisk is considered a hack and not supported, this will destroy the VMFS partition, it will not cause a rescan, but RESCANs are done for a reason.

Later if necessary, you can re-create the VMFS partition using vmkfstools on the ESX Host, and issue a remote rescan.

Personally, if you are new to VMware, and this is a serious production machine, (LUNs deleted on the SAN or correctly done iSCSI or FC presentation removed - this is what the rescan is for.).

I would stick with the either deleting with the supported method of using vSphere GUI Client, or Change Presentation of the LUN, and rescan.

BUT, be very aware and make sure you delete the correct datastore, or un-present the correct LUN.

There are not really any easy shortcuts! (unless you want a disaster!) - fdisk is dangerous!
0
 
LVL 1

Author Closing Comment

by:ciphron
ID: 36503193
Thanks for the input. Its sad to see that there is no simple/safe/gui way to do this, but if thats the way it is, thats the way it is.
Thanks for the help
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

It Is not possible to enable LLDP in vSwitch(at least is not supported by VMware), so in this article we will enable this, and also go trough how to enabled CDP and how to get this information in vSwitches and also in vDS.
HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
Teach the user how to delpoy the vCenter Server Appliance and how to configure its network settings Deploy OVF: Open VM console and configure networking:
This Micro Tutorial steps you through the configuration steps to configure your ESXi host Management Network settings and test the management network, ensure the host is recognized by the DNS Server, configure a new password, and the troubleshooting…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now