クラスターが動作中の場合は、停止してください。 また、デプロイメント・マネージャーと NodeA のノード・エージェントが 動作していることを確認してください。コマンド・シェルを開き、 デプロイメント・マネージャーの ¥bin ディレクトリーに移動します。先に作成した policyPK1_startup.properties も デプロイメント・マネージャーの ¥bin ディレクトリーにあることを確認します。
wpfadmin createpolicy policyPK1_startup.properties
生成される 出力は次のようになります。そうでない場合は、プロパティー・ファイルを検査します。wsadmin -lang jython -f wpfadmin.pty createPolicy policyPK1_startup.properties WASX7209I: Connected to process "Deployment Manager" on node CellManager using SOAP connector; The type of process is: DeploymentManager The policy PK1StartupPolicy has been created
<policies xmi:type="coregroup:OneOfNPolicy" xmi:id="OneOfNPolicy_1097944892103" name="PK1StartupPolicy" description="WPF Cluster Scoped Partition Policy Extended PK000001 Start" policyFactory="com.ibm.ws.hamanager.coordinator.policy. impl.OneOfNPolicyFactory" isAlivePeriodSec="-1" quorumEnabled="true" failback="true" preferredOnly="true" preferredServers="CoreGroupServer_1097678779756 CoreGroupServer_1097678774418"> <MatchCriteria xmi:id="MatchCriteria_1097944898452" name="-gt" value="-p" description=",None"/> <MatchCriteria xmi:id="MatchCriteria_1097944898532" name="-ps" value="-c" description=",None"/> <MatchCriteria xmi:id="MatchCriteria_1097944898582" name="-pn" value="PK000001" description=",None"/> </policies>ノード・エージェントが実行中である場合、コア・グループ・ファイルが伝搬されます。 これは、coregroup.xml ファイルで前掲のエントリーを探すことにより確認できます。 伝搬されない場合は、このノードはクラスター内の他のノードと同期して、コア・グループのポリシー更新を 他のノードにも伝搬する場合があります。そのためには、ノード・エージェントを使用不可にしてから、 syncNode コマンドを使用します。
管理コンソールを使用し、クラスターを開始します。
wpfadmin listActive
wsadmin -lang jython -f wpfadmin.pty listActive WASX7209I: Connected to process "Deployment Manager" on node CellManager using SOAP connector; The type of process is: DeploymentMana ger WPFC0050I: Application WPFKeyBasedPartitionSample, Partition PK000010: Server Cell¥NodeA¥cluster_member_2 WPFC0050I: Application WPFKeyBasedPartitionSample, Partition PK000009: Server Cell¥NodeA¥cluster_member_2 WPFC0050I: Application WPFKeyBasedPartitionSample, Partition PK000008: Server Cell¥NodeA¥cluster_member_2 WPFC0050I: Application WPFKeyBasedPartitionSample, Partition PK000007: Server Cell¥NodeA¥cluster_member_2 WPFC0050I: Application WPFKeyBasedPartitionSample, Partition PK000006: Server Cell¥NodeA¥cluster_member_2 WPFC0050I: Application WPFKeyBasedPartitionSample, Partition PK000005: Server Cell¥NodeA¥cluster_member_2 WPFC0050I: Application WPFKeyBasedPartitionSample, Partition PK000004: Server Cell¥NodeA¥cluster_member_2 WPFC0050I: Application WPFKeyBasedPartitionSample, Partition PK000003: Server Cell¥NodeA¥cluster_member_2 WPFC0050I: Application WPFKeyBasedPartitionSample, Partition PK000002: Server Cell¥NodeA¥cluster_member_2 WPFC0050I: Application WPFKeyBasedPartitionSample, Partition PK000001: Server Cell¥NodeA¥cluster_member_1すべての区画が cluster_member_1 ではなく、cluster_member_2 で開始しています。
ポリシーを更新するには、 -pn オプションを更新して PK000002 が適用されるように調整します。 または 2 番目のポリシーを別途作成します。または、stopserver cluster_member_1 というように、 cluster member 1 を停止することもできます。 この場合は、フェイルバックが設定されているため、高可用性 (HA) マネージャー では cluster_member_2 での活動化が試行されます。
wpfadmin updatePolicy "PK1StartupPolicy" -failback true -preferredOnly
false -preferredServers NodeA/cluster_member_2,NodeA/cluster_member_1
wsadmin -lang jython -f wpfadmin.pty updatePolicy PK1StartupPolicy -failback true -preferredOnly false -preferredServers NodeA/cluster_member_2, NodeA/cluster_member_1 WASX7209I: Connected to process "Deployment Manager" on node CellManager using SOAP connector; The type of process is: DeploymentManager The policy PK1StartupPolicy has been updated
wpfadmin deletePolicy PK1StartupPolicy
wsadmin -lang jython -f wpfadmin.pty deletePolicy PK1StartupPolicy WASX7209I: Connected to process "Deployment Manager" on node CellManager using SOAP connector; The type of process is: DeploymentMana ger The policy PK1StartupPolicy has been deletedクラスターが再始動すると、デフォルトの区画配置の開始アルゴリズムに戻ります。選択済みの初期サーバーを変更する方法は他にもあります。ここで紹介した例が最適な方法というわけではありません。詳しくは、HA マネージャー・ポリシーのセクションを参照してください。
Related tasks
トランザクションのパフォーマンス統計のモニター