dw如何用表格做网站医疗网站前置审批要多长时间

pingmian/2025/10/15 4:16:40/文章来源:
dw如何用表格做网站,医疗网站前置审批要多长时间,四博网站备案,seo网站推广方案策划书前言#xff1a; OceanBase Cloud Platform#xff08;简称OCP#xff09;#xff0c;是 OceanBase数据库的专属企业级数据库管理平台。 在实际生产环境中#xff0c;OCP的安装通常是第一步#xff0c;先搭建OCP平台#xff0c;进而依赖OCP来创建、管理和监控我们的生…前言 OceanBase Cloud Platform简称OCP是 OceanBase数据库的专属企业级数据库管理平台。 在实际生产环境中OCP的安装通常是第一步先搭建OCP平台进而依赖OCP来创建、管理和监控我们的生产集群。但此后可能由于机房调整或其他需求可能会出现需要迁移或替换OCP服务器的情况。 上一篇文章介绍了使用oat平台来替换OCP的方法本文将介绍使用antman脚本替换OCP服务器的方法。注本文的环境的OCP负载均衡使用的f5所以新的机器需要先配置f5其他负载均衡场景同理 环境背景 大家如果有接触ob生产环境的经验的话可以能会了解前期版本安装ocp的时候需要安装ocp软件/metadba/obproxy三个docker包后期ocp版本将dbproxy集成在了一个docker包里oat的话只能纳管dbproxy 集成的metadb分开的情况还需要使用antman脚本来替换。 本篇文章主要介绍使用antman替换下面说下我的软件信息 1.ocp软件ocp-all-in-one:3.3.3-20220906114643 2.metadbOB2276_x86_20210409  3.proxyOBP186_20210315 4.antmant-oceanbase-antman-1.4.3-20220807073355.alios7.x86_64 操作过程 一环境检查/准备 检查替换机器环境包括分盘创建admin用户安装docker软件等安装好后检查下。 cd /root/t-oceanbase-antman/clonescripts/ sh precheck.sh -m ocp 登录meta库检查有没有tenant的主zone在要被替换的节点提前切主 MySQL [oceanbase] select * from __all_Server; -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | gmt_create | gmt_modified | svr_ip | svr_port | id | zone | inner_port | with_rootserver | status | block_migrate_in_time | build_version | stop_time | start_service_time | first_sessid | with_partition | last_offline_time | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | 2022-03-17 22:59:19.979627 | 2023-03-20 10:27:01.147283 | 10.10.100.87 | 2882 | 6 | META_OB_ZONE_2 | 2881 | 0 | active | 0 | 2.2.76_20210406232249-a1e144bdc179fbf473cea37f199e8a76c736b8d4(Apr 6 2021 23:55:12) | 0 | 1679279220991796 | 0 | 1 | 1679278517144838 | | 2022-03-17 23:54:49.277939 | 2023-03-20 09:29:22.079578 | 10.10.100.9 | 2882 | 7 | META_OB_ZONE_1 | 2881 | 1 | active | 0 | 2.2.76_20210406232249-a1e144bdc179fbf473cea37f199e8a76c736b8d4(Apr 6 2021 23:55:12) | 0 | 1679275725595691 | 0 | 1 | 0 | | 2021-12-21 22:44:16.476503 | 2023-03-20 09:29:22.080425 | 122.44.11.2 | 2882 | 5 | META_OB_ZONE_3 | 2881 | 0 | active | 0 | 2.2.76_20210406232249-a1e144bdc179fbf473cea37f199e8a76c736b8d4(Apr 6 2021 23:55:12) | 0 | 1640097866698859 | 0 | 1 | 0 | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- MySQL [oceanbase] select tenant_name,primary_zone from __all_tenant; -------------------------------------------------------------- | tenant_name | primary_zone | -------------------------------------------------------------- | sys | META_OB_ZONE_1;META_OB_ZONE_3;META_OB_ZONE_2 | | ocp_meta | META_OB_ZONE_1;META_OB_ZONE_3;META_OB_ZONE_2 | | ocp_monitor | META_OB_ZONE_1;META_OB_ZONE_3;META_OB_ZONE_2 | | oms_tt_tenant | META_OB_ZONE_1;META_OB_ZONE_3;META_OB_ZONE_2 | | oms_cc7_tenant | META_OB_ZONE_3;META_OB_ZONE_2;META_OB_ZONE_1 | | oms_ff9_tenant | META_OB_ZONE_1;META_OB_ZONE_2,META_OB_ZONE_3 | | oms_cc9_tenant | META_OB_ZONE_3;META_OB_ZONE_1,META_OB_ZONE_2 | | oms_dd_tenant | META_OB_ZONE_3;META_OB_ZONE_1,META_OB_ZONE_2 | | obdw_meta | META_OB_ZONE_3;META_OB_ZONE_1,META_OB_ZONE_2 | -------------------------------------------------------------- MySQL [oceanbase] alter tenant sys primary_zoneMETA_OB_ZONE_2;META_OB_ZONE_3,META_OB_ZONE_1; Query OK, 0 rows affected (0.04 sec)MySQL [oceanbase] alter tenant ocp_meta primary_zoneMETA_OB_ZONE_2;META_OB_ZONE_3,META_OB_ZONE_1; Query OK, 0 rows affected (1.27 sec)MySQL [oceanbase] alter tenant ocp_monitor primary_zoneMETA_OB_ZONE_2;META_OB_ZONE_3,META_OB_ZONE_1; Query OK, 0 rows affected (0.02 sec)MySQL [oceanbase] alter tenant oms_tt_tenant primary_zoneMETA_OB_ZONE_2;META_OB_ZONE_3,META_OB_ZONE_1; Query OK, 0 rows affected (0.03 sec)MySQL [oceanbase] alter tenant oms_ff9_tenant primary_zoneMETA_OB_ZONE_2;META_OB_ZONE_3,META_OB_ZONE_1; Query OK, 0 rows affected (0.03 sec) 因为使用antman脚本迁移需要在执行机器上修改obcluster.conf文件或者直接从原ocp上copy后检查下镜像包也需要传到该机器/root/t-oceanbase-antman目录下 55obffocp:~/t-oceanbase-antman # cat obcluster.conf ZONE1_RS_IP10.10.100.9 ZONE2_RS_IP10.10.100.87 ZONE3_RS_IP122.44.11.2###### 自动配置无需修改 / AUTO-CONFIGURATION ######OBSERVER01_HOSTNAMEOCP_META_SERVER_1 OBSERVER02_HOSTNAMEOCP_META_SERVER_2 OBSERVER03_HOSTNAMEOCP_META_SERVER_3 ZONE1_NAMEMETA_OB_ZONE_1 --后续命令参数主要和参数文件中对上 ZONE2_NAMEMETA_OB_ZONE_2 ZONE3_NAMEMETA_OB_ZONE_3 ##there must be more than half zone within same region ZONE1_REGIONOCP_META_REGION ZONE2_REGIONOCP_META_REGION ZONE3_REGIONOCP_META_REGION MYSQL_PORT2881 RPC_PORT2882OCP_VERSION3.3.3 检查执行antman脚本机器上默认集群密码是否正确cd ~/t-oceanbase-antman/tools ,执行getpass.sh的脚本如果不对需要使用setpass.sh修改因为后续proxy的docker迁移后会有验证ocp的docker迁移前也会验证。 55obffocp:~/t-oceanbase-antman/tools # bash setpass.sh -s 0Aa255yK^F password file sys in /root/.key already exist! ********************** Password of rootsys is CqVgg9}Aut Password of rootocp_meta is r6kS^EINTU Password of rootocp_monitor is pkJv1a{7J7 Password of rootodc is j{fjdd3X9f Password of rootoms is {oOIsE9fdQ55obffocp:~ # mv .key .key_bak 55obffocp:~ # cd /root/t-oceanbase-antman/tools/ 55obffocp:~/t-oceanbase-antman/tools # bash setpass.sh -s 0Aa255yK^F ********************** Password of rootsys is 0Aa255yK^F Password of rootocp_meta is Password of rootocp_monitor is Password of rootodc is Password of rootoms is 55obffocp:~/t-oceanbase-antman/tools # bash setpass.sh -c rSfjO%6EO ********************** Password of rootsys is 0Aa255yK^F Password of rootocp_meta is rSfjO%6EO Password of rootocp_monitor is Password of rootodc is Password of rootoms is 二执行antman的manage脚本进行新机器的添加 执行antman的manage脚本进行新机器的添加,ps:(这个版本manage会有报错文末会有分享) 55obffocp:~/t-oceanbase-antman # ./manage.sh -i ob,ocp,obproxy -l 133.55.22.19 -z 1 -R Jnydzycscc123 -A OceanBase#123 [2023-06-16 16:31:45.375633] INFO [check conf file /root/t-oceanbase-antman/obcluster.conf format ...] [2023-06-16 16:31:45.381844] INFO [conf file is upper case format.] [2023-06-16 16:31:45.391446] INFO [SSH_AUTHpassword SSH_USERroot SSH_PORT22 SSH_PASSWORD SSH_KEY_FILE/root/.ssh/id_rsa] LB_MODEf5 INSTALL_COMPONENTS componets: ob obproxy ocp CLEAR_COMPONENTS: IP_LIST: 133.55.22.19 ZONE_LIST: 1 ROOT_PASSWORD_LIST: Jnydzycscc123 ADMIN_PASSWORD_LIST: OceanBase#123 [2023-06-16 16:31:45.746503] INFO [INSTALL_COMPONENT: ob START ######################################] [2023-06-16 16:31:45.751057] INFO [deploy_ob: check whether OBSERVER port 2881,2882 are in use or not on 133.55.22.19] [2023-06-16 16:31:45.806500] INFO [deploy_ob: OBSERVER port 2881,2882 are idle on 133.55.22.19] [2023-06-16 16:31:45.810773] INFO [deploy_ob: installing ob cluster, logfile: /root/t-oceanbase-antman/logs/deploy_ob.log] cp: /root/t-oceanbase-antman/OB2276_x86_20210409.tar.gz and /root/t-oceanbase-antman/OB2276_x86_20210409.tar.gz are the same file skip copy same file cp: /root/t-oceanbase-antman/install_OB_docker.sh and /root/t-oceanbase-antman/install_OB_docker.sh are the same file skip copy same file cp: /root/t-oceanbase-antman/obcluster.conf and /root/t-oceanbase-antman/obcluster.conf are the same file skip copy same file cp: /root/t-oceanbase-antman/common/utils.sh and /root/t-oceanbase-antman/common/utils.sh are the same file skip copy same file cp: /root/.key and /root/.key are the same file skip copy same file nohup: ignoring input [2023-06-16 16:31:45.841348] INFO [installing OB docker and starting OB server on 133.55.22.19, pid: 144513, log: /root/t-oceanbase-antman/logs/install_OB_docker.log and /home/admin/logs/ob-server/ inside docker] [2023-06-16 16:31:45.925592] INFO [load docker image: docker load -i /root/t-oceanbase-antman/OB2276_x86_20210409.tar.gz] [2023-06-16 16:31:45.930723] INFO [install_OB_docker.sh is still running on 133.55.22.19] [2023-06-16 16:31:56.021465] INFO [install_OB_docker.sh is still running on 133.55.22.19] Loaded image: reg.docker.alibaba-inc.com/antman/ob-docker:OB2276_x86_20210409 [2023-06-16 16:32:06.111458] INFO [install_OB_docker.sh is still running on 133.55.22.19] [2023-06-16 16:32:06.359285] INFO [start container: docker run -d -it --cap-add SYS_RESOURCE --name META_OB_ZONE_1 --nethost -e OBCLUSTER_NAMEobcluster -e DEV_NAMEbond0 -e ROOTSERVICE_LIST10.10.100.9:2882:2881;10.10.100.87:2882:2881;122.44.11.2:2882:2881 -e DATAFILE_DISK_PERCENTAGE90 -e CLUSTER_ID1632654636 -e ZONE_NAMEMETA_OB_ZONE_1 -e OBPROXY_PORT2883 -e MYSQL_PORT2881 -e RPC_PORT2882 -e OCP_VIP134.80.173.57 -e OCP_VPORT80 -e app.password_rootJnydzycscc123 -e app.password_adminOceanBase#123 -e OBPROXY_OPTSTR -e OPTSTRcpu_count64,system_memory50G,memory_limit254G,__min_full_resource_pool_memory1073741824,_ob_enable_prepared_statementfalse,memory_limit_percentage90 --cpu-period 100000 --cpu-quota 6400000 --cpuset-cpus 0-63 --memory 256G -v /home/admin/oceanbase:/home/admin/oceanbase -v /data/log1:/data/log1 -v /data/1:/data/1 --restart on-failure:5 reg.docker.alibaba-inc.com/antman/ob-docker:OB2276_x86_20210409] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. 4f1c15e8194cc1ae2fffcc124ea9c982b3fda87ce1a6d0038db88435c737af89 [2023-06-16 16:32:16.209761] INFO [install_OB_docker.sh finished and reg.docker.alibaba-inc.com/antman/ob-docker:OB2276_x86_20210409 started on 133.55.22.19] [2023-06-16 16:32:16.214771] INFO [waiting on observer ready on 133.55.22.19] [2023-06-16 16:35:16.244133] INFO [waiting on observer ready on 133.55.22.19 for 3 Minitues] [2023-06-16 16:36:16.264776] INFO [waiting on observer ready on 133.55.22.19 for 4 Minitues] [2023-06-16 16:37:16.285808] INFO [waiting on observer ready on 133.55.22.19 for 5 Minitues] [2023-06-16 16:37:16.579057] INFO [observer on 133.55.22.19 is ready] [2023-06-16 16:37:16.584583] INFO [deploy_ob: installation of ob cluster done] [2023-06-16 16:37:16.588617] INFO [INSTALL_COMPONENT: ob DONE ######################################] [2023-06-16 16:37:16.593604] INFO [INSTALL_COMPONENT: obproxy START ######################################] ####日志太多就不都粘贴出来了可以上面看到metadb的docker服务添加完后开始了obproxy的docker服务添加### 说明 1133.55.22.19是要去替换ocp的服务器的实际物理IP。 2-z 1选项指定的133.55.22.19会被添加到OCP环境中的第1个zone即和上文查到的10.10.100.9机器在同一个zone里。 这里关于zone的定义主要是针对OCP服务器上的meta_ob docker而言obproxy docker和ocp docker并没有zone的概念。 关于每台OCP服务器上的meta_ob docker属于哪一个zone请参考obcluster.conf配置文件中的三个变量ZONE1_RS_IPZONE2_RS_IPZONE3_RS_IP。 3-R和-A后面需要分别填写成133.55.22.19服务器的root用户密码和admin用户密码。 4-i是安装如果替换成-c就是清除  ####这时候正常的话可以通过新添加节点的ip8080前台登录ocp了也可以通过这个机器的2883端口去连meta库了 三登录ocp的metadb的sys租户新增meta_ob docker的上线 MySQL [oceanbase] alter system add server 133.55.22.19:2882 zone META_OB_ZONE_1; Query OK, 0 rows affected (0.02 sec)MySQL [oceanbase] select svr_ip, zone, with_rootserver, status, start_service_time from __all_server; --------------------------------------------------------------------------- | svr_ip | zone | with_rootserver | status | start_service_time | --------------------------------------------------------------------------- | 10.10.100.87 | META_OB_ZONE_2 | 1 | active | 1679279220991796 | | 10.10.100.9 | META_OB_ZONE_1 | 0 | active | 1679275725595691 | | 122.44.11.2 | META_OB_ZONE_3 | 0 | active | 1640097866698859 | | 133.55.22.19 | META_OB_ZONE_1 | 0 | active | 0 | --------------------------------------------------------------------------- 4 rows in set (0.00 sec)MySQL [oceanbase] select svr_ip, zone, with_rootserver, status, start_service_time from __all_server; --------------------------------------------------------------------------- | svr_ip | zone | with_rootserver | status | start_service_time | --------------------------------------------------------------------------- | 10.10.100.87 | META_OB_ZONE_2 | 1 | active | 1679279220991796 | | 10.10.100.9 | META_OB_ZONE_1 | 0 | active | 1679275725595691 | | 122.44.11.2 | META_OB_ZONE_3 | 0 | active | 1640097866698859 | | 133.55.22.19 | META_OB_ZONE_1 | 0 | active | 1686908200404755 | --------------------------------------------------------------------------- 4 rows in set (0.01 sec) 四登录ocp的metadb的sys租户将被替换meta_ob docker的下线 MySQL [oceanbase] alter system delete server 10.10.100.9:2882 zone META_OB_ZONE_1; Query OK, 0 rows affected (0.19 sec)MySQL [oceanbase] select svr_ip, zone, with_rootserver, status, start_service_time from __all_server; ----------------------------------------------------------------------------- | svr_ip | zone | with_rootserver | status | start_service_time | ----------------------------------------------------------------------------- | 10.10.100.87 | META_OB_ZONE_2 | 1 | active | 1679279220991796 | | 10.10.100.9 | META_OB_ZONE_1 | 0 | deleting | 1679275725595691 | | 122.44.11.2 | META_OB_ZONE_3 | 0 | active | 1640097866698859 | | 133.55.22.19 | META_OB_ZONE_1 | 0 | active | 1686908200404755 | ----------------------------------------------------------------------------- 4 rows in set (0.01 sec) MySQL [oceanbase] select svr_ip, zone, with_rootserver, status, start_service_time from __all_server; --------------------------------------------------------------------------- | svr_ip | zone | with_rootserver | status | start_service_time | --------------------------------------------------------------------------- | 10.10.100.87 | META_OB_ZONE_2 | 1 | active | 1679279220991796 | | 122.44.11.2 | META_OB_ZONE_3 | 0 | active | 1640097866698859 | | 133.55.22.19 | META_OB_ZONE_1 | 0 | active | 1686908200404755 | --------------------------------------------------------------------------- 五登录ocp_meta租户手工更新OCP服务器信息 ####前面步骤处理完ocp前台还可以看到残留的信息需要替换下信息##### 55obffocp:~/t-oceanbase-antman # mysql -h10.10.100.87 -P2883 -urootocp_meta#obcluster -prSfjO%6EO -Docp -cMySQL [ocp] select * from compute_host where inner_ip_address10.10.100.9\G *************************** 1. row ***************************id: 1name: ocp1adescription: NULL operating_system: 4.12.14-120-defaultarchitecture: x86_64 inner_ip_address: 10.10.100.9ssh_port: 2022kind: DEDICATED_PHYSICAL_MACHINEpublish_ports: NULLstatus: ONLINEvpc_id: 1idc_id: 1host_type_id: 1serial_number: NULLalias: NULLcreate_time: 2021-09-26 21:04:11update_time: 2023-03-20 11:01:58 1 row in set (0.00 sec)MySQL [ocp] update compute_host set inner_ip_address133.55.22.19, name55obffocp where inner_ip_address10.10.100.9; Query OK, 1 row affected (0.01 sec) Rows matched: 1 Changed: 1 Warnings: 0MySQL [ocp] select * from compute_host where id 1; -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | id | name | description | operating_system | architecture | inner_ip_address | ssh_port | kind | publish_ports | status | vpc_id | idc_id | host_type_id | serial_number | alias | create_time | update_time | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | 1 | 55obffocp | NULL | 4.12.14-120-default | x86_64 | 133.55.22.19 | 2022 | DEDICATED_PHYSICAL_MACHINE | NULL | ONLINE | 1 | 1 | 1 | NULL | NULL | 2021-09-26 21:04:11 | 2023-06-16 17:47:19 | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1 row in set (0.00 sec) 六清理被替换机器上残留的服务 ocp1a:~/t-oceanbase-antman # ./manage.sh -c ob,ocp,obproxy -l 10.10.100.9 -z 1 -R Dt!n(Rg4Av!t -A OceanBase#123 grep: /etc/system-release: No such file or directory [2023-06-16 22:45:44.101400] INFO [check conf file /root/t-oceanbase-antman/obcluster.conf format ...] [2023-06-16 22:45:44.106779] INFO [conf file is upper case format.] [2023-06-16 22:45:44.114437] INFO [SSH_AUTHpassword SSH_USERroot SSH_PORT22 SSH_PASSWORD SSH_KEY_FILE/root/.ssh/id_rsa] LB_MODEf5 INSTALL_COMPONENTS componets: CLEAR_COMPONENTS: ob obproxy ocp IP_LIST: 10.10.100.9 ZONE_LIST: 1 ROOT_PASSWORD_LIST: Dt!n(Rg4Av!t ADMIN_PASSWORD_LIST: OceanBase#123 [2023-06-16 22:45:44.474268] INFO [CLEAR_COMPONENT: ob START ######################################] cp: /root/t-oceanbase-antman/uninstall.sh and /root/t-oceanbase-antman/uninstall.sh are the same file skip copy same file cp: /root/t-oceanbase-antman/obcluster.conf and /root/t-oceanbase-antman/obcluster.conf are the same file skip copy same file cp: /root/t-oceanbase-antman/common/utils.sh and /root/t-oceanbase-antman/common/utils.sh are the same file skip copy same file grep: /etc/system-release: No such file or directory [2023-06-16 22:45:44.504069] INFO [remove OB server and docker on host: 10.10.100.9] [2023-06-16 22:45:44.548697] INFO [docker rm -f 62ab623cb4ed] 62ab623cb4ed [2023-06-16 22:46:01.260706] INFO [remove OB server and docker on host: 10.10.100.9 done!] [2023-06-16 22:46:01.370808] INFO [uninstall.sh ob finished and reg.docker.alibaba-inc.com/antman/ob-docker:OB2276_x86_20210409 removed on 10.10.100.9] [2023-06-16 22:46:01.375914] INFO [OB docker on 10.10.100.9 is removed] [2023-06-16 22:46:01.380667] INFO [CLEAR_COMPONENT: ob DONE ######################################] [2023-06-16 22:46:01.385398] INFO [CLEAR_COMPONENT: obproxy START ######################################] cp: /root/t-oceanbase-antman/uninstall.sh and /root/t-oceanbase-antman/uninstall.sh are the same file skip copy same file cp: /root/t-oceanbase-antman/obcluster.conf and /root/t-oceanbase-antman/obcluster.conf are the same file skip copy same file cp: /root/t-oceanbase-antman/common/utils.sh and /root/t-oceanbase-antman/common/utils.sh are the same file skip copy same file grep: /etc/system-release: No such file or directory [2023-06-16 22:46:01.416495] INFO [remove obproxy docker on host:10.10.100.9] [2023-06-16 22:46:01.514215] INFO [docker rm -f 01bdcadf2e11] 01bdcadf2e11 [2023-06-16 22:46:01.765459] INFO [remove obproxy docker on host:10.10.100.9 done!] [2023-06-16 22:46:01.858848] INFO [uninstall.sh obproxy finished and reg.docker.alibaba-inc.com/antman/obproxy:OBP186_20210315 removed on 10.10.100.9] [2023-06-16 22:46:01.863806] INFO [obproxy docker on 10.10.100.9 is removed] [2023-06-16 22:46:01.868778] INFO [CLEAR_COMPONENT: obproxy DONE ######################################] [2023-06-16 22:46:01.873368] INFO [CLEAR_COMPONENT: ocp START ######################################] cp: /root/t-oceanbase-antman/uninstall.sh and /root/t-oceanbase-antman/uninstall.sh are the same file skip copy same file cp: /root/t-oceanbase-antman/obcluster.conf and /root/t-oceanbase-antman/obcluster.conf are the same file skip copy same file cp: /root/t-oceanbase-antman/common/utils.sh and /root/t-oceanbase-antman/common/utils.sh are the same file skip copy same file grep: /etc/system-release: No such file or directory [2023-06-16 22:46:01.906934] INFO [remove ocp docker on host:10.10.100.9] [2023-06-16 22:46:01.944811] INFO [docker rm -f 8b044744a92e] 8b044744a92e [2023-06-16 22:46:26.162467] INFO [remove ocp docker on host:10.10.100.9 done] [2023-06-16 22:46:26.253927] INFO [uninstall.sh ocp finished and reg.docker.alibaba-inc.com/oceanbase/ocp-all-in-one:3.3.3-20220906114643 removed on 10.10.100.9] [2023-06-16 22:46:26.258281] INFO [ocp docker on 10.10.100.9 is removed] [2023-06-16 22:46:26.263047] INFO [CLEAR_COMPONENT: ocp DONE ######################################] ocp1a:~/t-oceanbase-antman # docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 报错记录及处理 manage脚本执行报错 55obffocp:~/t-oceanbase-antman # ./manage.sh -i ob,ocp,obproxy -l 133.55.22.19 -z 1 -R Jnydzycscc123 -A OceanBase#123 [2023-06-16 16:31:03.305062] INFO [check conf file /root/t-oceanbase-antman/obcluster.conf format ...] [2023-06-16 16:31:03.309079] INFO [conf file is upper case format.] [2023-06-16 16:31:03.315290] INFO [SSH_AUTHpassword SSH_USERroot SSH_PORT22 SSH_PASSWORD SSH_KEY_FILE/root/.ssh/id_rsa] LB_MODEf5 INSTALL_COMPONENTS componets: ob obproxy ocp CLEAR_COMPONENTS: IP_LIST: 133.55.22.19 ZONE_LIST: 1 ROOT_PASSWORD_LIST: Jnydzycscc123 ADMIN_PASSWORD_LIST: OceanBase#123 /root/t-oceanbase-antman/common/utils.sh: line 484: -e: command not found [2023-06-16 16:31:03.636862] ERROR [: ssh authorization to 133.55.22.19 failed, Please check SSH affinity environment varialbes.] ######这个问题也需要修改脚本代码解决######### 执行alter system delete server 命令之后很久被替换的server没有delete掉一直是deleting状态检查发现ocp的meta库内存参数调整过新加的server参数小导致unit迁移卡住。 MySQL [oceanbase] select svr_ip, zone, with_rootserver, status, start_service_time from __all_server; ----------------------------------------------------------------------------- | svr_ip | zone | with_rootserver | status | start_service_time | ----------------------------------------------------------------------------- | 10.10.100.87 | META_OB_ZONE_2 | 1 | active | 1679279220991796 | | 10.10.100.9 | META_OB_ZONE_1 | 0 | deleting | 1679275725595691 | | 122.44.11.2 | META_OB_ZONE_3 | 0 | active | 1640097866698859 | | 133.55.22.19 | META_OB_ZONE_1 | 0 | active | 1686908200404755 | ----------------------------------------------------------------------------- 4 rows in set (0.01 sec)MySQL [oceanbase] select count(*),svr_ip from gv$unit group by svr_ip; ------------------------ | count(*) | svr_ip | ------------------------ | 27 | 133.55.22.19 | | 33 | 10.10.100.87 | | 33 | 122.44.11.2 | | 6 | 10.10.100.9 | ------------------------ 4 rows in set (0.01 sec) MySQL [oceanbase] select * from gv$unit where svr_ip10.10.100.9; ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | unit_id | unit_config_id | unit_config_name | resource_pool_id | resource_pool_name | zone | tenant_id | tenant_name | svr_ip | svr_port | migrate_from_svr_ip | migrate_from_svr_port | max_cpu | min_cpu | max_memory | min_memory | max_iops | min_iops | max_disk_size | max_session_num | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | 1106 | 1090 | config_oms_tt_tenant_META_OB_ZONE_1_S2_gpa | 1080 | pool_oms_tt_tenant_META_OB_ZONE_1_gpa | META_OB_ZONE_1 | NULL | NULL | 10.10.100.9 | 2882 | | 0 | 3 | 3 | 12884901888 | 12884901888 | 2500 | 2500 | 536870912000 | 750 | | 1139 | 1094 | oms_unit | 1129 | oms_ff9_tenant_resource_pool | META_OB_ZONE_1 | NULL | NULL | 10.10.100.9 | 2882 | | 0 | 2 | 2 | 5368709120 | 4294967296 | 128 | 128 | 5368709120 | 10000 | | 1122 | 1097 | config_oms_c55_tenant_META_OB_ZONE_1_S1_ifu | 1088 | pool_oms_c55_tenant_META_OB_ZONE_1_ifu | META_OB_ZONE_1 | NULL | NULL | 10.10.100.9 | 2882 | | 0 | 1.5 | 1.5 | 6442450944 | 6442450944 | 1250 | 1250 | 536870912000 | 375 | | 1126 | 1100 | config_oms_ff6_tenant_META_OB_ZONE_1_S1_uzz | 1092 | pool_oms_ff6_tenant_META_OB_ZONE_1_uzz | META_OB_ZONE_1 | NULL | NULL | 10.10.100.9 | 2882 | | 0 | 1.5 | 1.5 | 6442450944 | 6442450944 | 1250 | 1250 | 536870912000 | 375 | | 1127 | 1101 | config_oms_ff7_tenant_META_OB_ZONE_1_S1_gkj | 1093 | pool_oms_ff7_tenant_META_OB_ZONE_1_gkj | META_OB_ZONE_1 | NULL | NULL | 10.10.100.9 | 2882 | | 0 | 1.5 | 1.5 | 6442450944 | 6442450944 | 1250 | 1250 | 536870912000 | 375 | | 1135 | 1108 | config_oms_cc8_tenant_META_OB_ZONE_1_S1_wwo | 1101 | pool_oms_cc8_tenant_META_OB_ZONE_1_wwo | META_OB_ZONE_1 | NULL | NULL | 10.10.100.9 | 2882 | | 0 | 1.5 | 1.5 | 6442450944 | 6442450944 | 1250 | 1250 | 536870912000 | 375 | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 6 rows in set (0.02 sec)MySQL [oceanbase] alter system migrate unit1106 destination133.55.22.19:2882; ERROR 4624 (HY000): machine resource is not enough to hold a new unit ----------------手动去迁移报资源不足MySQL [oceanbase] select zone,svr_ip, cpu_total, cpu_assigned,cpu_assigned_percent cpu_ass_pct, round(mem_total/1024/1024/1024) mem_total_gb,- round(mem_assigned/1024/1024/1024) mem_ass_gb, mem_assigned_percent mem_ass_pct, unit_num, migrating_unit_num, leader_count, round(load,2) load- from __all_virtual_server_stat- order by zone, svr_ip; ---------------------检查资源发现内存不足 ------------------------------------------------------------------------------------------------------------------------------------------------------------- | zone | svr_ip | cpu_total | cpu_assigned | cpu_ass_pct | mem_total_gb | mem_ass_gb | mem_ass_pct | unit_num | migrating_unit_num | leader_count | load | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | META_OB_ZONE_1 | 10.10.100.9 | 62 | 11 | 17 | 250 | 40 | 16 | 6 | 0 | 0 | 0.17 | | META_OB_ZONE_1 | 133.55.22.19 | 62 | 48 | 77 | 204 | 196 | 96 | 27 | 0 | 0 | 0.87 | | META_OB_ZONE_2 | 10.10.100.87 | 62 | 59 | 95 | 250 | 236 | 94 | 33 | 0 | 2935 | 0.95 | | META_OB_ZONE_3 | 122.44.11.2 | 62 | 59 | 95 | 250 | 236 | 94 | 33 | 0 | 1051 | 0.95 |MySQL [oceanbase] show parameters like %memory_limit%; | META_OB_ZONE_3 | observer | 122.44.11.2 | 2882 | memory_limit | NULL | 300G | the size of the memory reserved for internal use(for testing purpose). Range: [0M,) | OBSERVER | CLUSTER | DEFAULT | DYNAMIC_EFFECTIVE | | META_OB_ZONE_1 | observer | 133.55.22.19 | 2882 | memory_limit | NULL | 254G | the size of the memory reserved for internal use(for testing purpose). Range: [0M,) | OBSERVER | CLUSTER | DEFAULT | DYNAMIC_EFFECTIVE | | META_OB_ZONE_2 | observer | 10.10.100.87 | 2882 | memory_limit | NULL | 300G | the size of the memory reserved for internal use(for testing purpose). Range: [0M,) | OBSERVER | CLUSTER | DEFAULT | DYNAMIC_EFFECTIVE | | META_OB_ZONE_1 | observer | 10.10.100.9 | 2882 | memory_limit | NULL | 300G | the size of the memory reserved for internal use(for testing purpose). Range: [0M,) | OBSERVER | CLUSTER | DEFAULT | DYNAMIC_EFFECTIVE |MySQL [oceanbase] alter system set memory_limit 300G ; Query OK, 0 rows affected (0.05 sec)MySQL [oceanbase] select count(*),svr_ip from gv$unit group by svr_ip; ------------------------ | count(*) | svr_ip | ------------------------ | 33 | 133.55.22.19 | | 33 | 10.10.100.87 | | 33 | 122.44.11.2 | ------------------------ 3 rows in set (0.00 sec)MySQL [oceanbase] select svr_ip, zone, with_rootserver, status, start_service_time from __all_server; --------------------------------------------------------------------------- | svr_ip | zone | with_rootserver | status | start_service_time | --------------------------------------------------------------------------- | 10.10.100.87 | META_OB_ZONE_2 | 1 | active | 1679279220991796 | | 122.44.11.2 | META_OB_ZONE_3 | 0 | active | 1640097866698859 | | 133.55.22.19 | META_OB_ZONE_1 | 0 | active | 1686908200404755 | --------------------------------------------------------------------------- 3 rows in set (0.00 sec)总结 到这里使用antman脚本的方式去替换ocp机器的操作就结束了包括前面一篇使用oat替换ocp节点的文章可能看起来没什么难度但是整个过程来回做了好几遍为了别人以后少踩坑所以写了这两篇文章分享。如果看了上篇文章的话应该知道oat替换ocp的时候新加机器是在metadb中新创建了一个zone然后再把被替换机器下掉其中还涉及新建资源池修改Locality增加副本数等操作。其实使用antman脚本的话这个步骤就不太一样他是将新机器加入到需要替换机器的同一个zone内然后做同zone内unit的迁移然后把被替换的机器下线现阶段的话相对来说antman替换之后对于ocp的元数据的影响小一些但是oat黑屏的操作少些对于obproxy单独docker的前期场景必须使用antman后期版本就看大家自己酌情选择了。 行之所向莫问远方。

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/pingmian/87896.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

php网站建设流程凡科电脑版登录首页

3妹:2哥,你有没有看到新闻“18岁父亲为4岁儿子落户现身亲子鉴定” 2哥 : 啥?18岁就当爹啦? 3妹:确切的说是14岁好吧。 2哥 : 哎,想我30了, 还是个单身狗。 3妹:别急啊, 2…

用asp做网站系统步骤做社区生意的网站

来源:北京城市实验室BCL随着计算机技术的飞速发展,城市信息学作为城市规划领域的一门新兴学科,逐渐引起学术界的关注。城市信息学的兴起给城市规划带来了新的压力,但它也提供了新的城市分析视角。在此背景下,专家小组概…

邢台网站推广专业服务公司展厅效果图

背景为了兼容多种业务,想在项目中使用一些设计模式,以便于管理。例如,我需要创建用户并返回userid,每种业务创建的方式都不一样。我选取了“适配器模式”,但是我发现,在springmvc的管理下,常常需…

互联网精准营销公司seo 费用

文章目录求余函数和取模函数的区别x 和 y 符号不同,求余数和模数的技巧求余的运算规律(技巧)取模的运算规律(技巧)求余函数和取模函数的区别 求余函数rem(x,y) 和取模函数 mod(x,y) 的区别: 当 x 和 y 的符…

做 网络网站烟台市建设工程质量监督站网站

让我们聊聊这个话题, django如何存数据至mysql数据表里面,你会用什么方法?正常情况下,我们form逻辑处理后,直接form.save(),是,这个方法没毛病;但有没有其他的方法呢?假如…

曲阜网站建设哪家好有自建服务器做网站的吗

「何」到底该读「なん」还是「なに」? 首先,讲一个规律,大家记住就行。当「何」后面所接单词的第一个发音在“た”、“だ”、“な”行时,读作“なん”。一般这种情况下,后面跟的是の、でも、です和だ。 用例&#xff…

node.js做网站开发彩票游戏网站建设

说到国外Lead广告联盟,可能很多人会问这是啥?其实呢,作为搞外贸的,如果你想增加你的收入,做国外广告联盟也是不错的选择,只要你有正确的方法和策略,就能够成功赚取丰厚的佣金。今天龙哥我就给大…

网站支付怎么做安全吗都兰县建设局交通局网站

在POE供电系统实际应用中,有很多受电设备AP或移动基站的基站AP与天线,经常要安装于建筑物的高端点,因此这些受电设备也成为遭受雷击的高发点。所以,对于这类的数据网络中心,不仅要考虑建设良好的直击雷防护网与良好的接…

临桂城乡建设局网站新氧整形网站开发模版

一、进程考虑一个场景:浏览器,网易云音乐以及notepad 三个软件只能顺序执行是怎样一种场景呢?另外,假如有两个程序A和B,程序A在执行到一半的过程中,需要读取大量的数据输入(I/O操作),而此时CPU只…

o2o电商网站建设南山建站公司

一、实验名称: 网络分析 二、实验目的: 通过本实验练习,掌握空间数据网络分析的基本方法。 三、实验内容和要求: 实验内容: 利用ARCGIS软件网络分析工具及相关空间数据,查找距离“名人故居”、“博物…

山东住房和城乡建设厅网站网站 没有域名需要备案吗

ElasticSearch基础篇 安装 官网 下载地址 下载完成后对文件进行解压,项目结构如下 进入bin目录点击elasticsearch.bat启动服务 9300 端口为 Elasticsearch 集群间组件的通信端口, 9200 端口为浏览器访问的 http协议 RESTful 端口 打开浏览器&#…

怎样看网站的建设时间90设计网站官网入口

目录 介绍静态库与动态链接库静态库动态链接库 如何将第三方库集成到VS上VS属性管理器配置静态库配置动态链接库属性管理器其他的内容MKL库的安装boost库的安装 介绍 众所周知,.c文件或者.cpp文件变成.exe文件需要经历四个过程 分别是预处理,编译&#…

jsp网站开发技术自学做网站可以赚钱吗

数字包括文本型数字和数值型数字两种形式,数值型数字可以计算,文本型数字不能计算。 例1:文本型数字不能计算 例2:数值型数字可以计算 数值型数字如果输入大于11位数,则会显示为科学计数法。如果输入001,则…

帮客户做网站 没签合同咋办合肥软件开发公司

表对象标识 kingbase中表作为数据库对象具有一个系统内部的唯一标识符,这个标识符被称为oid(对象标识符),它是kingbase用来在整个数据集群中唯一地标识每个数据库对象的一个字段。对于表来说,其OID可以在系统目录表sy…

广州网站开发哪家专业江阴企业网站制作

Python中的Numpy的基本知识 Copyright © Microsoft Corporation. All rights reserved. 适用于License版权许可 更多微软人工智能学习资源,请见微软人工智能教育与学习共建社区 以下列出一些关于Numpy矩阵运算的基本知识和坑点。 首先需要在命令行中安装Num…

aaaa景区网站建设标准苏州市住房城乡建设局网站首页

1. 什么是Hudi Hudi(Hadoop Upserts Deletes and Incrementals)是一个开源的数据湖工具,用于管理大规模数据湖中的数据。 Hudi旨在解决数据湖中常见的一些挑战,如数据的增量更新、删除和查询等。它提供了一套API和工具,可以帮助用户在数据湖中进行写入、更新、删除和查询等…

苏州建设交易中心网站平台宣传推广策略有哪些

目录 介绍 概念 性质 模拟实现 结点定义 插入 保证平衡的原因 一般情况 特殊情况(uncle为黑) uncle不存在 旋转方式 右旋 迭代器 -- 代码 介绍 概念 红黑树是一种自平衡的二叉搜索树 它是在每个节点上引入额外的颜色信息,通过对任何一条从根到叶子的路径…

电子商务网站建设实验青海建设工程云网站

柱状图 - category-work,grid直角坐标,legend,series-bar柱状图,tooltip提示框 - makeapie echarts社区图表可视化案例

宁波企业网站排名优化wordpress 标签插件

地址:https://pan.baidu.com/s/18LMEo-_WYcoyTOkWYJ0NUg 提取码:1234 仿真图: 1)设计一个能进行拔河游戏的电路,通过按键控制游戏开始和复位。 2)电路使用9个发光二极管排成一行,中间的LED为拔…

cms仿站教程高端网站设计收费

一、命名空间 TypeScript 中的命名空间(Namespace)用于将代码组织到逻辑分组中。在 TypeScript 中,命名空间是一个独立作用域中的代码集合。 1、示例 下面是一个简单的 TypeScript 命名空间示例: namespace MyNamespace {export…