VMware Cloud Community
nicholas1982
Hot Shot
Hot Shot
Jump to solution

Erase VSAN Partitions via Powercli

Hi All,

Rebuilding some previously used VSAN nodes however to reclaim the disks for a new VSAN cluster I either need to erase the partitions on each of the disk via the GUI (See Screenshot)

Or Enable VSAN on the cluster and delete diskgroups and recreate.

I was hoping there was a method I could erase the partition via Powercli?

Nicholas
Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

I'm afraid you will need partedUtil to remove the partition.

That will require a SSH session to the ESXi node.

See also Cormac's post VSAN PART 16 – RECLAIMING DISKS FOR OTHER USES

Ben's post PowerCLI script to forcibly delete a Datastore that is reported as in use contains a section that calls partedUtil via SSH (and the plink.exe command).


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

Reply
0 Kudos
4 Replies
LucD
Leadership
Leadership
Jump to solution

I'm afraid the screenshot is missing.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

nicholas1982
Hot Shot
Hot Shot
Jump to solution

My bad, see attached.

Nicholas
Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

I'm afraid you will need partedUtil to remove the partition.

That will require a SSH session to the ESXi node.

See also Cormac's post VSAN PART 16 – RECLAIMING DISKS FOR OTHER USES

Ben's post PowerCLI script to forcibly delete a Datastore that is reported as in use contains a section that calls partedUtil via SSH (and the plink.exe command).


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
nicholas1982
Hot Shot
Hot Shot
Jump to solution

Thanks Luc,

I'll take a look at this.

Nicholas
Reply
0 Kudos