<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'>Hello,<div><br></div><div id="">I am working on configuring a 2-node cluster with 3 DRBD devices, their corresponding filesystem mounts, and a VirtualDomain resource agent. I want to add the appropriate constraints to pacemaker so that these resources only start together on the same node, and that they start in the proper order. I have added the DRBD devices to a Master/Slave object, as outlined in <a href="http://www.linbit.com/fileadmin/tech-guides/ha-nfs.pdf" style="font-size: 12pt; ">http://www.linbit.com/fileadmin/tech-guides/ha-nfs.pdf</a><span style="font-size: 12pt; " id="">. I would like them to start in the following order (and stop in the reverse order):</span></div><div>ms_drbd_r0</div><div>ms_drbd_r1</div><div>ms_drbd_r2</div><div>p_filesystem_r0</div><div>p_filesystem_r1</div><div id="">p_filesystem_r2</div><div id="aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown">p_virtualdomain_vm0</div><div><br></div><div id="">I added the 3 filesystem primitives to a group, g_filesystems, which simplifies this somewhat. Are primitives in a group started in the order they are listed in a group, and stopped in the opposite order?</div><div><br></div><div id="">I read through the Pacemaker Explained documentation on colocation and order, <a href="http://www.clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Pacemaker_Explained/s-resource-sets-ordering.html" style="font-size: 12pt; ">http://www.clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Pacemaker_Explained/s-resource-sets-ordering.html</a> however it seems to mostly address the XML and not how to add constraints via the crm console (crm configure). It seems that I cannot add the Master/Slave objects to a group, so I will need to specify each of them individual in the constraints. Is it possible to include more than 2 resources to a constraint, e.g.</div><div id="">colocation c_all_on_one inf: ms_drbd_r0:Master ms_drbd_r1:Master ms_drbd_r2:Master g_filesystems p_virtualdomain_vm0</div><div id=""><br></div><div id="">Or, can a single colocation or order constraint only contain 2 resources? If so would I need to chain several constraints together, like this:</div><div id="">colocation c_r0-r1 inf: ms_drbd_r0:Master ms_drbd_r1:Master</div><div id="">colocation c_r1-r2 inf: ms_drbd_r1:Master ms_drbd:r2:Master</div><div id="">colocation c_r2-fs inf: ms_drbd_r2:Master g_filesystems</div><div id="aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown">colocation c_fs_vm0 inf: g_filesystems p_virtualdomain_vm0</div><div id="aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown"><br></div><div id="aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown">Which syntax is supported and how can I achieve these colocation and order constraints?</div><div id="aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown"><br></div><div id="aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown">Thanks,</div><div id="aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown"><br></div><div id="aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown">Andrew</div></div></body></html>