GNU/Linux >> Tutoriales Linux >  >> Cent OS

No se pueden iniciar los servicios RDMA en CentOS/RHEL 7

El problema

El servicio RDMA no se inicia en la máquina CentOS/RHEL 7. El comando 'journalctl -r' muestra los siguientes errores:

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 solución

El problema se debe a la siguiente configuración en la que rds_rdma el módulo no se estaba cargando en el kernel debido a “ipv6.disable=1 ” parámetro en /etc/default/grub/ y en /boot/grub2/grub.cfg

Archivo de configuración /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

/boot/grub2/grub.cfg archivo de configuración:

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

El RDMA depende de que el código ipv6 esté disponible, lo que impide este parámetro "ipv6.disable=1". Para resolver el problema, siga los pasos que se describen a continuación:

1. Realice una copia de seguridad de /etc/default/grub antes de cualquier cambio. Elimine la siguiente opción (o línea) de /boot/grub2/grub.cfg línea de comando de arranque:

# vi /boot/grub2/grub.cfg

Elimina la siguiente línea:

ipv6.disable=1

Es porque el RDMA depende del código IPv6 para estar disponible, pero esto evita que se cargue en absoluto.

2. Realice una copia de seguridad de /boot/grub2/grub.cfg . Ejecute el siguiente comando para reconstruir el archivo grub.

# grub2-mkconfig -o /boot/grub2/grub.cfg

3. Realice una copia de seguridad del archivo initramfs actual. Luego reconstruya initramfs.

# cp /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).bak.$(date +%m-%d-%H%M%S).img
# dracut -f

4. Reinicie el servidor para verificar el resultado.


Cent OS
  1. Iniciar, detener o reiniciar servicios en CentOS 8 - ¿Proceso paso a paso?

  2. CentOS/RHEL 7:Cómo iniciar/detener o habilitar/deshabilitar Firewalld

  3. CentOS/RHEL 7:no se puede iniciar el servicio vsftpd

  4. CentOS/RHEL 7:No se puede iniciar el servicio Samba

  5. No se puede iniciar el sistema operativo Linux con Auditd (CentOS/RHEL)

Instalar gnome en RHEL 8 / CentOS 8

Cómo iniciar el servicio en el arranque con RHEL 8 / CentOS 8 Linux

Cómo detener/iniciar el firewall en RHEL 8 / CentOS 8

Cómo iniciar/instalar GUI en RHEL 8/CentOS 8 Linux

Instale python 2 en RHEL 8 / CentOS 8

Cómo iniciar, detener o reiniciar servicios en CentOS 8