ndb_error_reporter 从数据节点和管理节点的日志文件创建一个归档文件,可用于帮助诊断集群的错误或其他问题。强烈建议在提交 NDB Cluster 错误报告时使用此工具。ndb_error_reporter creates an archive from data node and management node log files that can be used to help diagnose bugs or other problems with a cluster. It is highly recommended that you make use of this utility when filing reports of bugs in NDB Cluster.
可以与 ndb_error_reporter 一起使用的选项如下表所示。表格之后附有更多描述。Options that can be used with ndb_error_reporter are shown in the following table. Additional descriptions follow the table.
使用方法Usage
ndb_error_reporterpath/to/config-file[username] [options]
此工具旨在用于管理节点主机,并且需要管理主机配置文件的路径(通常命名为config.ini)。可选地,您可以提供一个能够使用 SSH 访问集群数据节点的用户的名称,以便复制数据节点日志文件。ndb_error_reporter 然后会将所有这些文件包含在在运行目录中创建的归档中。归档命名为ndb_error_report_,其中YYYYMMDDhhmmss.tar.bz2YYYYMMDDhhmmss是日期时间字符串。This utility is intended for use on a management node host, and
requires the path to the management host configuration file
(usually named config.ini). Optionally, you
can supply the name of a user that is able to access the
cluster's data nodes using SSH, to copy the data node log files.
ndb_error_reporter then includes all of these
files in archive that is created in the same directory in which
it is run. The archive is named
ndb_error_report_,
where YYYYMMDDhhmmss.tar.bz2YYYYMMDDhhmmss is a datetime
string.
ndb_error_reporter 也接受此处列出的选项: ndb_error_reporter also accepts the options listed here:
命令行格式Command-Line Format --connection-timeout=#类型Type 整数Integer 默认值Default Value 0在尝试连接节点时等待此秒数,然后才超时。Wait this many seconds when trying to connect to nodes before timing out.
命令行格式Command-Line Format --dry-scp在不使用远程主机 scp 的情况下运行 ndb_error_reporter。仅用于测试。Run ndb_error_reporter without using scp from remote hosts. Used for testing only.
命令行格式Command-Line Format --help--help显示帮助文本并退出。Display help text and exit.
命令行格式Command-Line Format --fs将数据节点文件系统复制到管理主机,并将其包含在归档中。Copy the data node file systems to the management host and include them in the archive.
由于数据节点文件系统可能非常大,即使在压缩之后,我们也请您请 不要 将使用此选项创建的归档发送给 Oracle,除非特别要求这样做。Because data node file systems can be extremely large, even after being compressed, we ask that you please do not send archives created using this option to Oracle unless you are specifically requested to do so.
命令行格式Command-Line Format --connection-timeout=#类型Type 整数Integer 默认值Default Value 0跳过属于提供的节点组 ID 的所有节点。Skip all nodes belong to the node group having the supplied node group ID.