Subscribe

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

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>


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

The syntax is:

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

Or you can replace -EnableOplocks with -DisableOplocks