Re: init scripts problems ?
denis bonnenfant <[email protected]> Mon, 05 Dec 2005 15:49:30 +0100
| Newsgroups | gmane.linux.enbd.general |
|---|---|
| Message-ID | <[email protected]> |
denis bonnenfant wrote: > Peter T. Breuer wrote: > >> "Also sprach ptb:" >> >>> I may be able to up the openers count to avoid this, but it isn't very >>> clear. I'll have to locate and study the kernel code responsible. >>> Sigh. > > >> I should probably raise the openers count by an extra one on the first >> client daemon claiming the socket, for the very first time. I guess >> I'll have to do one extra de count on module removal! Sigh sigh sigh. >> >> Raising the openers count is clearly the thing to do. >> >> Peter > > > For the moment, it works! it's not really clean, i agree. I managed to crash it again ! I set up the double link, create a fr1 array on A-2, mount, then /etc/init.d/enbd stop client, stopping both It seems to work, nda is out of raid. but enbd-client is not killed. echo 0 > /proc/nbdinfo does nothing mdadm /dev/md0 --add /dev/nda is blocked, and there is no way out. ps ax : 3776 ? D 0:04 [enbd-client] 3777 ? D 0:04 [enbd-client] 3975 pts/0 D 0:00 enbd-client se3-croise 12355 -i A-2 -n 2 -m -b 512 /dev/nda 3982 pts/0 D+ 0:00 mdadm /dev/md0 --add /dev/nda 4094 tty1 D 0:00 enbd-client se3-croise 12355 -i A-2 -n 2 -m -b 512 /dev/nda it's really stange, it looks like nda is registered as ndb in the kernel ! dmesg : ENBD #2251[35]: enbd_clr_queue unqueued 0 reqs ENBD #3288[32]: enbd_soft_reset INVALIDATE DEVICE nda BEGIN ENBD #3302[28]: enbd_soft_reset INVALIDATE DEVICE nda DONE ENBD #3315[28]: enbd_soft_reset run enbd_request on nda ENBD #3193[18]: enbd_disable disabled device ndb ENBD #2251[36]: enbd_clr_queue unqueued 0 reqs ENBD #3288[33]: enbd_soft_reset INVALIDATE DEVICE ndb BEGIN ENBD #3292[4]: enbd_soft_reset invalidate would crash on device 00000000 with inode 00000000 ENBD #3293[4]: enbd_soft_reset aborting invalidate ldap:~# cat /proc/nbdinfo Device a: Open [a] State: verify, rw, disabled, last error 0, lives 11, bp 0 [a] Queued: +0R/0W curr (check 0R/0W) +64R/30W max [a] Buffersize: 262144 (sectors=512, blocks=512) [a] Blocksize: 512 (log=9) [a] Size: 104857KB [a] Blocks: 0 [a] Sockets: 2 (+) (.) [a] Requested: 206.23K (104K) (101K) 265R/205.9KW max 248 [a] Despatched: 206.21K (104K) (101K) 257R/205.9KW md5 0W (0 eq, 0 ne, 0 dn) [a] Errored: 100 (0) (0) 0+100 [a] Pending: 0 (0) (0) 0R/0W+0R/0W [a] B/s now: 0 (0R+0W) [a] B/s ave: 79.5K (0R+79.5KW) [a] B/s max: 2.26G (58.8MR+2.20GW) [a] Spectrum: 5%1 2%2 2%8 88%128 [a] Kthreads: 0 (0 waiting/0 running/1 max) [a] Cthreads: 0 (-) (-) [a] Cpids: 0 (3776) (3777) Device b: Open [b] State: verify, rw, disabled, last error 0, lives 11, bp 0 [b] Queued: +0R/0W curr (check 0R/0W) +0R/1W max [b] Buffersize: 0 (sectors=512, blocks=512) [b] Blocksize: 512 (log=9) [b] Size: 104857KB [b] Blocks: 0 [b] Sockets: 2 (-) (.) [b] Requested: 0 (0) (0) 0R/0W max 0 [b] Despatched: 0 (0) (0) 0R/0W md5 0W (0 eq, 0 ne, 0 dn) [b] Errored: 0 (0) (0) 0+0 [b] Pending: 0 (0) (0) 0R/0W+0R/0W [b] B/s now: 0 (0R+0W) [b] B/s ave: 0 (0R+0W) [b] B/s max: 0 (0R+0W) [b] Spectrum: 100%0 [b] Kthreads: 0 (0 waiting/0 running/0 max) [b] Cthreads: 0 (-) (-) [b] Cpids: 0 (0) (0) Device c-p: Closed