vSAN1

 View Only

 vsan disk format report

gjbrown's profile image
gjbrown posted May 28, 2025 09:09 AM

I am trying to find a way to report on vsan disk format version on ALL my clusters.  It doesn't appear RVtools or Aria operations reports this. RVC would but I cannot figure out how to do for all my clusters. There looks to be a powercli command to update the version, but I couldn't find one to report on the version.

Any help would be appreciated.

Thanks,

Glenn

Alexandru Capras's profile image
Alexandru Capras

Hi Glenn,

I found this line in the vSAN documentation that might be helpful. Just thought I’d share it with you.

"Run the following RVC command to view the disk status:
vsan.disks_stats /< vCenter IP address or hostname>/<data center name>/computers/<cluster name>


For example:
vsan.disks_stats /192.168.0.1/BetaDC/computers/VSANCluster"


...and instead of running it against a single cluster, you can just use the wildcard (*) to target all clusters.

the command will look like this:

vsan.disks_stats /192.168.0.1/BetaDC/computers/*

Duncan Epping's profile image
Broadcom Employee Duncan Epping

Page 26 and 27 will probably help:

https://vdc-download.vmware.com/vmwb-repository/dcr-public/424d010b-c80e-40de-b1a3-25f6e9861e6a/3b934f51-98b6-4ea1-9336-b1bac1f23403/vsan-sdk-67.pdf

Paudie O'Riordan's profile image
Broadcom Employee Paudie O'Riordan
PowerCli snip
 
vSAN OSA
 
Get-VsanDisk -VMHost  $vmHost | select CanonicalName, DiskFormatVersion
 
CanonicalName                        DiskFormatVersion
-------------                        -----------------
eui.3643543052a048400025384100000002               20
naa.58ce38ee21b04999                                                  20
naa.58ce38ee21b04969                                                   20
eui.3643543052a048390025384100000002               20
naa.58ce38ee21b04961                                                    20
naa.58ce38ee21b04965                                                  20
 
vSAN ESA
Get-VsanStoragePoolDisk -VMHost  $vmHost | select DiskCanonicalName, DiskFormatVersion
 
DiskCanonicalName                    DiskFormatVersion
-----------------                    -----------------
eui.306790baa91e8342000c296372669e28                 21
eui.364da4f9f4660585000c296047c9ab73                 21
eui.5975709637bf6118000c296df64ee2cc                    21
gjbrown's profile image
gjbrown

@Paudie O'Riordan thanks this gets me on a start, I have multiple clusters, trying to have this print the cluster name (or even a host name); 

something along the lines of Get-VsanDisk -VMHost  * | select  DiskFormatVersion , Hostname  but Hostname is not a value. the closest I see is UUID, but then I will need to translate that back to a readable format.

I tried flipping it a bit to this

get-VsanDiskGroup -Cluster * | select VMhost ;  get-vsanDisk | select  Diskformatversion

but that didn't work either.  

Sorry I am not better at scripting.

Paudie O'Riordan's profile image
Broadcom Employee Paudie O'Riordan

you can also loop through a cluster of vSAN hosts 
this is a quick and dirty script

Define your cluster you're interested in

$clusterName = "mycluster"

Create an array of hosts from all the hosts in the cluster


$vsanhosts = Get-Cluster $clusterName | Get-VMHost

Loop through all the hosts  and list the vSAN disks


foreach ($vmhost in $vsanhosts) {
Write-Host -ForegroundColor green "listing vSAN disks on host: $($vmhost)"
Write-Host -ForegroundColor Green  "CanonicalName                        DiskFormatVersion   CapacityGB     isCacheDisk"
Write-Host "--------------------------------------------------------------------------------"
$vsanhosts |get-vsandisk| select CanonicalName, DiskFormatVersion, CapacityGB, IsCacheDisk
Write-Host "--------------------------------------------------------------------------------"
}

Output should be similar to below

listing vSAN disks on host: XXXXXX
CanonicalName                        DiskFormatVersion   CapacityGB     isCacheDisk
--------------------------------------------------------------------------------

CanonicalName                        DiskFormatVersion CapacityGB IsCacheDisk
-------------                        ----------------- ---------- -----------
eui.3643543052a048400025384100000002                20    1490.41        True
naa.58ce38ee21b04999                                20    3576.97       False
naa.58ce38ee21b04969                                20    3576.97       False
 --------------------------------------------------------------------------------
listing vSAN disks on host: YYYYYY
CanonicalName                        DiskFormatVersion   CapacityGB     isCacheDisk
--------------------------------------------------------------------------------
eui.3643543052a048400025384100000002                20    1490.41        True
naa.58ce38ee21b04999                                20    3576.97       False
naa.58ce38ee21b04969                                20    3576.97       False
naa.58ce38ee21b04971                                20    3576.97       False
--------------------------------------------------------------------------------
listing vSAN disks on host: ZZZZZZ
CanonicalName                        DiskFormatVersion   CapacityGB     isCacheDisk
--------------------------------------------------------------------------------
eui.3643543052a048400025384100000002                20    1490.41        True
naa.58ce38ee21b04999                                20    3576.97       False
naa.58ce38ee21b04969                                20    3576.97       False


There's plenty of examples on the powercli communities that can automate this much nicer