Re: init scripts problems ?

denis bonnenfant <[email protected]> Thu, 08 Dec 2005 14:02:06 +0100
Newsgroups gmane.linux.enbd.general
Message-ID <[email protected]>
Peter T. Breuer wrote:
> "Also sprach denis bonnenfant:"
> 
>>>>It simply needs investigating! Strace the dying clients.
>>>>
>>>
>>>With strace, it works :) slowly, but it works !
>>
>>update, it reconstructs the array automatically when restarting client.
>>
>>md is still locked.
> 
> 
> But the clients are still there, no? 

no they are all dead :

Imean :  i kill them with "kill 4049", and they disappear from ps ax output.



master :

ldap:~# tail -100 trace4.4049

ioctl(4, 0x4004ab0e, 0)                 = 0
gettimeofday({1134046003, 556168}, NULL) = 0
select(0, NULL, NULL, NULL, {0, 999753}) = 0 (Timeout)
gettimeofday({1134046004, 556640}, NULL) = 0
ioctl(4, 0x4004ab0e, 0)                 = 0
gettimeofday({1134046004, 556794}, NULL) = 0
select(0, NULL, NULL, NULL, {0, 999846}) = 0 (Timeout)
gettimeofday({1134046005, 557146}, NULL) = 0
ioctl(4, 0x4004ab0e, 0)                 = 0
gettimeofday({1134046005, 558062}, NULL) = 0
select(0, NULL, NULL, NULL, {0, 999084}) = 0 (Timeout)
gettimeofday({1134046006, 558377}, NULL) = 0
ioctl(4, 0x4004ab0e, 0)                 = 0
gettimeofday({1134046006, 558531}, NULL) = 0
select(0, NULL, NULL, NULL, {0, 999846}) = ? ERESTARTNOHAND (To be restarted)
--- SIGTERM (Terminated) @ 0 (0) ---
getpid()                                = 4049
time([1134046006])                      = 1134046006
rt_sigaction(SIGPIPE, {0xb7f58a70, [], 0}, {0x804a070, ~[INT KILL TERM STOP RTMIN], SA_RESTART}, 8) = 0
send(3, "<59>Dec  8 13:46:46 enbd-client:"..., 96, 0) = 96
rt_sigaction(SIGPIPE, {0x804a070, ~[INT KILL TERM STOP RTMIN], SA_RESTART}, NULL, 8) = 0
getpid()                                = 4049
write(2, "enbd-client  4049: # 298 manager"..., 63) = 63
kill(4050, SIG_0)                       = 0
kill(4050, SIGTERM)                     = 0
kill(4051, SIG_0)                       = 0
kill(4051, SIGTERM)                     = 0
select(0, NULL, NULL, NULL, {0, 500000}) = 0 (Timeout)
kill(4050, SIG_0)                       = 0
kill(4050, SIGKILL)                     = 0
kill(4051, SIG_0)                       = 0
kill(4051, SIGKILL)                     = 0
time([1134046007])                      = 1134046007
rt_sigaction(SIGPIPE, {0xb7f58a70, [], 0}, {0x804a070, ~[INT KILL TERM STOP RTMIN], SA_RESTART}, 8) = 0
send(3, "<62>Dec  8 13:46:47 enbd-client:"..., 90, 0) = 90
rt_sigaction(SIGPIPE, {0x804a070, ~[INT KILL TERM STOP RTMIN], SA_RESTART}, NULL, 8) = 0
getpid()                                = 4049
write(2, "enbd-client  4049:", 18)      = 18
write(2, " client sighandler terminates ma"..., 45) = 45
time([1134046007])                      = 1134046007
rt_sigaction(SIGPIPE, {0xb7f58a70, [], 0}, {0x804a070, ~[INT KILL TERM STOP RTMIN], SA_RESTART}, 8) = 0
send(3, "<62>Dec  8 13:46:47 enbd-client:"..., 86, 0) = 86
rt_sigaction(SIGPIPE, {0x804a070, ~[INT KILL TERM STOP RTMIN], SA_RESTART}, NULL, 8) = 0
getpid()                                = 4049
write(2, "enbd-client  4049:", 18)      = 18
write(2, " client (-1) last error Invalid "..., 41) = 41
open("/var/run/enbd-client-A-2.pid", O_RDONLY|O_LARGEFILE) = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=6, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fbc000
read(5, "4049 \n", 4096)                = 6
read(5, "", 4096)                       = 0
close(5)                                = 0
munmap(0xb7fbc000, 4096)                = 0
getpid()                                = 4049
unlink("/var/run/enbd-client-A-2.pid")  = 0
exit_group(0)                           = ?


slaves  :

ldap:~# tail trace4.4050
rt_sigprocmask(SIG_UNBLOCK, [ALRM], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [ALRM], NULL, 8) = 0
gettimeofday({1134046000, 979532}, NULL) = 0
rt_sigprocmask(SIG_BLOCK, [ALRM], NULL, 8) = 0
setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={60, 0}}, NULL) = 0
rt_sigaction(SIGALRM, {0x80559c0, [ALRM], SA_RESTART}, {SIG_IGN}, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [ALRM], NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [ALRM], NULL, 8) = 0
ioctl(4, 0x4004ab0b, 0xb7e42008) = -1 ETIME (Timer expired)
+++ killed by SIGKILL +++

ldap:~# tail trace4.4051
rt_sigprocmask(SIG_UNBLOCK, [ALRM], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [ALRM], NULL, 8) = 0
gettimeofday({1134046001, 4520}, NULL)  = 0
rt_sigprocmask(SIG_BLOCK, [ALRM], NULL, 8) = 0
setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={60, 0}}, NULL) = 0
rt_sigaction(SIGALRM, {0x80559c0, [ALRM], SA_RESTART}, {SIG_IGN}, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [ALRM], NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [ALRM], NULL, 8) = 0
ioctl(4, 0x4004ab0b, 0xb7e42008) = -1 ETIME (Timer expired)
+++ killed by SIGKILL +++


but module remains used, and raid locked...