LINSTOR rollout: flux-root, ZFS pools, Piraeus operator #5
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lab/machine-configs#5
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Storage leg of the migration (
docs/linstor-zfs-handoff.mdis the spec).Status
modules/zfs.nix,drbd.nix,storage-client.nix, hostIds, checks) — deployed30-flux-root.yaml: flux2 2.10.0 bundle + GitRepository/Kustomization reading lab/clustersclusters/<name>over public https; sops-age secret assembled by the converge unit) — on dev, vm:e2e proving itzfs-pool-initfires per think; verifytank+tank/linstor/pool0via zpool listclusters/think/storage/: piraeus-operator HelmRelease (pin >= 2.10, crds-first KS per thegeneric-templates/openebs-zfs-operatorpattern)LB_HOW=deps_only(NixOS loads host drbd9 9.2.16; satellite images must not try to compile it)tank/linstor/pool0, nodeAffinity thinks ONLY (Pis lack drbd per §5.7 RESTRICT; diskless TieBreakers ride the thinks too)linstor-csi-2r(AutoPlace 2 + diskless TieBreaker) /-1r/-tmp(§4.9); al-extents resource-group property (§5.8)Open doc questions to close during implementation (§11)
zfsPoolvs parent dataset naming)Storage manifests landed on lab/clusters main @ 2b3dc784: clusters/think/storage with operator (piraeus chart 2.12.1, installCRDs, KS-healthCheck-gated CR tree via dependsOn) and cluster CRs (LinstorCluster + satellite config thinks-only, zfsPool tank/linstor/pool0, LB_HOW=deps_only, SCs 2r/1r/tmp with TieBreaker+al-extents via property.linstor.csi.linbit.com, VolumeSnapshotClass).
Field names closed against sources, not memory:
Host-side bug found while wiring: modules/drbd.nix loaded kernelModules drbd9, but the nixpkgs out-of-tree package registers the module as drbd (modprobe drbd9 = not found; modinfo drbd = updates/drbd.ko 9.2.16). Fleet ran DRBD-less since host-prep, silently. Fixed + drbd_transport_tcp added (softdep only pulls handshake; LINSTOR defaults to tcp transport). machine-configs main 584a118.
Next: vm:check green on dev tip -> machine-configs main push -> flux + zfs-pool-init land on the thinks -> operator reconciles -> gate tests A/B/C.
vm harness: flux chain fully green (dev tip bded8c7)
Three real bugs found and fixed via the VM, all of which would have hit the think fleet:
Also adopted from studying niki-on-github/nixos-k3s (docs/niki-nixos-k3s-study.md): disable-network-policy on servers (k3s's kube-router netpol controller is a redundant second engine beside cilium; both cilium's k3s guide and their module disable it).
vm:check on bded8c7: node Ready, 7/7 flux deployments Available with zero manual intervention, podinfo HelmReady from git, converge marker self-written, DNS green. Next: push machine-configs main -> fleet adoption (flux-root + drbd fix + zfs pools on the thinks), then Piraeus reconcile behind the KS dependsOn.
Storage bring-up complete 2026-11-02, Pi-facing path settled.
Fleet state: 7/7 linstor nodes Online (3 diskful thinks with ZFS pool
tank/linstor/pool0 Ok + 4 diskless Pi satellites), LinstorCluster
Applied/Available/Configured, csi-node 3/3 everywhere, snapshot API live.
Verified matrix (raw receipts in flux-clusters docs):
diskless quorum tiebreaker on third think, RG landed
DrbdOptions/Disk/al-extents=32767.
linstor-csi-nfs.piraeus.svc export, probe IO + clean delete lifecycle.
report DRBD9_KERNEL unsupported (by design, $5.7 - no drbd on
kernel-pi), and linstor-csi v1.13.2 contains zero iSCSI attach code.
iSCSI to Pi would need LINSTOR Gateway; deferred, open-iscsi on the
Pi hosts stays as standby plumbing.
DECISION recorded: Pis consume think storage as NFS RWX; RWO workloads
schedule on thinks. Full intent + evidence trail:
flux-clusters docs/storage-architecture.md and docs/storage-debugging.md
(committed through 8359f3b3).
Host-side modules needed no changes for this - storage-client.nix
(NFSv4 client + open-iscsi) was already correct on all four Pis.
Closing — delivered, commit trail
All checklist items landed live or were mooted by better outcomes. mc = machine-configs, fc = lab/clusters (flux-clusters).
Host prep + flux-root
0e5aa43, ADR-0004cd365d6): flux self-bootstraps from rendered Cilium/flux manifests (9d1330a).a150249, quoting fixebaa523). Flux bundle NetworkPolicies stripped: cilium classifies kubelet host-origin probes as world and crash-looped the controllers (a150249). rpfilter dropped Cilium bpf host replies (5404beb).Data disks + pools
99d9363), stale ceph labels wiped.82e147d: NixOS never auto-imports non-root pools) then superseded by nativeboot.zfs.extraPools(564a274). think-01 unattended-reboot proof: zfs-import-tank success, tank ONLINE.tank/linstor/pool0created and Ok on all 3 thinks; thin tiertank/linstor/thin0added post-ticket (1ab3607, fcc7c71137).DRBD host fix (bug found during rollout)
drbd, notdrbd9; fleet ran DRBD-less silently. Fixed584a118, transport_tcp added, fleet-wide verified.Operator + CRs (fc)
2b3dc784: piraeus-operator chart 2.12.1 (crds-first via dependsOn,fda8882e), LinstorCluster + satellite configs (thinks diskful, zfsPool tank/linstor/pool0, LB_HOW=deps_only), SCs 2r/1r/tmp with diskless TieBreaker + al-extents viaproperty.linstor.csi.linbit.comnamespace (06327ef0, quorum value lowercase3e93cefa), VolumeSnapshotClass + snapshot-controller CRDs (7d188654).Pi tier and the §5.7 reversal
43282fc7,e3c49b47), then the restriction was reversed: DRBD loaded on kernel-pi (eda283a, cross-build fix3196ad5) after the kernel 6.18.60 bump (1207344, KCFLAGS waiver603eca0). Pis now attach diskless DRBD, so the "RWO taint keeping pods off Pis" item is moot — Pis run RWO.9da44a97, container-name fix892bec29), firewall prerequisite84198c7, RWX-only-2r ValidatingAdmissionPolicy.Gate tests / verification matrix (raw receipts in fc docs/storage-architecture.md + docs/storage-debugging.md,
8359f3b3)cfc83bfb), kured + reboot-marker (mcafddd0e).§11 doc questions were closed against sources, not memory (comment 1).