解决方式
各主机之间是否配置了互信。
或在命令后添加 password’xxxx’选项。
下面给出一个示例说明:
postgres=# start agent all;
hostname | status | description
----------+--------+-------------------------------------------
antdb01 | f | Authentication failed (username/password)
antdb02 | f | Authentication failed (username/password)
(2 rows)
postgres=#
postgres=# start agent all password'123';
hostname | status | description
----------+--------+-------------
antdb01 | t | success
antdb02 | t | success
(2 rows)
原因说明
AntDB的mgr通过ssh远程管理各节点,因此需配置ssh互信或添加password选项。