WilliamLam.com

  • About
    • About
    • Privacy
  • VMware Cloud Foundation
  • VKS
  • Homelab
    • Resources
    • Nested Virtualization
  • VMware Nostalgia
  • Apple
You are here: Home / Automation / Erasing existing disk partitions now available in the vSphere Web Client (vSphere 6.0 Update 1)

Erasing existing disk partitions now available in the vSphere Web Client (vSphere 6.0 Update 1)

09.29.2015 by William Lam // 9 Comments

One of the primary challenges when trying re-purpose existing storage devices is ensuring that all data and existing partitions have been completely removed. Often times, customers end up resorting to third-party tools like GParted which requires you to boot your server into the LiveCD before you can remove the existing partitions. This is less than ideal, especially if you need to perform this operation across multiple systems.

For customers who wish to re-purpose their existing storage devices for other use, including VSAN, there is now a new UI option in the vSphere Web Client introduced in vSphere 6.0 Update 1 to help assist with this procedure. I had not seen anyone talk about this feature yet and figure I would share some details as this is something I have heard customers ask for in the past. You can find this new option (icon with disk and eraser) by clicking onto a specific ESXi host and then selecting the Manage->Storage Adapters and then highlighting the specific storage device you wish to erase as seen in the screenshot below.

erase-disk-partition-in-vsphere-web-client-0
Once the erase partition icon or action is selected, you will then be presented with a summary of the existing partitions on the disk and then prompted to confirm that you wish to delete ALL partitions on the disk.

erase-disk-partition-in-vsphere-web-client-1
After the operation has successfully completed, you can now re-purpose the storage device for other use like VSAN!

For those of you who are interested from an Automation standpoint, this UI operation actually makes use of an existing vSphere API that has been for quite some time called updateDiskPartitions() under the StorageSystem manager of an ESXi host. To erase all partitions, you simply pass in an empty spec to the API method.

In addition, I also want to quickly mention that you will also have the ability to edit and erase existing disk partitions using the ESXi Embedded Host Client Fling which will be available in a future update. Below is a quick screenshot on what that would look like. 

erase-disk-partition-in-vsphere-web-client-2

More from my site

  • PowerCLI script to help correlate vCenter, ESXi & vSAN build/versions w/o manual VMware KB lookup
  • Docker Container for the Ruby vSphere Console (RVC)
  • Override default VSAN Maintenance (decommission) Mode in VSAN 6.1
  • How to deploy and run the VSAN 6.1 Witness Virtual Appliance on VMware Fusion & Workstation?
  • Retrieving detailed per-VM space utilization on VSAN

Categories // Automation, ESXi, VSAN, vSphere Web Client Tags // partition, VSAN, VSAN 6.1, vSphere 6.0 Update 1, vSphere API, vsphere web client, web client

Comments

  1. *protectedjared gaunt says

    06/08/2016 at 1:32 pm

    Is this format a DOD disk delete, overwriting the sectors or just a removal of the files? IE.. is this a secure delete or just ye old format of a volume?

    Reply
    • William Lam says

      06/08/2016 at 1:36 pm

      No, this is just a regular partition delete and not any special type of secure delete.

      Reply
  2. *protectedChris Bickers says

    09/01/2016 at 7:25 pm

    Can I do this through vsphere client somehow? I have a new build exsi 6 but the drives have linux ubuntu and I want to format them as easily as possible and have several machines.

    Reply
  3. *protectedJean Laganiere says

    01/25/2017 at 3:34 pm

    Hi William, is there a way to remove partitions from PowerCli ?

    Reply
    • William Lam says

      01/25/2017 at 5:37 pm

      Yes, as mentioned in the article the API that you need to use is UpdateDiskPartions() which can be called from variety of tools including PowerCLI

      Reply
  4. *protectedPhabX says

    02/01/2017 at 11:11 pm

    Any idea what all those extra partitions are for? Any downside if I click 'use entire disk' and just have one giant partition for my VMs datastore? (VMFS)

    Reply
  5. *protectedVoeltzel says

    06/12/2019 at 2:21 pm

    With ESXi 6.7 the web client crashes when trying to click on a storage adapter. It is therefore impossible to overwrite the partitions on the disk.
    I tested Chrome, Firefox and Edge with the same results.

    Any ideas?

    Didier

    Reply
  6. *protectedSaar Klein says

    07/22/2020 at 3:43 am

    I got an error when trying to erase the disk, what did work for me is running the following from the ESXi ssh:
    partedUtil mklabel /dev/disks/{device-id} msdos
    Here you can find detailed steps: https://www.petenetlive.com/KB/Article/0001565

    Reply
    • *protectedSaar Klein says

      07/22/2020 at 3:44 am

      right after that I erased the disk and claimed it.

      Reply

Leave a Reply to Jean LaganiereCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Search

Thank Author

Author

William is Distinguished Platform Engineering Architect in the VMware Cloud Foundation (VCF) Division at Broadcom. His primary focus is helping customers and partners build, run and operate a modern Private Cloud using the VMware Cloud Foundation (VCF) platform.

Connect

  • Bluesky
  • Email
  • GitHub
  • LinkedIn
  • Mastodon
  • Reddit
  • RSS
  • Twitter
  • Vimeo

Recent

  • Programmatically accessing the Broadcom Compatibility Guide (BCG) 05/06/2025
  • Quick Tip - Validating Broadcom Download Token  05/01/2025
  • Supported chipsets for the USB Network Native Driver for ESXi Fling 04/23/2025
  • vCenter Identity Federation with Authelia 04/16/2025
  • vCenter Server Identity Federation with Kanidm 04/10/2025

Advertisment

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

Copyright WilliamLam.com © 2025

 

Loading Comments...