greenplum 激活standby 和恢复 master 原有角色

     定义:server1=(master) server2=(standby)
  1. Active standby server when master down. 
    gpactivatestandby -d /data/master/gpseg-1 -f (on server2)
  2. Change server1 as standby . 
     gpinitstandby -s server1 (on server2)
     gpactivatestandby -d /data/master/gpseg-1 -f (on server1)
  3. restore server1 as master
    gpstop -m (on server2)
    gpactivatestandby -d /data/master/gpseg-1 -f (on server1)
  4. restore server2 as standby
    gpinitstandby -s  server2 (on server1)


    MARK: pay attention to store or remove 
    /data/master/gpseg-1 when do gpactivatestandby operation.

你可能感兴趣的:(greenplum 激活standby 和恢复 master 原有角色)