seafile-gc closure (515,842 inodes final); restic-backup: cron PATH gotcha

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Julien Lutran
2026-08-28 12:53:12 +02:00
co-authored by Claude Fable 5
parent 26ae55163e
commit 33b2a87d8f
2 changed files with 16 additions and 1 deletions
+6
View File
@@ -187,6 +187,12 @@ The instances leg is `restic-incus-backup.sh` (§6), chained after the
0 5 * * * /root/scripts/restic-backup.sh >> /var/log/restic-backup.log 2>&1 0 5 * * * /root/scripts/restic-backup.sh >> /var/log/restic-backup.log 2>&1
``` ```
⚠️ cron gotcha (bit us 2026-08-28): cron's PATH lacks `/usr/local/bin`,
so the scripts call `/usr/local/bin/restic` by absolute path.
```cron
```
Weekly maintenance (Sunday; prune takes an **exclusive lock** — never Weekly maintenance (Sunday; prune takes an **exclusive lock** — never
overlap the 05:00 run): overlap the 05:00 run):
+10 -1
View File
@@ -4,7 +4,7 @@ Status: **GC executed 2026-08-26/27.** Results:
| metric | before | after | | metric | before | after |
|---|---|---| |---|---|---|
| dataset inodes | 24,885,504 | **5,571,443** (~600 k once the Documents commit store is retired, see below) | | dataset inodes | 24,885,504 | **515,842** (after Documents recreation + final `-r`, 2026-08-28) |
| `storage/blocks/` | 867 G | **632 G** (235 G) | | `storage/blocks/` | 867 G | **632 G** (235 G) |
| fs objects | ~19.3 M | ~100 k (19,207,400 removed) | | fs objects | ~19.3 M | ~100 k (19,207,400 removed) |
| ghost library stores | 13 | 0 (blocks/fs eaten by GC; 4 empty commit husks removed manually — `--rm-deleted` couldn't see them, they predate `GarbageRepos`) | | ghost library stores | 13 | 0 (blocks/fs eaten by GC; 4 empty commit husks removed manually — `--rm-deleted` couldn't see them, they predate `GarbageRepos`) |
@@ -135,3 +135,12 @@ du -sh .../seafile/rootfs/opt/seafile/seafile-data/storage/blocks # was 867 G
- `logs/seafevents.log.2024-*` and friends — years of rotated logs - `logs/seafevents.log.2024-*` and friends — years of rotated logs
- the old `seafile-server-8.0.7` / `9.0.10` dirs once 12.x is proven - the old `seafile-server-8.0.7` / `9.0.10` dirs once 12.x is proven
## Closure (2026-08-28)
Documents recreated from a local re-sync, old library trashed → trash
emptied → `seaf-gc.sh -r` (78 m) retired its ~4.9 M fossil commit
objects. **Final: 515,842 inodes (from 24,885,504, 98 %), blocks
590 G (from 867 G), 8 libraries / ~120 k live files / 703 GB.** The
`@pre-gc` snapshot can be destroyed once the new Documents library has
proven itself for a few days (it pins the freed space until then).