r/linuxadmin • u/Dlun226 • 4h ago
r/linuxadmin • u/SergioZ3R0 • 19h ago
[Fix] vastnfs 4.5.10 + DOCA 3.6.0 on RHEL 9.9: rpcrdma symbol mismatch (makefile silently falls back to inbox build)
Already banged my head against the wall on this one so you don't have to :)
Leaving this here in case anyone needs to build vastnfs-4.5.10 against DOCA 3.6.0 on RHEL 9.9 and hits rpcrdma symbol mismatches:
VAST's makefile silently falls back to inbox mode under rpmbuild. To force it to use DOCA 3.6.0's Module.symvers before building:
cd /root/vastnfs-4.5.10
sed -i -E 's|^OFA_DIR[[:space:]]*[:?]?=.*|override OFA_DIR := /usr/src/ofa_kernel|' makefile
sed -i -E 's|^OFA_KVER[[:space:]]*[:?]?=.*|override OFA_KVER := /usr/src/ofa_kernel/x86_64/5.14.0-741.22.1.el9_9.x86_64|' makefile
rm -rf .rpm-build dist
./build.sh binThe build log should show OFED-dependent build: /usr/src/ofa_kernel. To verify the rpcrdma.ko symbol hash matches DOCA 3.6.0 (0x4e06d83c instead of the inbox 0xc6841cc8):
(mkdir -p /tmp/check_vast && cd /tmp/check_vast && rpm2cpio /root/vastnfs-4.5.10/dist/vastnfs-4.5.10-kernel_5.14.0_741.22.1.el9_9.x86_64.rpm | cpio -idmv "*rpcrdma.ko*" && modprobe --dump-modversions $(find . -name "rpcrdma.ko*") | grep rdma_rw_ctx_wrs)
rm -rf /tmp/check_vast
grep rdma_rw_ctx_wrs /usr/src/ofa_kernel/x86_64/5.14.0-741.22.1.el9_9.x86_64/Module.symversOnce both hashes match, push the RPM to the local repo (createrepo_c --update), reinstall vastnfs in the Warewulf image, re-run depmod + dracut, and run wwctl image build.