...
情報 |
---|
icon | false |
---|
title | PDFファイルダウンロード |
---|
|
DR構築マニュアル.pdf |
本構築作業の条件は以下の通りです
適宜実環境に合わせて変更してください
| マスター | スタンバイ | Perforce super user |
サーバ名 | commit | nomandatory | super |
ServerID | commit | nomandatory | レプリケーション用ユーザ名 |
Option | - | nomandatory | service |
server-service | commit-server | standby | |
IP | 192.168.56.102 | 192.168.56.104 |
Port | 1666 | 1666 |
P4ROOT | /commit | /p4root_st |
...
パネル |
---|
borderColor | gray |
---|
borderWidth | 1 |
---|
borderStyle | solid |
---|
title | 実行コマンド |
---|
|
p4 -u super -p master-server:port server nomandatory |
② 設定を修正・追加します
...
パネル |
---|
borderColor | gray |
---|
borderWidth | 1 |
---|
borderStyle | solid |
---|
title | 実行コマンド |
---|
|
p4 -u super -p master-server:port user -f service |
② 設定を修正・追加します
...
パネル |
---|
borderColor | gray |
---|
borderWidth | 1 |
---|
borderStyle | solid |
---|
title | 実行コマンド |
---|
|
p4 -u super -p master-server:port passwd service |
パネル |
---|
borderColor | gray |
---|
borderWidth | 1 |
---|
borderStyle | solid |
---|
title | パスワード設定 |
---|
|
Enter new password: (任意のパスワードを入力します) Re-enter new password: (確認のため同じパスワードを入力します) |
...
パネル |
---|
borderColor | gray |
---|
borderWidth | 1 |
---|
borderStyle | solid |
---|
title | 実行コマンド |
---|
|
p4 -u super -p master-server:port admin checkpoint checkpoint |
...
パネル |
---|
borderColor | gray |
---|
borderWidth | 1 |
---|
borderStyle | solid |
---|
title | 実行コマンド |
---|
|
p4 -p master_server:port -u service -E "P4TICKETS=/p4root_st/.p4tickets" login
|
...
パネル |
---|
borderColor | gray |
---|
borderWidth | 1 |
---|
borderStyle | solid |
---|
title | 実行コマンド |
---|
|
p4 -u super -p standby_server:port pull -lj |
パネル |
---|
borderColor | gray |
---|
borderWidth | 1 |
---|
borderStyle | solid |
---|
title | 表示されるメッセージ例 |
---|
|
Current replica journal state is: Journal 1, Sequence 4878. Current master journal state is: Journal 1, Sequence 4878. The statefile was last modified at: 2019/10/16 15:16:27. The replica server time is currently: 2019/10/16 15:19:11 +0900 JST |
...
パネル |
---|
borderColor | gray |
---|
borderWidth | 1 |
---|
borderStyle | solid |
---|
title | 実行コマンド |
---|
|
p4 -u super -p standby-server:port failover -i -s commit -w 10 -F |
情報 |
---|
|
-i ………… フェイルオーバー動作中にマスタサーバを無視するオプションです -s ………… serverID 切り替えるサーバ(今回はマスタサーバ)のserverIDを指定します -w 10 10…… フェイルオーバー実行までの待機時間を“秒”で指定します。今回は10秒としています -F F………… 強制的にフェイルオーバーを実行します(※マニュアルに記載のないオプションです) |
パネル |
---|
borderColor | gray |
---|
borderWidth | 1 |
---|
borderStyle | solid |
---|
title | 表示されるメッセージ |
---|
|
Checking if failover might be possible ... This failover requires that this server have the 'mandatory' option set since the server from which failover is to occur is not participating in the failover. Checking for archive file content not transferred ... Verifying content of recently updated archive files ... After addressing any reported issues that might prevent failover, use --yes or -y to execute the failover. ※異なるメッセージ・エラーが表示される場合は、テストを中止し、弊社サポートまでご連絡ください。 |
② フェイルオーバーの実行
コマンド実行後、自動的にPerforceサーバが再起動され、マスタサーバへと切り替わります。
パネル |
---|
borderColor | gray |
---|
borderWidth | 1 |
---|
borderStyle | solid |
---|
title | 実行コマンド |
---|
|
p4 -u super -p standby-server:port failover -i -s commit -w 10 -F -y |
パネル |
---|
borderColor | gray |
---|
borderWidth | 1 |
---|
borderStyle | solid |
---|
title | 表示されるメッセージ |
---|
|
Attempting unsupported forced failover; attempting to continue through any errors encountered. This server might not be as expected after the forced failover. Starting failover process ... This failover requires that this server have the 'mandatory' option set since the server from which failover is to occur is not participating in the failover. Waiting for 'pull -L' to complete its work ... Checking for archive file content not transferred ... Verifying content of recently updated archive files ... Moving latest journalcopy'd journal into place as the active journal ... Updating configuration of the failed-over server ... Restarting this server ... Perforce Server re-starting... 自動的にPerforceサーバが再起動され、マスタサーバへと切り替わります。 |
構築・テストは以上です。