[go: up one dir, main page]

0% found this document useful (0 votes)
180 views6 pages

Delete vSAN Datastore Without Vcenter

The document describes how to delete a vSAN datastore and clear vSAN partitions from disks when no vCenter Server is available. It explains how to leave the vSAN cluster using esxcli commands, delete the vSAN datastore, and remove the vSAN partitions from disks.

Uploaded by

paul_veloso
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
180 views6 pages

Delete vSAN Datastore Without Vcenter

The document describes how to delete a vSAN datastore and clear vSAN partitions from disks when no vCenter Server is available. It explains how to leave the vSAN cluster using esxcli commands, delete the vSAN datastore, and remove the vSAN partitions from disks.

Uploaded by

paul_veloso
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

4/27/24, 3:53 AM Delete vSAN Datastore without vCenter

carlhillit.github.io /blog/2022-01-24-DeletevSANDatastore/

Delete vSAN Datastore without vCenter

How to delete a vSAN datastore and clear vSAN partitions from disks when no vCenter Server is available.

https://youtu.be/BC6PHOpqvDs

Recreating the Problem


Scenario: an ESXi host is a member of a vSAN cluster, but the vCenter Server is no longer available.

Right now, the vsanDatastore is unable to be deleted. If I try to delete it, the option is greyed out.

chrome-extension://nhiebejbpolmpkikgbijamagibifhjib/data/reader/index.html?id=1208481282&url=https%3A%2F%2Fcarlhillit.github.io%2Fblog%2F2022-01-24-DeletevSANDatastore%2F 1/6
4/27/24, 3:53 AM Delete vSAN Datastore without vCenter

This disk on the host is currently formatted for vSAN. If I attempt to clear the partition, it fails with the error “Failed - Cannot change the host
configuration.”

The same happens on the other disk.

To delete the datastore and clear the partitions of both disks, I’ll first SSH into the host:

chrome-extension://nhiebejbpolmpkikgbijamagibifhjib/data/reader/index.html?id=1208481282&url=https%3A%2F%2Fcarlhillit.github.io%2Fblog%2F2022-01-24-DeletevSANDatastore%2F 2/6
4/27/24, 3:53 AM Delete vSAN Datastore without vCenter

ssh root@nuc1.breakdown.lab

Leave vSAN Cluster


The command to use for most ESXi management tasks is esxcli. If you need help figuring out which options are available, you can type --help
or simply hit Enter.

Before I can clear the partitions, I’ll first need to leave the vSAN cluster. To list the cluster configuration, I’ll use:

esxcli vsan cluster list

I’ll then copy the Sub-Cluster Master UUID. Since it’s the same as other UUIDs, you may not need this specific one.

chrome-extension://nhiebejbpolmpkikgbijamagibifhjib/data/reader/index.html?id=1208481282&url=https%3A%2F%2Fcarlhillit.github.io%2Fblog%2F2022-01-24-DeletevSANDatastore%2F 3/6
4/27/24, 3:53 AM Delete vSAN Datastore without vCenter

To leave the cluster the command is:

esxcli vsan cluster leave -u <UUID>

The ESXi web console shows that the datastore is now gone.

Removing the vSAN Partitions from Disks


Now that the host has left the cluster and the datastore has been deleted, I can remove the vSAN partitions.

chrome-extension://nhiebejbpolmpkikgbijamagibifhjib/data/reader/index.html?id=1208481282&url=https%3A%2F%2Fcarlhillit.github.io%2Fblog%2F2022-01-24-DeletevSANDatastore%2F 4/6
4/27/24, 3:53 AM Delete vSAN Datastore without vCenter

Similarly to the previous commands I’ll list the vSAN storage configuration first.

esxcli vsan storage list

This shows both UUIDs for the device and the disk group. Since both disks are in the same group, I can clear the partitions of both disks by
copying the VSAN Disk Group UUID.

The the command to remove:

esxcli vsan storage remove -u <VSANdiskgroupUUID>

A esxcli vsan storage list returns nothing, so I’ll double check the web console. I’ll hit refresh to show that the partitions have now been
cleared.

chrome-extension://nhiebejbpolmpkikgbijamagibifhjib/data/reader/index.html?id=1208481282&url=https%3A%2F%2Fcarlhillit.github.io%2Fblog%2F2022-01-24-DeletevSANDatastore%2F 5/6
4/27/24, 3:53 AM Delete vSAN Datastore without vCenter

Conclusion
Now that the VSAN datastore is deleted and the disk partitions have been cleared, the host storage is ready to be reused.
Tags: VMware vSAN

← Previous Post
Next Post →

chrome-extension://nhiebejbpolmpkikgbijamagibifhjib/data/reader/index.html?id=1208481282&url=https%3A%2F%2Fcarlhillit.github.io%2Fblog%2F2022-01-24-DeletevSANDatastore%2F 6/6

You might also like