Microsoft Virtualization Discussions

Rename-NaVol ending with error but successfully done

christian_gruetzner

Hi,

im experiencing Problems when im running Rename-NaVol.

Im getting the following error:

Rename-NaVol : Could not connect to fas2101b on port 443 for protocol HTTPS.

At C:\Scripts\netapp\edit\netapp-move-snapvault-to-other-aggr.ps1:289 char:21

+ $temp = Rename-NaVol <<<<  -Name $volname -NewName $volname_new

    + CategoryInfo          : InvalidOperation: (fas2101b:NaController) [Rename-NaVol], NaConnectionException

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

Rename-NaVol : No volume named 'VAULT_TAS_T02_db_NL0' exists

At C:\Scripts\netapp\edit\netapp-move-snapvault-to-other-aggr.ps1:289 char:21

+ $temp = Rename-NaVol <<<<  -Name $volname -NewName $volname_new

    + CategoryInfo          : InvalidOperation: (fas2101b:NaController) [Rename-NaVol], EVOLUMEDOESNOTEXIST

    + FullyQualifiedErrorId : VolumeListInfoFailed,DataONTAP.PowerShell.SDK.Cmdlets.Volume.RenameNaVol

But after a look on the Netapp the volume was renamed successfully.

Also all other API calls ending with the "could not connect" error when im starting them right after. (Not happening when i run them solo)

So i expect there is something wrong with it?

Would be nice if someone else has the prob and a solution

greetz

1 ACCEPTED SOLUTION

manuelsanchez

I had a similra problem while creating a new volume.

The new volume was created. However, I had that same "port 443" error.

The problem went away when I change the connection timeout to 60 sec, per Eric Nicholson recommendation.

Like "$global:CurrentNaController.TimeoutMsec = 60000"

Please check "Getting HTTPS error using New-NaVol command".

Manuel

View solution in original post

3 REPLIES 3

manuelsanchez

I had a similra problem while creating a new volume.

The new volume was created. However, I had that same "port 443" error.

The problem went away when I change the connection timeout to 60 sec, per Eric Nicholson recommendation.

Like "$global:CurrentNaController.TimeoutMsec = 60000"

Please check "Getting HTTPS error using New-NaVol command".

Manuel

View solution in original post

thanks for ur solution. working like a charm

Toolkit 1.5, released today, bumps the default timeout to 60 seconds.

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