David Lee wrote:
I'm trying to get lrmd and lrmadmin running under Solaris. Some parts are
OK. But some parts are not working: from some lrmadmin requests, the
result (probably failure) is not getting back to lrmadmin, which then
waits forever even though lrmd has internally produced a result.
Can you tell more details? For example, which parts is ok or not.
And what (compiling) environment you used? Forte or Gcc? Solaris x86 or sparc?
I don't know whether this is a Solaris issue, or a more general one to do
with the type of request I'm making. But it doesn't feel right.
(I guess part of it is Solaris-related, because I'm getting hangs in
"STONITHDBasicSanityCheck" and "LRMBasicSanityCheck", and I guess that
they're OK on Linux.)
1. Is the lrmd-lrmadmin communication channel documented somewhere (to
tell us what ought to happen)?
I'm not sure what information you need. Actually they use unix-socket and
corresponding files are /var/run/heartbeat/lrm_sock and
/var/run/heartbeat/lrm_callback_sock.
2. In "on_op_done()", something feels strange about "need_notify".
Indeed Alan's comments at version 1.125 (April 2005) reinforce my
uneasiness. If this is (at heart) a "call and response" thing, then
shouldn't notification (response from the server) be attempted every time?
(In the case I'm trying, I've inserted some logging statements, and it is
following a path which keeps "need_notify" false, even though "lradmin" is
sitting there, awaiting an answer.)
Likely you are tracking for the repeating operations, so need_notify keeps
false. I think it's not related to the issue on Solaris.
Overall, lrmd has that feel of having grown through accretion, and of now
needing a bit of a spring-clean (as Alan's comments suggest). It is some
4,500 lines long... which feels rather excessive. How would one set about
trying to apply some maintenance to it? (Back to the documentation
question!)
Good advice, I'll look into it when have time.
--
BRs,
Sun Jiang Dong
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/