8.4.4-4 手工部署mgr集群时无法绑定vip
8.4.4-4 手工部署mgr集群时无法绑定vip环境介绍
# cat /etc/redhat-release
CentOS Linux release 8.5.2111
# free -h
total used free sharedbuff/cache available
Mem: 4.8Gi 1.9Gi 199Mi 8.0Mi 2.7Gi 2.7Gi
Swap: 15Gi 0B 15Gi
# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.43.81db81
192.168.43.82db82
192.168.43.83db83
# my.cnf配置-db81
# cat /etc/my.cnf
# my.cnf example for GreatSQL 8.4.4-4
# 下面参数选项设置仅作为参考,假定服务器配置为128C256G
socket = /tmp/mysql.sock
loose-skip-binary-as-hex
#prompt = "(\\D)[\\u@GreatSQL][\\d]>"
no-auto-rehash
# MySQL 8.4.x需用该参数启用插件
mysql-native-password=ON
# 指定默认认证插件为mysql_native_password
#default_authentication_plugin=mysql_native_password
lower_case_table_names=1
user = mysql
port = 3306
server_id = 81
basedir = /usr/local/mysql
datadir = /data/Greate/data/data
socket = /tmp/mysql.sock
pid-file = mysql.pid
character-set-server = UTF8MB4
skip_name_resolve = ON
default_time_zone = "+8:00"
bind_address = "0.0.0.0"
secure_file_priv = /data/Greate/data
# Performance
lock_wait_timeout = 3600
open_files_limit = 65535
back_log = 1024
max_connections = 2048
max_connect_errors = 1000000
table_open_cache = 2048
table_definition_cache = 2048
sort_buffer_size = 4M
join_buffer_size = 4M
read_buffer_size = 8M
read_rnd_buffer_size = 4M
bulk_insert_buffer_size = 64M
thread_cache_size = 768
interactive_timeout = 600
wait_timeout = 600
tmp_table_size = 96M
max_heap_table_size = 128M
max_allowed_packet = 256M
net_buffer_shrink_interval = 180
sql_generate_invisible_primary_key = ON
loose-lock_ddl_polling_mode = ON
loose-lock_ddl_polling_runtime = 200
# Logs
log_timestamps = SYSTEM
log_error = /data/Greate/log/error.log
log_error_verbosity = 3
slow_query_log = ON
log_slow_extra = ON
slow_query_log_file = /data/Greate/log/slow.log
long_query_time = 0.01
log_queries_not_using_indexes = ON
log_throttle_queries_not_using_indexes = 60
min_examined_row_limit = 100
log_slow_admin_statements = ON
log_slow_replica_statements = ON
log_slow_verbosity = FULL
log_bin = /data/Greate/log/mysql-bin
log-bin-index = /data/Greate/log/mysql-bin.index
binlog_format = ROW
sync_binlog = 1
binlog_cache_size = 4M
max_binlog_cache_size = 6G
max_binlog_size = 1G
binlog_space_limit = 500G
binlog_rows_query_log_events = ON
binlog_expire_logs_seconds = 604800
binlog_checksum = CRC32
binlog_order_commits = OFF
gtid_mode = ON
enforce_gtid_consistency = ON
# Replication
relay_log = /data/Greate/log/relay-bin
relay_log_index = /data/Greate/log/relay-bin.index
relay_log_recovery = ON
#replica_parallel_type = LOGICAL_CLOCK
replica_parallel_workers = 16
#binlog_transaction_dependency_tracking = WRITESET
replica_preserve_commit_order = ON
replica_checkpoint_period = 2
loose-rpl_read_binlog_speed_limit = 100
# Disalbe InnoDB PQ
loose-force_parallel_execute = OFF
# Parallel LOAD DATA
loose-gdb_parallel_load = ON
loose-innodb_optimize_no_pk_parallel_load = ON
# Rapid
#loose-plugin_load_add = 'ha_rapid.so'
#loose-rapid_memory_limit = 64G
#loose-rapid_worker_threads = 32
#loose-secondary_engine_parallel_load_workers = 16
# Turbo
#loose-plugin_load_add = 'turbo.so'
loose-turbo_memory_limit= 64G
loose-turbo_worker_threads = 32
# Clone
loose-plugin_load_add = 'mysql_clone.so'
# MGR
loose-plugin_load_add = 'group_replication.so'
loose-group_replication_group_name = "f97cd7db-2b26-4011-b3fa-78118462cf02"
#loose-group_replication_view_change_uuid = "5b20893d-9a54-48d5-90c7-21a248956118"
loose-group_replication_local_address = "192.168.43.81:33061"
loose-group_replication_group_seeds = '192.168.43.81:33061,192.168.43.82:33061,192.168.43.83:33061'
loose-group_replication_ip_allowlist = '172.160.16.0/8,192.168.43.0/24,::1/128'
loose-group_replication_communication_stack = "XCOM"
loose-group_replication_recovery_use_ssl = OFF
loose-group_replication_ssl_mode = DISABLED
loose-group_replication_start_on_boot = OFF
loose-group_replication_bootstrap_group = OFF
loose-group_replication_exit_state_action = READ_ONLY
loose-group_replication_flow_control_mode = "DISABLED"
loose-group_replication_single_primary_mode = ON
loose-group_replication_enforce_update_everywhere_checks = OFF
loose-group_replication_majority_after_mode = ON
loose-group_replication_communication_max_message_size = 10M
loose-group_replication_arbitrator = OFF
loose-group_replication_single_primary_fast_mode = 1
loose-group_replication_request_time_threshold = 100
loose-group_replication_primary_election_mode = GTID_FIRST
loose-group_replication_unreachable_majority_timeout = 0
loose-group_replication_member_expel_timeout = 5
loose-group_replication_autorejoin_tries = 288
loose-group_replication_recovery_get_public_key = ON
loose-group_replication_donor_threshold = 100
# greatdb_ha
loose-plugin_load_add = 'greatdb_ha.so'
loose-greatdb_ha_enable_mgr_vip = ON
loose-greatdb_ha_mgr_vip_nic = 'ens160'
loose-greatdb_ha_mgr_vip_ip = '192.168.43.80'
loose-greatdb_ha_mgr_vip_mask = '255.255.255.0'
loose-greatdb_ha_port = 33062
loose-greatdb_ha_mgr_read_vip_ips = "192.168.43.78,192.168.43.79"
loose-greatdb_ha_mgr_read_vip_floating_type = "TO_ANOTHER_SECONDARY"
loose-greatdb_ha_send_arp_packge_times = 5
loose-greatdb_ha_mgr_exit_primary_kill_connection_mode = OFF
report_host = 192.168.43.81
report_port = 3306
# InnoDB
innodb_buffer_pool_size = 2G
innodb_buffer_pool_instances = 2
innodb_data_file_path = ibdata1:12M:autoextend
innodb_flush_log_at_trx_commit = 1
innodb_log_buffer_size = 32M
innodb_redo_log_capacity = 4G
innodb_doublewrite_files = 2
innodb_max_undo_log_size = 4G
innodb_io_capacity = 4000
innodb_io_capacity_max = 8000
innodb_open_files = 65534
innodb_flush_method = O_DIRECT
innodb_lru_scan_depth = 4000
innodb_lock_wait_timeout = 10
innodb_rollback_on_timeout = ON
innodb_print_all_deadlocks = ON
innodb_online_alter_log_max_size = 4G
innodb_print_ddl_logs = ON
innodb_status_file = ON
innodb_status_output = OFF
innodb_status_output_locks = ON
innodb_sort_buffer_size = 64M
innodb_adaptive_hash_index = OFF
innodb_numa_interleave = OFF
innodb_spin_wait_delay = 20
innodb_print_lock_wait_timeout_info = ON
innodb_change_buffering = none
kill_idle_transaction = 300
innodb_data_file_async_purge = ON
quick
max_allowed_packet=256M
# my.cnf配置-db82
# cat /etc/my.cnf
# my.cnf example for GreatSQL 8.4.4-4
# 下面参数选项设置仅作为参考,假定服务器配置为128C256G
socket = /tmp/mysql.sock
loose-skip-binary-as-hex
#prompt = "(\\D)[\\u@GreatSQL][\\d]>"
no-auto-rehash
# MySQL 8.4.x需用该参数启用插件
mysql-native-password=ON
# 指定默认认证插件为mysql_native_password
#default_authentication_plugin=mysql_native_password
lower_case_table_names=1
user = mysql
port = 3306
server_id = 82
basedir = /usr/local/mysql
datadir = /data/Greate/data/data
socket = /tmp/mysql.sock
pid-file = mysql.pid
character-set-server = UTF8MB4
skip_name_resolve = ON
default_time_zone = "+8:00"
bind_address = "0.0.0.0"
secure_file_priv = /data/Greate/data
# Performance
lock_wait_timeout = 3600
open_files_limit = 65535
back_log = 1024
max_connections = 2048
max_connect_errors = 1000000
table_open_cache = 2048
table_definition_cache = 2048
sort_buffer_size = 4M
join_buffer_size = 4M
read_buffer_size = 8M
read_rnd_buffer_size = 4M
bulk_insert_buffer_size = 64M
thread_cache_size = 768
interactive_timeout = 600
wait_timeout = 600
tmp_table_size = 96M
max_heap_table_size = 128M
max_allowed_packet = 256M
net_buffer_shrink_interval = 180
sql_generate_invisible_primary_key = ON
loose-lock_ddl_polling_mode = ON
loose-lock_ddl_polling_runtime = 200
# Logs
log_timestamps = SYSTEM
log_error = /data/Greate/log/error.log
log_error_verbosity = 3
slow_query_log = ON
log_slow_extra = ON
slow_query_log_file = /data/Greate/log/slow.log
long_query_time = 0.01
log_queries_not_using_indexes = ON
log_throttle_queries_not_using_indexes = 60
min_examined_row_limit = 100
log_slow_admin_statements = ON
log_slow_replica_statements = ON
log_slow_verbosity = FULL
log_bin = /data/Greate/log/mysql-bin
log-bin-index = /data/Greate/log/mysql-bin.index
binlog_format = ROW
sync_binlog = 1
binlog_cache_size = 4M
max_binlog_cache_size = 6G
max_binlog_size = 1G
binlog_space_limit = 500G
binlog_rows_query_log_events = ON
binlog_expire_logs_seconds = 604800
binlog_checksum = CRC32
binlog_order_commits = OFF
gtid_mode = ON
enforce_gtid_consistency = ON
# Replication
relay_log = /data/Greate/log/relay-bin
relay_log_index = /data/Greate/log/relay-bin.index
relay_log_recovery = ON
#replica_parallel_type = LOGICAL_CLOCK
replica_parallel_workers = 16
#binlog_transaction_dependency_tracking = WRITESET
replica_preserve_commit_order = ON
replica_checkpoint_period = 2
loose-rpl_read_binlog_speed_limit = 100
# Disalbe InnoDB PQ
loose-force_parallel_execute = OFF
# Parallel LOAD DATA
loose-gdb_parallel_load = ON
loose-innodb_optimize_no_pk_parallel_load = ON
# Rapid
#loose-plugin_load_add = 'ha_rapid.so'
#loose-rapid_memory_limit = 64G
#loose-rapid_worker_threads = 32
#loose-secondary_engine_parallel_load_workers = 16
# Turbo
#loose-plugin_load_add = 'turbo.so'
loose-turbo_memory_limit= 64G
loose-turbo_worker_threads = 32
# Clone
loose-plugin_load_add = 'mysql_clone.so'
# MGR
loose-plugin_load_add = 'group_replication.so'
loose-group_replication_group_name = "f97cd7db-2b26-4011-b3fa-78118462cf02"
#loose-group_replication_view_change_uuid = "5b20893d-9a54-48d5-90c7-21a248956118"
loose-group_replication_local_address = "192.168.43.82:33061"
loose-group_replication_group_seeds = '192.168.43.81:33061,192.168.43.82:33061,192.168.43.83:33061'
loose-group_replication_ip_allowlist = '172.160.16.0/8,192.168.43.0/24,::1/128'
loose-group_replication_communication_stack = "XCOM"
loose-group_replication_recovery_use_ssl = OFF
loose-group_replication_ssl_mode = DISABLED
loose-group_replication_start_on_boot = OFF
loose-group_replication_bootstrap_group = OFF
loose-group_replication_exit_state_action = READ_ONLY
loose-group_replication_flow_control_mode = "DISABLED"
loose-group_replication_single_primary_mode = ON
loose-group_replication_enforce_update_everywhere_checks = OFF
loose-group_replication_majority_after_mode = ON
loose-group_replication_communication_max_message_size = 10M
loose-group_replication_arbitrator = OFF
loose-group_replication_single_primary_fast_mode = 1
loose-group_replication_request_time_threshold = 100
loose-group_replication_primary_election_mode = GTID_FIRST
loose-group_replication_unreachable_majority_timeout = 0
loose-group_replication_member_expel_timeout = 5
loose-group_replication_autorejoin_tries = 288
loose-group_replication_recovery_get_public_key = ON
loose-group_replication_donor_threshold = 100
# greatdb_ha
loose-plugin_load_add = 'greatdb_ha.so'
loose-greatdb_ha_enable_mgr_vip = ON
loose-greatdb_ha_mgr_vip_nic = 'ens160'
loose-greatdb_ha_mgr_vip_ip = '192.168.43.80'
loose-greatdb_ha_mgr_vip_mask = '255.255.255.0'
loose-greatdb_ha_port = 33062
loose-greatdb_ha_mgr_read_vip_ips = "192.168.43.78,192.168.43.79"
loose-greatdb_ha_mgr_read_vip_floating_type = "TO_ANOTHER_SECONDARY"
loose-greatdb_ha_send_arp_packge_times = 5
loose-greatdb_ha_mgr_exit_primary_kill_connection_mode = OFF
report_host = 192.168.43.82
report_port = 3306
# InnoDB
innodb_buffer_pool_size = 2G
innodb_buffer_pool_instances = 2
innodb_data_file_path = ibdata1:12M:autoextend
innodb_flush_log_at_trx_commit = 1
innodb_log_buffer_size = 32M
innodb_redo_log_capacity = 4G
innodb_doublewrite_files = 2
innodb_max_undo_log_size = 4G
innodb_io_capacity = 4000
innodb_io_capacity_max = 8000
innodb_open_files = 65534
innodb_flush_method = O_DIRECT
innodb_lru_scan_depth = 4000
innodb_lock_wait_timeout = 10
innodb_rollback_on_timeout = ON
innodb_print_all_deadlocks = ON
innodb_online_alter_log_max_size = 4G
innodb_print_ddl_logs = ON
innodb_status_file = ON
innodb_status_output = OFF
innodb_status_output_locks = ON
innodb_sort_buffer_size = 64M
innodb_adaptive_hash_index = OFF
innodb_numa_interleave = OFF
innodb_spin_wait_delay = 20
innodb_print_lock_wait_timeout_info = ON
innodb_change_buffering = none
kill_idle_transaction = 300
innodb_data_file_async_purge = ON
quick
max_allowed_packet=256M
#
my.cnf配置-db83
# cat /etc/my.cnf
# my.cnf example for GreatSQL 8.4.4-4
# 下面参数选项设置仅作为参考,假定服务器配置为128C256G
socket = /tmp/mysql.sock
loose-skip-binary-as-hex
#prompt = "(\\D)[\\u@GreatSQL][\\d]>"
no-auto-rehash
# MySQL 8.4.x需用该参数启用插件
mysql-native-password=ON
# 指定默认认证插件为mysql_native_password
#default_authentication_plugin=mysql_native_password
lower_case_table_names=1
user = mysql
port = 3306
server_id = 83
basedir = /usr/local/mysql
datadir = /data/Greate/data/data
socket = /tmp/mysql.sock
pid-file = mysql.pid
character-set-server = UTF8MB4
skip_name_resolve = ON
default_time_zone = "+8:00"
bind_address = "0.0.0.0"
secure_file_priv = /data/Greate/data
# Performance
lock_wait_timeout = 3600
open_files_limit = 65535
back_log = 1024
max_connections = 2048
max_connect_errors = 1000000
table_open_cache = 2048
table_definition_cache = 2048
sort_buffer_size = 4M
join_buffer_size = 4M
read_buffer_size = 8M
read_rnd_buffer_size = 4M
bulk_insert_buffer_size = 64M
thread_cache_size = 768
interactive_timeout = 600
wait_timeout = 600
tmp_table_size = 96M
max_heap_table_size = 128M
max_allowed_packet = 256M
net_buffer_shrink_interval = 180
sql_generate_invisible_primary_key = ON
loose-lock_ddl_polling_mode = ON
loose-lock_ddl_polling_runtime = 200
# Logs
log_timestamps = SYSTEM
log_error = /data/Greate/log/error.log
log_error_verbosity = 3
slow_query_log = ON
log_slow_extra = ON
slow_query_log_file = /data/Greate/log/slow.log
long_query_time = 0.01
log_queries_not_using_indexes = ON
log_throttle_queries_not_using_indexes = 60
min_examined_row_limit = 100
log_slow_admin_statements = ON
log_slow_replica_statements = ON
log_slow_verbosity = FULL
log_bin = /data/Greate/log/mysql-bin
log-bin-index = /data/Greate/log/mysql-bin.index
binlog_format = ROW
sync_binlog = 1
binlog_cache_size = 4M
max_binlog_cache_size = 6G
max_binlog_size = 1G
binlog_space_limit = 500G
binlog_rows_query_log_events = ON
binlog_expire_logs_seconds = 604800
binlog_checksum = CRC32
binlog_order_commits = OFF
gtid_mode = ON
enforce_gtid_consistency = ON
# Replication
relay_log = /data/Greate/log/relay-bin
relay_log_index = /data/Greate/log/relay-bin.index
relay_log_recovery = ON
#replica_parallel_type = LOGICAL_CLOCK
replica_parallel_workers = 16
#binlog_transaction_dependency_tracking = WRITESET
replica_preserve_commit_order = ON
replica_checkpoint_period = 2
loose-rpl_read_binlog_speed_limit = 100
# Disalbe InnoDB PQ
loose-force_parallel_execute = OFF
# Parallel LOAD DATA
loose-gdb_parallel_load = ON
loose-innodb_optimize_no_pk_parallel_load = ON
# Rapid
#loose-plugin_load_add = 'ha_rapid.so'
#loose-rapid_memory_limit = 64G
#loose-rapid_worker_threads = 32
#loose-secondary_engine_parallel_load_workers = 16
# Turbo
#loose-plugin_load_add = 'turbo.so'
loose-turbo_memory_limit= 64G
loose-turbo_worker_threads = 32
# Clone
loose-plugin_load_add = 'mysql_clone.so'
# MGR
loose-plugin_load_add = 'group_replication.so'
loose-group_replication_group_name = "f97cd7db-2b26-4011-b3fa-78118462cf02"
#loose-group_replication_view_change_uuid = "5b20893d-9a54-48d5-90c7-21a248956118"
loose-group_replication_local_address = "192.168.43.83:33061"
loose-group_replication_group_seeds = '192.168.43.81:33061,192.168.43.82:33061,192.168.43.83:33061'
loose-group_replication_ip_allowlist = '172.160.16.0/8,192.168.43.0/24,::1/128'
loose-group_replication_communication_stack = "XCOM"
loose-group_replication_recovery_use_ssl = OFF
loose-group_replication_ssl_mode = DISABLED
loose-group_replication_start_on_boot = OFF
loose-group_replication_bootstrap_group = OFF
loose-group_replication_exit_state_action = READ_ONLY
loose-group_replication_flow_control_mode = "DISABLED"
loose-group_replication_single_primary_mode = ON
loose-group_replication_enforce_update_everywhere_checks = OFF
loose-group_replication_majority_after_mode = ON
loose-group_replication_communication_max_message_size = 10M
loose-group_replication_arbitrator = OFF
loose-group_replication_single_primary_fast_mode = 1
loose-group_replication_request_time_threshold = 100
loose-group_replication_primary_election_mode = GTID_FIRST
loose-group_replication_unreachable_majority_timeout = 0
loose-group_replication_member_expel_timeout = 5
loose-group_replication_autorejoin_tries = 288
loose-group_replication_recovery_get_public_key = ON
loose-group_replication_donor_threshold = 100
# greatdb_ha
loose-plugin_load_add = 'greatdb_ha.so'
loose-greatdb_ha_enable_mgr_vip = ON
loose-greatdb_ha_mgr_vip_nic = 'ens160'
loose-greatdb_ha_mgr_vip_ip = '192.168.43.80'
loose-greatdb_ha_mgr_vip_mask = '255.255.255.0'
loose-greatdb_ha_port = 33062
loose-greatdb_ha_mgr_read_vip_ips = "192.168.43.78,192.168.43.79"
loose-greatdb_ha_mgr_read_vip_floating_type = "TO_ANOTHER_SECONDARY"
loose-greatdb_ha_send_arp_packge_times = 5
loose-greatdb_ha_mgr_exit_primary_kill_connection_mode = OFF
report_host = 192.168.43.83
report_port = 3306
# InnoDB
innodb_buffer_pool_size = 2G
innodb_buffer_pool_instances = 2
innodb_data_file_path = ibdata1:12M:autoextend
innodb_flush_log_at_trx_commit = 1
innodb_log_buffer_size = 32M
innodb_redo_log_capacity = 4G
innodb_doublewrite_files = 2
innodb_max_undo_log_size = 4G
innodb_io_capacity = 4000
innodb_io_capacity_max = 8000
innodb_open_files = 65534
innodb_flush_method = O_DIRECT
innodb_lru_scan_depth = 4000
innodb_lock_wait_timeout = 10
innodb_rollback_on_timeout = ON
innodb_print_all_deadlocks = ON
innodb_online_alter_log_max_size = 4G
innodb_print_ddl_logs = ON
innodb_status_file = ON
innodb_status_output = OFF
innodb_status_output_locks = ON
innodb_sort_buffer_size = 64M
innodb_adaptive_hash_index = OFF
innodb_numa_interleave = OFF
innodb_spin_wait_delay = 20
innodb_print_lock_wait_timeout_info = ON
innodb_change_buffering = none
kill_idle_transaction = 300
innodb_data_file_async_purge = ON
quick
max_allowed_packet=256M
# 启动脚本文件内容
# cat /usr/lib/systemd/system/mysqld.service
Description=MySQL Server
Documentation=https://dev.mysql.com/doc/
After=network.target
After=syslog.target
WantedBy=multi-user.target
# some limits
# file size
LimitFSIZE=infinity
# cpu time
LimitCPU=infinity
# virtual memory size
LimitAS=infinity
# open files
LimitNOFILE=65535
# processes/threads
LimitNPROC=65535
# locked memory
LimitMEMLOCK=infinity
# total threads (user+kernel)
TasksMax=infinity
TasksAccounting=false
User=mysql
Group=mysql
# 如果是 MySQL 5.7 版本,此处可以使用 simple 模式
# 如果是 MySQL 8.0 版本,可以使用 notify 模式
Type=notify
TimeoutSec=10
PermissionsStartOnly=true
ExecStart=/usr/local/mysql/bin/mysqld --defaults-file=/etc/my.cnf $MYSQLD_OPTS
EnvironmentFile=-/etc/sysconfig/mysql
LimitNOFILE = 65536
Restart=on-failure
RestartPreventExitStatus=1
Environment=MYSQLD_PARENT_PID=1
PrivateTmp=false
# 当前MGR状态-手工部署
mysql> SELECT * FROM performance_schema.replication_group_members;
+---------------------------+--------------------------------------+---------------+-------------+--------------+-------------+----------------+----------------------------+
| CHANNEL_NAME | MEMBER_ID | MEMBER_HOST | MEMBER_PORT | MEMBER_STATE | MEMBER_ROLE | MEMBER_VERSION | MEMBER_COMMUNICATION_STACK |
+---------------------------+--------------------------------------+---------------+-------------+--------------+-------------+----------------+----------------------------+
| group_replication_applier | 0de00816-ba0e-11f0-aab7-000c290e14b3 | 192.168.43.82 | 3306 | ONLINE | SECONDARY | 8.4.4 | XCom |
| group_replication_applier | 0f9a0445-ba0e-11f0-abf7-000c29fb24ce | 192.168.43.83 | 3306 | ONLINE | SECONDARY | 8.4.4 | XCom |
| group_replication_applier | f058754b-ba0d-11f0-b2cc-000c2941d820 | 192.168.43.81 | 3306 | ONLINE | PRIMARY | 8.4.4 | XCom |
+---------------------------+--------------------------------------+---------------+-------------+--------------+-------------+----------------+----------------------------+
3 rows in set (0.00 sec)
mysql> 报错日志部分内容
2025-11-05T16:16:13.231812+08:00 0 Plugin greatdb_ha reported: 'bind AF_INET SIOCSIFADDR Operation not permitted'
2025-11-05T16:16:13.231897+08:00 0 Plugin greatdb_ha reported: 'try to bind vip : 192.168.43.80 failed on nic: '
2025-11-05T16:16:33.238400+08:00 0 Plugin greatdb_ha reported: 'bind AF_INET SIOCSIFADDR Operation not permitted'
2025-11-05T16:16:33.238450+08:00 0 Plugin greatdb_ha reported: 'try to bind vip : 192.168.43.80 failed on nic: '
2025-11-05T16:16:53.245691+08:00 0 Plugin greatdb_ha reported: 'bind AF_INET SIOCSIFADDR Operation not permitted'
2025-11-05T16:16:53.245754+08:00 0 Plugin greatdb_ha reported: 'try to bind vip : 192.168.43.80 failed on nic: '
2025-11-05T16:17:13.249749+08:00 0 Plugin greatdb_ha reported: 'bind AF_INET SIOCSIFADDR Operation not permitted'
2025-11-05T16:17:13.249801+08:00 0 Plugin greatdb_ha reported: 'try to bind vip : 192.168.43.80 failed on nic: '
2025-11-05T16:17:33.256485+08:00 0 Plugin greatdb_ha reported: 'bind AF_INET SIOCSIFADDR Operation not permitted'
2025-11-05T16:17:33.256538+08:00 0 Plugin greatdb_ha reported: 'try to bind vip : 192.168.43.80 failed on nic: '
2025-11-05T16:17:53.264334+08:00 0 Plugin greatdb_ha reported: 'bind AF_INET SIOCSIFADDR Operation not permitted'
2025-11-05T16:17:53.264386+08:00 0 Plugin greatdb_ha reported: 'try to bind vip : 192.168.43.80 failed on nic: '
2025-11-05T16:18:13.271149+08:00 0 Plugin greatdb_ha reported: 'bind AF_INET SIOCSIFADDR Operation not permitted'
2025-11-05T16:18:13.271212+08:00 0 Plugin greatdb_ha reported: 'try to bind vip : 192.168.43.80 failed on nic: '
2025-11-05T16:18:33.277527+08:00 0 Plugin greatdb_ha reported: 'bind AF_INET SIOCSIFADDR Operation not permitted'
2025-11-05T16:18:33.277591+08:00 0 Plugin greatdb_ha reported: 'try to bind vip : 192.168.43.80 failed on nic: '
2025-11-05T16:18:53.281874+08:00 0 Plugin greatdb_ha reported: 'bind AF_INET SIOCSIFADDR Operation not permitted'
2025-11-05T16:18:53.281935+08:00 0 Plugin greatdb_ha reported: 'try to bind vip : 192.168.43.80 failed on nic: '
2025-11-05T16:19:13.290201+08:00 0 Plugin greatdb_ha reported: 'bind AF_INET SIOCSIFADDR Operation not permitted'
2025-11-05T16:19:13.290255+08:00 0 Plugin greatdb_ha reported: 'try to bind vip : 192.168.43.80 failed on nic: '
2025-11-05T16:19:33.294307+08:00 0 Plugin greatdb_ha reported: 'bind AF_INET SIOCSIFADDR Operation not permitted'
2025-11-05T16:19:33.294364+08:00 0 Plugin greatdb_ha reported: 'try to bind vip : 192.168.43.80 failed on nic: '
#
2025-11-05T16:16:31.028688+08:00 0 Plugin greatdb_ha reported: 'try to bind vip : 192.168.43.78 failed on nic: '
2025-11-05T16:16:51.033360+08:00 0 Plugin greatdb_ha reported: 'bind AF_INET SIOCSIFADDR Operation not permitted'
2025-11-05T16:16:51.033469+08:00 0 Plugin greatdb_ha reported: 'try to bind vip : 192.168.43.78 failed on nic: '
2025-11-05T16:17:11.037260+08:00 0 Plugin greatdb_ha reported: 'bind AF_INET SIOCSIFADDR Operation not permitted'
2025-11-05T16:17:11.037482+08:00 0 Plugin greatdb_ha reported: 'try to bind vip : 192.168.43.78 failed on nic: '
2025-11-05T16:17:31.044125+08:00 0 Plugin greatdb_ha reported: 'bind AF_INET SIOCSIFADDR Operation not permitted'
2025-11-05T16:17:31.044241+08:00 0 Plugin greatdb_ha reported: 'try to bind vip : 192.168.43.78 failed on nic: '
2025-11-05T16:17:51.052419+08:00 0 Plugin greatdb_ha reported: 'bind AF_INET SIOCSIFADDR Operation not permitted'
2025-11-05T16:17:51.052524+08:00 0 Plugin greatdb_ha reported: 'try to bind vip : 192.168.43.78 failed on nic: '
2025-11-05T16:18:11.059460+08:00 0 Plugin greatdb_ha reported: 'bind AF_INET SIOCSIFADDR Operation not permitted'
2025-11-05T16:18:11.059656+08:00 0 Plugin greatdb_ha reported: 'try to bind vip : 192.168.43.78 failed on nic: '
2025-11-05T16:18:31.065266+08:00 0 Plugin greatdb_ha reported: 'bind AF_INET SIOCSIFADDR Operation not permitted'
2025-11-05T16:18:31.065414+08:00 0 Plugin greatdb_ha reported: 'try to bind vip : 192.168.43.78 failed on nic: '
2025-11-05T16:18:51.069674+08:00 0 Plugin greatdb_ha reported: 'bind AF_INET SIOCSIFADDR Operation not permitted'
2025-11-05T16:18:51.069806+08:00 0 Plugin greatdb_ha reported: 'try to bind vip : 192.168.43.78 failed on nic: '
# tail /data/Greate/log/error.log
2025-11-05T16:19:13.259831+08:00 0 Plugin greatdb_ha reported: 'bind AF_INET SIOCSIFADDR Operation not permitted'
2025-11-05T16:19:13.259881+08:00 0 Plugin greatdb_ha reported: 'try to bind vip : 192.168.43.79 failed on nic: '
2025-11-05T16:19:33.263588+08:00 0 Plugin greatdb_ha reported: 'bind AF_INET SIOCSIFADDR Operation not permitted'
2025-11-05T16:19:33.263638+08:00 0 Plugin greatdb_ha reported: 'try to bind vip : 192.168.43.79 failed on nic: '
2025-11-05T16:19:53.270807+08:00 0 Plugin greatdb_ha reported: 'bind AF_INET SIOCSIFADDR Operation not permitted'
2025-11-05T16:19:53.270866+08:00 0 Plugin greatdb_ha reported: 'try to bind vip : 192.168.43.79 failed on nic: '
2025-11-05T16:20:13.275100+08:00 0 Plugin greatdb_ha reported: 'bind AF_INET SIOCSIFADDR Operation not permitted'
2025-11-05T16:20:13.275155+08:00 0 Plugin greatdb_ha reported: 'try to bind vip : 192.168.43.79 failed on nic: '
2025-11-05T16:20:33.279774+08:00 0 Plugin greatdb_ha reported: 'bind AF_INET SIOCSIFADDR Operation not permitted'
2025-11-05T16:20:33.279840+08:00 0 Plugin greatdb_ha reported: 'try to bind vip : 192.168.43.79 failed on nic: '
#
请参考VIP功能文档说明:https://greatsql.cn/docs/8.4.4-4/5-enhance/5-2-ha-mgr-vip.html#启动说明
需要在用systemd启动时添加一行参数:
修改systemd服务文件,增加AmbientCapabilities参数,例如:
#增加这行以保证MGR VIP功能可用
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_RAW
这样应该就可以了
页:
[1]