现在我更改后 好像有问题 执行不了
"hostname":"","ip_mask":"172.18.8.99/24","gateway":"172.18.8.1","new_ip_mask":"","new_gateway":"","type":"cvm"
"cluster_id":"1","cluster_name":"cluster_0","start_ip_mask":"10.10.100.196/24","new_start_ip_mask":"172.18.8.99/24","cluster_gateway":"10.10.100.1","cluster_new_gateway":"172.18.8.1"
"hostname":"cvknode1","ip_mask":"10.10.100.196/","gateway":"","new_ip_mask":"172.18.8.1/24","new_gateway":"172.18.8.1","type":"cvm","cluster_name":"cluster_0"
(0)
"hostname":"cvknode1","ip_mask":"10.10.100.196/" 这边是不是没写掩码
(0)
[root@cvknode1 vdi]# ./modify_hosts_ip.sh Wed May 22 17:40:42 CST 2024 -----------------------start-------------------------- Wed May 22 17:40:42 CST 2024 slaveHostName: Wed May 22 17:40:42 CST 2024 masterHostName: Wed May 22 17:40:42 CST 2024 slave_ip: Wed May 22 17:40:42 CST 2024 local_vswitch_ip: 172.18.8.99 Wed May 22 17:40:42 CST 2024 export current cvm ip Wed May 22 17:40:42 CST 2024 seperate situation Wed May 22 17:40:42 CST 2024 mysql data host lines 3 Wed May 22 17:40:42 CST 2024 cluster_0 172.18.8.99/24 172.18.8.1 Wed May 22 17:40:42 CST 2024 cvknode1 10.10.100.196 cluster_0 执行后 卡在此处不动了
ip_mask":"10.10.100.196/" 添上掩码试试呢
请教一下,您那有脚本模板么,我改的现在执行老师报错,报错。 [root@cvknode1 vdi]# ./modify_hosts_ip.sh hosts_network_info Wed May 22 17:36:55 CST 2024 -----------------------start-------------------------- Wed May 22 17:36:55 CST 2024 slaveHostName: Wed May 22 17:36:55 CST 2024 masterHostName: Wed May 22 17:36:55 CST 2024 slave_ip: Wed May 22 17:36:55 CST 2024 local_vswitch_ip: 172.18.8.99 Wed May 22 17:36:55 CST 2024 start modify ip Wed May 22 17:36:55 CST 2024 read modify hosts file Wed May 22 17:36:55 CST 2024 input "hostname":"","ip_mask":"172.18.8.99/24","gateway":"172.18.8.1","new_ip_mask":"","new_gateway":"","type":"cvm" cat: .hosts_network_info: No such file or directory Wed May 22 17:36:55 CST 2024 input error, file lines not match, the original file lines is 0, please export hosts_network_info file again by execute ./modify_hosts_ip.sh. Please be careful, just modify content, do not add or delete line in file hosts_network_info.
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
请教一下,您那有脚本模板么,我改的现在执行老师报错,报错。 [root@cvknode1 vdi]# ./modify_hosts_ip.sh hosts_network_info Wed May 22 17:36:55 CST 2024 -----------------------start-------------------------- Wed May 22 17:36:55 CST 2024 slaveHostName: Wed May 22 17:36:55 CST 2024 masterHostName: Wed May 22 17:36:55 CST 2024 slave_ip: Wed May 22 17:36:55 CST 2024 local_vswitch_ip: 172.18.8.99 Wed May 22 17:36:55 CST 2024 start modify ip Wed May 22 17:36:55 CST 2024 read modify hosts file Wed May 22 17:36:55 CST 2024 input "hostname":"","ip_mask":"172.18.8.99/24","gateway":"172.18.8.1","new_ip_mask":"","new_gateway":"","type":"cvm" cat: .hosts_network_info: No such file or directory Wed May 22 17:36:55 CST 2024 input error, file lines not match, the original file lines is 0, please export hosts_network_info file again by execute ./modify_hosts_ip.sh. Please be careful, just modify content, do not add or delete line in file hosts_network_info.