NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Microsoft Virtualization Discussions

Unable to extend volume size using powershell

NetApp1313
2,650 Views
Set-NcVolSize :
===================================================================================
| This cmdlet must be directed to a data vserver. You are currently connected |
| to the cluster admin vserver. See the Toolkit web docs (Show-NcHelp) or online |
| help (Get-Help Connect-NcController -Examples) to learn more about directing |
| Toolkit cmdlets to a cluster or data vserver as required by Data ONTAP. |
===================================================================================
At line:1 char:1
+ Set-NcVolSize "vol_test" +1g
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (10.255.xx.xx:NcController) [Set-NcVolSize], Exception
+ FullyQualifiedErrorId : NcVserverCmdlet,DataONTAP.C.PowerShell.SDK.Cmdlets.Volume.SetNcVolSize
1 ACCEPTED SOLUTION

parisi
2,618 Views

The error message spells out the problem here.

 

"This cmdlet must be directed to a data vserver. You are currently connected to the cluster admin vserver. "

 

You'd need to run this against a management LIF in the SVM with a SVM admin.

 

https://docs.netapp.com/ontap-9/index.jsp?topic=%2Fcom.netapp.doc.onc-sm-help-900%2FGUID-0106C05F-2E55-4157-8F34-DF0F42560CE4.html

View solution in original post

1 REPLY 1

parisi
2,619 Views

The error message spells out the problem here.

 

"This cmdlet must be directed to a data vserver. You are currently connected to the cluster admin vserver. "

 

You'd need to run this against a management LIF in the SVM with a SVM admin.

 

https://docs.netapp.com/ontap-9/index.jsp?topic=%2Fcom.netapp.doc.onc-sm-help-900%2FGUID-0106C05F-2E55-4157-8F34-DF0F42560CE4.html

Public