Microsoft Virtualization Discussions

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

TIMRUFUS12

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

The syntax is:

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

Or you can replace -EnableOplocks with -DisableOplocks

Announcements
Register for Insight 2021 Digital

INSIGHT 2021 Digital: Meet the Specialists 2

On October 20-22, gear up for a fully digital, totally immersive virtual experience with a downright legendary lineup of world-renowned specialists. Tune in for visionary conversations, solution deep dives, technical sessions and more.

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