[Drbd-dev] too small timeout in drbdsetup
lars.ellenberg at linbit.com
Wed Aug 6 10:53:08 CEST 2008
On Tue, Aug 05, 2008 at 07:15:20PM +0200, syrius.ml at no-log.org wrote:
> Philipp Reisner <philipp.reisner at linbit.com> writes:
> > We do not experience any issue with the 500ms in our setups, as are reports
> > about such an issue rather rare. Could you give a more details description
> > about the conditions you trigger can trigger this ?
> I have several drbd devices (4 atm).
> Most of the time it is triggered by heartbeat RA scripts when the
> device are setup one after the other.
> could also happen if i do "echo r1 r2 r3 r4 | xargs -n 1 drbdadm
> primary" for example.
> > I guess we will add an option to drbdsetup then, and have it is setting
> > in the globals section of drbd.conf.
> sounds good.
> > I do not want to inrecase it for all users, since is seems to affect only
> > a very small part of our user base.
it may well affect all.
sometimes we do something that involves IO from the context of the
cqueue thread. we probably should not.
if I have too few of them (typically depends on number of cores), and
all are busy (for a second or so), any communication attempt with a
500ms timeout will time out while they are still processing the previous
I'd suggest to replace that check function by a simple stat on
/proc/drbd. The netlink path will be exercised by the next command
anyways, with a much larger timeout. The extra call with short timeout
in the beginning was just a convenience to not run into the full timeout
and only then realize that the module is missing.
The only drawback I can see to this aproach is, that if now someone loads
a pre-DRBD-8 module (0.7, 0.6), but uses DRBD-8 userland, the driver
would appear to be loaded, and drbdsetup will then still run into the
full timeout of the respective commands.
yes, stupid things do happen.
but, how much do we care?
: Lars Ellenberg Tel +43-1-8178292-55 :
: LINBIT Information Technologies GmbH Fax +43-1-8178292-82 :
: Vivenotgasse 48, A-1120 Vienna/Europe http://www.linbit.com :
More information about the drbd-dev