日志清空了 就不好查了 日志设置的空间不够 log_disk_size这个参数设置的过小了 是内存memory_limit的三到四倍
你查一下 这几个参数
show parameters where name in (‘memory_limit’,‘memory_limit_percentage’,‘system_memory’,‘log_disk_size’,‘log_disk_percentage’,‘datafile_size’,‘datafile_disk_percentage’,‘max_syslog_file_count’);
老师,你好,
执行”show parameters where name in (‘memory_limit’,‘memory_limit_percentage’,‘system_memory’,‘log_disk_size’,‘log_disk_percentage’,‘datafile_size’,‘datafile_disk_percentage’,‘max_syslog_file_count’);“ 结果如下:
[root@test clog]# /root/oceanbase-diagnostic-tool/obdiag --version
OceanBase Diagnostic Tool: 2.5.0
BUILD_TIME: Fri Oct 18 12:39:25 UTC 2024
Copyright (C) 2022 OceanBase
License Mulan PSL v2: http://license.coscl.org.cn/MulanPSL2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
There is NO WARRANTY, to the extent permitted by law.
obdiag check情况:
+---------------------------------------------------------------------------------------------------------------------------------+
| critical-tasks-report |
+----------------------------+----------------------------------------------------------------------------------------------------+
| task | task_report |
+----------------------------+----------------------------------------------------------------------------------------------------+
| network.TCP-retransmission | [critical] [local] tsar is not installed. we can not check tcp retransmission. |
| disk.sstable_abnormal_file | [critical] [local] sstable_dir_path is null . Please check your nodes.data_dir need absolute Path |
| cluster.data_path_settings | [critical] [local] data_dir_path is null . Please check your nodes.data_dir need absolute Path |
+----------------------------+----------------------------------------------------------------------------------------------------+
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| warning-tasks-report |
+---------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
| task | task_report |
+---------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
| system.instruction_set_avx2 | [warning] Unadapted by version. SKIP |
| system.ulimit_parameter | [warning] [local] On ip : 172.18.0.9, ulimit -s is 8192 . recommended: unlimited. |
| | [warning] [local] On ip : 172.18.0.9, ulimit -n is 1024 . recommended: unlimited. |
| | [warning] [local] On ip : 172.18.0.9, ulimit -u is 250359 . recommended: 655360. |
| | [warning] [local] On ip : 172.18.0.9, ulimit -c is 0 . recommended: unlimited. |
| system.parameter_ip_local_port_range | [warning] [local] ip_local_port_range_min : 10000. recommended: 3500 |
| system.parameter | [warning] [local] net.ipv4.ip_forward : 1. recommended: 0. |
| | [warning] [local] fs.pipe-user-pages-soft : 16384. recommended: 0. |
| disk.disk_full | [warning] [cluster:obcluster] data disk usage exceeds 80% of capacity |
| | [warning] [cluster:obcluster] data disk usage exceeds 90% of capacity |
| cluster.mod_too_large | [warning] [cluster:obcluster] mod max memory over 10G,Please check on oceanbase.__all_virtual_memory_info to find some large mod |
| cluster.table_history_too_many | [warning] Unadapted by version. SKIP |
| cluster.optimizer_better_inlist_costing_parmmeter | [warning] Unadapted by version. SKIP |
| cluster.part_trans_action_max | [warning] Unadapted by version. SKIP |
| cluster.ob_enable_plan_cache_bad_version | [warning] Unadapted by version. SKIP |
| bugs.bug_385 | [warning] Unadapted by version. SKIP |
+---------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| all-tasks-report |
+---------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
| task | task_report |
+---------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
| system.instruction_set_avx2 | [warning] Unadapted by version. SKIP |
| system.parameter_tcp_rmem | all pass |
| system.aio | all pass |
| system.parameter_tcp_wmem | all pass |
| system.core_pattern | all pass |
| system.dependent_software | all pass |
| system.dependent_software_swapon | all pass |
| system.getenforce | all pass |
| system.ulimit_parameter | [warning] [local] On ip : 172.18.0.9, ulimit -s is 8192 . recommended: unlimited. |
| | [warning] [local] On ip : 172.18.0.9, ulimit -n is 1024 . recommended: unlimited. |
| | [warning] [local] On ip : 172.18.0.9, ulimit -u is 250359 . recommended: 655360. |
| | [warning] [local] On ip : 172.18.0.9, ulimit -c is 0 . recommended: unlimited. |
| system.parameter_ip_local_port_range | [warning] [local] ip_local_port_range_min : 10000. recommended: 3500 |
| system.parameter | [warning] [local] net.ipv4.ip_forward : 1. recommended: 0. |
| | [warning] [local] fs.pipe-user-pages-soft : 16384. recommended: 0. |
| system.clock_source | all pass |
| clog.clog_disk_full | all pass |
| cpu.oversold | all pass |
| network.TCP-retransmission | [critical] [local] tsar is not installed. we can not check tcp retransmission. |
| version.bad_version | all pass |
| version.old_version | all pass |
| table.information_schema_tables_two_data | all pass |
| disk.xfs_repair | all pass |
| disk.disk_full | [warning] [cluster:obcluster] data disk usage exceeds 80% of capacity |
| | [warning] [cluster:obcluster] data disk usage exceeds 90% of capacity |
| disk.disk_hole | all pass |
| disk.disk_iops | all pass |
| disk.clog_abnormal_file | all pass |
| disk.sstable_abnormal_file | [critical] [local] sstable_dir_path is null . Please check your nodes.data_dir need absolute Path |
| err_code.find_err_4015 | all pass |
| err_code.find_err_4001 | all pass |
| err_code.find_err_4000 | all pass |
| err_code.find_err_4013 | all pass |
| err_code.find_err_4105 | all pass |
| err_code.find_err_4377 | all pass |
| err_code.find_err_4016 | all pass |
| err_code.find_err_4012 | all pass |
| err_code.find_err_4103 | all pass |
| cluster.task_opt_stat | all pass |
| cluster.mod_too_large | [warning] [cluster:obcluster] mod max memory over 10G,Please check on oceanbase.__all_virtual_memory_info to find some large mod |
| cluster.table_history_too_many | [warning] Unadapted by version. SKIP |
| cluster.data_path_settings | [critical] [local] data_dir_path is null . Please check your nodes.data_dir need absolute Path |
| cluster.core_file_find | all pass |
| cluster.major | all pass |
| cluster.global_indexes_too_much | all pass |
| cluster.optimizer_better_inlist_costing_parmmeter | [warning] Unadapted by version. SKIP |
| cluster.observer_not_active | all pass |
| cluster.task_opt_stat_gather_fail | all pass |
| cluster.resource_limit_max_session_num | all pass |
| cluster.part_trans_action_max | [warning] Unadapted by version. SKIP |
| cluster.deadlocks | all pass |
| cluster.ob_enable_plan_cache_bad_version | [warning] Unadapted by version. SKIP |
| cluster.tenant_number | all pass |
| cluster.sys_log_level | all pass |
| bugs.bug_469 | all pass |
| bugs.bug_182 | all pass |
| bugs.bug_385 | [warning] Unadapted by version. SKIP |
+---------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+