【解决openGauss无法使用gs_check等服务器端命令问题】

    • 一、问题描述
    • 二、问题原因
    • 三、解决方法

一、问题描述

[omm@opengauss03 ~]$ gs_check -i CheckCPUParsing the check items config file successfully[GAUSS-53026]: ERROR: Execute SSH command on host 192.168.56.19 faild. The exception is:

二、问题原因

数据库所在主机之间没有实现SSH免密登录

三、解决方法

  1. 切换到omm系统用户下,执行如下命令生成密钥对

    gs_sshexkey -h 192.168.56.19

    注意:-h 后面的IP地址换成你自己环境中数据库所在主机IP地址


    该命令执行成功后,会在omm用户家目录下生成一个隐藏目录.ssh,在该.ssh目录下生成了密钥对,如下所示:

  2. 重新执行openGauss服务器端命令,如下所示,正常显示

    [omm@opengauss03 ~]$ gs_check -i CheckDBConnectionParsing the check items config file successfullyDistribute the context file to remote hosts successfullyStart to health check for the cluster. Total Items:1 Nodes:1Checking... [=========================] 1/1Start to analysis the check resultCheckDBConnection...........................OKThe item run on 1 nodes.success: 1Analysis the check result successfullySuccess.All check items run completed. Total:1 Success:1For more information please refer to /opt/install/om/script/gspylib/inspection/output/CheckReport_202401036302132258.tar.gz[omm@opengauss03 ~]$