<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hi, <br>  I'm trying to figure out how to configure constraints for ocf:heartbeat:ManageRAID (RAID5) with iSCSI devices. <br><br>This is a visual representation of my resources: <br><br><font style="" face="Courier New">A: Initiator_6 |</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">B: Initiator_7 | </font><font style="" face="Courier New">--> D: ManageRAID_MD2 --> E: other stuff relying the mounted FS<br></font><font style="" face="Courier New">C: Initiator_8 |</font><br><br>These are the definitions: <br><font style="" face="Courier New">primitive Initiator_7 ocf:heartbeat:iscsi \</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">        params portal="172.20.4.12" target="iqn.2010-10.com.example:storage.drbd.iscsi040501" \</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">        op monitor interval="120" timeout="30" depth="0" \</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">primitive Initiator_8 ocf:heartbeat:iscsi \</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">        params portal="172.20.5.12" target="iqn.2010-10.com.example:storage.drbd.iscsi060701" \</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">        op monitor interval="120" timeout="30" depth="0" \</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">primitive Initiator_9 ocf:heartbeat:iscsi \</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">        params portal="172.20.6.12" target="iqn.2010-10.com.example:storage.drbd.iscsi080901" \</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">        op monitor interval="120" timeout="30" depth="0"</font><br><font style="" face="Courier New">primitive ManageRAID_MD2 ocf:heartbeat:ManageRAID \</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">        params raidname="MD2" \</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">        op monitor interval="10" timeout="0" depth="0"</font><br><br>And here my /etc/HB-ManageRAID<br><font style="" face="Courier New">MD2_UUID="dec8980a:3a7eba1a:d36d14f2:9c1f2fea"</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">MD2_DEV="md2"</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">MD2_MOUNTPOINT="/mnt/md2"</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">MD2_MOUNTOPTIONS="noatime"</font><font style="" face="Courier New"><br></font><font style="" face="Courier New">MD2_LOCALDISKS="/dev/disk/iscsi/d1e1e429899fbd06796f8c9d-part1 /dev/disk/iscsi/38275716e86870dd6c85286a-part1 /dev/disk/iscsi/e101097db6842e0814b1e537-part1"</font><br><br>And the constraints: <br><font style="" face="Courier New">      <rsc_colocation id="RAID_MD2" score="INFINITY"></font><font style="" face="Courier New"><br></font><font style="" face="Courier New">        <resource_set id="RAID_MD2-0" sequential="false"></font><font style="" face="Courier New"><br></font><font style="" face="Courier New">          <resource_ref id="Initiator_7"/></font><font style="" face="Courier New"><br></font><font style="" face="Courier New">          <resource_ref id="Initiator_8"/></font><font style="" face="Courier New"><br></font><font style="" face="Courier New">          <resource_ref id="Initiator_9"/></font><font style="" face="Courier New"><br></font><font style="" face="Courier New">        </resource_set></font><font style="" face="Courier New"><br></font><font style="" face="Courier New">        <resource_set id="RAID_MD2-1" sequential="true"></font><font style="" face="Courier New"><br></font><font style="" face="Courier New">          <resource_ref id="ManageRAID_MD2"/></font><font style="" face="Courier New"><br></font><font style="" face="Courier New">        </resource_set></font><font style="" face="Courier New"><br></font><font style="" face="Courier New">      </rsc_colocation></font><br><br>When I manually start the Initiators on the same node and then ManageRAID everything works fine as soon as one of the target goes offline.<br><br>So, here my problems: <br>1) how can I define the constraints so that the resources are automatically started in the correct order (group is not a good idea... see 2) )?<br>2) how can I define the constraints so that when one initiators goes offlinte ManagerRAID stays active (and working)?<br>3) is it possible to start ManageRAID with just 2 Initiators online?<br>4) finally, how can I recover from an Initiator failure when it comes again online?<br><br>Thank you.<br><br>Bye<br><br>Eugene<br>                                           </body>
</html>