Kconfig 2.4 KB

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