Declare the think data pool in disko; one source for partitions + pool #24

Open
opened 2026-11-12 13:58:25 +00:00 by ginjiruu · 0 comments
Owner

Follow-up from #14.

Today the think data disk is declared in two places:

  • lib/disko/think-data.nix: GPT, part1 tank (all but the last 500G), part2 raw ceph-osd
  • scripts/k3s-reset.sh: the same layout copied as sgdisk arguments, for in-place resets

and the pool itself is not declared at all: zfs-pool-init (modules/zfs.nix) creates tank, tank/linstor, pool0, thin0 imperatively on first boot, then re-applies compression and the thin quota on every boot.

Proposal

  • Declare tank and its datasets in think-data.nix as a disko zpool (part1 content), so the layout is Nix and a reinstall creates it.
  • Generate the reset script's partitioning from the same declaration instead of copying it.
  • Shrink zfs-pool-init to convergence only (compression, quota, anything disko does not re-apply on an existing pool).

Done when

  • one declaration of the data disk + pool
  • vm:e2e green (installer path) and vm:reset-check green
Follow-up from #14. Today the think data disk is declared in two places: - `lib/disko/think-data.nix`: GPT, part1 `tank` (all but the last 500G), part2 raw `ceph-osd` - `scripts/k3s-reset.sh`: the same layout copied as `sgdisk` arguments, for in-place resets and the pool itself is not declared at all: `zfs-pool-init` (modules/zfs.nix) creates `tank`, `tank/linstor`, `pool0`, `thin0` imperatively on first boot, then re-applies compression and the thin quota on every boot. ## Proposal - Declare `tank` and its datasets in `think-data.nix` as a disko `zpool` (part1 content), so the layout is Nix and a reinstall creates it. - Generate the reset script's partitioning from the same declaration instead of copying it. - Shrink `zfs-pool-init` to convergence only (compression, quota, anything disko does not re-apply on an existing pool). ## Done when - [ ] one declaration of the data disk + pool - [ ] vm:e2e green (installer path) and vm:reset-check green
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lab/machine-configs#24
No description provided.