VMware Cloud Community
ganapa2000
Hot Shot
Hot Shot

After RDM resize script shows old disk size instead of new

Hi All,

After RDM resize, below script still shows the old size but in the guest, I can see the new size capacity.

RDM is presented as Physical currently

Get-VM db1 | Get-HardDisk | where {"RawPhysical","RawVirtual" -contains $_.DiskType} | Select @{N="VM";E={$_.Parent.Name}},Name,CapacityGB,ScsiCanonicalName

Please help

Thanks

Madhusudan

0 Kudos
4 Replies
LucD
Leadership
Leadership

Does it keep giving the old size?

Normally the datastore info is updated on an interval, did you check after a couple of minutes?


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

0 Kudos
ganapa2000
Hot Shot
Hot Shot

Yes, I tried after 1 hour, 1 days and after a week.

New size doesnt show in cli or report. But when I login to the VM, I can see

0 Kudos
LucD
Leadership
Leadership

Did you restart the VM in between?


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

0 Kudos
ganapa2000
Hot Shot
Hot Shot

No, We didn't restart as all the VMs are in Prod. We keep getting request for RDM expansion and it is very difficult to get the size from powercli reports as it shows old size.

0 Kudos