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

WBOY
發布: 2016-06-07 15:22:34
原創
1619 人瀏覽過

定义: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
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板