PowerPath para Linux: PowerPath no se inicia después del reinicio y se debe iniciar manualmente

摘要: PowerPath para Linux: PowerPath no se inicia después del reinicio y se debe iniciar manualmente.

本文适用于 本文不适用于 本文并非针对某种特定的产品。 本文并非包含所有产品版本。

症状

Sistema operativo: Red Hat Enterprise Linux 7.x, OEL 7.x y SLES 12
Esto no se aplica a las versiones de Red Hat Enterprise Linux 5.x, 6.x y SLES 11.
Software de EMC: PowerPath para Linux 6.x

PowerPath no se inicia automáticamente después del reinicio del host.
PowerPath se puede iniciar manualmente sin ningún problema.
No se registran errores boot.log cuando se inicia y se detiene el servicio de PowerPath.

Después de que el sistema se reinicia, verá que PowerPath falla con "Error de inicialización", ya que el servicio no se pudo iniciar:

# powermt display dev=all ERROR: Cannot open PowerPath. Initialization error
# cat /var/log/boot.log |grep Power Starting PowerPath startup script... [ OK ] Stopped PowerPath startup script. <--- Starting PowerPath Management Daemon... Starting PowerPathPost startup script... [ OK ] Started PowerPathPost startup script. [ OK ] Started PowerPath Management Daemon.

 

原因

En el inicio, PowerPath tiene algunas comprobaciones iniciales antes de continuar con el inicio real. Una de estas es comprobar cuándo se inició PowerPath por última vez, y esto se determina calculando la antigüedad de un archivo marcador. En el arranque, el reloj del sistema se sincroniza inicialmente con el reloj del hardware. Sin embargo, si se configura un cliente NTP en el host, cuando se inicia, el reloj del sistema se actualiza desde un servidor NTP.

El problema surge si el reloj del hardware está demasiado desincronizado con el reloj NTP, generalmente cuando está muy atrasado. En el arranque del host, PowerPath comienza mucho antes que el cliente NTP. Por lo tanto, cuando intenta determinar cuándo intenta calcular la antigüedad del archivo marcador, es un valor negativo y PowerPath se cierra inmediatamente sin continuar con el inicio.

 

解决方案

Solución alternativa:
Actualice el hwclock al reloj del sistema mediante el siguiente comando en el host:

hwclock --systohc

Esto actualiza el reloj del hardware a la hora correcta en el host.

Corrección permanente:
El problema se solucionará en PowerPath para Linux 6.3.

 

其他信息

Puede ejecutar el siguiente comando para comprobar la hora en que se inició PowerPath por última vez:

systemctl status PowerPath.service

Por lo general, verá que la última vez que PowerPath estuvo activo tiene una gran diferencia horaria:

systemctl status PowerPath.service   PowerPath.service - PowerPath startup script Loaded: loaded (/usr/lib/systemd/system/PowerPath.service; enabled; vendor preset: disabled) Active: inactive (dead) since Thu 2017-04-06 12:00:15 GET; 4h 0min ago Process: 2075 ExecStopPost=/usr/lib/PowerPath/PowerPath check_service_stop (code=exited, status=0/SUCCESS) Process: 1807 ExecStartPost=/usr/lib/PowerPath/PowerPath check_service_start (code=killed, signal=TERM) Process: 1665 ExecStart=/usr/lib/PowerPath/PowerPath start (code=exited, status=0/SUCCESS) Main PID: 1665 (code=exited, status=0/SUCCESS)

------------------------------------------------------------------------------------------
Otra forma de encontrarlo es la marca de habilitación "-x" en el script de inicio de PowerPath.
Para OEL 7.x, los scripts de inicio son los siguientes:

/usr/lib/PowerPath/PowerPath
/etc/opt/emcpower/EMCpower.LINUX-6.1.0.00.00/enable

Ejemplo:

# head -5 /usr/lib/PowerPath/PowerPath
#!/bin/sh -x

Una vez que reinicie el host, los registros se capturarán en boot.log. También ejecute el siguiente comando donde last_boot tendría la extracción del mismo:

journalctl -b 0 > last_boot

En los siguientes registros detallados que se recopilaron anteriormente, vemos el retraso de -13991.

Apr 20 10:23:23 revdb1.mfg.ge PowerPath[1751]: + '[' yes == yes -a -f /tmp/.pp_systemctl_check ']'
Apr 20 10:23:23 revdb1.mfg.ge PowerPath[1751]: ++ date +%s
Apr 20 10:23:23 revdb1.mfg.ge PowerPath[1751]: ++ date +%s -r /tmp/.pp_systemctl_check
Apr 20 10:23:23 revdb1.mfg.ge PowerPath[1751]: + '[' -13991 -lt 5 ']'
Apr 20 10:23:23 revdb1.mfg.ge PowerPath[1751]: + rm -f /tmp/.pp_systemctl_check
Apr 20 10:23:23 revdb1.mfg.ge PowerPath[1751]: + /bin/true
Apr 20 10:23:23 revdb1.mfg.ge PowerPath[1751]: + rc_exit
Apr 20 10:23:23 revdb1.mfg.ge PowerPath[1751]: + exit 0

 

受影响的产品

PowerPath for Linux

产品

PowerPath, PowerPath for Linux
文章属性
文章编号: 000168026
文章类型: Solution
上次修改时间: 20 10月 2025
版本:  5
从其他戴尔用户那里查找问题的答案
支持服务
检查您的设备是否在支持服务涵盖的范围内。