Phylum

drbd throughput test & conf

Jun 27th, 2011
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.51 KB | None | 0 0
  1. DRBD module version: 8.3.9
  2. userland version: 8.3.8
  3. you should upgrade your drbd tools!
  4. DRBD module version: 8.3.9
  5. userland version: 8.3.8
  6. you should upgrade your drbd tools!
  7. DRBD module version: 8.3.9
  8. userland version: 8.3.8
  9. you should upgrade your drbd tools!
  10. 1+0 records in
  11. 1+0 records out
  12. 536870912 bytes (537 MB) copied, 48.7825 s, 11.0 MB/s
  13. 1+0 records in
  14. 1+0 records out
  15. 536870912 bytes (537 MB) copied, 51.5241 s, 10.4 MB/s
  16. 1+0 records in
  17. 1+0 records out
  18. 536870912 bytes (537 MB) copied, 51.2448 s, 10.5 MB/s
  19. 1+0 records in
  20. 1+0 records out
  21. 536870912 bytes (537 MB) copied, 51.1659 s, 10.5 MB/s
  22. 1+0 records in
  23. 1+0 records out
  24. 536870912 bytes (537 MB) copied, 48.3632 s, 11.1 MB/s
  25. DRBD module version: 8.3.9
  26. userland version: 8.3.8
  27. you should upgrade your drbd tools!
  28. 1: State change failed: (-12) Device is held open by someone
  29. Command 'drbdsetup 1 down' terminated with exit code 11
  30. 1+0 records in
  31. 1+0 records out
  32. 536870912 bytes (537 MB) copied, 8.59402 s, 62.5 MB/s
  33. 1+0 records in
  34. 1+0 records out
  35. 536870912 bytes (537 MB) copied, 8.48699 s, 63.3 MB/s
  36. 1+0 records in
  37. 1+0 records out
  38. 536870912 bytes (537 MB) copied, 8.73956 s, 61.4 MB/s
  39. 1+0 records in
  40. 1+0 records out
  41. 536870912 bytes (537 MB) copied, 8.67516 s, 61.9 MB/s
  42. 1+0 records in
  43. 1+0 records out
  44. 536870912 bytes (537 MB) copied, 8.74392 s, 61.4 MB/s
  45.  
  46.  
  47. global {
  48. usage-count no;
  49. }
  50.  
  51. common {
  52. # transfer protocol to use.
  53. # C: write IO is reported as completed, if we know it has
  54. # reached _both_ local and remote DISK.
  55. # * for critical transactional data.
  56. # B: write IO is reported as completed, if it has reached
  57. # local DISK and remote buffer cache.
  58. # * for most cases.
  59. # A: write IO is reported as completed, if it has reached
  60. # local DISK and local tcp send buffer. (see also sndbuf-size)
  61. # * for high latency networks
  62. #
  63. protocol C;
  64.  
  65. handlers {
  66. # what should be done in case the cluster starts up in
  67. # degraded mode, but knows it has inconsistent data.
  68. #pri-on-incon-degr "echo '!DRBD! pri on incon-degr' | wall ; sleep 60 ; halt -f";
  69.  
  70. pri-on-incon-degr "echo 'DRBD: primary requested but inconsistent!' | wall; /etc/init.d/heartbeat stop"; #"halt -f";
  71. pri-lost-after-sb "echo 'DRBD: primary requested but lost!' | wall; /etc/init.d/heartbeat stop"; #"halt -f";
  72.  
  73. #pri-on-incon-degr "echo o > /proc/sysrq-trigger";
  74. #pri-lost-after-sb "echo o > /proc/sysrq-trigger";
  75. #local-io-error "echo o > /proc/sysrq-trigger";
  76. }
  77.  
  78. startup {
  79. #The init script drbd(8) blocks the boot process until the DRBD resources are connected. When the cluster manager
  80. #starts later, it does not see a resource with internal split-brain. In case you want to limit the wait time, do it
  81. #here. Default is 0, which means unlimited. The unit is seconds.
  82. wfc-timeout 0; # 2 minutes
  83.  
  84. # Wait for connection timeout if this node was a degraded cluster.
  85. # In case a degraded cluster (= cluster with only one node left)
  86. # is rebooted, this timeout value is used.
  87. #
  88. degr-wfc-timeout 120; # 2 minutes.
  89. }
  90.  
  91. syncer {
  92. rate 100M;
  93. # This is now expressed with "after res-name"
  94. #group 1;
  95. al-extents 257;
  96. }
  97.  
  98. net {
  99. # TODO: Should these timeouts be relative to some heartbeat settings?
  100. # timeout 60; # 6 seconds (unit = 0.1 seconds)
  101. # connect-int 10; # 10 seconds (unit = 1 second)
  102. # ping-int 10; # 10 seconds (unit = 1 second)
  103.  
  104. # if the connection to the peer is lost you have the choice of
  105. # "reconnect" -> Try to reconnect (AKA WFConnection state)
  106. # "stand_alone" -> Do not reconnect (AKA StandAlone state)
  107. # "freeze_io" -> Try to reconnect but freeze all IO until
  108. # the connection is established again.
  109. # FIXME This appears to be obsoleate
  110. #on-disconnect reconnect;
  111.  
  112. # FIXME Experemental Crap
  113. #cram-hmac-alg "sha256";
  114. #shared-secret "secretPassword555";
  115. #after-sb-0pri discard-younger-primary;
  116. #after-sb-1pri consensus;
  117. #after-sb-2pri disconnect;
  118. #rr-conflict disconnect;
  119. }
  120.  
  121. disk {
  122. # if the lower level device reports io-error you have the choice of
  123. # "pass_on" -> Report the io-error to the upper layers.
  124. # Primary -> report it to the mounted file system.
  125. # Secondary -> ignore it.
  126. # "panic" -> The node leaves the cluster by doing a kernel panic.
  127. # "detach" -> The node drops its backing storage device, and
  128. # continues in disk less mode.
  129. #
  130. on-io-error pass_on;
  131.  
  132. # Under fencing we understand preventive measures to avoid situations where both nodes are
  133. # primary and disconnected (AKA split brain).
  134. fencing dont-care;
  135.  
  136. # In case you only want to use a fraction of the available space
  137. # you might use the "size" option here.
  138. #
  139. # size 10G;
  140. }
  141. }
  142.  
  143.  
  144. #
  145. # this need not be drbd#, you may use phony resource names,
  146. # like "resource web" or "resource mail", too
  147. #
  148.  
  149. resource "meta" {
  150. device /dev/drbd0;
  151. meta-disk internal;
  152.  
  153. on itfof01 {
  154. address 192.168.18.51:7788;
  155. disk /dev/sdb1;
  156. }
  157.  
  158. on itfof02 {
  159. address 192.168.18.52:7788;
  160. disk /dev/md0p1;
  161. }
  162. }
  163.  
  164. resource "data" {
  165. device /dev/drbd1;
  166. meta-disk internal;
  167.  
  168. on itfof01 {
  169. address 192.168.18.51:7789;
  170. disk /dev/sdb2;
  171. }
  172.  
  173. on itfof02 {
  174. address 192.168.18.52:7789;
  175. disk /dev/md0p2;
  176. }
  177. }
Advertisement
Add Comment
Please, Sign In to add comment