I had been playing around with my VSAN cluster for a bit the last couple of weeks and it literally has become messy. I created many VMs and many snapshots and removed many of those again, all of this while pulling cables of servers and pulling disks. Basically stress testing VSAN while injecting faults to see how it responds. It was time to clean up and upgrade to a later build as the beta refresh was just released. After deleting a bunch of VMs I noticed that not everything was removed, I had also uploaded ISOs and some other random stuff which I probably should not have. Anyway, I needed to clean one of my hosts up.
I figured I would use RVC for the exercise just to get a bit more familiar with it. First I wanted to check what the current state was of my cluster, I used the “vsan.disks_stats” command:
Then I figured I would want to just simply remove the disk group for Server “prmb-esx08
” using “vsan.host_wipe_vsan_disks”:
Note that you can also do this using the UI:
- Go to your cluster
- Click “Manage” and “Virtual SAN” -> “Disk Management”
- Select the “Disk Group” and click the “Remove the Disk Group” icon
Thanos says
Hi Duncan, a very useful command (wipe_vsan_disks) π Had to use it in my lab which well… suffered some traumatic behavior from my side. One note on the command to be successful is to have the host(s) leave the vsan cluster first. Otherwise it complains and fails. (maybe next version does that as well. “–force” should mean ‘whatever it takes’ π
“esxcli vsan cluster leave” is the cli for the hosts (for the readers, not you :))