[ClusterLabs] Antw: HA - order lost when group made

Ulrich Windl Ulrich.Windl at rz.uni-regensburg.de
Wed Nov 20 06:23:49 EST 2019


>>> "John Goutbeck" <John.Goutbeck at newsignal.ca> schrieb am 19.11.2019 um 22:19
in
Nachricht <5DD45C62020000F500006B80 at mx1.newsignal.ca>:
> HA ‑ order lost when group made
> 
> SLES 15 SP1 + HA
> 
> nss‑sn02:~ # rpm ‑qa | grep pacem
> pacemaker‑cli‑1.1.18+20180430.b12c320f5‑3.15.1.x86_64
> pacemaker‑1.1.18+20180430.b12c320f5‑3.15.1.x86_64
> libpacemaker3‑1.1.18+20180430.b12c320f5‑3.15.1.x86_64
> nss‑sn02:~ # rpm ‑qa | grep crm
> crmsh‑scripts‑4.1.0+git.1569593061.35f57072‑3.14.1.noarch
> crmsh‑4.1.0+git.1569593061.35f57072‑3.14.1.noarch
> 
> 2 node HA cluster setup for DRBD storage
> 
> Made an order constraint for resource virtual IPs, iSCSI targets and iSCSI 
> LUs.
> 
> These resources need to be started in order
> Te resources can be start individually (and stopped individually) (before 
> order constraint is made)
> 
> order o_drbd02_before_iscsitgt02 Serialize: p‑ip‑14‑202:start
p‑ip‑15‑202:start 
> p_target_drbd02:start p‑lu‑drbd02:start
> or
> order o_drbd02_before_iscsitgt02 Serialize: ( p‑ip‑14‑202:start
p‑ip‑15‑202:start 
> ) ( p_target_drbd02:start ) ( p‑lu‑drbd02:start )
> 
>> 
> Now to make a group resource with the same resources, but when the group is

> made, the order constraint is gone

groups always had implicit colocation and ordering.

> 
> group g‑drbd02 p‑ip‑14‑202 p‑ip‑15‑202 p‑lu‑drbd02 p_target_drbd02 meta 
> target‑role=Stopped
> 
> Adding the group with 'crm configure edit' returns these comments
> 
> nss‑sn02:~ # crm configure edit
> INFO: modified colocation:cl‑drbd02 from p‑ip‑14‑202 to g‑drbd02
> INFO: modified order:o_drbd03_before_iscsitgt from p‑ip‑14‑202 to g‑drbd02
> INFO: modified colocation:cl‑drbd03 from p‑ip‑14‑202 to g‑drbd02
> INFO: modified order:o_drbd02_before_iscsitgt02 from p‑ip‑14‑202 to
g‑drbd02
> INFO: modified order:o_drbd02_before_iscsitgt02 from p‑ip‑15‑202 to
g‑drbd02
> INFO: modified order:o_drbd02_before_iscsitgt02 from p‑lu‑drbd02 to
g‑drbd02
> INFO: modified order:o_drbd02_before_iscsitgt02 from p_target_drbd02 to 
> g‑drbd02
> 
> How can a order be made of the same group resources?    





More information about the Users mailing list