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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- GP standby切換成masterAST
- 雙master hdfs namenode 全部進入standby 狀態的解救方法AST
- standby新增檔案錯誤的解決方法
- MySQL Master/Slave Master/MasterMySqlAST
- 為物理備庫新增standby logfile group相關事則
- Oracle10gR2 Logical Standby (zt)Oracle
- Recover physical standby database after loss of archive log(2)DatabaseHive
- mysqldump --master-data=2引數的含義MySqlAST
- spark core原始碼分析2 master啟動流程Spark原始碼AST
- ! [rejected] master -> master (fetch first)AST
- Mysql5.6 Master+MasterMySqlAST
- [轉帖]mysqldump --master-data=2 --single-transactionMySqlAST
- Mongodb的master-slave模式與master-master模式實驗MongoDBAST模式
- change master 未指定master_log_fileAST
- 物理Standby資料庫及邏輯Standby資料庫(Physical Standby & Logical Standby)資料庫
- 11gR2新特性:STANDBY_MAX_DATA_DELAY
- Oracle 9i R2 配置 Logical StandbyOracle
- 11gR2 Active Data Guard 閃回 - flashback database / snapshot standby - 2Database
- Log新增MongoDB驅動2MongoDB
- Git branching: master vs. origin/master vs. remotes/origin/masterGitASTREM
- oracle10g R2 logical standby switchover to primaryOracle
- oracle 10g rman duplicate target database for standby會自動新增臨時檔案Oracle 10gDatabase
- show master logs 和 show master status 區別AST
- 【HBase】start master 與 start master --backup 的區別AST
- standby databaseDatabase
- git rebase masterGitAST
- Spark master standalongSparkAST
- Redis master and slaveRedisAST
- MySQL master/slaveMySqlAST
- Scrum Master JobGPTScrumASTGPT
- item2 新增多個 SSH
- Convert a Physical Standby Database into a Snapshot Standby DatabaseDatabase
- 物理standby和邏輯standby的區別
- dataguard 搭建 oracle_sid不同 2節點 primary+standbyOracle
- dataguard 搭建 oracle_sid相同 2節點 primary+standbyOracle
- Oracle11g R2之Dataguard搭建物理standbyOracle
- Oracle Data Guard Linux 平臺 Physical Standby 搭建例項 -2OracleLinux
- Oracle10g Data Guard (Standby) 理論與實踐 2Oracle