Kconfig 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. #
  2. # DRBD device driver configuration
  3. #
  4. comment "DRBD disabled because PROC_FS or INET not selected"
  5. depends on PROC_FS='n' || INET='n'
  6. config BLK_DEV_DRBD
  7. tristate "DRBD Distributed Replicated Block Device support"
  8. depends on PROC_FS && INET
  9. select LRU_CACHE
  10. select LIBCRC32C
  11. default n
  12. help
  13. NOTE: In order to authenticate connections you have to select
  14. CRYPTO_HMAC and a hash function as well.
  15. DRBD is a shared-nothing, synchronously replicated block device. It
  16. is designed to serve as a building block for high availability
  17. clusters and in this context, is a "drop-in" replacement for shared
  18. storage. Simplistically, you could see it as a network RAID 1.
  19. Each minor device has a role, which can be 'primary' or 'secondary'.
  20. On the node with the primary device the application is supposed to
  21. run and to access the device (/dev/drbdX). Every write is sent to
  22. the local 'lower level block device' and, across the network, to the
  23. node with the device in 'secondary' state. The secondary device
  24. simply writes the data to its lower level block device.
  25. DRBD can also be used in dual-Primary mode (device writable on both
  26. nodes), which means it can exhibit shared disk semantics in a
  27. shared-nothing cluster. Needless to say, on top of dual-Primary
  28. DRBD utilizing a cluster file system is necessary to maintain for
  29. cache coherency.
  30. For automatic failover you need a cluster manager (e.g. heartbeat).
  31. See also: http://www.drbd.org/, http://www.linux-ha.org
  32. If unsure, say N.
  33. config DRBD_FAULT_INJECTION
  34. bool "DRBD fault injection"
  35. depends on BLK_DEV_DRBD
  36. help
  37. Say Y here if you want to simulate IO errors, in order to test DRBD's
  38. behavior.
  39. The actual simulation of IO errors is done by writing 3 values to
  40. /sys/module/drbd/parameters/
  41. enable_faults: bitmask of...
  42. 1 meta data write
  43. 2 read
  44. 4 resync data write
  45. 8 read
  46. 16 data write
  47. 32 data read
  48. 64 read ahead
  49. 128 kmalloc of bitmap
  50. 256 allocation of peer_requests
  51. 512 insert data corruption on receiving side
  52. fault_devs: bitmask of minor numbers
  53. fault_rate: frequency in percent
  54. Example: Simulate data write errors on /dev/drbd0 with a probability of 5%.
  55. echo 16 > /sys/module/drbd/parameters/enable_faults
  56. echo 1 > /sys/module/drbd/parameters/fault_devs
  57. echo 5 > /sys/module/drbd/parameters/fault_rate
  58. If unsure, say N.