mogstored can't run, error messageis: epoll_ctl(): failure adding fd=6; File exists (17)

Brad Fitzpatrick brad at danga.com
Tue Mar 20 16:13:24 UTC 2007


Interesting.  I did just rearrange how the processes are started.  Instead
of a fork, the iostat and diskusage are now exec'd, and they're in
separate files, so they don't inherit any of the IO::AIO pipe baggage,
etc.

In the future, when you say "last version from svn", please include the
svn revision number as well.

Can you tell me what version works for you, and what doesn't?  Look at
"svn log mogstored" and just back up numbers until one works?

This doesn't look like an epoll problem, but a fork/exec problem.  (see
how the new process names don't rename themselves to [workername]?)

I'll try and reproduce in a couple hours here.  I'd say this is a blocker
for release.

Oh --- one quick question, do this:

$ ls /usr/local/bin/mogstored*

Do you have 3 files, or just 1?

You should also see mogstored-iostat and mogstored-diskusage now.  Maybe
they didn't get installed?

I bet that's it.  I just added those to the Makefile.PL in svn 786 now:

Sending        server/Makefile.PL
Transmitting file data .
Committed revision 786.

That fix it for you?

- Brad


On Tue, 20 Mar 2007, feihu wrote:

> the last version from svn, ubuntu 6.10 AMD64, perl 5.8.8
>
> root at xxx:#mogstored
> Running.
> beginning run
> epoll_ctl(): failure adding fd=6; File exists (17)
> beginning run
> epoll_ctl(): failure adding fd=6; File exists (17)
>
> root at xxx:# ps -ef |grep mogs
> root      4733     1  0 21:41 pts/1    00:00:00 /usr/bin/perl /usr/local/bin/mogstored
> root      4734     1  0 21:41 pts/1    00:00:00 /usr/bin/perl /usr/local/bin/mogstored
> root      4736  4131  0 21:41 pts/1    00:00:00 grep mogs
>
> the normal status should be:
> root at yyy:#ps -ef |grep mogs
> root     21999  7833  2 21:36 pts/2    00:00:00 /usr/bin/perl /usr/bin/mogstored
> root     22000 21999  0 21:36 pts/2    00:00:00 mogstored [diskusage]
> root     22002 21999  0 21:36 pts/2    00:00:00 mogstored [iostat]
> root     22012 11673  0 21:36 pts/1    00:00:00 grep mogs
>
> --
> feihu <feihu.list at gmail.com>
>
>


More information about the mogilefs mailing list