[Drbd-dev] [PATCH] drbd.ocf: drbdsetup v9 has no sh-status command

Miedzik, Piotr Bogdan P.Miedzik at gsi.de
Tue Jul 12 10:53:10 CEST 2016


I realized that so I've written new script (https://github.com/qermit/drbd-utils/blob/master/scripts/drbd9.ocf) based on stateful OCF example, Filesystem and drbd.ocf 

The main difference to an original drbd.ocf is:
- it should not fail (or become unmanaged) when it's defined as a normal resource.
- each resource has its own debug level and debug file
- does not relay on drbdsetup sh-status
- creates .enable.${resourcename} file to cope with drbdmanage
- allows to have more than 2 clones

I find drbdmanage very nice tool but it causes some problems with pcs start/stop actions. It would be nice to have something like promotion type parameter (auto/manual/disabled).

Regards

> -----Original Message-----
> From: drbd-dev-bounces at lists.linbit.com [mailto:drbd-dev-
> bounces at lists.linbit.com] On Behalf Of Lars Ellenberg
> Sent: 11 lipca 2016 18:28
> To: drbd-dev at lists.linbit.com
> Subject: Re: [Drbd-dev] [PATCH] drbd.ocf: drbdsetup v9 has no sh-status
> command
> 
> On Fri, Jul 08, 2016 at 11:26:52AM +0000, Miedzik, Piotr Bogdan wrote:
> > I've found mistake in drbd.ocf in line 1045 anyway.
> > Kernel module version should be checked in opposite order.
> 
> That's not the only thing missing wrt drbd 9 and pacemaker integration.
> 
> I have some unfinished work around, which eventually will find its way
> into the repositories and packages "soon".
> 
> But for now, it's unfinished :-|
> 
> --
> : Lars Ellenberg
> : LINBIT | Keeping the Digital World Running
> : DRBD -- Heartbeat -- Corosync -- Pacemaker
> : R&D, Integration, Ops, Consulting, Support
> 
> DRBD(r) and LINBIT(r) are registered trademarks of LINBIT
> _______________________________________________
> drbd-dev mailing list
> drbd-dev at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-dev


More information about the drbd-dev mailing list