<div dir="ltr"><div style>in drbd 8.4.3£¬I do the following test:</div><div style><br></div><div style><div>[root@kvm3 drbd.d]# drbdadm dump drbd0</div><div># resource drbd0 on kvm3: not ignored, not stacked</div><div># defined at /etc/drbd.d/drbd0.res:1</div>
<div>resource drbd0 {</div><div> on kvm3 {</div><div> device /dev/drbd0 minor 0;</div><div> disk /dev/vg_kvm3/drbd0;</div><div> meta-disk internal;</div><div> address ipv4 <a href="http://192.168.10.6:7700">192.168.10.6:7700</a>;</div>
<div> }</div><div> on kvm4 {</div><div> device /dev/drbd0 minor 0;</div><div> disk /dev/vg_kvm4/drbd0;</div><div> meta-disk internal;</div><div> address ipv4 <a href="http://192.168.10.7:7700">192.168.10.7:7700</a>;</div>
<div> }</div><div> net {</div><div> protocol A;</div><div> csums-alg md5;</div><div> verify-alg md5;</div><div> ping-timeout 30;</div><div> ping-int 30;</div>
<div> max-epoch-size 8192;</div><div> max-buffers 8912;</div><div> unplug-watermark 131072;</div><div> }</div><div> disk {</div><div> on-io-error pass_on;</div><div> disk-barrier no;</div>
<div> disk-flushes no;</div><div> resync-rate 100M;</div><div> c-plan-ahead 20;</div><div> c-delay-target 100;</div><div> c-max-rate 400M;</div><div> c-min-rate 2M;</div>
<div> al-extents 601;</div><div> }</div><div>}</div><div><br></div></div><div>[root@kvm3 oradata]# dd if=t1 of=t2 bs=1M</div><div>5585+1 records in</div><div>5585+1 records out</div><div>5856305152 bytes (5.9 GB) copied, 286.119 s, 20.5 MB/s</div>
<div>[root@kvm3 oradata]# cd</div><div>[root@kvm3 ~]# umount /oradata<br></div><div><br></div><div><br></div><div style>it takes lots of time(up to 600 seconds) to umount the drbd mount point.</div><div style><br></div><div style>
echo "1" >/proc/sys/vm/block_dump </div><div style>show when umount , </div><div style><br></div><div style><div>[root@kvm3 ~]# dmesg|tail -n 100</div><div>flush-253:5(3907): WRITE block 31475520 on dm-5</div>
<div>flush-253:5(3907): WRITE block 31475528 on dm-5</div><div>flush-253:5(3907): WRITE block 31475536 on dm-5</div><div>flush-253:5(3907): WRITE block 31475544 on dm-5</div><div>flush-253:5(3907): WRITE block 31475552 on dm-5</div>
<div>flush-253:5(3907): WRITE block 31475560 on dm-5</div><div>flush-253:5(3907): WRITE block 31475568 on dm-5</div><div>flush-253:5(3907): WRITE block 31475576 on dm-5</div><div>flush-253:5(3907): WRITE block 31475584 on dm-5</div>
<div>flush-253:5(3907): WRITE block 31475592 on dm-5</div><div>flush-253:5(3907): WRITE block 31475600 on dm-5</div><div>flush-253:5(3907): WRITE block 31475608 on dm-5</div><div>flush-253:5(3907): WRITE block 31475616 on dm-5</div>
<div>flush-253:5(3907): WRITE block 31475624 on dm-5</div><div>flush-253:5(3907): WRITE block 31475632 on dm-5</div><div>flush-253:5(3907): WRITE block 31475640 on dm-5</div><div>flush-253:5(3907): WRITE block 31475648 on dm-5</div>
<div>flush-253:5(3907): WRITE block 31475656 on dm-5</div><div>flush-253:5(3907): WRITE block 31475664 on dm-5</div><div>flush-253:5(3907): WRITE block 31475672 on dm-5</div><div>flush-253:5(3907): WRITE block 31475680 on dm-5</div>
<div>flush-253:5(3907): WRITE block 31475688 on dm-5</div><div>flush-253:5(3907): WRITE block 31475696 on dm-5</div><div>flush-253:5(3907): WRITE block 31475704 on dm-5</div><div>flush-253:5(3907): WRITE block 31475712 on dm-5</div>
<div>flush-253:5(3907): WRITE block 31475720 on dm-5</div><div>drbd_submit(2898): WRITE block 209715144 on dm-3</div><div>jbd2/dm-5-8(3897): WRITE block 100927848 on dm-5</div><div>jbd2/dm-5-8(3897): WRITE block 100927856 on dm-5</div>
<div>jbd2/dm-5-8(3897): WRITE block 100927864 on dm-5</div><div>jbd2/dm-5-8(3897): WRITE block 100927872 on dm-5</div><div>jbd2/dm-5-8(3897): WRITE block 100927880 on dm-5</div><div>jbd2/dm-5-8(3897): WRITE block 100927888 on dm-5</div>
<div>jbd2/dm-5-8(3897): WRITE block 100927896 on dm-5</div><div>jbd2/dm-5-8(3897): WRITE block 100927904 on dm-5</div><div>flush-253:5(3907): WRITE block 12582992 on dm-5</div><div>flush-253:5(3907): WRITE block 12583000 on dm-5</div>
<div>flush-253:5(3907): WRITE block 12583008 on dm-5</div><div>flush-253:5(3907): WRITE block 12583016 on dm-5</div><div>flush-253:5(3907): WRITE block 12583024 on dm-5</div><div>umount(3958): WRITE block 8 on dm-5</div><div>
flush-253:5(3907): WRITE block 12583032 on dm-5</div><div>flush-253:5(3907): WRITE block 16777296 on dm-5</div><div>flush-253:5(3907): WRITE block 29360160 on dm-5</div><div>umount(3958): WRITE block 8456 on dm-5</div><div>
flush-253:5(3907): WRITE block 29360168 on dm-5</div><div>flush-253:5(3907): WRITE block 29360176 on dm-5</div><div>umount(3958): WRITE block 5996544 on dm-5</div><div>flush-253:5(3907): WRITE block 29360184 on dm-5</div>
<div>flush-253:5(3907): WRITE block 29360192 on dm-5</div><div>flush-253:5(3907): WRITE block 12582984 on dm-5</div><div>drbd_submit(2898): WRITE block 209715152 on dm-3</div><div>drbd_submit(2898): WRITE block 209715160 on dm-3</div>
<div>umount(3958): WRITE block 0 on dm-5</div><div>umount(3958): WRITE block 100925440 on dm-5</div><div>umount(3958): WRITE block 100925440 on dm-5</div><div>umount(3958): WRITE block 100925440 on dm-5</div><div>umount(3958): WRITE block 100925440 on dm-5</div>
<div>umount(3958): WRITE block 100925440 on dm-5</div><div>umount(3958): WRITE block 100925440 on dm-5</div><div>umount(3958): WRITE block 100925440 on dm-5</div><div>umount(3958): WRITE block 100925440 on dm-5</div><div>
umount(3958): WRITE block 100925440 on dm-5</div><div>umount(3958): WRITE block 100925440 on dm-5</div><div>umount(3958): WRITE block 100925440 on dm-5</div><div>umount(3958): WRITE block 100925440 on dm-5</div><div>umount(3958): WRITE block 100925440 on dm-5</div>
<div>umount(3958): WRITE block 100925440 on dm-5</div><div>umount(3958): WRITE block 0 on dm-5</div><div>umount(3958): dirtied inode 1053911 (mtab.tmp) on dm-0</div><div>umount(3958): dirtied inode 1053911 (mtab.tmp) on dm-0</div>
<div>umount(3958): WRITE block 33845632 on dm-0</div><div>umount(3958): dirtied inode 1053912 (?) on dm-0</div><div><br></div><div><br></div><div style>Is the reason that I use protocol A? </div><div style><br></div><div style>
<br></div><div style>Best Regards</div><div style><br></div></div></div>