Microsoft Virtualization Discussions

Unable to extend volume size using powershell

NetApp1313
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 REPLY 1

Re: Unable to extend volume size using powershell

parisi

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

Earn Rewards for Your Review!
GPI Review Banner
All Community Forums
Public