10.11. フェンスデバイスの修正と削除
次のコマンドを使用して、現在設定されているフェンシングデバイスのオプションを変更または追加します。
pcs stonith update stonith_id [stonith_device_options]
pcs stonith update stonith_id [stonith_device_options]
pcs stonith update コマンドを使用して SCSI フェンシングデバイスを更新すると、フェンシングリソースが実行されていたものと同じノードで実行中のすべてのリソースが再起動されます。以下のコマンドのいずれかのバージョンを使用して、他のクラスターリソースを再起動しなくても SCSI デバイスを更新できます。RHEL 9.1 以降では、SCSI フェンスデバイスをマルチパスデバイスとして設定できます。
pcs stonith update-scsi-devices stonith_id set device-path1 device-path2 pcs stonith update-scsi-devices stonith_id add device-path1 remove device-path2
pcs stonith update-scsi-devices stonith_id set device-path1 device-path2
pcs stonith update-scsi-devices stonith_id add device-path1 remove device-path2
現在の設定からフェンスデバイスを削除するには、pcs stonith delete stonith_id コマンドを使用します。以下のコマンドを使用すると、フェンスデバイス stonith1 が削除されます。
pcs stonith delete stonith1
# pcs stonith delete stonith1
RHEL 9.6 以降では、1 つのコマンドで複数のフェンスデバイスを削除できます。以下のコマンドは、フェンスデバイス stonith1 および stonith2 を削除します。
pcs stonith delete stonith1 stonith2
# pcs stonith delete stonith1 stonith2