[ENBD] /proc/nbdinfo and intelligent mirroring

Jens Weber enbd@lists.community.tummy.com
Thu, 11 Sep 2003 19:31:25 +0200


Hi Peter,

the enbd module/client/server works well compiled with gcc3.2. But I had
problems with compiling lvm2 tools, so I switch to gcc 2.95.3 an have compiled
again all important kind of software including the kernel. After this, the
problems with compiling lvm2 were gone. So you are right.
I have two systems. One with a 800GB Raid5 3ware IDE controller as enbd server
and a client system running 2.4.22-ac1 with enbd-2.4.31. On the raid are LVM
partitions and the lvm will be managed from the client. On the client are
running to domino server as test applications with there data directories on lvm.
After ~2 days cat /proc/nbdinfo shows:

[root]# cat /proc/nbdinfo
Device a:       Open
[a] State:      signed, rw, enabled, validated, plug, acct, last error 0, lives
0, bp 0
[a] Queued:     +0R/0W curr (check 0R/0W) +245R/1024W max
[a] Buffersize: 262144  (sectors=512, blocks=256)
[a] Blocksize:  1024    (log=10)
[a] Size:       844384128KB
[a] Blocks:     844384128
[a] Sockets:    12      (+)     (+)     (+)     (+)     (+)     (+)     (+)    
(+)     (+)     (+)     (+)     (*)
[a] Requested:  82.737M (6.92M) (6.88M) (6.88M) (6.91M) (6.90M) (6.87M) (6.89M)
(6.86M) (6.88M) (6.83M) (6.93M) (6.92M) 49.94MR/32.79MW max 4
[a] Despatched: 82.737M (6.92M) (6.88M) (6.88M) (6.91M) (6.90M) (6.87M) (6.89M)
(6.86M) (6.88M) (6.83M) (6.93M) (6.92M) 49.94MR/32.79MW md5 1000KW (495K eq,
505K ne, 0 dn)
[a] Errored:    0       (0)     (0)     (0)     (0)     (0)     (0)     (0)    
(0)     (0)     (0)     (0)     (0)     0+0
[a] Pending:    628     (0)     (0)     (4)     (0)     (4)     (0)     (4)    
(0)     (0)     (4)     (4)     (4)     24R/604W+0R/0W
[a] B/s now:    1.04M   (1.04MR+0W)
[a] B/s ave:    242K    (2.60MR+3.99GW)
[a] B/s max:    2.46G   (762MR+2.37GW)
[a] Spectrum:   4%1     95%4
[a] Kthreads:   0       (0 waiting/0 running/1 max)
[a] Cthreads:   6       (+)     (+)     (-)     (+)     (-)     (+)     (-)    
(+)     (+)     (-)     (-)     (-)
[a] Cpids:      6       (201)   (202)   (203)   (204)   (205)   (206)   (207)  
(210)   (211)   (212)   (213)   (215)
Device b-p:     Closed

Can you shortly explain the output and is the calculation of B/s ave and max
correct?

I want to use the new intelligent mirroring and have some question about it.
Before I ativate the mirroring the block devices must be equal, block by block?
If one mirrow server is gone the client knows what missing on that server when
the server come back. But where does the client store that information?
What happend when the client has a problem and make a reset when one mirrow
server is gone?

Thanks! - Can I help you with testing or developing?

Jens
This mail was sent through http://fweb.de Mail-Portal