Microsoft Virtualization Discussions

optimize SnapshotReserve?

wippel
9,159 Views

I want to optimize the available snapshot space on my volumes.

Filesystem                        total         used         avail capacity  Mounted on
/vol/vol33b/                    720GB      700GB       19GB       97%  /vol/vol33b/
/vol/vol33b/.snapshot      252GB      240GB       12GB       95%  /vol/vol33b/.snapshot

To calculate the used snapshot space I tried:

Get-NaSnapshotReclaimable -Snapshots ( Get-NaSnapshot vol33b ).

But this  lasts more than five minutes for 90 snapshots (to get the value 240GB).

Is there a better way to solve this?

1 ACCEPTED SOLUTION

timothyn
9,156 Views

There's always a better way to skin the cat in PowerShell:

(Get-NaSnapshot vol0 | measure -Maximum CumulativeTotal).Maximum / 1KB

View solution in original post

15 REPLIES 15

timothyn
9,128 Views

If you're trying to get all of the used Snapshot space as indicated by the df command, you can use the "CumulativeTotal" field on the last snapshot for the volume:

(Get-NaSnapshot vol0 | select -last 1).CumulativeTotal / 1KB

I'm not 100% sure they will always be in the right order, so you could do something like this:

(Get-NaSnapshot vol0 | sort CumulativeTotal | select -Last 1).CumulativeTotal /1KB

obviously the "/ 1KB" isn't really needed, it just gets you the same number of KB as the df command.

Hope that helps!

timothyn
9,157 Views

There's always a better way to skin the cat in PowerShell:

(Get-NaSnapshot vol0 | measure -Maximum CumulativeTotal).Maximum / 1KB

wippel
9,128 Views

Thx, that's great!

jurphville
9,128 Views

Is the cumulative total supposed to be exact, or a close estimation?  Using either of the above examples on my larger volumes (10.5 - 11.5 TB), the cumulative total for snapshots is off by 100-200GB from the df command.

ControllerName> df -g VolName3
Filesystem                    total       used      avail capacity  Mounted on
/vol/VolName3/              11776GB     6550GB     5225GB      56%  /vol/VolName3/
/vol/VolName3/.snapshot         0GB      257GB        0GB     ---%  /vol/VolName3/.snapshot


(Get-NaSnapshot VolName3 -controller $ControllerName | sort CumulativeTotal | select -Last 1)


Name                                               Created      Total Cumulative Dependency
----                                               -------      ----- ---------- ----------
nightly.61                                        1/9/2011   440.8 MB   368.3 GB

timothyn
9,128 Views

jurphville wrote:

Is the cumulative total supposed to be exact, or a close estimation?  Using either of the above examples on my larger volumes (10.5 - 11.5 TB), the cumulative total for snapshots is off by 100-200GB from the df command.

That's curious.  Can you post the output of "Get-NaSnapshot VolName3" ?  Also do you have dedupe enabled on that volume?

Thanks!

jurphville
9,128 Views

Here's the full output...

Get-NaSnapshot VolName3 -Controller $ControllerName

Name                                               Created      Total Cumulative Dependency
----                                               -------      ----- ---------- ----------
ControllerDestName(1111111111)_VolName3.1...    3/11/2011   760.0 KB   760.0 KB snapmirror
ControllerDestName(1111111111)_VolName3.1...    3/11/2011     4.4 MB     5.1 MB
hourly.0                                         3/11/2011    41.4 MB    46.5 MB
hourly.1                                         3/11/2011   130.9 MB   177.4 MB
hourly.2                                         3/11/2011   225.3 MB   402.7 MB
hourly.3                                         3/11/2011    44.7 MB   447.4 MB
hourly.4                                         3/11/2011    96.7 MB   544.1 MB
hourly.5                                         3/11/2011    90.5 MB   634.6 MB
hourly.6                                         3/11/2011     2.2 GB     2.9 GB
hourly.7                                         3/11/2011    45.6 MB     2.9 GB
hourly.8                                         3/11/2011   167.9 MB     3.1 GB
nightly.0                                        3/11/2011   177.6 MB     3.2 GB
hourly.9                                         3/10/2011   182.7 MB     3.4 GB
hourly.10                                        3/10/2011     4.7 GB     8.1 GB
hourly.11                                        3/10/2011     3.0 GB    11.1 GB
hourly.12                                        3/10/2011   150.1 MB    11.3 GB
hourly.13                                        3/10/2011     1.6 GB    12.8 GB
hourly.14                                        3/10/2011    69.1 MB    12.9 GB
hourly.15                                        3/10/2011     1.5 GB    14.3 GB
hourly.16                                        3/10/2011    39.3 MB    14.4 GB
hourly.17                                        3/10/2011    78.2 MB    14.5 GB
hourly.18                                        3/10/2011     1.2 GB    15.7 GB
hourly.19                                        3/10/2011    51.8 MB    15.7 GB
nightly.1                                        3/10/2011    80.6 MB    15.8 GB
hourly.20                                         3/9/2011     4.8 GB    20.6 GB
hourly.21                                         3/9/2011   803.8 MB    21.4 GB
hourly.22                                         3/9/2011     1.0 GB    22.4 GB
hourly.23                                         3/9/2011   532.5 MB    22.9 GB
hourly.24                                         3/9/2011     1.9 GB    24.8 GB
hourly.25                                         3/9/2011    52.1 MB    24.9 GB
hourly.26                                         3/9/2011   530.5 MB    25.4 GB
hourly.27                                         3/9/2011     5.7 GB    31.1 GB
hourly.28                                         3/9/2011    70.9 MB    31.1 GB
hourly.29                                         3/9/2011     3.0 GB    34.1 GB
hourly.30                                         3/9/2011    48.8 MB    34.2 GB
nightly.2                                         3/9/2011   283.3 MB    34.4 GB
hourly.31                                         3/8/2011     2.0 GB    36.4 GB
hourly.32                                         3/8/2011   289.6 MB    36.7 GB
hourly.33                                         3/8/2011     3.1 GB    39.8 GB
hourly.34                                         3/8/2011     1.1 GB    40.9 GB
hourly.35                                         3/8/2011   193.9 MB    41.1 GB
hourly.36                                         3/8/2011    50.4 MB    41.2 GB
hourly.37                                         3/8/2011    77.8 MB    41.2 GB
hourly.38                                         3/8/2011   101.2 MB    41.3 GB
hourly.39                                         3/8/2011   165.8 MB    41.5 GB
hourly.40                                         3/8/2011    38.4 MB    41.5 GB
hourly.41                                         3/8/2011    92.8 MB    41.6 GB
nightly.3                                         3/8/2011    63.4 MB    41.7 GB
hourly.42                                         3/7/2011    87.1 MB    41.8 GB
hourly.43                                         3/7/2011   145.7 MB    41.9 GB
hourly.44                                         3/7/2011   140.3 MB    42.1 GB
hourly.45                                         3/7/2011    98.2 MB    42.2 GB
hourly.46                                         3/7/2011     2.0 GB    44.2 GB
hourly.47                                         3/7/2011    42.9 MB    44.2 GB
hourly.48                                         3/7/2011    22.5 MB    44.2 GB
hourly.49                                         3/7/2011    22.8 MB    44.2 GB
hourly.50                                         3/7/2011    14.5 MB    44.3 GB
hourly.51                                         3/7/2011    13.0 MB    44.3 GB
hourly.52                                         3/7/2011    19.1 MB    44.3 GB
nightly.4                                         3/7/2011    17.1 MB    44.3 GB
hourly.53                                         3/6/2011    13.8 MB    44.3 GB
hourly.54                                         3/6/2011    10.7 MB    44.3 GB
hourly.55                                         3/6/2011    34.5 MB    44.4 GB
hourly.56                                         3/6/2011    28.8 MB    44.4 GB
hourly.57                                         3/6/2011    27.6 MB    44.4 GB
hourly.58                                         3/6/2011    10.0 MB    44.4 GB
hourly.59                                         3/6/2011     9.6 MB    44.4 GB
hourly.60                                         3/6/2011    56.0 MB    44.5 GB
hourly.61                                         3/6/2011   342.1 MB    44.8 GB
hourly.62                                         3/6/2011     9.6 MB    44.8 GB
hourly.63                                         3/6/2011     2.9 GB    47.7 GB
nightly.5                                         3/6/2011    15.3 MB    47.8 GB
hourly.64                                         3/5/2011    95.1 MB    47.9 GB
hourly.65                                         3/5/2011    12.3 MB    47.9 GB
hourly.66                                         3/5/2011    10.3 MB    47.9 GB
hourly.67                                         3/5/2011     1.8 GB    49.7 GB
hourly.68                                         3/5/2011    50.5 MB    49.7 GB
hourly.69                                         3/5/2011     9.0 MB    49.7 GB
hourly.70                                         3/5/2011   148.2 MB    49.9 GB
hourly.71                                         3/5/2011    28.3 MB    49.9 GB
hourly.72                                         3/5/2011    20.9 MB    49.9 GB
hourly.73                                         3/5/2011    50.3 MB    50.0 GB
hourly.74                                         3/5/2011    23.8 MB    50.0 GB
nightly.6                                         3/5/2011    53.7 MB    50.1 GB
hourly.75                                         3/4/2011   566.7 MB    50.6 GB
hourly.76                                         3/4/2011   107.7 MB    50.7 GB
hourly.77                                         3/4/2011     1.1 GB    51.8 GB
hourly.78                                         3/4/2011     1.3 GB    53.1 GB
hourly.79                                         3/4/2011     1.4 GB    54.5 GB
hourly.80                                         3/4/2011    26.3 MB    54.5 GB
hourly.81                                         3/4/2011   615.1 MB    55.1 GB
hourly.82                                         3/4/2011    70.8 MB    55.2 GB
hourly.83                                         3/4/2011    24.4 MB    55.2 GB
hourly.84                                         3/4/2011    29.6 MB    55.2 GB
nightly.7                                         3/4/2011     1.1 GB    56.3 GB
hourly.85                                         3/3/2011     1.4 GB    57.7 GB
hourly.86                                         3/3/2011     3.0 GB    60.7 GB
hourly.87                                         3/3/2011     3.6 GB    64.2 GB
hourly.88                                         3/3/2011     1.4 GB    65.6 GB
hourly.89                                         3/3/2011     1.9 GB    67.5 GB
hourly.90                                         3/3/2011     2.0 GB    69.5 GB
hourly.91                                         3/3/2011     1.8 GB    71.3 GB
hourly.92                                         3/3/2011     3.5 GB    74.8 GB
hourly.93                                         3/3/2011     3.5 GB    78.3 GB
hourly.94                                         3/3/2011     1.4 GB    79.7 GB
hourly.95                                         3/3/2011     2.6 GB    82.3 GB
nightly.8                                         3/3/2011     1.1 GB    83.4 GB
hourly.96                                         3/2/2011     1.2 GB    84.7 GB
hourly.97                                         3/2/2011    88.1 MB    84.7 GB
hourly.98                                         3/2/2011   123.4 MB    84.9 GB
hourly.99                                         3/2/2011    90.6 MB    85.0 GB
hourly.100                                        3/2/2011     2.7 GB    87.7 GB
hourly.101                                        3/2/2011     1.4 GB    89.0 GB
hourly.102                                        3/2/2011     2.7 GB    91.8 GB
hourly.103                                        3/2/2011     1.8 GB    93.6 GB
hourly.104                                        3/2/2011     2.2 GB    95.8 GB
hourly.105                                        3/2/2011     1.4 GB    97.2 GB
hourly.106                                        3/2/2011     1.4 GB    98.5 GB
nightly.9                                         3/2/2011    83.2 MB    98.6 GB
hourly.107                                        3/1/2011   101.5 MB    98.7 GB
hourly.108                                        3/1/2011   132.0 MB    98.8 GB
hourly.109                                        3/1/2011    90.3 MB    98.9 GB
hourly.110                                        3/1/2011     1.9 GB   100.8 GB
hourly.111                                        3/1/2011     1.5 GB   102.3 GB
hourly.112                                        3/1/2011   922.9 MB   103.2 GB
hourly.113                                        3/1/2011     1.4 GB   104.6 GB
hourly.114                                        3/1/2011    20.6 GB   125.2 GB
hourly.115                                        3/1/2011     1.4 GB   126.6 GB
hourly.116                                        3/1/2011     2.8 GB   129.3 GB
hourly.117                                        3/1/2011     2.0 GB   131.3 GB
nightly.10                                        3/1/2011     1.4 GB   132.7 GB
hourly.118                                       2/28/2011   120.1 MB   132.8 GB
hourly.119                                       2/28/2011   110.2 MB   132.9 GB
hourly.120                                       2/28/2011   140.3 MB   133.1 GB
hourly.121                                       2/28/2011   100.8 MB   133.2 GB
hourly.122                                       2/28/2011     1.6 GB   134.8 GB
hourly.123                                       2/28/2011     2.2 GB   137.0 GB
hourly.124                                       2/28/2011     1.3 GB   138.3 GB
hourly.125                                       2/28/2011     2.3 GB   140.6 GB
hourly.126                                       2/28/2011     1.8 GB   142.3 GB
hourly.127                                       2/28/2011     2.6 GB   144.9 GB
hourly.128                                       2/28/2011    38.5 MB   144.9 GB
nightly.11                                       2/28/2011    25.6 MB   145.0 GB
hourly.129                                       2/27/2011    14.8 MB   145.0 GB
hourly.130                                       2/27/2011   165.0 MB   145.1 GB
hourly.131                                       2/27/2011   898.9 MB   146.0 GB
hourly.132                                       2/27/2011     2.4 GB   148.4 GB
hourly.133                                       2/27/2011     1.4 GB   149.8 GB
hourly.134                                       2/27/2011     2.6 GB   152.4 GB
hourly.135                                       2/27/2011     1.3 GB   153.8 GB
hourly.136                                       2/27/2011     3.0 GB   156.8 GB
hourly.137                                       2/27/2011     1.4 GB   158.2 GB
hourly.138                                       2/27/2011     3.1 GB   161.3 GB
hourly.139                                       2/27/2011     3.8 GB   165.1 GB
nightly.12                                       2/27/2011    22.3 MB   165.1 GB
hourly.140                                       2/26/2011     1.0 GB   166.2 GB
hourly.141                                       2/26/2011   102.5 MB   166.3 GB
hourly.142                                       2/26/2011     1.3 GB   167.5 GB
hourly.143                                       2/26/2011     2.3 GB   169.8 GB
hourly.144                                       2/26/2011    56.1 MB   169.9 GB
hourly.145                                       2/26/2011    11.8 MB   169.9 GB
hourly.146                                       2/26/2011    60.4 MB   170.0 GB
hourly.147                                       2/26/2011   107.4 MB   170.1 GB
hourly.148                                       2/26/2011     4.2 GB   174.2 GB
hourly.149                                       2/26/2011     6.7 GB   180.9 GB
hourly.150                                       2/26/2011     1.1 GB   182.1 GB
nightly.13                                       2/26/2011     3.4 GB   185.4 GB
hourly.151                                       2/25/2011   284.3 MB   185.7 GB
hourly.152                                       2/25/2011    87.8 MB   185.8 GB
hourly.153                                       2/25/2011     3.1 GB   188.9 GB
hourly.154                                       2/25/2011   150.4 MB   189.0 GB
hourly.155                                       2/25/2011   165.4 MB   189.2 GB
hourly.156                                       2/25/2011    37.6 MB   189.2 GB
hourly.157                                       2/25/2011   155.1 MB   189.4 GB
hourly.158                                       2/25/2011     3.1 GB   192.5 GB
hourly.159                                       2/25/2011   967.7 MB   193.4 GB
hourly.160                                       2/25/2011    61.6 MB   193.5 GB
hourly.161                                       2/25/2011     1.7 GB   195.2 GB
nightly.14                                       2/25/2011     1.8 GB   197.0 GB
hourly.162                                       2/24/2011    87.1 MB   197.1 GB
hourly.163                                       2/24/2011   155.7 MB   197.3 GB
hourly.164                                       2/24/2011   161.7 MB   197.4 GB
hourly.165                                       2/24/2011   160.1 MB   197.6 GB
hourly.166                                       2/24/2011   140.4 MB   197.7 GB
hourly.167                                       2/24/2011    32.2 MB   197.7 GB
nightly.15                                       2/24/2011     3.7 GB   201.5 GB
nightly.16                                       2/23/2011     2.0 GB   203.5 GB
nightly.17                                       2/22/2011     1.0 GB   204.5 GB
nightly.18                                       2/21/2011   550.3 MB   205.0 GB
nightly.19                                       2/20/2011   618.0 MB   205.6 GB
nightly.20                                       2/19/2011     3.8 GB   209.5 GB
nightly.21                                       2/18/2011     1.3 GB   210.8 GB
nightly.22                                       2/17/2011     1.8 GB   212.6 GB
nightly.23                                       2/16/2011     2.8 GB   215.3 GB
nightly.24                                       2/15/2011    18.9 GB   234.2 GB
nightly.25                                       2/14/2011   997.2 MB   235.2 GB
nightly.26                                       2/13/2011     3.0 GB   238.2 GB
nightly.27                                       2/12/2011     5.3 GB   243.5 GB
nightly.28                                       2/11/2011     1.1 GB   244.6 GB
nightly.29                                       2/10/2011     2.8 GB   247.4 GB
nightly.30                                        2/9/2011     2.1 GB   249.5 GB
nightly.31                                        2/8/2011     2.8 GB   252.2 GB
nightly.32                                        2/7/2011   757.4 MB   253.0 GB
nightly.33                                        2/6/2011     5.4 GB   258.4 GB
nightly.34                                        2/5/2011     4.7 GB   263.1 GB
nightly.35                                        2/4/2011     2.6 GB   265.7 GB
nightly.36                                        2/3/2011     1.1 GB   266.8 GB
nightly.37                                        2/2/2011     1.2 GB   267.9 GB
nightly.38                                        2/1/2011     8.2 GB   276.2 GB
nightly.39                                       1/31/2011   828.9 MB   277.0 GB
nightly.40                                       1/30/2011     5.5 GB   282.4 GB
nightly.41                                       1/29/2011     5.3 GB   287.8 GB
nightly.42                                       1/28/2011     1.4 GB   289.2 GB
nightly.43                                       1/27/2011   865.1 MB   290.0 GB
nightly.44                                       1/26/2011     1.8 GB   291.8 GB
nightly.45                                       1/25/2011     1.7 GB   293.5 GB
nightly.46                                       1/24/2011     1.1 GB   294.7 GB
nightly.47                                       1/23/2011     5.4 GB   300.1 GB
nightly.48                                       1/22/2011     4.7 GB   304.8 GB
nightly.49                                       1/21/2011     2.6 GB   307.4 GB
nightly.50                                       1/20/2011    16.9 GB   324.3 GB
nightly.51                                       1/19/2011    14.1 GB   338.4 GB
nightly.52                                       1/18/2011     5.6 GB   344.0 GB
nightly.53                                       1/17/2011     4.8 GB   348.8 GB
nightly.54                                       1/16/2011    11.1 GB   359.9 GB
nightly.55                                       1/15/2011     4.4 GB   364.4 GB
nightly.56                                       1/14/2011     1.0 GB   365.4 GB
nightly.57                                       1/13/2011     1.2 GB   366.6 GB
nightly.58                                       1/12/2011   448.2 MB   367.0 GB
nightly.59                                       1/11/2011   419.5 MB   367.4 GB
nightly.60                                       1/10/2011   434.7 MB   367.9 GB
nightly.61                                        1/9/2011   440.8 MB   368.3 GB

timothyn
9,128 Views

Thanks, for the snap list.  What about dedupe?  Can you post the output of "Get-NaSis VolName3 | fl *" (assuming it's enabled)?

jurphville
9,128 Views

Ahh, sorry.  No on dedupe.

timothyn
9,128 Views

This is a bit mysterious.  I've had a few interesting conversations about this, but can't reproduce the problem.  I do have one system that is off by a few kb, but nothing as drastic as you are seeing.

Can you give me a little more info?

  • ONTAP version (shows up as "NetApp Release" after Connect-NaController)
  • output of "snap list VolName3" on the controller (or use Invoke-NaSsh)
  • output of "df -S" on the controller (be sure to use capital "S")

Thanks again!

jurphville
8,664 Views

Here ya go...

ControllerName> version
NetApp Release 7.3.4P2: Sat Sep  4 03:55:53 PDT 2010

ControllerName> snap list VolName3
Volume VolName3
working...

   %/used       %/total  date          name
----------  ----------  ------------  --------
  0% ( 0%)    0% ( 0%)  Mar 11 22:23  ControllerDestName(1111111111)_VolName3.18871 (snapmirror)
  0% ( 0%)    0% ( 0%)  Mar 11 22:20  ControllerDestName(1111111111)_VolName3.18870
  0% ( 0%)    0% ( 0%)  Mar 11 22:00  hourly.0
  0% ( 0%)    0% ( 0%)  Mar 11 20:00  hourly.1
  0% ( 0%)    0% ( 0%)  Mar 11 18:00  hourly.2
  0% ( 0%)    0% ( 0%)  Mar 11 16:00  hourly.3
  0% ( 0%)    0% ( 0%)  Mar 11 14:00  hourly.4
  0% ( 0%)    0% ( 0%)  Mar 11 12:00  hourly.5
  0% ( 0%)    0% ( 0%)  Mar 11 10:00  hourly.6
  0% ( 0%)    0% ( 0%)  Mar 11 08:00  hourly.7
  0% ( 0%)    0% ( 0%)  Mar 11 06:00  hourly.8
  0% ( 0%)    0% ( 0%)  Mar 11 04:00  hourly.9
  0% ( 0%)    0% ( 0%)  Mar 11 02:00  hourly.10
  0% ( 0%)    0% ( 0%)  Mar 11 00:00  nightly.0
  0% ( 0%)    0% ( 0%)  Mar 10 22:00  hourly.11
  0% ( 0%)    0% ( 0%)  Mar 10 20:00  hourly.12
  0% ( 0%)    0% ( 0%)  Mar 10 18:00  hourly.13
  0% ( 0%)    0% ( 0%)  Mar 10 16:00  hourly.14
  0% ( 0%)    0% ( 0%)  Mar 10 14:00  hourly.15
  0% ( 0%)    0% ( 0%)  Mar 10 12:00  hourly.16
  0% ( 0%)    0% ( 0%)  Mar 10 10:00  hourly.17
  0% ( 0%)    0% ( 0%)  Mar 10 08:00  hourly.18
  0% ( 0%)    0% ( 0%)  Mar 10 06:00  hourly.19
  0% ( 0%)    0% ( 0%)  Mar 10 04:00  hourly.20
  0% ( 0%)    0% ( 0%)  Mar 10 02:00  hourly.21
  0% ( 0%)    0% ( 0%)  Mar 10 00:00  nightly.1
  0% ( 0%)    0% ( 0%)  Mar 09 22:00  hourly.22
  0% ( 0%)    0% ( 0%)  Mar 09 20:00  hourly.23
  0% ( 0%)    0% ( 0%)  Mar 09 18:00  hourly.24
  0% ( 0%)    0% ( 0%)  Mar 09 16:00  hourly.25
  0% ( 0%)    0% ( 0%)  Mar 09 14:00  hourly.26
  0% ( 0%)    0% ( 0%)  Mar 09 12:00  hourly.27
  0% ( 0%)    0% ( 0%)  Mar 09 10:00  hourly.28
  1% ( 0%)    0% ( 0%)  Mar 09 08:00  hourly.29
  1% ( 0%)    0% ( 0%)  Mar 09 06:00  hourly.30
  1% ( 0%)    0% ( 0%)  Mar 09 04:00  hourly.31
  1% ( 0%)    0% ( 0%)  Mar 09 02:00  hourly.32
  1% ( 0%)    0% ( 0%)  Mar 09 00:00  nightly.2
  1% ( 0%)    0% ( 0%)  Mar 08 22:00  hourly.33
  1% ( 0%)    0% ( 0%)  Mar 08 20:00  hourly.34
  1% ( 0%)    0% ( 0%)  Mar 08 18:00  hourly.35
  1% ( 0%)    0% ( 0%)  Mar 08 16:00  hourly.36
  1% ( 0%)    0% ( 0%)  Mar 08 14:00  hourly.37
  1% ( 0%)    0% ( 0%)  Mar 08 12:00  hourly.38
  1% ( 0%)    0% ( 0%)  Mar 08 10:00  hourly.39
  1% ( 0%)    0% ( 0%)  Mar 08 08:00  hourly.40
  1% ( 0%)    0% ( 0%)  Mar 08 06:00  hourly.41
  1% ( 0%)    0% ( 0%)  Mar 08 04:00  hourly.42
  1% ( 0%)    0% ( 0%)  Mar 08 02:00  hourly.43
  1% ( 0%)    0% ( 0%)  Mar 08 00:00  nightly.3
  1% ( 0%)    0% ( 0%)  Mar 07 22:00  hourly.44
  1% ( 0%)    0% ( 0%)  Mar 07 20:00  hourly.45
  1% ( 0%)    0% ( 0%)  Mar 07 18:00  hourly.46
  1% ( 0%)    0% ( 0%)  Mar 07 16:00  hourly.47
  1% ( 0%)    0% ( 0%)  Mar 07 14:00  hourly.48
  1% ( 0%)    0% ( 0%)  Mar 07 12:00  hourly.49
  1% ( 0%)    0% ( 0%)  Mar 07 10:00  hourly.50
  1% ( 0%)    0% ( 0%)  Mar 07 08:00  hourly.51
  1% ( 0%)    0% ( 0%)  Mar 07 06:00  hourly.52
  1% ( 0%)    0% ( 0%)  Mar 07 04:00  hourly.53
  1% ( 0%)    0% ( 0%)  Mar 07 02:00  hourly.54
  1% ( 0%)    0% ( 0%)  Mar 07 00:00  nightly.4
  1% ( 0%)    0% ( 0%)  Mar 06 22:00  hourly.55
  1% ( 0%)    0% ( 0%)  Mar 06 20:00  hourly.56
  1% ( 0%)    0% ( 0%)  Mar 06 18:00  hourly.57
  1% ( 0%)    0% ( 0%)  Mar 06 16:00  hourly.58
  1% ( 0%)    0% ( 0%)  Mar 06 14:00  hourly.59
  1% ( 0%)    0% ( 0%)  Mar 06 12:00  hourly.60
  1% ( 0%)    0% ( 0%)  Mar 06 10:01  hourly.61
  1% ( 0%)    0% ( 0%)  Mar 06 08:00  hourly.62
  1% ( 0%)    0% ( 0%)  Mar 06 06:01  hourly.63
  1% ( 0%)    0% ( 0%)  Mar 06 04:01  hourly.64
  1% ( 0%)    0% ( 0%)  Mar 06 02:01  hourly.65
  1% ( 0%)    0% ( 0%)  Mar 06 00:00  nightly.5
  1% ( 0%)    0% ( 0%)  Mar 05 22:01  hourly.66
  1% ( 0%)    0% ( 0%)  Mar 05 20:01  hourly.67
  1% ( 0%)    0% ( 0%)  Mar 05 18:01  hourly.68
  1% ( 0%)    0% ( 0%)  Mar 05 16:01  hourly.69
  1% ( 0%)    0% ( 0%)  Mar 05 14:01  hourly.70
  1% ( 0%)    0% ( 0%)  Mar 05 12:01  hourly.71
  1% ( 0%)    0% ( 0%)  Mar 05 10:01  hourly.72
  1% ( 0%)    0% ( 0%)  Mar 05 08:01  hourly.73
  1% ( 0%)    0% ( 0%)  Mar 05 06:01  hourly.74
  1% ( 0%)    0% ( 0%)  Mar 05 04:01  hourly.75
  1% ( 0%)    0% ( 0%)  Mar 05 02:01  hourly.76
  1% ( 0%)    0% ( 0%)  Mar 05 00:00  nightly.6
  1% ( 0%)    0% ( 0%)  Mar 04 22:01  hourly.77
  1% ( 0%)    0% ( 0%)  Mar 04 20:01  hourly.78
  1% ( 0%)    0% ( 0%)  Mar 04 18:03  hourly.79
  1% ( 0%)    0% ( 0%)  Mar 04 16:01  hourly.80
  1% ( 0%)    0% ( 0%)  Mar 04 14:01  hourly.81
  1% ( 0%)    0% ( 0%)  Mar 04 12:01  hourly.82
  1% ( 0%)    0% ( 0%)  Mar 04 08:00  hourly.83
  1% ( 0%)    0% ( 0%)  Mar 04 06:00  hourly.84
  1% ( 0%)    0% ( 0%)  Mar 04 04:00  hourly.85
  1% ( 0%)    0% ( 0%)  Mar 04 02:00  hourly.86
  1% ( 0%)    0% ( 0%)  Mar 04 00:00  nightly.7
  1% ( 0%)    0% ( 0%)  Mar 03 22:00  hourly.87
  1% ( 0%)    1% ( 0%)  Mar 03 20:00  hourly.88
  1% ( 0%)    1% ( 0%)  Mar 03 18:00  hourly.89
  1% ( 0%)    1% ( 0%)  Mar 03 16:00  hourly.90
  1% ( 0%)    1% ( 0%)  Mar 03 14:00  hourly.91
  1% ( 0%)    1% ( 0%)  Mar 03 12:00  hourly.92
  1% ( 0%)    1% ( 0%)  Mar 03 10:00  hourly.93
  1% ( 0%)    1% ( 0%)  Mar 03 08:00  hourly.94
  1% ( 0%)    1% ( 0%)  Mar 03 06:00  hourly.95
  1% ( 0%)    1% ( 0%)  Mar 03 04:00  hourly.96
  1% ( 0%)    1% ( 0%)  Mar 03 02:00  hourly.97
  1% ( 0%)    1% ( 0%)  Mar 03 00:00  nightly.8
  1% ( 0%)    1% ( 0%)  Mar 02 22:00  hourly.98
  1% ( 0%)    1% ( 0%)  Mar 02 20:00  hourly.99
  1% ( 0%)    1% ( 0%)  Mar 02 18:00  hourly.100
  1% ( 0%)    1% ( 0%)  Mar 02 16:00  hourly.101
  1% ( 0%)    1% ( 0%)  Mar 02 14:00  hourly.102
  1% ( 0%)    1% ( 0%)  Mar 02 12:00  hourly.103
  1% ( 0%)    1% ( 0%)  Mar 02 10:00  hourly.104
  1% ( 0%)    1% ( 0%)  Mar 02 08:00  hourly.105
  2% ( 0%)    1% ( 0%)  Mar 02 06:00  hourly.106
  2% ( 0%)    1% ( 0%)  Mar 02 04:00  hourly.107
  2% ( 0%)    1% ( 0%)  Mar 02 02:00  hourly.108
  2% ( 0%)    1% ( 0%)  Mar 02 00:00  nightly.9
  2% ( 0%)    1% ( 0%)  Mar 01 22:00  hourly.109
  2% ( 0%)    1% ( 0%)  Mar 01 20:00  hourly.110
  2% ( 0%)    1% ( 0%)  Mar 01 18:00  hourly.111
  2% ( 0%)    1% ( 0%)  Mar 01 16:00  hourly.112
  2% ( 0%)    1% ( 0%)  Mar 01 14:00  hourly.113
  2% ( 0%)    1% ( 0%)  Mar 01 12:00  hourly.114
  2% ( 0%)    1% ( 0%)  Mar 01 10:00  hourly.115
  2% ( 0%)    1% ( 0%)  Mar 01 08:00  hourly.116
  2% ( 0%)    1% ( 0%)  Mar 01 06:00  hourly.117
  2% ( 0%)    1% ( 0%)  Mar 01 04:00  hourly.118
  2% ( 0%)    1% ( 0%)  Mar 01 02:00  hourly.119
  2% ( 0%)    1% ( 0%)  Mar 01 00:00  nightly.10
  2% ( 0%)    1% ( 0%)  Feb 28 22:00  hourly.120
  2% ( 0%)    1% ( 0%)  Feb 28 20:00  hourly.121
  2% ( 0%)    1% ( 0%)  Feb 28 18:00  hourly.122
  2% ( 0%)    1% ( 0%)  Feb 28 16:00  hourly.123
  2% ( 0%)    1% ( 0%)  Feb 28 14:00  hourly.124
  2% ( 0%)    1% ( 0%)  Feb 28 12:00  hourly.125
  2% ( 0%)    1% ( 0%)  Feb 28 10:00  hourly.126
  2% ( 0%)    1% ( 0%)  Feb 28 08:00  hourly.127
  2% ( 0%)    1% ( 0%)  Feb 28 06:00  hourly.128
  2% ( 0%)    1% ( 0%)  Feb 28 04:00  hourly.129
  2% ( 0%)    1% ( 0%)  Feb 28 02:00  hourly.130
  2% ( 0%)    1% ( 0%)  Feb 28 00:00  nightly.11
  2% ( 0%)    1% ( 0%)  Feb 27 22:00  hourly.131
  2% ( 0%)    1% ( 0%)  Feb 27 20:00  hourly.132
  2% ( 0%)    1% ( 0%)  Feb 27 18:00  hourly.133
  2% ( 0%)    1% ( 0%)  Feb 27 16:00  hourly.134
  2% ( 0%)    1% ( 0%)  Feb 27 14:01  hourly.135
  2% ( 0%)    1% ( 0%)  Feb 27 12:00  hourly.136
  2% ( 0%)    1% ( 0%)  Feb 27 10:00  hourly.137
  2% ( 0%)    1% ( 0%)  Feb 27 08:00  hourly.138
  2% ( 0%)    1% ( 0%)  Feb 27 06:00  hourly.139
  3% ( 0%)    1% ( 0%)  Feb 27 04:01  hourly.140
  3% ( 0%)    1% ( 0%)  Feb 27 02:00  hourly.141
  3% ( 0%)    1% ( 0%)  Feb 27 00:00  nightly.12
  3% ( 0%)    1% ( 0%)  Feb 26 22:00  hourly.142
  3% ( 0%)    1% ( 0%)  Feb 26 20:00  hourly.143
  3% ( 0%)    1% ( 0%)  Feb 26 18:00  hourly.144
  3% ( 0%)    1% ( 0%)  Feb 26 16:00  hourly.145
  3% ( 0%)    1% ( 0%)  Feb 26 14:01  hourly.146
  3% ( 0%)    1% ( 0%)  Feb 26 12:01  hourly.147
  3% ( 0%)    1% ( 0%)  Feb 26 10:01  hourly.148
  3% ( 0%)    1% ( 0%)  Feb 26 08:01  hourly.149
  3% ( 0%)    1% ( 0%)  Feb 26 06:01  hourly.150
  3% ( 0%)    2% ( 0%)  Feb 26 04:01  hourly.151
  3% ( 0%)    2% ( 0%)  Feb 26 02:01  hourly.152
  3% ( 0%)    2% ( 0%)  Feb 26 00:00  nightly.13
  3% ( 0%)    2% ( 0%)  Feb 25 22:01  hourly.153
  3% ( 0%)    2% ( 0%)  Feb 25 20:01  hourly.154
  3% ( 0%)    2% ( 0%)  Feb 25 18:01  hourly.155
  3% ( 0%)    2% ( 0%)  Feb 25 16:01  hourly.156
  3% ( 0%)    2% ( 0%)  Feb 25 14:01  hourly.157
  3% ( 0%)    2% ( 0%)  Feb 25 12:01  hourly.158
  3% ( 0%)    2% ( 0%)  Feb 25 10:01  hourly.159
  3% ( 0%)    2% ( 0%)  Feb 25 08:01  hourly.160
  3% ( 0%)    2% ( 0%)  Feb 25 06:01  hourly.161
  3% ( 0%)    2% ( 0%)  Feb 25 04:01  hourly.162
  3% ( 0%)    2% ( 0%)  Feb 25 02:01  hourly.163
  3% ( 0%)    2% ( 0%)  Feb 25 00:01  nightly.14
  3% ( 0%)    2% ( 0%)  Feb 24 22:01  hourly.164
  3% ( 0%)    2% ( 0%)  Feb 24 20:01  hourly.165
  3% ( 0%)    2% ( 0%)  Feb 24 18:00  hourly.166
  3% ( 0%)    2% ( 0%)  Feb 24 16:01  hourly.167
  3% ( 0%)    2% ( 0%)  Feb 24 00:01  nightly.15
  3% ( 0%)    2% ( 0%)  Feb 23 00:01  nightly.16
  3% ( 0%)    2% ( 0%)  Feb 22 00:00  nightly.17
  3% ( 0%)    2% ( 0%)  Feb 21 00:00  nightly.18
  3% ( 0%)    2% ( 0%)  Feb 20 00:01  nightly.19
  3% ( 0%)    2% ( 0%)  Feb 19 00:01  nightly.20
  3% ( 0%)    2% ( 0%)  Feb 18 00:01  nightly.21
  3% ( 0%)    2% ( 0%)  Feb 17 00:00  nightly.22
  3% ( 0%)    2% ( 0%)  Feb 16 00:00  nightly.23
  4% ( 0%)    2% ( 0%)  Feb 15 00:00  nightly.24
  4% ( 0%)    2% ( 0%)  Feb 14 00:00  nightly.25
  4% ( 0%)    2% ( 0%)  Feb 13 00:00  nightly.26
  4% ( 0%)    2% ( 0%)  Feb 12 00:00  nightly.27
  4% ( 0%)    2% ( 0%)  Feb 11 00:01  nightly.28
  4% ( 0%)    2% ( 0%)  Feb 10 00:00  nightly.29
  4% ( 0%)    2% ( 0%)  Feb 09 00:00  nightly.30
  4% ( 0%)    2% ( 0%)  Feb 08 00:00  nightly.31
  4% ( 0%)    2% ( 0%)  Feb 07 00:00  nightly.32
  4% ( 0%)    2% ( 0%)  Feb 06 00:00  nightly.33
  4% ( 0%)    2% ( 0%)  Feb 05 00:00  nightly.34
  4% ( 0%)    2% ( 0%)  Feb 04 00:00  nightly.35
  4% ( 0%)    2% ( 0%)  Feb 03 00:01  nightly.36
  4% ( 0%)    2% ( 0%)  Feb 02 00:01  nightly.37
  4% ( 0%)    2% ( 0%)  Feb 01 00:00  nightly.38
  4% ( 0%)    2% ( 0%)  Jan 31 00:00  nightly.39
  4% ( 0%)    2% ( 0%)  Jan 30 00:00  nightly.40
  4% ( 0%)    2% ( 0%)  Jan 29 00:00  nightly.41
  4% ( 0%)    2% ( 0%)  Jan 28 00:00  nightly.42
  4% ( 0%)    2% ( 0%)  Jan 27 00:01  nightly.43
  4% ( 0%)    2% ( 0%)  Jan 26 00:01  nightly.44
  4% ( 0%)    3% ( 0%)  Jan 25 00:00  nightly.45
  4% ( 0%)    3% ( 0%)  Jan 24 00:00  nightly.46
  5% ( 0%)    3% ( 0%)  Jan 23 00:00  nightly.47
  5% ( 0%)    3% ( 0%)  Jan 22 00:00  nightly.48
  5% ( 0%)    3% ( 0%)  Jan 21 00:00  nightly.49
  5% ( 0%)    3% ( 0%)  Jan 20 00:00  nightly.50
  5% ( 0%)    3% ( 0%)  Jan 19 00:01  nightly.51
  5% ( 0%)    3% ( 0%)  Jan 18 00:01  nightly.52
  5% ( 0%)    3% ( 0%)  Jan 17 00:00  nightly.53
  5% ( 0%)    3% ( 0%)  Jan 16 00:00  nightly.54
  5% ( 0%)    3% ( 0%)  Jan 15 00:00  nightly.55
  5% ( 0%)    3% ( 0%)  Jan 14 00:00  nightly.56
  6% ( 0%)    3% ( 0%)  Jan 13 00:01  nightly.57
  6% ( 0%)    3% ( 0%)  Jan 12 00:00  nightly.58
  6% ( 0%)    3% ( 0%)  Jan 11 00:00  nightly.59
  6% ( 0%)    3% ( 0%)  Jan 10 00:00  nightly.60
  6% ( 0%)    3% ( 0%)  Jan 09 00:00  nightly.61


ControllerName> df -S VolName3
Filesystem                used       compressed         a-sis     %saved
/vol/VolName3/ 6885094700                0             0         0%

Nope...didn't accidentally turn on dedupe.  😃

jurphville
8,664 Views

Just a few things to note that might make a difference.  These are larger volumes (11TB), we have snap reserve set to 0 so snapshots "spill over" into "normal" storage, and the maxfiles for this volume is set to 237189720 (we have lots of small files)

When I do this on smaller volumes on the same filer, I get accurate results.

timothyn
8,664 Views

Thanks again for getting back with more information.  It looks like the "snap list" percentages match up with values from the Get-NaSnapshot cmdlet (accounting for rounding error) and not with the df numbers.

Unfortunately I can't really say why ONTAP is reporting different values for df vs. snap list or what the difference might be.  I'm also not sure which is more accurate for what you are trying to accomplish.  The DataONTAP toolkit is correctly reporting the numbers returned by the ONTAP "snapshot-list-info" ZAPI.   So at this point, if this is information that you really need, I'd recommend getting in touch with NetApp Global Support.  I'd suggest referring to the CLI commands first, and that the toolkit is simply invoking "snapshot-list-info" and reporting the "cumulative-total" in the response.  Feel free to give them my name for additional info.

wippel
8,664 Views

Please try this:

Get-NaSnapshotReclaimable -controller $ControllerName VolName3 -Snapshots ( Get-NaSnapshot -controller $ControllerName VolName3 )

this lasts a view minutes...

jurphville
8,664 Views

I moved away from this project but I'm back at it.  I attempted to get the data you requested, however, knowing that snap reclaimable is a long process and not wanting to burden my filer, I did the following...

Get-NaSnapshotReclaimable -controller $ControllerName VolName3 -Snapshots ( Get-NaSnapshot -controller $ControllerName VolName3 | sort Cumulative | select -last 1)

After a few moments, this yielded the following error...

Get-NaSnapshotReclaimable : Could not connect to 10.10.10.10 on port 80 for protocol HTTP.
At line:1 char:26
+ Get-NaSnapshotReclaimable <<<<  -controller $ControllerName VolName3 -Snapshots ( Get-NaSnapshot -controller $ControllerName VolName3 | sort Cumulative | select -last 1)
    + CategoryInfo          : InvalidOperation: (10.10.10.10:NaController) [Get-NaSnapshotReclaimable], NaConnectionException
    + FullyQualifiedErrorId : ApiException,DataONTAP.PowerShell.SDK.Cmdlets.Snapshot.GetNaSnapshotReclaimable

Note, that any other command issued is working fine using the same $ControllerName Connect-NaController object.

I also found that immediately after issuing this command, my filer CPU went to 99%, and CIFS operations dropped dramatically (CIFS is the only filer access protocol we are using).  In fact, causing filer performance issues and triggering a couple of alerts.  Filer performance returned to normal in fairly short order, but I won't be issuing that again.

I plan on contacting Netapp support to see why this is having such a negative impact on my filer.  It would be helpful to be able to relay what is actually being submitted to the filer from this command.  Any input?

cknight
8,664 Views

After a few moments, this yielded the following error...

Get-NaSnapshotReclaimable : Could not connect to 10.10.10.10 on port 80 for protocol HTTP.

It sounds like the cmdlet timed out.  The default is 10 seconds, but you can change that value anytime on the controller object you get back from Connect-NaController.


PS C:\Users\cknight> $global:CurrentNaController | fl *


Ontapi             : 1.14
OntapiMajorVersion : 1
OntapiMinorVersion : 14
Version            : NetApp Release 7.3.5: Mon Nov 22 21:32:44 PST 2010
Vfiler             :
Protocol           : HTTPS
Proxy              :
TimeoutMsec        : 10000
Name               : dunn
Address            : 10.61.167.60
Port               : 443
Credentials        : System.Net.NetworkCredential
ValidateIncoming   : False
ValidateOutgoing   : False
Trace              : False

I plan on contacting Netapp support to see why this is having such a negative impact on my filer.  It would be helpful to be able to relay what is actually being submitted to the filer from this command.  Any input?

Just tell 'em what API we're calling:

PS C:\Users\cknight> Get-NaHelp Get-NaSnapshotReclaimable

Name                                    Api                                     Category
----                                    ---                                     --------
Get-NaSnapshotReclaimable               {snapshot-reclaimable-info}             snapshot

Public