...
Для этого на любом работающем узле кластера:
- Настроить Задать ограничения на запуск ресурса "p_iSCSITarget":
Command sudo pcs constraint colocation add "p_iSCSITarget" with Promoted "p_DRBD-clone"
Command sudo pcs constraint order promote "p_DRBD-clone" then start "p_iSCSITarget"
Блок кода Adding p_DRBD-clone p_iSCSITarget (kind: Mandatory) (Options: first-action=promote then-action=start)
- Настроить Задать ограничения на запуск ресурса "p_iSCSI_lun1":
Command sudo pcs constraint colocation add "p_iSCSI_lun1" with "p_iSCSITarget" INFINITY
Command sudo pcs constraint order "p_iSCSITarget" then "p_iSCSI_lun1"
Блок кода Adding p_iSCSITarget p_iSCSI_lun1 (kind: Mandatory) (Options: first-action=start then-action=start)
- Настроить Задать ограничения на запуск ресурса "ClusterIP":
Command sudo pcs constraint colocation add "ClusterIP" with "p_iSCSI_lun1" INFINITY
Command sudo pcs constraint order "p_iSCSI_lun1" then "ClusterIP"
Блок кода Adding p_iSCSI_lun1 ClusterIP (kind: Mandatory) (Options: first-action=start then-action=start)
- Проверить созданные ограничения:
Вывод:Command sudo pcs constraint Блок кода Location Constraints: Ordering Constraints: promote p_DRBD-clone then start p_iSCSITarget (kind:Mandatory) start p_iSCSITarget then start p_iSCSI_lun1 (kind:Mandatory) start p_iSCSI_lun1 then start ClusterIP (kind:Mandatory) Colocation Constraints: ClusterIP with p_iSCSI_lun1 (score:INFINITY) p_iSCSITarget with p_DRBD-clone (score:INFINITY) (rsc-role:Started) (with-rsc-role:Promoted) p_iSCSI_lun1 with p_iSCSITarget (score:INFINITY) Ticket Constraints:
...