52.10. 修改和删除隔离设备
使用以下命令向当前配置的隔离设备修改或添加选项。
pcs stonith update stonith_id [stonith_device_options]
pcs stonith update stonith_id [stonith_device_options]
使用 pcs stonith update
命令更新 SCSI 隔离设备会导致运行隔离资源的同一节点上运行的所有资源重启。在 RHEL 8.5 及更新的版本中,您可以使用以下命令的任一版本更新 SCSI 设备,而不会重启其他集群资源。在 RHEL 8.7 及更高版本中,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