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 及更高版本中,您可以使用单个命令删除多个隔离设备。以下命令删除隔离设备 stonith1 和 stonith2。
pcs stonith delete stonith1 stonith2
# pcs stonith delete stonith1 stonith2