Microsoft Virtualization Discussions

Unable to extend volume size using powershell

NetApp1313
1,835 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
1,803 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
1,804 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