Das Problem
Der RDMA-Dienst kann auf einem CentOS/RHEL 7-Computer nicht gestartet werden. Der Befehl „journalctl -r“ zeigt die folgenden Fehler:
Oct 11 11:01:15 geeklab systemd-modules-load: Failed to insert 'rds_rdma': Address family not supported by protocol Oct 11 11:01:15 geeklab systemd-modules-load: Failed to insert 'rds_rdma': Address family not supported by protocol Oct 11 11:01:15 geeklab systemd-modules-load: Failed to insert 'resilient_rdmaip': Address family not supported by protocol Oct 11 11:01:15 geeklab systemd-modules-load: Failed to insert 'resilient_rdmaip': Address family not supported by protocol Oct 11 11:01:15 geeklab systemd: [email protected]: main process exited, code=exited, status=1/FAILURE Oct 11 11:01:15 geeklab systemd: [email protected]: main process exited, code=exited, status=1/FAILURE Oct 11 11:01:15 geeklab systemd: Failed to start Load RDMA modules from /etc/rdma/modules/rdma.conf. Oct 11 11:01:15 geeklab systemd: Failed to start Load RDMA modules from /etc/rdma/modules/rdma.conf. Oct 11 11:01:15 geeklab systemd: Unit [email protected] entered failed state. Oct 11 11:01:15 geeklab systemd: Unit [email protected] entered failed state.
Die Lösung
Das Problem wird durch das folgende Setup verursacht:rds_rdma Modul wurde aufgrund von „ipv6.disable=1 nicht in den Kernel geladen ”-Parameter auf /etc/default/grub/ und auf /boot/grub2/grub.cfg
/etc/default/grub Konfigurationsdatei:
########### BEGIN DO NOT REMOVE Added by Oracle Exadata ########### GRUB_DEFAULT=0 GRUB_DISABLE_OS_PROBER=true GRUB_DISABLE_RECOVERY=true GRUB_DISABLE_SUBMENU=y GRUB_DISTRIBUTOR="Oracle Linux" GRUB_TIMEOUT=5 GRUB_TIMEOUT_STYLE=menu GRUB_TERMINAL="console serial" GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1" export EXADATA_IMAGE_TYPE=BareMetal GRUB_CMDLINE_LINUX_DEFAULT="root=LABEL=DBSYS bootarea=dbsys bootfrom=BOOT ro loglevel=7 panic=60 pci=noaer log_buf_len=1m nmi_watchdog=0 transparent_hugepage=never rd_NO_PLYMOUTH audit=1 console=tty1 console=ttyS0,115200n8 crashkernel=448M processor.max_cstate=1 clocksource=tsc nohpet nopmtimer hda=noprobe hdb=noprobe ide0=noprobe pci=nocrs ifnames_skip=100 biosdevname=0 net.ifnames=0 " ########### END DO NOT REMOVE Added by Oracle Exadata ########### #OS hardening start GRUB_CMDLINE_LINUX='ipv6.disable=1' #OS hardening end
/boot/grub2/grub.cfg Konfigurationsdatei:
linux16 /vmlinuz-4.14.35-1902.301.1.el7uek.x86_64 root=/dev/mapper/VGExaDb-LVDbSys1 ro ipv6.disable=1 root=LABEL=DBSYS bootarea=dbsys bootfrom=BOOT ro loglevel=7 panic=60 pci=noaer log_buf_len=1m nmi_watchdog=0 transparent_hugepage=never rd_NO_PLYMOUTH audit=1 console=tty1 console=ttyS0,115200n8 crashkernel=448M processor.max_cstate=1 clocksource=tsc nohpet nopmtimer hda=noprobe hdb=noprobe ide0=noprobe pci=nocrs ifnames_skip=100 biosdevname=0 net.ifnames=0 initrd16 /initramfs-4.14.35-1902.301.1.el7uek.x86_64.img
Der RDMA ist abhängig vom IPv6-Code, der verfügbar ist, was durch diesen Parameter „ipv6.disable=1“ verhindert wird. Führen Sie die folgenden Schritte aus, um das Problem zu beheben:
1. Bitte sichern Sie die /etc/default/grub vor jeder Änderung. Bitte entfernen Sie die folgende Option (oder Zeile) aus der /boot/grub2/grub.cfg Boot-Befehlszeile:
# vi /boot/grub2/grub.cfg
Entfernen Sie die folgende Zeile:
ipv6.disable=1
Das liegt daran, dass RDMA davon abhängt, dass der IPv6-Code verfügbar ist, aber dies verhindert, dass es überhaupt geladen wird.
2. Bitte sichern Sie die /boot/grub2/grub.cfg . Bitte führen Sie den folgenden Befehl aus, um die Grub-Datei neu zu erstellen.
# grub2-mkconfig -o /boot/grub2/grub.cfg
3. Bitte sichern Sie die aktuelle initramfs-Datei. Bauen Sie dann das initramfs neu auf.
# cp /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).bak.$(date +%m-%d-%H%M%S).img # dracut -f
4. Bitte starten Sie den Server neu, um das Ergebnis zu überprüfen.