Data ONTAP Discussions

Get-NcVolSize command not reporting volsize correctly when > 1024GB using Ontap Powershell Toolkit

Hello Powershell Coders,

 

My config : 

Powershelltoolkit : 9.6.0 ou 4.5.0

Dataontap : 9.4P2

 

I'm facing a strange problem with command   Get-NcVolSize : 

 

- volsize  < to 1024 GB or a strict multiple of 1024GB  (ex : 2048GB) is reported correctly,

- volsize  > to 1024 GB or not strict multiple of 1024GB  (ex : 1025GB) is reported incorrectly (equal to 0 systematically).

 

This behaviour have a side effect on "Set-NcVolSize" command, for volume > to 1024GB or not strict multiple of 1024, and make the resize command fail!

 

Someone experiencing the same issue/ has a workaround for this?

 

Many thanks in advance.

 

Best regards, 

 

Yannick

2 REPLIES 2
Highlighted

Re: Get-NcVolSize command not reporting volsize correctly when > 1024GB using Ontap Powershell T

Can you show us the command you're running and the output where the volume size is reported incorrectly (sanitizing volume/vserver names as necessary)? 

 

Thanks! 

 

Donny

Re: Get-NcVolSize command not reporting volsize correctly when > 1024GB using Ontap Powershell T

here is the command i use (very simple) : 

 

Get-NcVolSize  <volume name> -VserverContext <vservername>

 

 

when the volume is under or equal to 1024 (return in json format) : 

"VolumeSize": 548682072064,
"IsReadOnlyFlexVol": false,
"IsReplicaFlexVol": false,
"IsFixedSizeFlexVol": false

 

when the volume is above 1024 (here set to 1025) (return in json format) : 

 

"VolumeSize": 0,
"IsReadOnlyFlexVol": false,
"IsReplicaFlexVol": false,
"IsFixedSizeFlexVol": false

 

 

Forums