ページ ツリー

比較バージョン

キー

  • この行は追加されました。
  • この行は削除されました。
  • 書式設定が変更されました。

...

情報
iconfalse
titlePDFファイルダウンロード

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

...

パネル
borderColorgray
borderWidth1
borderStylesolid
title実行コマンド

p4 -u super -p master-server:port server nomandatory

② 設定を修正・追加します

...

パネル
borderColorgray
borderWidth1
borderStylesolid
title実行コマンド

p4 -u super -p master-server:port user -f service

② 設定を修正・追加します

...

パネル
borderColorgray
borderWidth1
borderStylesolid
title実行コマンド

p4 -u super -p master-server:port passwd service

パネル
borderColorgray
borderWidth1
borderStylesolid
titleパスワード設定

Enter new password: (任意のパスワードを入力します)
Re-enter new password: (確認のため同じパスワードを入力します)

...

パネル
borderColorgray
borderWidth1
borderStylesolid
title実行コマンド

p4 -u super -p master-server:port admin checkpoint checkpoint

...

パネル
borderColorgray
borderWidth1
borderStylesolid
title実行コマンド

p4 -p master_server:port -u service -E "P4TICKETS=/p4root_st/.p4tickets" login

...

パネル
borderColorgray
borderWidth1
borderStylesolid
title実行コマンド

p4 -u super -p standby_server:port pull -lj

パネル
borderColorgray
borderWidth1
borderStylesolid
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

...

パネル
borderColorgray
borderWidth1
borderStylesolid
title実行コマンド

p4 -u super -p standby-server:port failover -i -s commit -w 10 -F

情報
title解説

-i ………… フェイルオーバー動作中にマスタサーバを無視するオプションです
-s ………… serverID 切り替えるサーバ(今回はマスタサーバ)のserverIDを指定します
-w 10 10…… フェイルオーバー実行までの待機時間を“秒”で指定します。今回は10秒としています
-F  F………… 強制的にフェイルオーバーを実行します(※マニュアルに記載のないオプションです)

パネル
borderColorgray
borderWidth1
borderStylesolid
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サーバが再起動され、マスタサーバへと切り替わります。

パネル
borderColorgray
borderWidth1
borderStylesolid
title実行コマンド

p4 -u super -p standby-server:port failover -i -s commit -w 10 -F -y

パネル
borderColorgray
borderWidth1
borderStylesolid
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サーバが再起動され、マスタサーバへと切り替わります。

構築・テストは以上です。