Add per-site and per-box inventories, consolidate shared network design, and relocate the switch and access-point references under the home site.
2.3 KiB
cellar
The home storage target. A VM on palace that drives three passed-through NVMe disks with SPDK
and exports them over NVMe-oF/RDMA — river, sfh and castle all run their root storage off
it.
- Source:
nixos/boxes/home/palace/vms/cellar/(default.nix,spdk.nix) - Host: VM on
palace - nixpkgs:
mine
Role
-
Runs an SPDK userspace target (
my.spdk,spdk.nix): the kernelnvmedriver is blacklisted so SPDK can claim the three NVMe controllers directly (host BDFs41:00.0–43:00.0, attached in the guest as02:00.0–04:00.0). -
Builds a RAID-0 (
NVMeRaid) across the three drives and exports one partition per consumer as an NVMe-oF subsystem over RDMA (port 4420) on thehinetwork:Bdev NQN Consumer NVMeRaidp1nqn.2016-06.io.spdk:riverriverNVMeRaidp2nqn.2016-06.io.spdk:castlecastleNVMeRaidp3nqn.2016-06.io.spdk:sfhsfhEach subsystem is pinned to its consumer's
hostnqn(themy.nvme.uuidon the client side). -
spdk-tgtis ordered afterlan-hiis online; the RDMA listener binds thehiassignment on port 4420. The VM itself is pinned to NUMA node 1 onpalaceand gets SR-IOV VF 0. -
netdata(port 19999 allowed in the firewall) andfstrim.
Network assignments
See the consolidated network assignments table (this box: cellar).
Notes
- The
ublk_*calls inmy.spdk.debugCommandsare only a debugging aid — they create a local ublk device so the RAID can be mounted and inspected oncellaritself. Client exports are thenvmfsubsystems above.
Notable config files
nixos/boxes/home/palace/vms/cellar/default.nix— box config (assignment, networking, netdata).nixos/boxes/home/palace/vms/cellar/spdk.nix— SPDK target: RAID-0, NVMe-oF/RDMA subsystems.nixos/boxes/home/palace/vms/default.nix— the VM definition onpalace(VF 0, NVMe passthrough, NUMA pinning).