Re: problem with enbd init on standby

"u.schmeling" <[email protected]>
Newsgroups gmane.linux.enbd.general
Message-ID <[email protected]>
Peter T. Breuer wrote:
>"Also sprach u.schmeling:"
>  
>>Ok I only recompiled the client module. Will do the rest tommorow morning!
>>    
>
>No no .. that's FINE.  I want NO debugging output (until I have
>localized the problem somewhat). My question was merely as to HOW you
>had managed to get SOME debugging output and not OTHER. It's all in the
>same source file!
>
>What I want is the strace information from both sides for that bit of
>the handshake (where it exchanges bksz).  You may have to turn on
>debugging in order to locate it, but if you can manage to find the point
>WITHOUT debugging turned on, all the better, initially.
>
>Turning on debugging indiscriminately can cause new errors. If you are
>going to turn it on in expect() (in enbd-client.c), that's a pretty
>limited use and is just about K, but if you are going to the trouble of
>limiting it like that, best to turn it on in the fill() code (in the
>same file) as well.
>
>Peter
>_______________________________________________
>ENBD mailing list
>[email protected]
>http://lists.community.tummy.com/mailman/listinfo/enbd
>  
Ok Peter,
have turned on the restricted debugging for expect + fill and the 
results look like that:
client (-1) manager made pidfile /var/run/enbd-client-8.pid with pid 14041
nbd/time 14041: <#  64> mygettimeofday time was 0+0E-6 s and is 
1123827840+453839E-6 s
enbd-client 14041: <#4277> main client (-1) manager started new process 
group 14041
enbd-client 14041: <#4303> main client (-1) manager sees target 0 is 
mks:1130(1130)
enbd-client 14041: <#4303> main client (-1) manager sees target 1 is 
mks:1130(1130)
enbd-client 14041: <#4303> main client (-1) manager sees target 2 is 
mks:1130(1130)
enbd-client 14041: <#4316> main client (-1) manager sees 1 distinct targets
enbd-client 14041: <#4334> main client (-1) manager tries target mks:1130
enbd-client 14041: client (-1) starts introduction sequence on mks:1130
enbd-client 14041: <#2627> introduction client (-1) joins inits pgrp
enbd-client 14041: <#2632> introduction client (-1) resets sighandlers
enbd-client 14041: <#2638> introduction client (-1) has initial socket -1
enbd-client 14041: <#2671> introduction client (-1) opened socket 5 to 
mks:1130
enbd-client 14041: <#2375> expect client (-1) starts expect sequence intro
enbd-client 14041: <#2401> expect try looking for read command Helo
enbd-client 14041: <#2242> command Search for key Helo
enbd-client 14041: <#2247> command Fetch 11 more bytes from net to total 11
enbd-client 14041: <#2258> command buffer [helo]
enbd-client 14041: <#2275> command found Helo
enbd-client 14041: <#2290> command Fetch 5 more bytes from net to total 16
enbd-client 14041: <#2424> expect command Helo received
enbd-client 14041: <#2453> expect client has read helo nbd-client
enbd-client 14041: <#2456> expect mark Helo as actioned
enbd-client 14041: <#2327> drop shift buff 5 left to total 11
enbd-client 14041: <#2464> expect client (-1) returns with Helo from expect
enbd-client 14041: <#2751> introduction client (-1) introduction begins
enbd-client 14041: <#2327> drop shift buff 11 left to total 0
enbd-client 14041: <#2401> expect try looking for read command pass
enbd-client 14041: <#2242> command Search for key pass
enbd-client 14041: <#2247> command Fetch 9 more bytes from net to total 9
enbd-client 14041: <#2258> command buffer [pass]
enbd-client 14041: <#2275> command found pass
enbd-client 14041: <#2290> command Fetch 5 more bytes from net to total 14
enbd-client 14041: <#2424> expect command pass received
enbd-client 14041: <#2453> expect client has read pass NBDMAGIC
enbd-client 14041: <#2456> expect mark pass as actioned
enbd-client 14041: <#2327> drop shift buff 5 left to total 9
enbd-client 14041: <#2464> expect client (-1) returns with pass from expect
enbd-client 14041: <#2763> introduction client (-1) read passwd 
[NBDMAGIC] ok from mks:1130
enbd-client 14041: <#2401> expect try looking for read command mgck
enbd-client 14041: <#2242> command Search for key mgck
enbd-client 14041: <#2247> command Fetch 19 more bytes from net to total 19
enbd-client 14041: <#2258> command buffer [mgck]
enbd-client 14041: <#2275> command found mgck
enbd-client 14041: <#2290> command Fetch 5 more bytes from net to total 24
enbd-client 14041: <#2424> expect command mgck received
enbd-client 14041: <#2453> expect client has read mgck 0x0000420281861253
enbd-client 14041: <#2456> expect mark mgck as actioned
enbd-client 14041: <#2464> expect client (-1) returns with mgck from expect
enbd-client 14041: <#2785> introduction client (-1) got cliserv magic ok
enbd-client 14041: <#2405> expect try looking for write command rdev
enbd-client 14041: <#2409> expect result from looking for write command 
rdev is 4
enbd-client 14041: <#2427> expect writing data for command rdev
enbd-client 14041: <#2434> expect client (-1) suggested rdev 2b00
 to server
enbd-client 14041: <#2437> expect have 0 after offset 4, need 5 more in buf
enbd-client 14041: <#2343> fill Fetch 1 more bytes from net to total 5
enbd-client 14041: <#2343> fill Fetch 1 more bytes from net to total 6
enbd-client 14041: <#2343> fill Fetch 1 more bytes from net to total 7
enbd-client 14041: <#2448> expect skipped 6B@4B to EOL
enbd-client 14041: <#2791> introduction client (-1) got rdev 0x2b00 ok
enbd-client 14041: client (-1) got size 42949672960
enbd-client 14041: client (-1) got signature [8], had []
enbd-client 14041: <#2881> introduction client (-1) received remote 
resource ro flags 0
enbd-client 14041: <#2899> introduction client (-1) negotiated device ro 
flags 0
enbd-client 14041: <#2405> expect try looking for write command bksz
enbd-client 14041: <#2409> expect result from looking for write command 
bksz is 4
enbd-client 14041: <#2427> expect writing data for command bksz
enbd-client 14041: <#2434> expect client (-1) suggested bksz 1024
 to server
enbd-client 14041: <#2437> expect have 0 after offset 4, need 5 more in buf
enbd-client 14041: <#2366> fill Warning - read only 0/1B on descriptor 
5: Invalid argument
enbd-client 14041: <#2448> expect skipped 11B@4B to EOL
enbd-client 14041: <#2451> expect Warning - client read half line <bksz 
13107rqto >
enbd-client 14041: <#2824> introduction client (-1) suggested blksize 
1024 to server
enbd-client 14041: <#2835> introduction client (-1) received suggestion 
blksize 13107
enbd-client 14041: client (-1) negotiated blksize 13107
enbd-client 14041: <#2405> expect try looking for write command rqto
enbd-client 14041: <#2272> command key rqto not found
enbd-client 14041: <#2409> expect result from looking for write command 
rqto is -1
enbd-client 14041: <#2541> expect client (-1) fails in expect sequence
enbd-client 14041: <#2999> introduction client (-1) introduction 
sequence ends FAIL

if you point me to the problem, I will to some debugging to save your time
regards Uwe
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.