How many snapshots?

Having a non laptop system that is on all the time running zfs with automatic snapshots you start to build up the snapshots at an alarming rate.

# for i in $(zfs list -Ho name -t snapshot )
do
zfs get -pH used $i
done | nawk '{ count++;
        if ($3 > 0 ) {
                nonzero++
        };
        total+=$3
}
END {
        print count, nonzero, total/(1024\^2)
}'
7071 188 83.939
#

So after one week I have 7071 snapshots of which only 188 currently contain data taking just 85 megabytes with the total pool taking 42.8G.


No downsides have been seen so far so while the numbers appear alarming I see no reason not to continue.


Tags:



Comments:

Post a Comment:
Comments are closed for this entry.
About

This is the old blog of Chris Gerhard. It has mostly moved to http://chrisgerhard.wordpress.com

Search

Archives
« April 2014
MonTueWedThuFriSatSun
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today