Delete vSAN Datastore Without Vcenter
Delete vSAN Datastore Without Vcenter
carlhillit.github.io /blog/2022-01-24-DeletevSANDatastore/
How to delete a vSAN datastore and clear vSAN partitions from disks when no vCenter Server is available.
https://youtu.be/BC6PHOpqvDs
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.”
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
Before I can clear the partitions, I’ll first need to leave the vSAN cluster. To list the cluster configuration, I’ll use:
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
The ESXi web console shows that the datastore is now gone.
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.
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.
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