Distributed Replicated Block Device (DRBD) development
 help / color / mirror / Atom feed
* [Drbd-dev] DRBD8: drbdadm can't stat drbdsetup/drbdmeta
@ 2006-12-01 14:17 Montrose, Ernest
  2006-12-01 18:36 ` Lars Ellenberg
  0 siblings, 1 reply; 2+ messages in thread
From: Montrose, Ernest @ 2006-12-01 14:17 UTC (permalink / raw)
  To: drbd-dev

Hi all,
Looks like a bug was introduced where unless drbdadm is invoqued with
the full path, it complains this way:
"stat() of drbdsetup/drbmeta failed: no such file or directory."
I am not sure why we don't just let the exec fail instead of verifying
ahead.

See sanity_check_cmd() and sanity_check_perm() in user/drbdadm_main.c.

Thanks

EM--

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Drbd-dev] DRBD8: drbdadm can't stat drbdsetup/drbdmeta
  2006-12-01 14:17 [Drbd-dev] DRBD8: drbdadm can't stat drbdsetup/drbdmeta Montrose, Ernest
@ 2006-12-01 18:36 ` Lars Ellenberg
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ellenberg @ 2006-12-01 18:36 UTC (permalink / raw)
  To: drbd-dev

/ 2006-12-01 09:17:36 -0500
\ Montrose, Ernest:
> Hi all,
> Looks like a bug was introduced where unless drbdadm is invoqued with
> the full path, it complains this way:
> "stat() of drbdsetup/drbmeta failed: no such file or directory."
> I am not sure why we don't just let the exec fail instead of verifying
> ahead.
> See sanity_check_cmd() and sanity_check_perm() in user/drbdadm_main.c.

reason is: we want to verify the validity of the configuration.
if you configure an outdate peer handler (and use our heartbeat plugin
implementation dopd), you must have the permissions set like that,
otherwise the configuration won't work as expected.

we probably should add "--check-perms" to both drbdmeta and drbdsetup,
and let drbdadm _call_ them via exec, instead of iterating over $PATH
ourselves...

and I think it should not exit(10) if stat does not work, anyways,
since the other thing is a warning only, too.

-- 
: Lars Ellenberg                                  Tel +43-1-8178292-55 :
: LINBIT Information Technologies GmbH            Fax +43-1-8178292-82 :
: Schoenbrunner Str. 244, A-1120 Vienna/Europe   http://www.linbit.com :

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-12-01 18:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-01 14:17 [Drbd-dev] DRBD8: drbdadm can't stat drbdsetup/drbdmeta Montrose, Ernest
2006-12-01 18:36 ` Lars Ellenberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox