2 新增standby master
--------- 增加 master 的 mirror----------
在 smdw 上 root 執行
mkdir -p /greenplum/gpdata/master
chown gpadmin:gpadmin /greenplum/gpdata/master
修改 hosts 檔案
10.102.254.24 sdw1
10.102.254.25 sdw2
10.102.254.26 sdw3 smdw
10.102.254.27 mdw
在 mdw 上 gpadmin 執行
gpinitstandby -s smdw
[gpadmin@mdw ~]$ gpinitstandby -s smdw
20200419:00:58:17:002040 gpinitstandby:mdw:gpadmin-[INFO]:-Validating environment and parameters for standby initialization...
20200419:00:58:18:002040 gpinitstandby:mdw:gpadmin-[INFO]:-Checking for filespace directory /greenplum/gpdata/master/gpseg-1 on smdw
20200419:00:58:18:002040 gpinitstandby:mdw:gpadmin-[INFO]:------------------------------------------------------
20200419:00:58:18:002040 gpinitstandby:mdw:gpadmin-[INFO]:-Greenplum standby master initialization parameters
20200419:00:58:18:002040 gpinitstandby:mdw:gpadmin-[INFO]:------------------------------------------------------
20200419:00:58:18:002040 gpinitstandby:mdw:gpadmin-[INFO]:-Greenplum master hostname = mdw
20200419:00:58:18:002040 gpinitstandby:mdw:gpadmin-[INFO]:-Greenplum master data directory = /greenplum/gpdata/master/gpseg-1
20200419:00:58:18:002040 gpinitstandby:mdw:gpadmin-[INFO]:-Greenplum master port = 5432
20200419:00:58:18:002040 gpinitstandby:mdw:gpadmin-[INFO]:-Greenplum standby master hostname = smdw
20200419:00:58:18:002040 gpinitstandby:mdw:gpadmin-[INFO]:-Greenplum standby master port = 5432
20200419:00:58:18:002040 gpinitstandby:mdw:gpadmin-[INFO]:-Greenplum standby master data directory = /greenplum/gpdata/master/gpseg-1
20200419:00:58:18:002040 gpinitstandby:mdw:gpadmin-[INFO]:-Greenplum update system catalog = On
20200419:00:58:18:002040 gpinitstandby:mdw:gpadmin-[INFO]:------------------------------------------------------
20200419:00:58:18:002040 gpinitstandby:mdw:gpadmin-[INFO]:- Filespace locations
20200419:00:58:18:002040 gpinitstandby:mdw:gpadmin-[INFO]:------------------------------------------------------
20200419:00:58:18:002040 gpinitstandby:mdw:gpadmin-[INFO]:-pg_system -> /greenplum/gpdata/master/gpseg-1
Do you want to continue with standby master initialization? Yy|Nn (default=N):
> y
20200419:00:58:34:002040 gpinitstandby:mdw:gpadmin-[INFO]:-Syncing Greenplum Database extensions to standby
20200419:00:58:35:002040 gpinitstandby:mdw:gpadmin-[INFO]:-The packages on smdw are consistent.
20200419:00:58:35:002040 gpinitstandby:mdw:gpadmin-[INFO]:-Adding standby master to catalog...
20200419:00:58:35:002040 gpinitstandby:mdw:gpadmin-[INFO]:-Database catalog updated successfully.
20200419:00:58:35:002040 gpinitstandby:mdw:gpadmin-[INFO]:-Updating pg_hba.conf file...
20200419:00:58:36:002040 gpinitstandby:mdw:gpadmin-[INFO]:-pg_hba.conf files updated successfully.
20200419:00:58:38:002040 gpinitstandby:mdw:gpadmin-[INFO]:-Updating filespace flat files...
20200419:00:58:38:002040 gpinitstandby:mdw:gpadmin-[INFO]:-Filespace flat file updated successfully.
20200419:00:58:38:002040 gpinitstandby:mdw:gpadmin-[INFO]:-Starting standby master
20200419:00:58:38:002040 gpinitstandby:mdw:gpadmin-[INFO]:-Checking if standby master is running on host: smdw in directory: /greenplum/gpdata/master/gpseg-1
20200419:00:58:38:002040 gpinitstandby:mdw:gpadmin-[WARNING]:-Unable to cleanup previously started standby: 'Warning: the ECDSA host key for 'smdw' differs from the key for the IP address '10.102.254.26'
Offending key for IP in /home/gpadmin/.ssh/known_hosts:1
Matching host key in /home/gpadmin/.ssh/known_hosts:9
'
20200419:00:58:40:002040 gpinitstandby:mdw:gpadmin-[INFO]:-Cleaning up pg_hba.conf backup files...
20200419:00:58:40:002040 gpinitstandby:mdw:gpadmin-[INFO]:-Backup files of pg_hba.conf cleaned up successfully.
20200419:00:58:40:002040 gpinitstandby:mdw:gpadmin-[INFO]:-Successfully created standby master on smdw
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/500314/viewspace-2687055/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 雙master hdfs namenode 全部進入standby 狀態的解救方法AST
- standby新增檔案錯誤的解決方法
- [20181113]Logical Standby建立2.txt
- DATAGUARD手記(PRIMARY+2STANDBY)(一)
- DATAGUARD手記(PRIMARY+2STANDBY)(二)
- Convert a Physical Standby Database into a Snapshot Standby DatabaseDatabase
- 10GR2下建立物理standby STEP BY STEP
- dataguard 搭建 oracle_sid相同 2節點 primary+standbyOracle
- dataguard 搭建 oracle_sid不同 2節點 primary+standbyOracle
- ! [rejected] master -> master (fetch first)AST
- [20230425]注意snapshot standby與activate standby的區別.txt
- [轉帖]mysqldump --master-data=2 --single-transactionMySqlAST
- Oracle的快照standbyOracle
- Performing a Failover to a Physical Standby DatabaseORMAIDatabase
- Ionic 2 新增頁面
- 邏輯STANDBY建立中碰到ORA-16146: standby destination control file enqueue unavailableENQAI
- 主庫到standby報錯解決:Error 12154 received logging on to the standby ORA-12154Error
- 【DG】Data Guard搭建(physical standby)
- Setup Standby Database on One PC(轉)Database
- Oracle DG Standby Database型別OracleDatabase型別
- Oracle DG建立Physical Standby DatabaseOracleDatabase
- Oracle DG建立Logical Standby DatabaseOracleDatabase
- 【等待事件】standby query scn advance事件
- git merge origin master git merge origin/master區別GitAST
- Log新增MongoDB驅動2MongoDB
- git rebase masterGitAST
- 1248:Dungeon MasterAST
- Scrum Master JobGPTScrumASTGPT
- [原始碼解析] TensorFlow 分散式環境(2)---Master 靜態邏輯原始碼分散式AST
- item2 新增多個 SSH
- MySQL5.7 Master-Master主主搭建for Centos7MySqlASTCentOS
- Master-Worker模式AST模式
- Master-Worker 模式AST模式
- DocumentDB 報錯“not master”AST
- master..spt_valuesAST
- C. Game MasterGAMAST
- WPF master detail viewASTAIView
- Scrum Master 生存指南ScrumAST