VMware Cloud Community
pawellakomski
Contributor
Contributor
Jump to solution

Checking disktype with PCLI

Hi,

During virtual hard drive creation, I've got an option to select:

Support clustering features such as Fault Tolerance

Is  it possible to check on the disk, after having it created, if the  option was checked or not? I don't think it is possible from vSphere  client but maybe from PowerCLI?

Cheers,

Pawel

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

That information is stored in the eagerlyScrub property in the VirtualDiskFlatVer2BackingInfo object.

You can display this as follows

Get-VM | Get-HardDisk | `
Select @{N="";E={$_.Parent.Name}},     Name,     @{N="FT support";E={$_.Extensiondata.Backing.EagerlyScrub}}

If the disk does not have FT support, the property will show up as empty or as $false


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
2 Replies
LucD
Leadership
Leadership
Jump to solution

That information is stored in the eagerlyScrub property in the VirtualDiskFlatVer2BackingInfo object.

You can display this as follows

Get-VM | Get-HardDisk | `
Select @{N="";E={$_.Parent.Name}},     Name,     @{N="FT support";E={$_.Extensiondata.Backing.EagerlyScrub}}

If the disk does not have FT support, the property will show up as empty or as $false


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
pawellakomski
Contributor
Contributor
Jump to solution

Hi LucD,

Thank you, it worked like a charm Smiley Happy

Cheers,

Pawel

0 Kudos