1 |
Jeremi Piotrowski wrote on 2015-10-31 15:25: |
2 |
> USEDSNAP refers to _data_ that is not in pool/data but in the snapshots. |
3 |
> The value for USED is _data_ that is only present in *this one* snapshot, |
4 |
> and not in any other snapshots or in pool/data. _data_ that is shared |
5 |
> between atleast two snapshots is not shown as USED because removing one of |
6 |
> the snapshots would not free it (it is still referenced by another |
7 |
> snapshot). |
8 |
|
9 |
Indeed, this makes sense. The man page says about "used": |
10 |
|
11 |
As the file system changes, space that was previously shared |
12 |
becomes unique to the snapshot, and counted in the snapshot's space used. |
13 |
|
14 |
So "used" means "used exclusively by this snapshot". And the missing |
15 |
9.1G is data shared by two or more snapshots. I hadn't understood that |
16 |
before. Thank you. |
17 |
|
18 |
I guess I was looking for something like "how much data is shared |
19 |
between this snapshot and the next one", but since there's no link |
20 |
between snapshots (only between the dataset and the snapshots), ZFS |
21 |
can't provide it in "zfs list". |
22 |
|
23 |
But maybe there's a way to get this information? How can I find the |
24 |
amount of data shared between two snapshots of the same dataset? |
25 |
|
26 |
-- Remy |