Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

Для этого на любом работающем узле кластера:

  1. Настроить Задать ограничения на запуск ресурса "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)
  2. Настроить Задать ограничения на запуск ресурса "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)
  3. Настроить Задать ограничения на запуск ресурса "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)
  4. Проверить созданные ограничения:
    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:

...