Le problème
Le service RDMA ne démarre pas sur la machine CentOS/RHEL 7. La commande ‘journalctl -r’ affiche les erreurs ci-dessous :
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.
La solution
Le problème est causé par la configuration suivante où le rds_rdma module n'était pas chargé dans le noyau en raison de "ipv6.disable=1 ” paramètre sur /etc/default/grub/ et sur /boot/grub2/grub.cfg
Fichier de configuration /etc/default/grub :
########### 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
Fichier de configuration /boot/grub2/grub.cfg :
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
Le RDMA dépend de la disponibilité du code ipv6, ce qui est empêché par ce paramètre "ipv6.disable=1". Pour résoudre le problème, suivez les étapes décrites ci-dessous :
1. Veuillez sauvegarder le fichier /etc/default/grub avant tout changement. Veuillez supprimer l'option (ou la ligne) suivante de /boot/grub2/grub.cfg ligne de commande de démarrage :
# vi /boot/grub2/grub.cfg
Supprimez la ligne ci-dessous :
ipv6.disable=1
C'est parce que le RDMA dépend de la disponibilité du code IPv6, mais cela l'empêche de se charger.
2. Veuillez sauvegarder le fichier /boot/grub2/grub.cfg . Veuillez exécuter la commande suivante pour reformuler le fichier grub.
# grub2-mkconfig -o /boot/grub2/grub.cfg
3. Veuillez sauvegarder le fichier initramfs actuel. Puis reconstruisez l'initramfs.
# cp /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).bak.$(date +%m-%d-%H%M%S).img # dracut -f
4. Veuillez redémarrer le serveur pour vérifier le résultat.