<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-IE" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi <o:p></o:p></p>
<p class="MsoNormal">Im trying to add a drbd resource to pacemaker cluster on centos 7
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">But getting this error on pcs status <o:p></o:p></p>
<p class="MsoNormal">drbd_r0 (ocf::linbit:drbd): ORPHANED FAILED (blocked)[ vps1 vps2 ]<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">if I try and the resource from cli I get out out below<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[root@VPS1 drbd-utils]# pcs resource debug-start rep-r0<o:p></o:p></p>
<p class="MsoNormal">Operation start for rep-r0:0 (ocf:linbit:drbd) returned: 'unknown error' (1)<o:p></o:p></p>
<p class="MsoNormal">> stdout: drbdsetup - Configure the DRBD kernel module.<o:p></o:p></p>
<p class="MsoNormal">> stdout:<o:p></o:p></p>
<p class="MsoNormal">> stdout: USAGE: drbdsetup command {arguments} [options]<o:p></o:p></p>
<p class="MsoNormal">> stdout:<o:p></o:p></p>
<p class="MsoNormal">> stdout: Commands:<o:p></o:p></p>
<p class="MsoNormal">> stdout: primary - Change the role of a node in a resource to primary.<o:p></o:p></p>
<p class="MsoNormal">> stdout: secondary - Change the role of a node in a resource to secondary.<o:p></o:p></p>
<p class="MsoNormal">> stdout: attach - Attach a lower-level device to an existing replicated device.<o:p></o:p></p>
<p class="MsoNormal">> stdout: disk-options - Change the disk options of an attached lower-level device.<o:p></o:p></p>
<p class="MsoNormal">> stdout: detach - Detach the lower-level device of a replicated device.<o:p></o:p></p>
<p class="MsoNormal">> stdout: connect - Attempt to (re)establish a replication link to a peer host.<o:p></o:p></p>
<p class="MsoNormal">> stdout: new-peer - Make a peer host known to a resource.<o:p></o:p></p>
<p class="MsoNormal">> stdout: del-peer - Remove a connection to a peer host.<o:p></o:p></p>
<p class="MsoNormal">> stdout: new-path - Add a path (endpoint address pair) where a peer host should be<o:p></o:p></p>
<p class="MsoNormal">> stdout: reachable.<o:p></o:p></p>
<p class="MsoNormal">> stdout: del-path - Remove a path (endpoint address pair) from a connection to a peer<o:p></o:p></p>
<p class="MsoNormal">> stdout: host.<o:p></o:p></p>
<p class="MsoNormal">> stdout: net-options - Change the network options of a connection.<o:p></o:p></p>
<p class="MsoNormal">> stdout: disconnect - Unconnect from a peer host.<o:p></o:p></p>
<p class="MsoNormal">> stdout: resize - Reexamine the lower-level device sizes to resize a replicated<o:p></o:p></p>
<p class="MsoNormal">> stdout: device.<o:p></o:p></p>
<p class="MsoNormal">> stdout: resource-options - Change the resource options of an existing resource.<o:p></o:p></p>
<p class="MsoNormal">> stdout: peer-device-options - Change peer-device options.<o:p></o:p></p>
<p class="MsoNormal">> stdout: new-current-uuid - Generate a new current UUID.<o:p></o:p></p>
<p class="MsoNormal">> stdout: invalidate - Replace the local data of a volume with that of a peer.<o:p></o:p></p>
<p class="MsoNormal">> stdout: invalidate-remote - Replace a peer's data of a volume with the local data.<o:p></o:p></p>
<p class="MsoNormal">> stdout: pause-sync - Stop resynchronizing between a local and a peer device.<o:p></o:p></p>
<p class="MsoNormal">> stdout: resume-sync - Allow resynchronization to resume on a replicated device.<o:p></o:p></p>
<p class="MsoNormal">> stdout: suspend-io - Suspend I/O on a replicated device.<o:p></o:p></p>
<p class="MsoNormal">> stdout: resume-io - Resume I/O on a replicated device.<o:p></o:p></p>
<p class="MsoNormal">> stdout: outdate - Mark the data on a lower-level device as outdated.<o:p></o:p></p>
<p class="MsoNormal">> stdout: verify - Verify the data on a lower-level device against a peer device.<o:p></o:p></p>
<p class="MsoNormal">> stdout: down - Take a resource down.<o:p></o:p></p>
<p class="MsoNormal">> stdout: role - Show the current role of a resource.<o:p></o:p></p>
<p class="MsoNormal">> stdout: cstate - Show the current state of a connection.<o:p></o:p></p>
<p class="MsoNormal">> stdout: dstate - Show the current disk state of a lower-level device.<o:p></o:p></p>
<p class="MsoNormal">> stdout: show-gi - Show the data generation identifiers for a device on a particular<o:p></o:p></p>
<p class="MsoNormal">> stdout: connection, with explanations.<o:p></o:p></p>
<p class="MsoNormal">> stdout: get-gi - Show the data generation identifiers for a device on a particular<o:p></o:p></p>
<p class="MsoNormal">> stdout: connection.<o:p></o:p></p>
<p class="MsoNormal">> stdout: show - Show the current configuration of a resource, or of all resources.<o:p></o:p></p>
<p class="MsoNormal">> stdout: status - Show the state of a resource, or of all resources.<o:p></o:p></p>
<p class="MsoNormal">> stdout: check-resize - Remember the current size of a lower-level device.<o:p></o:p></p>
<p class="MsoNormal">> stdout: events2 - Show the current state and all state changes of a resource, or of<o:p></o:p></p>
<p class="MsoNormal">> stdout: all resources.<o:p></o:p></p>
<p class="MsoNormal">> stdout: wait-sync-volume - Wait until resync finished on a volume.<o:p></o:p></p>
<p class="MsoNormal">> stdout: wait-sync-connection - Wait until resync finished on all volumes of a<o:p></o:p></p>
<p class="MsoNormal">> stdout: connection.<o:p></o:p></p>
<p class="MsoNormal">> stdout: wait-sync-resource - Wait until resync finished on all volumes.<o:p></o:p></p>
<p class="MsoNormal">> stdout: wait-connect-volume - Wait until a device on a peer is visible.<o:p></o:p></p>
<p class="MsoNormal">> stdout: wait-connect-connection - Wait until all peer volumes of connection are<o:p></o:p></p>
<p class="MsoNormal">> stdout: visible.<o:p></o:p></p>
<p class="MsoNormal">> stdout: wait-connect-resource - Wait until all connections are establised.<o:p></o:p></p>
<p class="MsoNormal">> stdout: new-resource - Create a new resource.<o:p></o:p></p>
<p class="MsoNormal">> stdout: new-minor - Create a new replicated device within a resource.<o:p></o:p></p>
<p class="MsoNormal">> stdout: del-minor - Remove a replicated device.<o:p></o:p></p>
<p class="MsoNormal">> stdout: del-resource - Remove a resource.<o:p></o:p></p>
<p class="MsoNormal">> stdout: forget-peer - Completely remove any reference to a unconnected peer from<o:p></o:p></p>
<p class="MsoNormal">> stdout: meta-data.<o:p></o:p></p>
<p class="MsoNormal">> stdout:<o:p></o:p></p>
<p class="MsoNormal">> stdout: Use 'drbdsetup help command' for command-specific help.<o:p></o:p></p>
<p class="MsoNormal">> stdout:<o:p></o:p></p>
<p class="MsoNormal">> stdout:<o:p></o:p></p>
<p class="MsoNormal">> stdout: invalid command<o:p></o:p></p>
<p class="MsoNormal">> stdout:<o:p></o:p></p>
<p class="MsoNormal">> stdout:<o:p></o:p></p>
<p class="MsoNormal">> stdout:<o:p></o:p></p>
<p class="MsoNormal">> stderr: /usr/lib/ocf/resource.d/linbit/drbd: line 318: USAGE:: command not found<o:p></o:p></p>
<p class="MsoNormal">> stderr: /usr/lib/ocf/resource.d/linbit/drbd: line 320: Commands:: command not found<o:p></o:p></p>
<p class="MsoNormal">> stderr: /usr/lib/ocf/resource.d/linbit/drbd: line 321: primary: command not found<o:p></o:p></p>
<p class="MsoNormal">> stderr: /usr/lib/ocf/resource.d/linbit/drbd: line 322: secondary: command not found<o:p></o:p></p>
<p class="MsoNormal">> stderr: /usr/lib/ocf/resource.d/linbit/drbd: line 323: attach: command not found<o:p></o:p></p>
<p class="MsoNormal">> stderr: /usr/lib/ocf/resource.d/linbit/drbd: line 324: disk-options: command not found<o:p></o:p></p>
<p class="MsoNormal">> stderr: /usr/lib/ocf/resource.d/linbit/drbd: line 325: detach: command not found<o:p></o:p></p>
<p class="MsoNormal">> stderr: /usr/lib/ocf/resource.d/linbit/drbd: eval: line 326: syntax error near unexpected token `('<o:p></o:p></p>
<p class="MsoNormal">> stderr: /usr/lib/ocf/resource.d/linbit/drbd: eval: line 326: ` connect - Attempt to (re)establish a replication link to a peer host.'<o:p></o:p></p>
<p class="MsoNormal">> stderr: new-minor r0 0 0: sysfs node '/sys/devices/virtual/block/drbd0' (already? still?) exists<o:p></o:p></p>
<p class="MsoNormal">> stderr: r0: Failure: (161) Minor or volume exists already (delete it first)<o:p></o:p></p>
<p class="MsoNormal">> stderr: Command 'drbdsetup new-minor r0 0 0' terminated with exit code 10<o:p></o:p></p>
<p class="MsoNormal">> stderr: Aug 14 16:47:38 ERROR: r0: Called drbdadm -c /etc/drbd.conf -S new-minor r0<o:p></o:p></p>
<p class="MsoNormal">> stderr: Aug 14 16:47:38 ERROR: r0: Exit code 10<o:p></o:p></p>
<p class="MsoNormal">> stderr: Aug 14 16:47:38 ERROR: r0: Command output:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Gerry<o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-IE"><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>