Solved

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

Posted on 2011-09-07
4
1,113 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 119
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 119

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Last article we focus in how to VMware: How to create and use VMs TAGs – Part 1 so before follow this article and perform the next tasks, you should read the first article how to create the TAG before using them in Veeam Backup Jobs.
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
Teach the user how to install ESXi 5.5 and configure the management network System Requirements: ESXi Installation:  Management Network Configuration: Management Network Testing:
Teach the user how to configure vSphere Replication and how to protect and recover VMs Open vSphere Web Client: Verify vsphere Replication is enabled: Enable vSphere Replication for a virtual machine: Verify replicated VM is created: Recover replica…

856 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