force garbage

frankz

Renowned Member
Nov 16, 2020
417
27
68
Hi, I wanted to know if there is a way to force Garbage or pending cancellation.

Datastore: ZFS_USB
Task ID: UPID:pbs:000005EA:0000076E:00000022:6237F138:garbage_collection:ZFS_USB:root@pam:
Index file count: 9

Removed garbage: 0 B
Removed chunks: 0
Removed bad chunks: 0

Leftover bad chunks: 0
Pending removals: 387.795 GiB (in 188665 chunks)

Original Data usage: 126.154 GiB
On-Disk usage: 21.762 GiB (17.25%)
On-Disk chunks: 16292

Deduplication Factor: 5.80

Garbage collection successful.


Please visit the web interface for further details:

<https://pbs.internal2.lan:8007/#DataStore-ZFS_USB>
 
just wait a day ;)
 
wait since the chunks were last touched. the GC is rather simple:

  1. iterate over all chunks still referenced by any snapshots and update their atime (to mark them as not-garbage)
  2. delete all chunks with an atime older than a certain threshold (at least 24h + 5minutes, longer if you still have long-running backup tasks started before that)
 
wait since the chunks were last touched. the GC is rather simple:

  1. iterate over all chunks still referenced by any snapshots and update their atime (to mark them as not-garbage)
  2. delete all chunks with an atime older than a certain threshold (at least 24h + 5minutes, longer if you still have long-running backup tasks started before that)
Sorry, how can I mark it as non-garbage?
 
the garbage collection does that automatically (the first phase is the marking, the second phase is the sweeping/removing of no longer needed chunks).