Page 1 of 1

View individual snapshot space usage?

Posted: Fri Feb 27, 2015 1:24 pm
by cosmos
Is there a quick CLI method to view the actual space being consumed by each individual snapshot on the system?

Currently can view total snapshot space used via CLI and GUI but have not found where it shows each individual space usage. Prefer CLI so can script this.

example to illustrate what im looking for:

snapshot1_rw 5G
snapshot2_rw 1G
snapshot3_rw 200G

total: 206G

thanks

Re: View individual snapshot space usage?

Posted: Fri Feb 27, 2015 3:08 pm
by Architect
run

Code: Select all

updatesnapspace 
(can be run per vv if need be)
to get the latest data, wait until it completes
then run

Code: Select all

showvv -space
(add vv-name for the vv in question, if you want to filter per vv)

small example:

Code: Select all

                                           ----Adm---- -----------Snp------------ ------------Usr------------
                                             ---(MB)---- ----(MB)---- --(% VSize)-- ----(MB)----- --(% VSize)-- ------(MB)------- -Capacity Efficiency-
Id Name                           Prov Type   Rsvd  Used  Rsvd   Used  Used Wrn Lim   Rsvd   Used  Used Wrn Lim Tot_Rsvd    VSize   Compaction    Dedup
 5 some-store1-3389157            tpvv base    384    67 10752   9423   0.9   0   0  40448  39884   3.8   0   0    51584  1048832        361.1       --
59  rmv_86199b17c11d1f7c7910982f2 snp  vcopy    --    *1    --    *22  *0.0   0   0     --     --    --  --  --       --  1048832           --       --
63  rmv_9361621cd92d1f89cc9519a65 snp  vcopy    --    *1    --   *115  *0.0   0   0     --     --    --  --  --       --  1048832           --       --


Now look at the Snp Used column.
9423MB is the total snapspace in use by all snaps in the volume, the snaps below are 22MB and 115MB in size. I left a couple out to keep this readable.

Re: View individual snapshot space usage?

Posted: Fri Feb 27, 2015 3:26 pm
by cosmos
it does not appear our version of os has showvv -space. no mention of it in help command and errors out on cli

Release version 3.1.3 (MU1)

Thanks for the tip though. I have tried showvv -r etc but even after updatesnapspace it never shows the individual snaps usage just the total.

Re: View individual snapshot space usage?

Posted: Fri Feb 27, 2015 3:35 pm
by Architect
ah, try showvv -s in that case. I haven't got a 3.1.3 machine with snaps handy to check, but from memory it should work

Re: View individual snapshot space usage?

Posted: Fri Feb 27, 2015 4:00 pm
by cosmos
Architect wrote:ah, try showvv -s in that case. I haven't got a 3.1.3 machine with snaps handy to check, but from memory it should work


that works! thanks for the tip until we get updated to 3.2.x