The transition to NetApp MS Azure AD B2C is complete. If you missed the pre-registration, you will be invited to reigister at next log in.
Please note that access to your NetApp data may take up to 1 hour.
To learn more, read the FAQ and watch the video.
Need assistance? Complete this form and select “Registration Issue” as the Feedback Category.

Microsoft Virtualization Discussions

Powershell toolkit modification

cscott

Hello,

     Can we look into removing the "/vol" requirement for any and all cDOT powershell tools please?  As "/vol" is no longer required and in fact requires extra steps to create and keep in mind for mounting volumes into that junction path, this requirement needs to be removed for those customers not using "/vol" in their cDOT environments.

 

 

 

Set-NcQuota -Volume cscott_quota_test -Policy default -VserverContext svm_test -Type tree -target /cscott_quota_test/qtree1
Set-NcQuota : Invalid target /cscott_quota_test/qtree1 specified for tree quota rule.  Target for explicit tree quota rule for volume cscott_quota_test must be in "/vol/cscott_quota_test/<qtree-name>" format.
At line:1 char:1
+ Set-NcQuota -Volume cscott_quota_test -Policy default -VserverContext svm_test ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (cdtusalph81:NcController) [Set-NcQuota], EQUOTAINVALID
    + FullyQualifiedErrorId : ApiException,DataONTAP.C.PowerShell.SDK.Cmdlets.Quota.SetNcQuota

 



Set-NcQuota -Volume cscott_quota_test -Policy default -VserverContext svm_test -Type tree -target /vol/cscott_quota_test/qtree1
Set-NcQuota : Object reference not set to an instance of an object.
At line:1 char:1
+ Set-NcQuota -Volume cscott_quota_test -Policy default -VserverContext svm_test ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (cdtusalph81:NcController) [Set-NcQuota], NullReferenceException
    + FullyQualifiedErrorId : QuotaGetEntryFailed,DataONTAP.C.PowerShell.SDK.Cmdlets.Quota.SetNcQuota

1 ACCEPTED SOLUTION

asulliva

Hello @cscott,

 

One potential workaround would be to use the pipeline...

 

Get-NcVol $volumeName | Get-NcQuota -Type user | Set-NcQuota -DiskLimit 10gb

Hope that helps.

 

Andrew

If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

View solution in original post

2 REPLIES 2

asulliva

Hello @cscott,

 

One potential workaround would be to use the pipeline...

 

Get-NcVol $volumeName | Get-NcQuota -Type user | Set-NcQuota -DiskLimit 10gb

Hope that helps.

 

Andrew

If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

View solution in original post

cscott

My apologies for the late reply, other priorities pushed this out.  I have tested it successfully, thank you from myself and my customer!

 

- Scott

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