Q1: What do I do if the files of collected logs are excessively large?
A: The size of log files is limited to 2 GB on a single node. If the size of log files exceeds the limit, no log file is returned and the error message Error:File too large is returned. In this case, you must adjust the query time range or change the value of the file_size_limit parameter in the config.yml file.
Summary:
+------------------+----------------------+--------+------------+--------+------------+
| Node | Status | Size | Password | Time | PackPath |
+==================+======================+========+============+========+============+
| xxx.xxx.xxx.xxx | Error:File too large | 0.000B | | 21 s | |
+------------------+----------------------+--------+------------+--------+------------+
| xxx.xxx.xxx.xxx | Error:File too large | 0.000B | | 70 s | |
+------------------+----------------------+--------+------------+--------+------------+
Q2: What do I do if too many log files are to be collected?
A: The number of log files is limited to 20 on a single node. If the number of log files exceeds the limit, the collection task is not executed and the error message Error:Too many files xx > 20 is returned. In this case, you must adjust the query time range or change the value of the file_number_limit parameter in the config.yml file.
Q3: What do I do if the error message zip: command not found is returned?
A: Collected information is compressed by using a zip tool on the target host. Therefore, a zip tool must be installed on the target host whose information is to be collected.
Q4: What do I do if I was repeatedly asked to confirm whether to overwrite files during the execution of the source /usr/local/oceanbase-diagnostic-tool/init.sh command?
A: Check the ~/.bashrc file and delete the -i option in cp commands. Then, run the source ~/.bashrc command to reset the cp commands.
Q5: What do I do if commands are not automatically completed on a Debian-based system?
A: You can manually add the source /etc/profile.d/obdiag.sh command to the ~/.bashrc file.
Q6: What do I do if I do not want to enter the SSH username and password during the execution of the obdiag config command?
A: Enable password-free SSH connection between the remote node, which is generally an OBServer node, and the node where obdiag is deployed. For example, if server A needs to connect to server B without using a password, perform the following steps:
# Step 1: Generate a public key on server A. Typically, you can keep the default settings.
# id_rsa.pub (public key)
ssh-keygen -t rsa
ls ~/.ssh
# Step 2: Upload the public key of server A to server B.
ssh-copy-id -i ~/.ssh/id_rsa.pub User@IP address of server B