Show Table of Contents
5.4. フェンスデバイスの作成
次のコマンドで stonith デバイスを作成します。
pcs stonith create stonith_id stonith_device_type [stonith_device_options]
# pcs stonith create MyStonith fence_virt pcmk_host_list=f1 op monitor interval=30s
各ノードの異なるポートを使って複数のノードに 1 つのフェンスデバイスを使用する場合はノードごと別々にデバイスを作成する必要はありません。
pcmk_host_map オプションを使用すると、ノードとポートのマッピングを定義できます。たとえば、次のコマンドは west-apc という APC 電源スイッチを使用し、ノード west-13 に 15 番ポートを使用する myapc-west-13 という名前のフェンスデバイスを 1 つ作成します。
# pcs stonith create myapc-west-13 fence_apc pcmk_host_list="west-13" ipaddr="west-apc" login="apc" passwd="apc" port="15"
以下の例は、15 番ポートを使用するフェンスノード
west-13、17 番ポートを使用するフェンスノード west-14、18 番ポートを使用するフェンスノード west-15、および 19 番ポートを使用するフェンスノード west-16 に west-apc という APC 電源スイッチを使用します。
# pcs stonith create myapc fence_apc pcmk_host_list="west-13,west-14,west-15,west-16" pcmk_host_map="west-13:15;west-14:17;west-15:18;west-16:19" ipaddr="west-apc" login="apc" passwd="apc" 
Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.