drbd-user March 2010 archive
Main Archive Page > Month Archives  > drbd-user archives
drbd-user: Re: [DRBD-user] becoming primary with outdated data

Re: [DRBD-user] becoming primary with outdated data

From: Lars Ellenberg <lars.ellenberg_at_nospam>
Date: Tue Mar 23 2010 - 14:16:52 GMT
To: drbd-user@lists.linbit.com

On Mon, Mar 22, 2010 at 09:39:00AM -0500, Alex Dean wrote:
> I'm using drbd 3.3.7 + heartbeat 3. I've configured dopd using
> http://www.drbd.org/users-guide/s-heartbeat-dopd.html. It works as
> expected. If I pull the ethernet cable used for drbd replication, I
> see dopd activity in heartbeat's logs, and the secondary's dstate
> changes to 'Outdated'.
>
> Is it somehow possible to force drbd to become primary with this
> outdated data? I'm thinking if there is an unnoticed (failure of
> monitoring, perhaps?) failure of the replication link, and then
> there is some catastrophic failure on the primary which renders its
> data unusable, it might be preferable to go forward with promoting
> the outdated secondary to primary status. I understand this means
> lost data.
>
> I've been reading through the man pages for drbdadm and drbdsetup,
> as well as the DRBD Users Guide, and haven't found anything
> describing how to do this. Can it be done?

Prior to 8.3.8, you'd have to fiddle with drbdmeta set-gi.
Starting with drbd 8.3.8 (which has not been released yet,
so read "current git", if you like) a simple --force primary
will do.

-- : Lars Ellenberg : LINBIT | Your Way to High Availability : DRBD/HA support and consulting http://www.linbit.com DRBD® and LINBIT® are registered trademarks of LINBIT, Austria. __ please don't Cc me, but send to list -- I'm subscribed _______________________________________________ drbd-user mailing list drbd-user@lists.linbit.com http://lists.linbit.com/mailman/listinfo/drbd-user