new1234.jpg
Home > VMware > VMware: List VMFS version and blocksize of all datastores with PowerCLI

VMware: List VMFS version and blocksize of all datastores with PowerCLI

For a SAN to SAN migration I need to list all our datastores and blocksizes, It couldn’t be easier to do this with a script. LucD has written a great script to list VMFS Name, VMFS Version and VMFS Blocksize

New-VIProperty -Name VMFSVersion -ObjectType Datastore `      -Value {           param($ds)           $ds.ExtensionData.Info.Vmfs.Version      } `      -BasedONextensionProperty ‘Info’ `      -Force

New-VIProperty -Name VMFSBlockSizeMB -ObjectType Datastore `      -Value {           param($ds)           $ds.ExtensionData.Info.Vmfs.BlockSizeMB      } `      -BasedONextensionProperty ‘Info’ `      -Force

Get-Datastore | Select Name,VMFSVersion,VMFSBlockSizeMB

Output:

image

Credits goto: Luc Dekens

sanderdaems

Sander Daems is founder and author of this blog and working as a Sr. Infrastructure Consultant by IT-Value. Sander has over 10 years experience in IT, primary focus: virtualization, storage and SBC

More Posts - Website

Follow Me:
TwitterLinkedIn

  1. Michael
    June 17th, 2011  (Quote) at 06:14  (Quote) | #1

    You can also use RVTools for this purpose.

  1. No trackbacks yet.