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

possible to use set-ncqtree or ?? to enable/disable oplocks on a volume in cmode?

TIMRUFUS12
3,073 Views

anyone, anyway to define oplocks on a volume using set-ncqtree or another cmdlet?

via console CLI using the following works:-

qtree oplocks -volume <vol> -qtree "" -oplock-mode enable -vserver <vserver>

qtree oplocks -volume <vol> -qtree * -oplock-mode enable -vserver <vserver>

however, I can't do the same, or find any alternative where the set-ncqtree will work when a qtree isn't specified, or by using a wildcard for the qtree...e.g.:-

set-ncqtree -volume <vol> -qtree "" -DisableOplocks -vservercontext <vserver>

set-ncqtree -volume <vol> -qtree * -DisableOplocks -vservercontext <vserver>


1 REPLY 1

davidrnexon
3,073 Views

The syntax is:

Set-NcQtree /vol/vol1/qtree1 -SecurityStyle ntfs -EnableOplocks -VserverContext vserver_1

Or you can replace -EnableOplocks with -DisableOplocks

Public