Skip to main content
Part of CALC@HEI, the HEI research computing infrastructure — governance in transition, currently operated by the ISC staff.

Storage of filer01 and cpu01 (ZFS, NFS over RDMA, snapshots, replication)

Final configuration of filer01 and cpu01, decided on 2026-12-02 after four rounds of measurements, applied in one run by the scripts of this folder. Scope: these two servers only. No monitoring agent and no dependency on an ISC³ service: CALC runs on its own; this repository only stores the configuration, which is applied from the admin PC.

Status: applied and tested on 2026-12-03 (17:05–17:17). Every recipe check passed except one: cpu01's standby opensm does not answer a local sminfo query; filer01 is the fabric master, so nothing is affected (todo).

Throughput: where we stand​

NFS 4.2 over RDMA, cpu01 → filer01, through the MQM8700 (HDR, 200 Gb/s = 25 GB/s at most):

WhenSettingReadWrite
2026-11-16EDR 100 G cables, one dd3.2 GB/s—
2026-12-02HDR, one dd3.6 GB/s—
2026-12-0216 parallel streams, 16 nfsd threads (default)11.8 GB/s (94 Gb/s)—
2026-12-0216 streams, 128 nfsd threads, recordsize 1M, tuned ZFS queues23.7 GB/s (189 Gb/s)13.2 GB/s (12.5–13.8)
2026-12-03final configuration, recipe's 10 s check (1 request in flight per stream)19.7 GB/s10.7 GB/s
2026-12-03final configuration, 60 s, same fio settings as 2026-12-0223.8 GB/s (190 Gb/s)13.6 GB/s

fio settings for comparisons: from cpu01 as calcadmin, --bs=1M --numjobs=16 --size=4G --iodepth=16 --ioengine=libaio --direct=1. With one request in flight per stream (psync) the same 60 s test gives 16.5 GB/s read and 11.0 GB/s write: the setting, not the server.

What it means:

  • Read is at the ceiling. 190 Gb/s is 95 % of the HDR link (raw RDMA: 197.5 Gb/s), and the disks alone read 39 GB/s on filer01: the link is the limit, not the server. Nothing left to gain on our side.
  • Write is limited by sync (a write is acknowledged only once it is on disk) on 3 NVMe; the 60 s test of 2026-12-03 matches 2026-12-02, no regression. The remaining levers are ones we refused on purpose: more NVMe, or async.
  • sync everywhere, async nowhere (decided 2026-12-03), not even on /hot/scratch: with async filer01 acknowledges a write while it is still in RAM, so a crash loses it silently (the job believes it is written). The risk accepted on hot is a dead NVMe, a visible loss. man exports and the OpenZFS docs (sync=disabled) give the same warning.
  • One stream stays near 3.6 GB/s: one process reading one file does not fill the link. Jobs get the full speed by reading in parallel (several processes or MPI-IO).
  • Snapshots and the hourly replication do not slow NFS reads (measured 2026-12-02).

What it sets up​

WhereWhatWhy (measured on filer01, 2026-12-02)
filer01, ZFShot/projects and hot/scratch recordsize 1M, hot/small 16K, cold/archive 1M1M: local read 9.1 → 39.3 GB/s. 16K: random 4k read 159 K → 617 K IOPS, write 18.7 K → 193 K
filer01, ZFShot and cold: lz4, atime=off, xattr=sa, dnodesize=auto; cold primarycache=metadatafewer useless writes; reading archives does not evict hot from the cache
filer01, modprobe.d/zfs.confread queues 32/128 (sync) 16/128 (async), async write 8/32, dirty data 4 GiB, ARC max 200 GiBread +6 % sequential, +51 % random IOPS; write p99 4.1 → 2.1 ms, cold p99.9 69 → 29 ms; with the ARC full ≥ 34.8 GiB RAM stays free, memory pressure ≤ 1 %
filer01, NFSNFS 4.2 only, 128 threads, TCP 2049 + RDMA 20049, listening on the InfiniBand address 192.168.16.11 only128 threads: NFS/RDMA read 94 → 189 Gb/s from cpu01 (16 threads was the bottleneck)
filer01, exportsone export per dataset, to 192.168.16.21 (cpu01) only, sync, root_squash, sec=sys; no export of /hot or /cold themselves; cold/replication never exportednothing reachable from Ethernet; an acknowledged write is on disk
filer01, sanoidsnapshots of hot/projects and hot/small: 24 hourly + 14 daily; none on hot/scratcha deleted file can be taken back from .zfs/snapshot
filer01, calc-replicate.timerevery hour at :20, syncoid --sendoptions=L of hot/projects and hot/small to cold/replication/ (read-only, not exported, 48 hourly + 30 daily), never two runs at once, fails if the newest replica is older than 2 hhot has no redundancy (decision of 2026-11-16): one dead NVMe loses at most about one hour of projects and small. 0.43–0.46 GB/s, no effect on NFS reads
filer01, calc-scratch-report.timerevery Monday 06:30, list of /hot/scratch files older than 30 days, per owner — deletes nothing/var/log/calc-scratch-report.txt
both, opensmsm_priority filer01 10 (master), cpu01 5 (standby); cpu01 loads ib_umad at boot so its opensm startswithout priorities the lowest GUID (cpu01) wins; failover measured < 40 s, 0 lost ping of 300
cpu01, /etc/fstab/hot/projects, /hot/small, /hot/scratch, /cold/archive from filer01 (= 192.168.16.11, /etc/hosts), NFS 4.2 proto=rdma, automount, nofailcpu01 boots without filer01; the mounts follow when it is up

Already in place since 2026-12-02 and not touched here: the routing (/etc/netplan/10-calc-routing.yaml, see cluster networks).

Not in this run (decided 2026-12-03): research accounts (only calcadmin, UID 1000 on both, until cpu01 joins SLURM), disabling RoCE on the 25G cards (remote/roce-disable.sh, only if the recipe warns and after an explicit OK), a copy outside filer01, quotas, monitoring.

Files​

FileRole
files/filer01/, files/cpu01/the configuration files, installed at the same path under /
remote/lib.shshared by the remote scripts: refuses to run on the wrong host (hostname ≠ role), records the original state
remote/precheck.shread-only checks before applying
remote/apply.shidempotent apply; the first run records the original state in /root/calc-storage-orig (files, ZFS properties, module parameters, created datasets)
remote/recipe.shchecks after the reboot, writes as calcadmin, one replication and one restore, ~10 s performance check; works only in .calc-recipe-<tag> directories it removes
remote/rollback.shback to the recorded original state; destroys only datasets created by apply.sh and empty
remote/roce-disable.shoptional, see above
run.shfrom the admin PC: precheck, apply, reboot, recipe, rollback, poweroff (log in ~/calc-storage-logs/)
power.shBMC over Redfish: state, on, off, force-off, thermal (fans and temperatures every 30 s), fanprofile
bmc/*.pemeach BMC's self-signed certificate, pinned by power.sh

Run (quiet slot only — the servers and the switch are loud)​

The servers sit in an office: power them on only when the neighbours are gone, with the go of the person in charge. Each start takes about 7 min (POST); the switch about 5 min.

WhenWhoStepDuration
T−10on siteplug the MQM8700 inboots in ~5 min
Tadmin PC./power.sh thermal both 30 ~/calc-storage-logs/thermal-<date> in the background, then ./power.sh on both7 min
T+7admin PC./run.sh precheck2 min
T+9admin PC./run.sh apply5 min
T+14admin PC./run.sh reboot8 min
T+22admin PC./run.sh recipe5–8 min
T+30admin PC./run.sh poweroff, ./power.sh state both (both Off), stop the thermal log2 min
next morningon siteunplug the switch before the neighbours arrive

Stop rules (decided before the run)​

  • precheck FAIL → apply nothing, power off. One exception: InfiniBand not yet Active because the switch is still booting → wait 5 min and run the precheck once more.
  • apply stops on an error → ./run.sh rollback, power off.
  • recipe FAIL on data or access (ZFS parameters or properties, pools, NFS server, exports, mounts, writes as calcadmin, root_squash, cold/replication visible, replication or restore, routing, InfiniBand link) → ./run.sh rollback, power off.
  • recipe FAIL or WARN on the rest (opensm priorities, TCP 2049 listening beyond the IB address, RoCE, performance below the reference, timers) → keep the configuration, power off, fix later.
  • Not finished after 2 h → rollback, power off.
  • Nothing outside the steps above during the run.

Rollback​

./run.sh rollback (cpu01 then filer01) restores every file from /root/calc-storage-orig, the ZFS module parameters and pool properties, the former exports and opensm state, and destroys the datasets apply.sh created only if they hold no file. Kept on purpose: the sanoid package and /root/calc-storage-orig (delete it by hand once the rollback is confirmed). Reboot to be sure.

Fan profile of the BMCs​

Both BMCs run the Gigabyte profile SPECpower since 2026-12-03 (fan mode Auto): same temperature thresholds as default, all fans still reach 100 % at the same temperatures, but the floor is 15 % instead of 30–40 % — quieter in the office when idle. Put default back before the move to the datacenter. The profile is set by importing the whole profile file (JSON {strVersion, strMode, arrProfile} as read by GET, with strMode changed) in a multipart field ImportFanprofile, POST /redfish/v1/Chassis/Self/Thermal/FanprofileService/Fanprofile, header If-Match: <ETag> (a JSON body gets HTTP 415). Read it back and compare arrProfile afterwards.

What makes the fans speed up (profile curves, read 2026-12-03):

ServerSensorFans15 % (SPECpower) → 100 %
cpu01 (1U, 12 rotors)NVMe / backplaneall 1255 → 65 °C
cpu01PCIe slots (ConnectX cards)875 → 88 °C
cpu01CPU660 → 80 °C
filer01 (4 fans)air on the mainboardall 440 → 50 °C
filer01NVMeFAN150 → 60 °C
filer01PSU hotspotall 455 → 70 °C