very slow sync

Hegedus Gabor <[email protected]>
Newsgroups gmane.linux.enbd.general
Message-ID <1107270373.4687.39.camel@debian>
Hi!


I shared a file from node1 to node2, and I make it a raid array. But the
syncronisation is very slow.

The connection between the 2 node is gigabit ethernet. (I can copy files
between the nodes about 36-40MB/sec, and with drbd the syncronisation
speed is about that same as the copy speed).

------------------------------------------------------------------
md3 : active raid1 [dev 07:00][1] nda[0]
      511936 blocks [2/2] [UU]
      [====>................]  resync =  24.2% (126604/511936)
finish=23.6min speed=272K/sec
------------------------------------------------------------------

node1:
 - sata HDD
 - created 500MB file
 - running the server processes
 - kernel 2.6.10 (debian sarge)
 - debian:/home/hygy# cat /etc/enbd.conf 
   server adohygy 1234 /home/hygy/nbdimage.fs -b 512


node2:
 - 2 sata HDD connected with software raid1
 - created an 500MB file mounted with node2:#
losetup /dev/loop0 /home/hygy/slave.fs
 - created a raid array (mdadm --create /dev/md3 --level=raid1
--raid-devices=2 /dev/nda /dev/loop0
 - kernel 2.4.29 (debian sarge)
 - runnnig the client process
 - rg-fw:/# cat /etc/enbd.conf
   client adohygy /dev/nda 192.168.2.1 1234 -n 4 -b 512

Why is it slow?

--
 thanks all
HyGy
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.