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

I must be missing something about update-Ncvol

JGPSHNTAP
2,702 Views

Ok... i've been around the toolkit since 1.0, so at this point, i'm very confused on a cDOT perspective as i'm just starting to dig into the cDot ... I figured out I 'm going to need to update-ncVol to ensure the export policy is the same...

 

But does that mean I need to dynamically build a query each time to update the volume?

 

$info = get-ncvol | select Vserver,Name,Junctionpath,@{n='policy';e={($_.volumeexportattributes).policy}}

 

That will get me the policy i'm looking for...

 

Now, in order to match DR, the idea is that I need anything that is not default or $null and assign the policy to the volume..

 

I'm finding that i'm going to need to build a query everytime and run some checks?  Any thoughts?

 

0 REPLIES 0
Public