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):
| When | Setting | Read | Write |
|---|---|---|---|
| 2026-11-16 | EDR 100 G cables, one dd | 3.2 GB/s | — |
| 2026-12-02 | HDR, one dd | 3.6 GB/s | — |
| 2026-12-02 | 16 parallel streams, 16 nfsd threads (default) | 11.8 GB/s (94 Gb/s) | — |
| 2026-12-02 | 16 streams, 128 nfsd threads, recordsize 1M, tuned ZFS queues | 23.7 GB/s (189 Gb/s) | 13.2 GB/s (12.5–13.8) |
| 2026-12-03 | final configuration, recipe's 10 s check (1 request in flight per stream) | 19.7 GB/s | 10.7 GB/s |
| 2026-12-03 | final configuration, 60 s, same fio settings as 2026-12-02 | 23.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, orasync. synceverywhere,asyncnowhere (decided 2026-12-03), not even on/hot/scratch: withasyncfiler01 acknowledges a write while it is still in RAM, so a crash loses it silently (the job believes it is written). The risk accepted onhotis a dead NVMe, a visible loss.man exportsand 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
| Where | What | Why (measured on filer01, 2026-12-02) |
|---|---|---|
| filer01, ZFS | hot/projects and hot/scratch recordsize 1M, hot/small 16K, cold/archive 1M | 1M: local read 9.1 → 39.3 GB/s. 16K: random 4k read 159 K → 617 K IOPS, write 18.7 K → 193 K |
| filer01, ZFS | hot and cold: lz4, atime=off, xattr=sa, dnodesize=auto; cold primarycache=metadata | fewer useless writes; reading archives does not evict hot from the cache |
filer01, modprobe.d/zfs.conf | read queues 32/128 (sync) 16/128 (async), async write 8/32, dirty data 4 GiB, ARC max 200 GiB | read +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, NFS | NFS 4.2 only, 128 threads, TCP 2049 + RDMA 20049, listening on the InfiniBand address 192.168.16.11 only | 128 threads: NFS/RDMA read 94 → 189 Gb/s from cpu01 (16 threads was the bottleneck) |
| filer01, exports | one 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 exported | nothing reachable from Ethernet; an acknowledged write is on disk |
| filer01, sanoid | snapshots of hot/projects and hot/small: 24 hourly + 14 daily; none on hot/scratch | a deleted file can be taken back from .zfs/snapshot |
filer01, calc-replicate.timer | every 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 h | hot 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.timer | every Monday 06:30, list of /hot/scratch files older than 30 days, per owner — deletes nothing | /var/log/calc-scratch-report.txt |
| both, opensm | sm_priority filer01 10 (master), cpu01 5 (standby); cpu01 loads ib_umad at boot so its opensm starts | without 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, nofail | cpu01 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
| File | Role |
|---|---|
files/filer01/, files/cpu01/ | the configuration files, installed at the same path under / |
remote/lib.sh | shared by the remote scripts: refuses to run on the wrong host (hostname ≠ role), records the original state |
remote/precheck.sh | read-only checks before applying |
remote/apply.sh | idempotent apply; the first run records the original state in /root/calc-storage-orig (files, ZFS properties, module parameters, created datasets) |
remote/recipe.sh | checks 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.sh | back to the recorded original state; destroys only datasets created by apply.sh and empty |
remote/roce-disable.sh | optional, see above |
run.sh | from the admin PC: precheck, apply, reboot, recipe, rollback, poweroff (log in ~/calc-storage-logs/) |
power.sh | BMC over Redfish: state, on, off, force-off, thermal (fans and temperatures every 30 s), fanprofile |
bmc/*.pem | each 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.
| When | Who | Step | Duration |
|---|---|---|---|
| T−10 | on site | plug the MQM8700 in | boots in ~5 min |
| T | admin PC | ./power.sh thermal both 30 ~/calc-storage-logs/thermal-<date> in the background, then ./power.sh on both | 7 min |
| T+7 | admin PC | ./run.sh precheck | 2 min |
| T+9 | admin PC | ./run.sh apply | 5 min |
| T+14 | admin PC | ./run.sh reboot | 8 min |
| T+22 | admin PC | ./run.sh recipe | 5–8 min |
| T+30 | admin PC | ./run.sh poweroff, ./power.sh state both (both Off), stop the thermal log | 2 min |
| next morning | on site | unplug the switch before the neighbours arrive |
Stop rules (decided before the run)
- precheck FAIL → apply nothing, power off. One exception: InfiniBand not yet
Activebecause 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/replicationvisible, 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):
| Server | Sensor | Fans | 15 % (SPECpower) → 100 % |
|---|---|---|---|
| cpu01 (1U, 12 rotors) | NVMe / backplane | all 12 | 55 → 65 °C |
| cpu01 | PCIe slots (ConnectX cards) | 8 | 75 → 88 °C |
| cpu01 | CPU | 6 | 60 → 80 °C |
| filer01 (4 fans) | air on the mainboard | all 4 | 40 → 50 °C |
| filer01 | NVMe | FAN1 | 50 → 60 °C |
| filer01 | PSU hotspot | all 4 | 55 → 70 °C |