Microsoft Virtualization Discussions

Not enough memory error

thepunisher

I am trying to run the get-navol command against one of our snapvault destinations.  I have run this against this filer in the past and haven't had problems.  The only thing that I can think if that have changed since the last time I successfully got this to run was the aggregates on the filer have been converted to 64 bit and I have upgraded the tool kit.  Is this an environment issue (meaning my machines configuration) or an issue with the toolkit?

PS C:\Scripts> Get-NaVol

Get-NaVol : Not enough memory for reply value, but command completed successfully

At line:1 char:1

+ Get-NaVol

+ ~~~~~~~~~

    + CategoryInfo          : InvalidOperation: (aFiLeR:NaController) [Get-NaVol], EONTAPI_ENOMEM

    + FullyQualifiedErrorId : ApiException,DataONTAP.PowerShell.SDK.Cmdlets.Volume.GetNaVol

10 REPLIES 10

thepunisher

To get around this error, install the latest version of the toolkit and run; Get-NaVol -Terse

jhorne

I ran into the same issue after hitting about 120 volumes. Using the -Terse switch does work though. Thanks!

cknight

Thanks for confirming that works.  Get-NaVol returns a large amount of info, much of it rarely needed in a volume context; that was apparently leading to the out-of-memory condition in Data ONTAP's API handler.  -Terse omits some of the extra data, and the resulting packets are much smaller.

sneil

I'm running into the same out of memory issue.  -Terse work, but what info\data does it not return?

cknight

-Terse omits a number of info types, such as autosize info, RAID group info, and autodelete info.  Just try these two commands and compare the differences:

Get-NaVol vol0 | Format-Custom

Get-NaVol vol0 -Terse | Format-Custom

bg7777777

I am getting the same exact error but with get-nadisk | ?{ $_.Status -eq "spare"}

 

Also trying to query for failed disk.  Any suggestions?

 

Using 3.1.1 toolkit on ontap 8.2.2P1 

JGPSHNTAP

If you pipe to out-file do you get same issue?

thepunisher

It does, the issue is with the underlying code in the tool kit.  Regardless of what you do with the results it always fails.

cknight

Can you say (approximately) how many volumes are present?

thepunisher

Total of 129 volumes, surprisingly fewer then I would have expected.

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public