drbd-user November 2011 archive
Main Archive Page > Month Archives  > drbd-user archives
drbd-user: [DRBD-user] DRBD with two Virtual machine on on the s

[DRBD-user] DRBD with two Virtual machine on on the same PC

From: Francesco cuccaro <francescocuccaro84_at_nospam>
Date: Wed Nov 30 2011 - 10:30:33 GMT
To: drbd-user@lists.linbit.com

Hi Regads, please help me.
I'm inexperienced with drbd, for testing purpose I have created two virtual
machine with drbd 8.4.0(and 8.3.9.12) on the same pc, it's run very well.
The probelm is the speed sync rate, it does not exceed 100 k/Sec.
tests were performed with the Vmware NAT and Vmware Bridge connection.
The hard disk is a ssd, and it write to 300mb/sec.
Why my sync rate is very slow?
NC and Iperf are very fast transfert file, why drbd is slow??

PLEASE HELP ME

*This is my drbd config:*

common {
        protocol C;
                startup {
                        degr-wfc-timeout 0; #wait forever
                        }
                disk {
                        on-io-error detach;
                        fencing dont-care;
                        }
                syncer {
                        rate 33M;
                        al-extents 1801; #def 127 (must be a prime number)
                        verify-alg md5;
                        }
                net {
                        sndbuf-size 512k;
                        timeout 60 ;
                        connect-int 10 ;
                        ping-int 10 ;
                        ko-count 10;
                        max-epoch-size 257;
                    }
                        }

resource r0 {
         on master {
                volume 0 {
                        device /dev/drbd0;
                        disk /dev/sdb5;
                        flexible-meta-disk internal;
                }
                address 192.168.139.132:7789;
        }
        on slave {
                volume 0 {
                        device /dev/drbd0;
                        disk /dev/sdb5;
                        flexible-meta-disk internal;
                }
address 192.168.139.133:7789;
        }
}

*This is drbd transfert:*
Every 2.0s: cat /proc/drbd
              Wed Nov 30 11:49:36 2011

version: 8.4.0 (api:1/proto:86-100)
GIT-hash: 28753f559ab51b549d16bcf487fe625d5919c49c build by dag@Build64R6,
2011-08-12 09:40:17
0: cs:SyncSource ro:Primary/Secondary ds:UpToDate/Inconsistent C r-----
   ns:35646712 nr:0 dw:68 dr:35651401 al:8 bm:2179 lo:1 pe:3 ua:5 ap:0 ep:1
wo:b oos:19412724
       [>...................] sync'ed: 7.5% (18956/20472)M
       finish: 0:04:39 speed: 69,528 (67,448) K/sec

*This is iperf test:*
Client connecting to 192.168.139.132, TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
[ 3] local 192.168.139.133 port 26031 connected with 192.168.139.132 port
5001
[ 5] local 192.168.139.133 port 5001 connected with 192.168.139.132 port
15000
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.0 sec 1.26 GBytes 1.08 Gbits/sec
[ ID] Interval Transfer Bandwidth
[ 5] 0.0-10.0 sec 1.14 GBytes 977 Mbits/sec

_______________________________________________
drbd-user mailing list
drbd-user@lists.linbit.com
http://lists.linbit.com/mailman/listinfo/drbd-user