首页 > 数据库 > mysql教程 > greenplum激活standby和恢复master原有角色

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

WBOY
发布: 2016-06-07 15:22:34
原创
1635 人浏览过

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

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


    MARK: pay attention to store or remove /data/master/gpseg-1 when do gpactivatestandby operation.
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板