WilliamLam.com

  • About
    • About
    • Privacy
  • VMware Cloud
  • Tanzu
    • Application Modernization
    • Tanzu services
    • Tanzu Community Edition
    • Tanzu Kubernetes Grid
    • vSphere with Tanzu
  • Home Lab
  • Nested Virtualization
  • 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. jared 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. Chris 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. Jean 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. PhabX 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. Voeltzel 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. Saar 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
    • Saar Klein says

      07/22/2020 at 3:44 am

      right after that I erased the disk and claimed it.

      Reply

Thanks for the comment! Cancel reply

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

Search

Author

William Lam is a Senior Staff Solution Architect working in the VMware Cloud team within the Cloud Infrastructure Business Group (CIBG) at VMware. He focuses on Cloud Native technologies, Automation, Integration and Operation for the VMware Cloud based Software Defined Datacenters (SDDC)

Connect

  • Email
  • GitHub
  • LinkedIn
  • RSS
  • Twitter
  • Vimeo

Recent

  • How to disable the Efficiency Cores (E-cores) on an Intel NUC? 03/24/2023
  • Changing the default HTTP(s) Reverse Proxy Ports on ESXi 8.0 03/22/2023
  • NFS Multi-Connections in vSphere 8.0 Update 1 03/20/2023
  • Quick Tip - How to download ESXi ISO image for all releases including patch updates? 03/15/2023
  • SSD with multiple NVMe namespaces for VMware Homelab 03/14/2023

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 © 2023

 

Loading Comments...