nicholas1982
Hot Shot
Hot Shot

Erase VSAN Partitions via Powercli

Jump to solution

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 VCP6
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership

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

0 Kudos
4 Replies
LucD
Leadership
Leadership

I'm afraid the screenshot is missing.


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

nicholas1982
Hot Shot
Hot Shot

My bad, see attached.

Nicholas VCP6
0 Kudos
LucD
Leadership
Leadership

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

0 Kudos
nicholas1982
Hot Shot
Hot Shot

Thanks Luc,

I'll take a look at this.

Nicholas VCP6
0 Kudos