Microsoft Virtualization Discussions

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

TIMRUFUS12
2,471 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
2,471 Views

The syntax is:

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

Or you can replace -EnableOplocks with -DisableOplocks

Public