<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                # Bring a demoted primary node back online > 原文:[https://docs.gitlab.com/ee/administration/geo/disaster_recovery/bring_primary_back.html](https://docs.gitlab.com/ee/administration/geo/disaster_recovery/bring_primary_back.html) * [Configure the former **primary** node to be a **secondary** node](#configure-the-former-primary-node-to-be-a-secondary-node) * [Promote the **secondary** node to **primary** node](#promote-the-secondary-node-to-primary-node) * [Restore the **secondary** node](#restore-the-secondary-node) # Bring a demoted primary node back online[](#bring-a-demoted-primary-node-back-online-premium-only "Permalink") 故障轉移后,可以故障回復到降級的**主**節點以還原原始配置. 此過程包括兩個步驟: 1. 使舊的**主**節點成為**輔助**節點. 2. 將**輔助**節點提升為**主要**節點. **警告:**如果您對該節點上的數據一致性有任何疑問,我們建議從頭開始進行設置. ## Configure the former **primary** node to be a **secondary** node[](#configure-the-former-primary-node-to-be-a-secondary-node "Permalink") 由于先前的**主要**節點將與當前的**主要**節點不同步,因此第一步是使先前的**主要**節點保持最新. 請注意,將先前的**主**節點重新同步后,不會重播存儲在磁盤上的數據(如存儲庫和上載),這可能會導致磁盤使用率增加. 或者,您可以[設置一個新的**輔助** GitLab 實例](../replication/index.html#setup-instructions)來避免這種情況. 要使以前的**主**節點保持最新狀態: 1. SSH 進入落后的前**主**節點. 2. 確保所有服務都已啟動: ``` sudo gitlab-ctl start ``` **注意:**如果[永久禁用了**主**節點](index.html#step-2-permanently-disable-the-primary-node) ,則需要立即撤消這些步驟. 對于 Debian / Ubuntu,您只需要運行`sudo systemctl enable gitlab-runsvdir` . 對于 CentOS 6,您需要從頭開始安裝 GitLab 實例,并按照[安裝說明](../replication/index.html#setup-instructions)將其設置為**輔助**節點. 在這種情況下,您無需執行下一步.**注意:**如果在災難恢復過程中[更改了](index.html#step-4-optional-updating-the-primary-domain-dns-record)該節點[的 DNS 記錄](index.html#step-4-optional-updating-the-primary-domain-dns-record) ,則可能需要在此過程中[阻止對該節點的所有寫操作](planned_failover.html#prevent-updates-to-the-primary-node) . 3. [設置數據庫復制](../replication/database.html) . 請注意,在這種情況下, **主**節點是指當前的**主**節點, **輔助**節點是指先前的**主**節點. 如果丟失了原始**主**節點,請按照[設置說明](../replication/index.html#setup-instructions)設置新的**輔助**節點. ## Promote the **secondary** node to **primary** node[](#promote-the-secondary-node-to-primary-node "Permalink") 初始復制完成并且**主**節點和**輔助**節點緊密同步后,您可以執行[計劃的故障轉移](planned_failover.html) . ## Restore the **secondary** node[](#restore-the-secondary-node "Permalink") 如果你的目標是再有兩個節點,你需要把你的**輔助**節點重新聯機,以及通過重復第一步( [配置前**主**節點是**輔助**節點](#configure-the-former-primary-node-to-be-a-secondary-node) )為**輔助**節點.
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看