2.3.6. フェンスメソッドとフェンスインスタンスを削除する
クラスター設定からフェンスメソッドを削除する場合は次のコマンドを実行します。
ccs -h host --rmmethod method node
ccs -h host --rmmethod method node
例えば、
node01.example.com に設定した APC と言うフェンスメソッドをクラスターノード node01.example.com のクラスター設定ファイルから削除するには以下のコマンドを実行します。
ccs -h node01.example.com --rmmethod APC node01.example.com
ccs -h node01.example.com --rmmethod APC node01.example.com
任意のフェンスデバイスの全フェンスインスタンスをフェンスメソッドから削除する場合は以下のコマンドを実行します。
ccs -h host --rmfenceinst fencedevicename node method
ccs -h host --rmfenceinst fencedevicename node method
例えば、クラスターノード
node01.example.com のクラスター設定ファイルから node01.example.com ノードに対して設定した APC-dual と言うメソッド内の apc1 と言うフェンスデバイスの全インスタンスを削除する場合は以下のコマンドを実行します。
ccs -h node01.example.com --rmfenceinst apc1 node01.example.com APC-dual
ccs -h node01.example.com --rmfenceinst apc1 node01.example.com APC-dual