Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
----- Original Message ----- > From: "rahulcs" <singh.rahul.1983 at gmail.com> > To: drbd-user at lists.linbit.com > Sent: Monday, July 16, 2012 10:53:18 AM > Subject: [DRBD-user] Unable to rate limit synchronization traffic with DRBD > > > Hi All, > I am a new user of DRBD. I am trying to use DRBD to send disk updates > to a > backup disk at a configuration rate in an asynchronous manner. From > the DRBD > documentation it looks like i should be able to do this if i use > Protocol A. > > > But when i write a file onto the partition that is being backed up by > DRBD i > continue to see that the network traffic is very high inspite of me > setting > the sync rate. > > Here is my /etc/drbd.d/global_common.conf > global { > usage-count yes; > } > > common { > } > > and /etc/drbd.d/r0.res > resource r0 { > protocol A; > syncer { > rate 1M; > } > on obelix27 { > device /dev/drbd1; > disk /dev/sda1; > address 192.168.245.27:7789; > meta-disk internal; > } > on obelix28 { > device /dev/drbd1; > disk /dev/sda1; > address 192.168.245.28:7789; > meta-disk internal; > } > } > > I have ubuntu 11.10 with linux kernel 3.0.0-12-generic. I installed > the > userland part of DRBD using apt-get which is version 8.3. > > I have tried issuing the drbdadm syncer r0 command. I am writing data > on the > partition using > > dd if=/dev/zero of=/mnt/more/file.dat count=1024 bs=1048576 and i am > measuring the network traffic using ifstat. Inspite of my setting the > sync > rate to 1MB i continue to see 10 MB traffic. > > What am i doing wrong ? Syncer rate will only limit the re-sync rate when one side is out of sync such as the initial sync when first creating the resource. Normal uptodate/uptodate operations is to send writes as fast as the network and I/O subsystems will allow. HTH Jake