HAC叢集新增新節點
[root@localhost ~]# hghactl list+ Cluster: ha (7072256965608815760) -------+---------+----+-----------+| Member | Host | Role | State | TL | Lag in MB |+----------+---------------------+---------+---------+----+-----------+| hghac228 | 192.168.80.228:5866 | Leader | running | 6 | || hghac230 | 192.168.80.230:5866 | Replica | running | 6 | 0 |+----------+---------------------+---------+---------+----+-----------+
ps -ef | grep sender root 26418 3233 0 6月11 ? 00:00:22 postgres: c: walsender sysdba 192.168.80.228(45186) streaming 0/16000000ps -ef | grep receiver root 3372 3348 0 6月11 ? 00:13:54 postgres: c: walreceiver streaming 0/16000000
rpm -ivh hgdb4.5.7-see-centos7-x86-64-20220307.rpm rpm -ivh hghac4.0.1-centos7-x86-64-20210604.rpm
vim ~/.bash_profile source ~/.bash_profile
scp /opt/HighGo/tools/hghac root@192.168.80.228:/opt/HighGo/tools/hghac/hghac-see.yaml
vim /opt/HighGo/tools/hghac/hghac-see.yaml connect_address: 192.168.80.228:8008 #將ip修改為本機ip,例:192.168.80.230:8008 name: hghac228 #修改為hghac+本機ip最後一位,例:hghac230 connect_address: 192.168.80.228:5866 #將ip修改為本機ip,例:192.168.80.230:5866 data_dir: /hgdata/highgo/data #檢視/hgdata/highgo目錄是否存在, #不存在mkdir -p /hgdata/highgo建立,/hgdata目錄應該是掛載的磁碟目錄 dir: /hgdata/hghalog #檢視該目錄是否存在,不存在mkdir -p /hgdata/hghalog 建立
[root@hgdw231 hgupload]# systemctl enable hghac.service Created symlink from /etc/systemd/system/multi-user.target.wants/hghac.service to /etc/systemd/system/hghac.service.[root@hgdw231 hgupload]# systemctl start hghac.service[root@hgdw231 hgupload]# systemctl disable hgdb-see-4.5.7.service Removed symlink /etc/systemd/system/multi-user.target.wants/hgdb-see-4.5.7.service.Removed symlink /etc/systemd/system/graphical.target.wants/hgdb-see-4.5.7.service.注意: 也有可能不是hghac.service,可能是hghac-vip.service 請使用systemctl status hghac.service/hghac-vip.service確定執行的服務
[root@localhost ~]# hghactl list
vim ~/.bash_profileexport PGPORT=5866export PGUSER=sysdbaexport PGDATABASE=highgoexport PGHOME=/opt/HighGo4.5.7-seeexport PGDATA=/opt/HighGo4.5.7-see/dataexport PATH=$PGHOME/bin:$PATH:$HOME/bin:/opt/HighGo/tools/hghac:/opt/HighGo/tools/hghac/etcdexport LD_LIBRARY_PATH=$PGHOME/lib:/usr/lib64:$LD_LIBRARY_PATHexport ETCDCTL_ENDPOINTS= source ~/.bash_profile 注意:1、需要根據實際情況修改環境變數實際路徑,可以使用find命令查詢檔案路徑 例:查詢hghac find / -iname hghac -print2、ETCDCTL_ENDPOINTS三個ip需要修改為配置etcd三節點的ip,可以參考/opt/HighGo/tools/hghac/hgha
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/69994931/viewspace-2905693/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- HAC叢集更改IP(單節點更改、全部節點更改)
- Oracle叢集軟體管理-新增和刪除叢集節點Oracle
- DKHhadoop叢集新增節點管理功能的操作步驟Hadoop
- k8s叢集刪除和新增node節點K8S
- consul 多節點/單節點叢集搭建
- 4.2 叢集節點初步搭建
- Solaris叢集節點重啟
- MongoDB叢集搭建(包括隱藏節點,仲裁節點)MongoDB
- linux搭建kafka叢集,多master節點叢集說明LinuxKafkaAST
- 記錄一下oracle 19c的叢集節點移除、新增操作Oracle
- Jedis操作單節點redis,叢集及redisTemplate操作redis叢集(一)Redis
- Redis服務之叢集節點管理Redis
- Redis Manager 叢集管理與節點管理Redis
- zookeeper叢集奇偶數節點問題
- DKHhadoop新增新節點功能介紹Hadoop
- 升級kubeadm 叢集(只有master單節點)AST
- hadoop叢集搭建——單節點(偽分散式)Hadoop分散式
- kubernets叢集節點NotReady故障 分析報告
- 400+ 節點的 Elasticsearch 叢集運維Elasticsearch運維
- mongodb叢集節點故障的切換方法MongoDB
- 400+節點的 Elasticsearch 叢集運維Elasticsearch運維
- Druid.io系列3:Druid叢集節點UI
- 安裝 Hadoop:設定單節點 Hadoop 叢集Hadoop
- 從庫轉換成PXC叢集的節點
- 設定gbase叢集節點離線狀態
- kafka系列二:多節點分散式叢集搭建Kafka分散式
- CentOS7 上搭建多節點 Elasticsearch叢集CentOSElasticsearch
- 節點加入k8s 叢集的步驟K8S
- Centos7.9 部署mongodb高可用叢集 3節點CentOSMongoDB
- 讀懂這一篇,叢集節點不下線
- Elasticsearch 7.x 之節點、叢集、分片及副本Elasticsearch
- Hadoop 叢集角色和節點數規劃建議Hadoop
- 檢視Redis叢集所有節點記憶體工具Redis記憶體
- MongoDB分片叢集節點狀態stateStr:RECOVERING解決MongoDB
- KubeSphere 新增節點
- 新增節點教程
- 新增Jenkins節點Jenkins
- 【故障公告】Kubernetes 叢集節點當機造成部落格站點故障