Microsoft Virtualization Discussions

Highlighted

Re: What would YOU like to see in the Data ONTAP PowerShell Toolkit?

Hello again,

The add-naquota and set-naquota change quota entries in the /etc/quotas file, but the quotas do not take effect until the quota is turned off and back on again.  Is there a way in powershell to toggle the quota "switch" off/on so that the changes take effect without having to ssh into the filer?

Thanks!

Highlighted

Re: What would YOU like to see in the Data ONTAP PowerShell Toolkit?

Diable-navolquota & Enable-navolquota

J

Highlighted

Re: What would YOU like to see in the Data ONTAP PowerShell Toolkit?

As per this post I really would like to see consistency groups for snapshots exposed via the toolkit. Be careful what you wish for!

I've had a quick look through the existing commands and couldn't see anything. We're running Weblogic with Oracle and the official deployment guide states that the underlying storage array should offer consistency group functionality. I know Netapp offer it via Perl but whereas the Toolkit is almost plain English using Perl is more like Japanese (for me at least, and I don't speak Japanese). Like everyone else, I'm loving the toolkit - thanks a bunch!

Regards,

Ed.

Highlighted

Re: What would YOU like to see in the Data ONTAP PowerShell Toolkit?

Hello, Ed.  We just released Toolkit 1.1 last week, which includes cmdlets to expose the consistency group APIs.  Glad you like the Toolkit!

Highlighted

Re: What would YOU like to see in the Data ONTAP PowerShell Toolkit?

More awesomesauce from Netapp! I'd seen v1.1 was out but missed that consistency groups were part of it. I bet you love it when a plan comes together!

thanks,

Ed.

Highlighted

Re: What would YOU like to see in the Data ONTAP PowerShell Toolkit?

I would love to see FlexShare included.  With the big push towards multi-tenancy the need to prioritize certain workloads is very important.  I think this is a must have feature especially since the TR for FlexShare states you need to set priority settings on every volume in order to achieve the best performance.

Highlighted

Re: What would YOU like to see in the Data ONTAP PowerShell Toolkit?

OK, Erick, thanks.  I've captured that for consideration in a future Toolkit release.

Highlighted

Re: What would YOU like to see in the Data ONTAP PowerShell Toolkit?

I'm having a problem understanding the get-naquotareport command.  Quotas on our vfiler are currently set by default at 500MB for all users with the exception of a few users.  Here is what my /etc/quotas file looks like:

#Quota Target type                    disk  files  thold  sdisk  sfile
#------------   ----                           ----    -----   -----     -----   -----
* user@vol/irf_vol1                    500M    -     -       400M   -  
domain\seiferr user@vol/irf_vol1 614400K - - 532480K -
domain\nastest user@/vol/irf_vol1 61440K - 40960K - -

As I would expect, I the follwing commands produce the desired output:

get-naquotaReport | where {$_.quotatarget -eq "domain\seiferr"}

DiskLimit     : 614400
DiskUsed      : 514396
FileLimit     : -
FilesUsed     : 3340
Qtree         :
QuotaTarget   : domain\seiferr
QuotaType     : user
QuotaUsers    : {domain\seiferr}
SoftDiskLimit : 532480
SoftFileLimit : -
Threshold     : -
Vfiler        : IRF1
Volume        : irf_vol1

(get-naquotaReport | where {$_.quotatarget -eq "domain\seiferr"}).diskused

514396

However, for any other users in the domain that are using the default user quota (ie, without a specific entry in the quotas file) of 500MB, the same command returns empty results.  I've noticed that users assigned the default quota have a blank "QuotaTarget" as follows:

get-naQuotaReport

DiskLimit     : 512000
DiskUsed      : 424
FileLimit     : -
FilesUsed     : 18
Qtree         :
QuotaTarget   :
QuotaType     : user
QuotaUsers    : {domain\wilschj}
SoftDiskLimit : 409600
SoftFileLimit : -
Threshold     : -
Vfiler        : IRF1
Volume        : irf_vol1

Therefore, I can understand why my command produces empty results.  Next, I tried running the following command to get my desired output:

get-naquotaReport | where {$_.quotaUsers -eq "{domain\wilschj}"}

This produces no result.  How do I get specific quota usage information for users that do not have specific entries in the /etc/quotas file?  Also, out of curiousity why is the QuotaTarget only populated for users with specific entries in the /etc/quotas file?

Highlighted

Re: What would YOU like to see in the Data ONTAP PowerShell Toolkit?

QuotaUsers    : {domain\wilschj}

Therefore, I can understand why my command produces empty results.  Next, I tried running the following command to get my desired output:

get-naquotaReport | where {$_.quotaUsers -eq "{domain\wilschj}"}

This produces no result.  How do I get specific quota usage information for users that do not have specific entries in the /etc/quotas file?  Also, out of curiousity why is the QuotaTarget only populated for users with specific entries in the /etc/quotas file?

The curly braces on QuotaUsers indicates that the value is an array.  And it's a list of objects, not strings, so it takes a little more effort to filter by a specific user:

foreach ($q in Get-NaQuotaReport)

{

   if ($q.QuotaUsers -NE $null)

   {

      foreach ($user in $q.QuotaUsers)

      {

         if ($user.QuotaUserName -EQ "domain\wilschj")

         {

            $q

         }

      }

   }

}

Highlighted

Re: What would YOU like to see in the Data ONTAP PowerShell Toolkit?

Network configuration is now available in Toolkit 1.2.

Highlighted

Re: What would YOU like to see in the Data ONTAP PowerShell Toolkit?

CIFS ACL manipulation is now available in Toolkit 1.2.

Highlighted

Re: What would YOU like to see in the Data ONTAP PowerShell Toolkit?

FlexShare didn't make the cut for Toolkit 1.2, Erick, but it will be in 1.3.

Highlighted

Re: What would YOU like to see in the Data ONTAP PowerShell Toolkit?

What version of OnTap do you need for 1.2 of the Toolkit?  I am getting some api errors with some of the new cmdlets:

Get-NaNetInterface : Unable to find API: net-ifconfig-get

Highlighted

Re: What would YOU like to see in the Data ONTAP PowerShell Toolkit?

Erick, the latest Toolkit still works with ONTAP 7.2 and later, but as you have noticed, some cmdlets exercise newer APIs.  Many of the networking cmdlets require Data ONTAP 7.3.3 or later, but are not (yet) supported in the Data ONTAP 8.x releases.

Highlighted

Re: What would YOU like to see in the Data ONTAP PowerShell Toolkit?

Thanks for the addition. I tried the command and received this error:

PS C:\Users\user> Get-NaCifsShareAcl share
Get-NaCifsShareAcl : Unable to find API: cifs-share-acl-list-iter-start
At line:1 char:19
+ Get-NaCifsShareAcl <<<<  share
    + CategoryInfo          : InvalidOperation: (NetApp.Ontapi.Filer.NaController:NaController) [Get-NaCifsShareAcl],
   EAPINOTFOUND
    + FullyQualifiedErrorId : ApiException,DataONTAP.PowerShell.SDK.Cmdlets.Cifs.GetNaCifsShareAcl

Ontapi   Version
------   -------
1.11     NetApp Release 8.0 7-Mode: Thu Mar 11 16:17:13 PST 2010

Any thoughts?

Highlighted

Re: What would YOU like to see in the Data ONTAP PowerShell Toolkit?

Like many of the new cmdlets in Toolkit 1.2, Data ONTAP 7.3.3 or later is required for CIFS ACL control.  Data ONTAP 8.x does not yet provide CIFS ACL APIs.

Cloud Volumes ONTAP
Review Banner
All Community Forums
Public