Ich habe eine 2TB Disk angelegt, diese belegt nach einem Snapshot gleich 1.5 TB mehr, obwohl sich nicht geändert hat.
Ich verstehe nicht wie das Volumen so ansteigen kann:
root@pvem-1:~# zfs get used datapool/vm-520-disk-2
NAME PROPERTY VALUE SOURCE
datapool/vm-520-disk-2 used 5.50T -
root@pvem-1:~# zfs get usedbysnapshots datapool/vm-520-disk-2
NAME PROPERTY VALUE SOURCE
datapool/vm-520-disk-2 usedbysnapshots 6.06G -
Lösche alle Snapshost "for snapshot in `zfs list -H -t snapshot | cut -f 1`; do zfs destroy $snapshot; done"
sieht es so aus:
root@pvem-1:~# zfs get usedbysnapshots datapool/vm-520-disk-2
NAME PROPERTY VALUE SOURCE
datapool/vm-520-disk-2 usedbysnapshots 0B -
root@pvem-1:~# zfs get used datapool/vm-520-disk-2
NAME PROPERTY VALUE SOURCE
datapool/vm-520-disk-2 used 3.48T -
und lege ich einen von hand an:
root@pvem-1:~# zfs snapshot datapool/vm-520-disk-2@test
root@pvem-1:~# zfs get used datapool/vm-520-disk-2
NAME PROPERTY VALUE SOURCE
datapool/vm-520-disk-2 used 5.49T -
root@pvem-1:~# zfs get usedbysnapshots datapool/vm-520-disk-2
NAME PROPERTY VALUE SOURCE
datapool/vm-520-disk-2 usedbysnapshots 11.7M -
Ich verstehe nicht, warum der used Wert so hochgeht, ich Bruchteil einer Sekunde? Das macht mir meine Speicherplanung schnell zunichte. Das HD läuft in einem Windows 2019 System, hat jemand eine Idee, woran es liegt?
root@pvem-1:~# zfs get all datapool/vm-520-disk-2
NAME PROPERTY VALUE SOURCE
datapool/vm-520-disk-2 type volume -
datapool/vm-520-disk-2 creation Thu Dec 12 10:51 2019 -
datapool/vm-520-disk-2 used 5.49T -
datapool/vm-520-disk-2 available 4.56T -
datapool/vm-520-disk-2 referenced 3.48T -
datapool/vm-520-disk-2 compressratio 1.03x -
datapool/vm-520-disk-2 reservation none default
datapool/vm-520-disk-2 volsize 1.95T local
datapool/vm-520-disk-2 volblocksize 8K default
datapool/vm-520-disk-2 checksum on default
datapool/vm-520-disk-2 compression on inherited from datapool
datapool/vm-520-disk-2 readonly off default
datapool/vm-520-disk-2 createtxg 1351496 -
datapool/vm-520-disk-2 copies 1 default
datapool/vm-520-disk-2 refreservation 2.01T local
datapool/vm-520-disk-2 guid 18033385482363057717 -
datapool/vm-520-disk-2 primarycache all default
datapool/vm-520-disk-2 secondarycache all default
datapool/vm-520-disk-2 usedbysnapshots 21.5M -
datapool/vm-520-disk-2 usedbydataset 3.48T -
datapool/vm-520-disk-2 usedbychildren 0B -
datapool/vm-520-disk-2 usedbyrefreservation 2.01T -
datapool/vm-520-disk-2 logbias latency default
datapool/vm-520-disk-2 objsetid 80552 -
datapool/vm-520-disk-2 dedup off default
datapool/vm-520-disk-2 mlslabel none default
datapool/vm-520-disk-2 sync standard default
datapool/vm-520-disk-2 refcompressratio 1.03x -
datapool/vm-520-disk-2 written 7.33M -
datapool/vm-520-disk-2 logicalused 1.25T -
datapool/vm-520-disk-2 logicalreferenced 1.25T -
datapool/vm-520-disk-2 volmode default default
datapool/vm-520-disk-2 snapshot_limit none default
datapool/vm-520-disk-2 snapshot_count none default
datapool/vm-520-disk-2 snapdev hidden default
datapool/vm-520-disk-2 context none default
datapool/vm-520-disk-2 fscontext none default
datapool/vm-520-disk-2 defcontext none default
datapool/vm-520-disk-2 rootcontext none default
datapool/vm-520-disk-2 redundant_metadata all default
datapool/vm-520-disk-2 encryption off default
datapool/vm-520-disk-2 keylocation none default
datapool/vm-520-disk-2 keyformat none default
datapool/vm-520-disk-2 pbkdf2iters 0 default
Ich verstehe nicht wie das Volumen so ansteigen kann:
root@pvem-1:~# zfs get used datapool/vm-520-disk-2
NAME PROPERTY VALUE SOURCE
datapool/vm-520-disk-2 used 5.50T -
root@pvem-1:~# zfs get usedbysnapshots datapool/vm-520-disk-2
NAME PROPERTY VALUE SOURCE
datapool/vm-520-disk-2 usedbysnapshots 6.06G -
Lösche alle Snapshost "for snapshot in `zfs list -H -t snapshot | cut -f 1`; do zfs destroy $snapshot; done"
sieht es so aus:
root@pvem-1:~# zfs get usedbysnapshots datapool/vm-520-disk-2
NAME PROPERTY VALUE SOURCE
datapool/vm-520-disk-2 usedbysnapshots 0B -
root@pvem-1:~# zfs get used datapool/vm-520-disk-2
NAME PROPERTY VALUE SOURCE
datapool/vm-520-disk-2 used 3.48T -
und lege ich einen von hand an:
root@pvem-1:~# zfs snapshot datapool/vm-520-disk-2@test
root@pvem-1:~# zfs get used datapool/vm-520-disk-2
NAME PROPERTY VALUE SOURCE
datapool/vm-520-disk-2 used 5.49T -
root@pvem-1:~# zfs get usedbysnapshots datapool/vm-520-disk-2
NAME PROPERTY VALUE SOURCE
datapool/vm-520-disk-2 usedbysnapshots 11.7M -
Ich verstehe nicht, warum der used Wert so hochgeht, ich Bruchteil einer Sekunde? Das macht mir meine Speicherplanung schnell zunichte. Das HD läuft in einem Windows 2019 System, hat jemand eine Idee, woran es liegt?
root@pvem-1:~# zfs get all datapool/vm-520-disk-2
NAME PROPERTY VALUE SOURCE
datapool/vm-520-disk-2 type volume -
datapool/vm-520-disk-2 creation Thu Dec 12 10:51 2019 -
datapool/vm-520-disk-2 used 5.49T -
datapool/vm-520-disk-2 available 4.56T -
datapool/vm-520-disk-2 referenced 3.48T -
datapool/vm-520-disk-2 compressratio 1.03x -
datapool/vm-520-disk-2 reservation none default
datapool/vm-520-disk-2 volsize 1.95T local
datapool/vm-520-disk-2 volblocksize 8K default
datapool/vm-520-disk-2 checksum on default
datapool/vm-520-disk-2 compression on inherited from datapool
datapool/vm-520-disk-2 readonly off default
datapool/vm-520-disk-2 createtxg 1351496 -
datapool/vm-520-disk-2 copies 1 default
datapool/vm-520-disk-2 refreservation 2.01T local
datapool/vm-520-disk-2 guid 18033385482363057717 -
datapool/vm-520-disk-2 primarycache all default
datapool/vm-520-disk-2 secondarycache all default
datapool/vm-520-disk-2 usedbysnapshots 21.5M -
datapool/vm-520-disk-2 usedbydataset 3.48T -
datapool/vm-520-disk-2 usedbychildren 0B -
datapool/vm-520-disk-2 usedbyrefreservation 2.01T -
datapool/vm-520-disk-2 logbias latency default
datapool/vm-520-disk-2 objsetid 80552 -
datapool/vm-520-disk-2 dedup off default
datapool/vm-520-disk-2 mlslabel none default
datapool/vm-520-disk-2 sync standard default
datapool/vm-520-disk-2 refcompressratio 1.03x -
datapool/vm-520-disk-2 written 7.33M -
datapool/vm-520-disk-2 logicalused 1.25T -
datapool/vm-520-disk-2 logicalreferenced 1.25T -
datapool/vm-520-disk-2 volmode default default
datapool/vm-520-disk-2 snapshot_limit none default
datapool/vm-520-disk-2 snapshot_count none default
datapool/vm-520-disk-2 snapdev hidden default
datapool/vm-520-disk-2 context none default
datapool/vm-520-disk-2 fscontext none default
datapool/vm-520-disk-2 defcontext none default
datapool/vm-520-disk-2 rootcontext none default
datapool/vm-520-disk-2 redundant_metadata all default
datapool/vm-520-disk-2 encryption off default
datapool/vm-520-disk-2 keylocation none default
datapool/vm-520-disk-2 keyformat none default
datapool/vm-520-disk-2 pbkdf2iters 0 default