Microsoft Virtualization Discussions

optimize SnapshotReserve?

wippel
7,142 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
7,139 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
Public