ESX Virtualization

VMware ESXi, vSphere, VMware Backup, Hyper-V... how-to, videos....

Nakivo Backup and Replication - #1 Backup solution for Virtual, physical, cloud, NAS and SaaS

Menu
  • Certification
      • VCP-DCV vSphere 8
          • vcp2024-125.
        • Close
    • Close
  • VMware
    • Configuration Maximums
    • vSphere
      • vSphere 8.0
      • vSphere 7.0
      • vSphere 6.7
      • vSphere 6.5
      • vSphere 6.0
      • Close
    • VMworld
      • VMware EXPLORE 2024
      • VMware EXPLORE 2023
      • VMware EXPLORE 2022
      • VMworld 2019
      • VMworld 2018
      • VMworld 2017
      • VMworld 2016
      • VMworld 2015
      • VMworld 2014
      • VMworld 2013
      • VMworld 2012
      • VMworld 2011
      • Close
    • Close
  • Microsoft
    • Windows Server 2012
    • Windows Server 2016
    • Windows Server 2019
    • Close
  • Categories
    • Tips – VMware, Microsoft and General IT tips and definitions, What is this?, How this works?
    • Server Virtualization – VMware ESXi, ESXi Free Hypervizor, VMware vSphere Server Virtualization, VMware Cloud and Datacenter Virtualization
    • Backup – Virtualization Backup Solutions, VMware vSphere Backup and ESXi backup solutions.
    • Desktop Virtualization – Desktop Virtualization, VMware Workstation, VMware Fusion, VMware Horizon View, tips and tutorials
    • How To – ESXi Tutorials, IT and virtualization tutorials, VMware ESXi 4.x, ESXi 5.x and VMware vSphere. VMware Workstation and other IT tutorials.
    • Free – Free virtualization utilities, ESXi Free, Monitoring and free backup utilities for ESXi and Hyper-V. Free IT tools.
    • Videos – VMware Virtualization Videos, VMware ESXi Videos, ESXi 4.x, ESXi 5.x tips and videos.
    • Home Lab
    • Reviews – Virtualization Software and reviews, Disaster and backup recovery software reviews. Virtual infrastructure monitoring software review.
    • Close
  • Partners
    • NAKIVO
    • StarWind
    • Zerto
    • Xorux
    • Close
  • This Web
    • News
    • ESXi Lab
    • About
    • Advertise
    • Archives
    • Disclaimer
    • PDFs and Books
    • Close
  • Free
  • Privacy policy

My VSAN journey – Part 2 – How-to delete partitions to prepare disks for VSAN if the disks aren’t clean

By Vladan SEGET | Last Updated: July 12, 2014

Shares

In part one of My VSAN journey I outlined the possibility to “clean” your disks if they were previously installed with VSAN or had partitions of different OS on it. You could also see my thought on going cheap on a homelab VSAN nodes with a Haswell low power node. As I was the part of the beta of VSAN and no migration path was proposed, the only way to install VSAN GA product was to wipe the beta. The easy way consisted of just quickly create new VMFS file system on each disk and then delete this partition.

However when completely re-installing my home VSAN installation recently I wasn't able to do that and I had to follow the VMware KB the “hard” way. I say the hard way as you need to remember the CLI commands. That's why this post – to remember and to learn more.

In my case I had a difficulty to create disk group for VSAN where my SSD wasn't showing as available, even though the SSD was there attached and worked well during the VSAN beta.

You'll be using partedUtil command line utility. Quickly typing for help:

partedUtil –help

gives you the the different possibilities.

partedutil

I had my SSD not showing. So at first I had to check the disk ID with:

esxcli storage core device list

See here:

esxcli storage core device list

And then use the partedUtil utility with this command:

partedUtil getptbl “/vmfs/devices/disks/DeviceName”

so in my case:

partedUtil getptbl “/vmfs/devices/disks/DeviceName”

Got me an output like this – a blank disk.

partedUtil getptbl

Note: I managed actually to create a datastore via the GUI, but by creating VMFS 3 based datastore when fiddling around with the GUI. That's why through the screenshot you see the disk is blank as I actually managed to delete this VMFS 3 datastore afterwards without problems – via the GUI.

We could stop this excercise here, but for the sake of documentation, I'd like to document the procedure until the end as If I was doing it only through the CLI.

We need to have a partition number in order to be able to delete the partition through the CLI. The command shows that in my case the partition number is 1. I had created a VMFS 3 datastore.

partedUtil getptbl shows partition number

So to delete this partition via partedUtil utility you'll be using this command:

partedUtil delete “/vmfs/devices/disks/DeviceName” PartitionNumber

So in my case:

partedUtil command for delete existing partitions

Remember there is no way to go back and VMware warns you…

Caution: There is no facility to undo a partition table change other than creating a new partition table. Ensure that you have a backup before making any change. Ensure that there is no active I/O to a partition before modifying it.

The command did not returned anything (that's what I like), so it's success…

VMware VSAN and vSphere 5.5 Update 1 were released as GA just few weeks ago. If you have missed this announcement, check out those posts:

  • VMware Virtual SAN (VSAN) 1.0 GA – FAQ, Pricing and Design Options
  • VMware vSphere 5.5 Update 1 Released

VSAN ready nodes were also recently updated so If you work with a particular vendor, you might want to check out this page where you can see the VSAN Ready Nodes. At the times of writing there were three vendors – Cisco, Dell and Fujitsu. But the list will get longer…

Links and sources:

  • VMware KB on this – Using the partedUtil command line utility on ESXi and ESX
  • Manually creating a VMFS volume using vmkfstools -C

VSAN in the Homelab – the whole serie:

  • My VSAN Journey – Part 1 – The homebrew “node”
  • My VSAN journey – Part 2 – How-to delete partitions to prepare disks for VSAN if the disks aren’t clean –  (This post)
  • Memory Channel per Bank getting non active when using PERC H310 Contoler card – Fixed!
  • Infiniband in the homelab – the missing piece for VMware VSAN
  • Cisco Topspin 120 – Homelab Infiniband silence
  • My VSAN Journey Part 3 – VSAN IO cards – search the VMware HCL
  • My VSAN journey – all done!
  • How-to Flash Dell Perc H310 with IT Firmware To Change Queue Depth from 25 to 600
Shares
Vote !

| Filed Under: Server Virtualization Tagged With: How-to delete partitions to prepare disks for VSAN

About Vladan SEGET

This website is maintained by Vladan SEGET. Vladan is as an Independent consultant, professional blogger, vExpert x16, Veeam Vanguard x9, VCAP-DCA/DCD, ESX Virtualization site has started as a simple bookmarking site, but quickly found a large following of readers and subscribers.

Connect on: Facebook. Feel free to network via Twitter @vladan.

Comments

  1. Samm says

    March 27, 2014 at 7:21 pm

    There is an easy way to clean disks with partitions:

    # partedUtil mklabel /dev/disks/ msdos

    http://www.vexperienced.co.uk/2012/01/02/error-adding-datastores-to-esxi-resolved-using-partedutil/

  2. Dominik says

    June 4, 2015 at 12:29 pm

    Thanks a lot for this blog post. Saved me a lot of time and pain to solve my problem.

  3. OJW says

    September 11, 2015 at 3:23 pm

    Once you memorize the path for /vmfs/devices/disks then one easy way to show all of the disk ID’s for removing partitions (using PartedUtil command), you can run command vdq -qH which shows all the disks with their disk ID number, so it is easy to copy paste from that.

    Maximize the window so you can see all the vdq -qH output. Copy/paste into you partedUtil delete /vmfs/devices/disks/ command..

    Because doing storage core device list is very long and confusing output.

    As an alternative, one can use the above command with a filter to clean it up a bunch:

    esxcli –formatter=csv –format-param=fields=”Devfs Path” storage core device list

    But I find once you memorize the path for the disks, then vdq qH is all you reasonably need

Private Sponsors

Featured

  • Thinking about HCI? G2, an independent tech solutions peer review platform, has published its Winter 2023 Reports on Hyperconverged Infrastructure (HCI) Solutions.
  • Zerto: One Platform for Disaster Recovery, Backup & Cloud Mobility: Try FREE Hands-On Labs Today!
Click to Become a Sponsor

Most Recent

  • FREE version of StarWind VSAN vs Trial of Full version
  • Commvault’s Innovations at RSA Conference 2025 San Francisco
  • VMware ESXi FREE is FREE again!
  • Installation of StarWind VSAN Plugin for vSphere
  • Protect Mixed environments with Nakivo Physical Machine recovery (bare metal)
  • No more FREE licenses of VMware vSphere for vExperts – What’s your options?
  • Tails – Your Private OS on USB Stick
  • StarWind V2V Converter Now has CLI
  • Veeam VHR ISO v2 – 2025 Download and Install
  • Deployment OVA and Installation of Nakivo Backup and Replication for VMware

Get new posts by email:

 

 

 

 

Support us on Ko-Fi

 

 

Buy Me a Coffee at ko-fi.com

Sponsors

Free Trials

  • DC Scope for VMware vSphere – optimization, capacity planning, and cost management. Download FREE Trial Here.
  • Augmented Inline Deduplication, Altaro VM Backup v9 For #VMware and #Hyper-V – Grab your copy now download TRIAL.

VMware Engineer Jobs

VMware Engineer Jobs

YouTube

…

Find us on Facebook

ESX Virtualization

…

Copyright © 2025 ·Dynamik-Gen · Genesis Framework · Log in