[ClusterLabs] DRBD resource not starting

2020-08-15 Thread Gerry Kernan
Hi
Im trying to add a drbd resource to pacemaker cluster on centos 7


But getting this error on pcs status
drbd_r0(ocf::linbit:drbd):  ORPHANED FAILED (blocked)[ vps1 vps2 ]


if I try and the resource from cli I get out out below

[root@VPS1 drbd-utils]# pcs resource debug-start rep-r0
Operation start for rep-r0:0 (ocf:linbit:drbd) returned: 'unknown error' (1)
>  stdout: drbdsetup - Configure the DRBD kernel module.
>  stdout:
>  stdout: USAGE: drbdsetup command {arguments} [options]
>  stdout:
>  stdout: Commands:
>  stdout: primary - Change the role of a node in a resource to primary.
>  stdout: secondary - Change the role of a node in a resource to secondary.
>  stdout: attach - Attach a lower-level device to an existing replicated 
> device.
>  stdout: disk-options - Change the disk options of an attached 
> lower-level device.
>  stdout: detach - Detach the lower-level device of a replicated device.
>  stdout: connect - Attempt to (re)establish a replication link to a peer 
> host.
>  stdout: new-peer - Make a peer host known to a resource.
>  stdout: del-peer - Remove a connection to a peer host.
>  stdout: new-path - Add a path (endpoint address pair) where a peer host 
> should be
>  stdout: reachable.
>  stdout: del-path - Remove a path (endpoint address pair) from a 
> connection to a peer
>  stdout: host.
>  stdout: net-options - Change the network options of a connection.
>  stdout: disconnect - Unconnect from a peer host.
>  stdout: resize - Reexamine the lower-level device sizes to resize a 
> replicated
>  stdout: device.
>  stdout: resource-options - Change the resource options of an existing 
> resource.
>  stdout: peer-device-options - Change peer-device options.
>  stdout: new-current-uuid - Generate a new current UUID.
>  stdout: invalidate - Replace the local data of a volume with that of a 
> peer.
>  stdout: invalidate-remote - Replace a peer's data of a volume with the 
> local data.
>  stdout: pause-sync - Stop resynchronizing between a local and a peer 
> device.
>  stdout: resume-sync - Allow resynchronization to resume on a replicated 
> device.
>  stdout: suspend-io - Suspend I/O on a replicated device.
>  stdout: resume-io - Resume I/O on a replicated device.
>  stdout: outdate - Mark the data on a lower-level device as outdated.
>  stdout: verify - Verify the data on a lower-level device against a peer 
> device.
>  stdout: down - Take a resource down.
>  stdout: role - Show the current role of a resource.
>  stdout: cstate - Show the current state of a connection.
>  stdout: dstate - Show the current disk state of a lower-level device.
>  stdout: show-gi - Show the data generation identifiers for a device on a 
> particular
>  stdout: connection, with explanations.
>  stdout: get-gi - Show the data generation identifiers for a device on a 
> particular
>  stdout: connection.
>  stdout: show - Show the current configuration of a resource, or of all 
> resources.
>  stdout: status - Show the state of a resource, or of all resources.
>  stdout: check-resize - Remember the current size of a lower-level device.
>  stdout: events2 - Show the current state and all state changes of a 
> resource, or of
>  stdout: all resources.
>  stdout: wait-sync-volume - Wait until resync finished on a volume.
>  stdout: wait-sync-connection - Wait until resync finished on all volumes 
> of a
>  stdout: connection.
>  stdout: wait-sync-resource - Wait until resync finished on all volumes.
>  stdout: wait-connect-volume - Wait until a device on a peer is visible.
>  stdout: wait-connect-connection - Wait until all peer volumes of 
> connection are
>  stdout: visible.
>  stdout: wait-connect-resource - Wait until all connections are 
> establised.
>  stdout: new-resource - Create a new resource.
>  stdout: new-minor - Create a new replicated device within a resource.
>  stdout: del-minor - Remove a replicated device.
>  stdout: del-resource - Remove a resource.
>  stdout: forget-peer - Completely remove any reference to a unconnected 
> peer from
>  stdout: meta-data.
>  stdout:
>  stdout: Use 'drbdsetup help command' for command-specific help.
>  stdout:
>  stdout:
>  stdout: invalid command
>  stdout:
>  stdout:
>  stdout:
>  stderr: /usr/lib/ocf/resource.d/linbit/drbd: line 318: USAGE:: command not 
> found
>  stderr: /usr/lib/ocf/resource.d/linbit/drbd: line 320: Commands:: command 
> not found
>  stderr: /usr/lib/ocf/resource.d/linbit/drbd: line 321: primary: command not 
> found
>  stderr: /usr/lib/ocf/resource.d/linbit/drbd: line 322: secondary: command 
> not found
>  stderr: /usr/lib/ocf/resource.d/linbit/drbd: line 323: attach: command not 
> found
>  stderr: /usr/lib/ocf/resource.d/linbit/drbd: line 324: disk-options: command

Re: [ClusterLabs] DRBD resource not starting

2020-08-15 Thread Strahil Nikolov
And how did you define the drbd resource?

Best Regards,
Strahil Nikolov

На 14 август 2020 г. 18:48:32 GMT+03:00, Gerry Kernan  
написа:
>Hi
>Im trying to add a drbd resource to pacemaker cluster on centos 7
>
>
>But getting this error on pcs status
>drbd_r0(ocf::linbit:drbd):  ORPHANED FAILED (blocked)[ vps1
>vps2 ]
>
>
>if I try and the resource from cli I get out out below
>
>[root@VPS1 drbd-utils]# pcs resource debug-start rep-r0
>Operation start for rep-r0:0 (ocf:linbit:drbd) returned: 'unknown
>error' (1)
>>  stdout: drbdsetup - Configure the DRBD kernel module.
>>  stdout:
>>  stdout: USAGE: drbdsetup command {arguments} [options]
>>  stdout:
>>  stdout: Commands:
>>  stdout: primary - Change the role of a node in a resource to
>primary.
>>  stdout: secondary - Change the role of a node in a resource to
>secondary.
>>  stdout: attach - Attach a lower-level device to an existing
>replicated device.
>>  stdout: disk-options - Change the disk options of an attached
>lower-level device.
>>  stdout: detach - Detach the lower-level device of a replicated
>device.
>>  stdout: connect - Attempt to (re)establish a replication link to
>a peer host.
>>  stdout: new-peer - Make a peer host known to a resource.
>>  stdout: del-peer - Remove a connection to a peer host.
>>  stdout: new-path - Add a path (endpoint address pair) where a
>peer host should be
>>  stdout: reachable.
>>  stdout: del-path - Remove a path (endpoint address pair) from a
>connection to a peer
>>  stdout: host.
>>  stdout: net-options - Change the network options of a
>connection.
>>  stdout: disconnect - Unconnect from a peer host.
>>  stdout: resize - Reexamine the lower-level device sizes to
>resize a replicated
>>  stdout: device.
>>  stdout: resource-options - Change the resource options of an
>existing resource.
>>  stdout: peer-device-options - Change peer-device options.
>>  stdout: new-current-uuid - Generate a new current UUID.
>>  stdout: invalidate - Replace the local data of a volume with
>that of a peer.
>>  stdout: invalidate-remote - Replace a peer's data of a volume
>with the local data.
>>  stdout: pause-sync - Stop resynchronizing between a local and a
>peer device.
>>  stdout: resume-sync - Allow resynchronization to resume on a
>replicated device.
>>  stdout: suspend-io - Suspend I/O on a replicated device.
>>  stdout: resume-io - Resume I/O on a replicated device.
>>  stdout: outdate - Mark the data on a lower-level device as
>outdated.
>>  stdout: verify - Verify the data on a lower-level device against
>a peer device.
>>  stdout: down - Take a resource down.
>>  stdout: role - Show the current role of a resource.
>>  stdout: cstate - Show the current state of a connection.
>>  stdout: dstate - Show the current disk state of a lower-level
>device.
>>  stdout: show-gi - Show the data generation identifiers for a
>device on a particular
>>  stdout: connection, with explanations.
>>  stdout: get-gi - Show the data generation identifiers for a
>device on a particular
>>  stdout: connection.
>>  stdout: show - Show the current configuration of a resource, or
>of all resources.
>>  stdout: status - Show the state of a resource, or of all
>resources.
>>  stdout: check-resize - Remember the current size of a
>lower-level device.
>>  stdout: events2 - Show the current state and all state changes
>of a resource, or of
>>  stdout: all resources.
>>  stdout: wait-sync-volume - Wait until resync finished on a
>volume.
>>  stdout: wait-sync-connection - Wait until resync finished on all
>volumes of a
>>  stdout: connection.
>>  stdout: wait-sync-resource - Wait until resync finished on all
>volumes.
>>  stdout: wait-connect-volume - Wait until a device on a peer is
>visible.
>>  stdout: wait-connect-connection - Wait until all peer volumes of
>connection are
>>  stdout: visible.
>>  stdout: wait-connect-resource - Wait until all connections are
>establised.
>>  stdout: new-resource - Create a new resource.
>>  stdout: new-minor - Create a new replicated device within a
>resource.
>>  stdout: del-minor - Remove a replicated device.
>>  stdout: del-resource - Remove a resource.
>>  stdout: forget-peer - Completely remove any reference to a
>unconnected peer from
>>  stdout: meta-data.
>>  stdout:
>>  stdout: Use 'drbdsetup help command' for command-specific help.
>>  stdout:
>>  stdout:
>>  stdout: invalid command
>>  stdout:
>>  stdout:
>>  stdout:
>>  stderr: /usr/lib/ocf/resource.d/linbit/drbd: line 318: USAGE::
>command not found
>>  stderr: /usr/lib/ocf/resource.d/linbit/drbd: line 320: Commands::
>command not found
>>  stderr: /usr/lib/ocf/resource.d/linbit/drbd: line 321: primary:
>command not found
>>  stderr: /usr/lib/ocf/resource.d/linbit/drbd: line 322: secondary

Re: [ClusterLabs] DRBD resource not starting

2020-08-16 Thread Gerry Kernan
Hi 

Got it sorted 
Removed drbd-pacemaker and reinstalled drbd90-utilise
All ok now 

Gerry 

Sent from my iPhone

> On 15 Aug 2020, at 16:18, Strahil Nikolov  wrote:
> 
> And how did you define the drbd resource?
> 
> Best Regards,
> Strahil Nikolov
> 
> На 14 август 2020 г. 18:48:32 GMT+03:00, Gerry Kernan  
> написа:
>> Hi
>> Im trying to add a drbd resource to pacemaker cluster on centos 7
>> 
>> 
>> But getting this error on pcs status
>> drbd_r0(ocf::linbit:drbd):  ORPHANED FAILED (blocked)[ vps1
>> vps2 ]
>> 
>> 
>> if I try and the resource from cli I get out out below
>> 
>> [root@VPS1 drbd-utils]# pcs resource debug-start rep-r0
>> Operation start for rep-r0:0 (ocf:linbit:drbd) returned: 'unknown
>> error' (1)
>>> stdout: drbdsetup - Configure the DRBD kernel module.
>>> stdout:
>>> stdout: USAGE: drbdsetup command {arguments} [options]
>>> stdout:
>>> stdout: Commands:
>>> stdout: primary - Change the role of a node in a resource to
>> primary.
>>> stdout: secondary - Change the role of a node in a resource to
>> secondary.
>>> stdout: attach - Attach a lower-level device to an existing
>> replicated device.
>>> stdout: disk-options - Change the disk options of an attached
>> lower-level device.
>>> stdout: detach - Detach the lower-level device of a replicated
>> device.
>>> stdout: connect - Attempt to (re)establish a replication link to
>> a peer host.
>>> stdout: new-peer - Make a peer host known to a resource.
>>> stdout: del-peer - Remove a connection to a peer host.
>>> stdout: new-path - Add a path (endpoint address pair) where a
>> peer host should be
>>> stdout: reachable.
>>> stdout: del-path - Remove a path (endpoint address pair) from a
>> connection to a peer
>>> stdout: host.
>>> stdout: net-options - Change the network options of a
>> connection.
>>> stdout: disconnect - Unconnect from a peer host.
>>> stdout: resize - Reexamine the lower-level device sizes to
>> resize a replicated
>>> stdout: device.
>>> stdout: resource-options - Change the resource options of an
>> existing resource.
>>> stdout: peer-device-options - Change peer-device options.
>>> stdout: new-current-uuid - Generate a new current UUID.
>>> stdout: invalidate - Replace the local data of a volume with
>> that of a peer.
>>> stdout: invalidate-remote - Replace a peer's data of a volume
>> with the local data.
>>> stdout: pause-sync - Stop resynchronizing between a local and a
>> peer device.
>>> stdout: resume-sync - Allow resynchronization to resume on a
>> replicated device.
>>> stdout: suspend-io - Suspend I/O on a replicated device.
>>> stdout: resume-io - Resume I/O on a replicated device.
>>> stdout: outdate - Mark the data on a lower-level device as
>> outdated.
>>> stdout: verify - Verify the data on a lower-level device against
>> a peer device.
>>> stdout: down - Take a resource down.
>>> stdout: role - Show the current role of a resource.
>>> stdout: cstate - Show the current state of a connection.
>>> stdout: dstate - Show the current disk state of a lower-level
>> device.
>>> stdout: show-gi - Show the data generation identifiers for a
>> device on a particular
>>> stdout: connection, with explanations.
>>> stdout: get-gi - Show the data generation identifiers for a
>> device on a particular
>>> stdout: connection.
>>> stdout: show - Show the current configuration of a resource, or
>> of all resources.
>>> stdout: status - Show the state of a resource, or of all
>> resources.
>>> stdout: check-resize - Remember the current size of a
>> lower-level device.
>>> stdout: events2 - Show the current state and all state changes
>> of a resource, or of
>>> stdout: all resources.
>>> stdout: wait-sync-volume - Wait until resync finished on a
>> volume.
>>> stdout: wait-sync-connection - Wait until resync finished on all
>> volumes of a
>>> stdout: connection.
>>> stdout: wait-sync-resource - Wait until resync finished on all
>> volumes.
>>> stdout: wait-connect-volume - Wait until a device on a peer is
>> visible.
>>> stdout: wait-connect-connection - Wait until all peer volumes of
>> connection are
>>> stdout: visible.
>>> stdout: wait-connect-resource - Wait until all connections are
>> establised.
>>> stdout: new-resource - Create a new resource.
>>> stdout: new-minor - Create a new replicated device within a
>> resource.
>>> stdout: del-minor - Remove a replicated device.
>>> stdout: del-resource - Remove a resource.
>>> stdout: forget-peer - Completely remove any reference to a
>> unconnected peer from
>>> stdout: meta-data.
>>> stdout:
>>> stdout: Use 'drbdsetup help command' for command-specific help.
>>> stdout:
>>> stdout:
>>> stdout: invalid command
>>> stdout:
>>> stdout:
>>> stdout:
>>> stderr: /usr/lib/ocf/resource.d/linbit/drbd: lin