Re: Problem with mkfs on enbd

"Peter T. Breuer" <[email protected]> Mon, 2 Jan 2006 18:14:41 +0100 (MET)
Newsgroups gmane.linux.enbd.general
Message-ID <[email protected]>
"Also sprach Stephan von Krawczynski:"
> ENBD enbd.c #7785[0]: enbd_init Enhanced Network Block Device 2.4.32 Date: Tue Jun  7 18:47:32 CEST 2005 by [email protected]
> 
> Running on 2.4.30 kernel.
> 
> Is that a valid output (/var/log/warn):
> 
> Jan  1 16:22:22 mail-a01 enbd-server: enbd-server  1604: <#1414> do_srv_write request for nonblock (4096) length at 0 (0) seqno 2 len 512 

You have blocksize somehow inappropriately set. Use -b 512 (can it do
that? I suppose so). The kernel is issuing 512B requests, not that I 
understand quite how or why ... and you have the blocksize set at 4096.

> Jan  1 16:22:22 mail-a01 enbd-server: enbd-server  1603: <#1408> do_srv_write are you sure you really wanted blksize 4096? The kernel seems to issue requests aligned at 512


> > Try running enbd-test -s some_numberG /dev/nda, then /dev/ndb, then
> > /dev/md0, etc.
> > 
> > (this test is destructive - it writes then reads).
> 
> # enbd-test -s 10G /dev/nda
> /dev/nda has 10737418240 bytes in 10485760 blocks of 1024 bytes each
> flushing buffers..done
> writing....5%....10%....15%....20%....25%....30%....35%....40%....45%....50%....55%....60%....65%....70%....75%....80%....85%....90%....95%....done
> test 1 success:  0 incorrect blocks
> flushing buffers..done
> flushing buffers..done
> reading....5%....10%....15%....20%....25%....30%....35%....40%....45%....50%....55%....60%....65%....70%....75%....80%....85%....90%....95%....done
> test 2 success:  0 incorrect blocks

Well, that should be OK. 10G tested!

> flushing buffers..done
> reading and checking....5%....10%....15%....20%....25%....30%....35%....40%....45%....50%....55%....60%....65%....70%....75%....80%....85%....90%....95%....
> (1000KB written in 5.100177s, 0.191476 MB/s, 392.143253 seeks/s)
> (1000KB read in 0.003492s, 279.657073 MB/s)done

That's strange though. I'll have to check that code. How long did that
test take?


> 
> enbd-test on /dev/md0 went nuts. The box got unusable, no login, no shell action possible. I had to cold-reboot.

Well, sounds like md0 somehow does not work, but the ndX do.

Care to tell anything more about the box? Arch and so on.

Peter