Kconfig 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. #
  2. # Block device driver configuration
  3. #
  4. menuconfig MD
  5. bool "Multiple devices driver support (RAID and LVM)"
  6. depends on BLOCK
  7. help
  8. Support multiple physical spindles through a single logical device.
  9. Required for RAID and logical volume management.
  10. if MD
  11. config BLK_DEV_MD
  12. tristate "RAID support"
  13. ---help---
  14. This driver lets you combine several hard disk partitions into one
  15. logical block device. This can be used to simply append one
  16. partition to another one or to combine several redundant hard disks
  17. into a RAID1/4/5 device so as to provide protection against hard
  18. disk failures. This is called "Software RAID" since the combining of
  19. the partitions is done by the kernel. "Hardware RAID" means that the
  20. combining is done by a dedicated controller; if you have such a
  21. controller, you do not need to say Y here.
  22. More information about Software RAID on Linux is contained in the
  23. Software RAID mini-HOWTO, available from
  24. <http://www.tldp.org/docs.html#howto>. There you will also learn
  25. where to get the supporting user space utilities raidtools.
  26. If unsure, say N.
  27. config MD_LINEAR
  28. tristate "Linear (append) mode"
  29. depends on BLK_DEV_MD
  30. ---help---
  31. If you say Y here, then your multiple devices driver will be able to
  32. use the so-called linear mode, i.e. it will combine the hard disk
  33. partitions by simply appending one to the other.
  34. To compile this as a module, choose M here: the module
  35. will be called linear.
  36. If unsure, say Y.
  37. config MD_RAID0
  38. tristate "RAID-0 (striping) mode"
  39. depends on BLK_DEV_MD
  40. ---help---
  41. If you say Y here, then your multiple devices driver will be able to
  42. use the so-called raid0 mode, i.e. it will combine the hard disk
  43. partitions into one logical device in such a fashion as to fill them
  44. up evenly, one chunk here and one chunk there. This will increase
  45. the throughput rate if the partitions reside on distinct disks.
  46. Information about Software RAID on Linux is contained in the
  47. Software-RAID mini-HOWTO, available from
  48. <http://www.tldp.org/docs.html#howto>. There you will also
  49. learn where to get the supporting user space utilities raidtools.
  50. To compile this as a module, choose M here: the module
  51. will be called raid0.
  52. If unsure, say Y.
  53. config MD_RAID1
  54. tristate "RAID-1 (mirroring) mode"
  55. depends on BLK_DEV_MD
  56. ---help---
  57. A RAID-1 set consists of several disk drives which are exact copies
  58. of each other. In the event of a mirror failure, the RAID driver
  59. will continue to use the operational mirrors in the set, providing
  60. an error free MD (multiple device) to the higher levels of the
  61. kernel. In a set with N drives, the available space is the capacity
  62. of a single drive, and the set protects against a failure of (N - 1)
  63. drives.
  64. Information about Software RAID on Linux is contained in the
  65. Software-RAID mini-HOWTO, available from
  66. <http://www.tldp.org/docs.html#howto>. There you will also
  67. learn where to get the supporting user space utilities raidtools.
  68. If you want to use such a RAID-1 set, say Y. To compile this code
  69. as a module, choose M here: the module will be called raid1.
  70. If unsure, say Y.
  71. config MD_RAID10
  72. tristate "RAID-10 (mirrored striping) mode (EXPERIMENTAL)"
  73. depends on BLK_DEV_MD && EXPERIMENTAL
  74. ---help---
  75. RAID-10 provides a combination of striping (RAID-0) and
  76. mirroring (RAID-1) with easier configuration and more flexible
  77. layout.
  78. Unlike RAID-0, but like RAID-1, RAID-10 requires all devices to
  79. be the same size (or at least, only as much as the smallest device
  80. will be used).
  81. RAID-10 provides a variety of layouts that provide different levels
  82. of redundancy and performance.
  83. RAID-10 requires mdadm-1.7.0 or later, available at:
  84. ftp://ftp.kernel.org/pub/linux/utils/raid/mdadm/
  85. If unsure, say Y.
  86. config MD_RAID456
  87. tristate "RAID-4/RAID-5/RAID-6 mode"
  88. depends on BLK_DEV_MD
  89. select ASYNC_MEMCPY
  90. select ASYNC_XOR
  91. ---help---
  92. A RAID-5 set of N drives with a capacity of C MB per drive provides
  93. the capacity of C * (N - 1) MB, and protects against a failure
  94. of a single drive. For a given sector (row) number, (N - 1) drives
  95. contain data sectors, and one drive contains the parity protection.
  96. For a RAID-4 set, the parity blocks are present on a single drive,
  97. while a RAID-5 set distributes the parity across the drives in one
  98. of the available parity distribution methods.
  99. A RAID-6 set of N drives with a capacity of C MB per drive
  100. provides the capacity of C * (N - 2) MB, and protects
  101. against a failure of any two drives. For a given sector
  102. (row) number, (N - 2) drives contain data sectors, and two
  103. drives contains two independent redundancy syndromes. Like
  104. RAID-5, RAID-6 distributes the syndromes across the drives
  105. in one of the available parity distribution methods.
  106. Information about Software RAID on Linux is contained in the
  107. Software-RAID mini-HOWTO, available from
  108. <http://www.tldp.org/docs.html#howto>. There you will also
  109. learn where to get the supporting user space utilities raidtools.
  110. If you want to use such a RAID-4/RAID-5/RAID-6 set, say Y. To
  111. compile this code as a module, choose M here: the module
  112. will be called raid456.
  113. If unsure, say Y.
  114. config MD_RAID5_RESHAPE
  115. bool "Support adding drives to a raid-5 array"
  116. depends on MD_RAID456
  117. default y
  118. ---help---
  119. A RAID-5 set can be expanded by adding extra drives. This
  120. requires "restriping" the array which means (almost) every
  121. block must be written to a different place.
  122. This option allows such restriping to be done while the array
  123. is online.
  124. You will need mdadm version 2.4.1 or later to use this
  125. feature safely. During the early stage of reshape there is
  126. a critical section where live data is being over-written. A
  127. crash during this time needs extra care for recovery. The
  128. newer mdadm takes a copy of the data in the critical section
  129. and will restore it, if necessary, after a crash.
  130. The mdadm usage is e.g.
  131. mdadm --grow /dev/md1 --raid-disks=6
  132. to grow '/dev/md1' to having 6 disks.
  133. Note: The array can only be expanded, not contracted.
  134. There should be enough spares already present to make the new
  135. array workable.
  136. If unsure, say Y.
  137. config MD_MULTIPATH
  138. tristate "Multipath I/O support"
  139. depends on BLK_DEV_MD
  140. help
  141. Multipath-IO is the ability of certain devices to address the same
  142. physical disk over multiple 'IO paths'. The code ensures that such
  143. paths can be defined and handled at runtime, and ensures that a
  144. transparent failover to the backup path(s) happens if a IO errors
  145. arrives on the primary path.
  146. If unsure, say N.
  147. config MD_FAULTY
  148. tristate "Faulty test module for MD"
  149. depends on BLK_DEV_MD
  150. help
  151. The "faulty" module allows for a block device that occasionally returns
  152. read or write errors. It is useful for testing.
  153. In unsure, say N.
  154. config BLK_DEV_DM
  155. tristate "Device mapper support"
  156. ---help---
  157. Device-mapper is a low level volume manager. It works by allowing
  158. people to specify mappings for ranges of logical sectors. Various
  159. mapping types are available, in addition people may write their own
  160. modules containing custom mappings if they wish.
  161. Higher level volume managers such as LVM2 use this driver.
  162. To compile this as a module, choose M here: the module will be
  163. called dm-mod.
  164. If unsure, say N.
  165. config DM_DEBUG
  166. boolean "Device mapper debugging support"
  167. depends on BLK_DEV_DM
  168. ---help---
  169. Enable this for messages that may help debug device-mapper problems.
  170. If unsure, say N.
  171. config DM_CRYPT
  172. tristate "Crypt target support"
  173. depends on BLK_DEV_DM
  174. select CRYPTO
  175. select CRYPTO_CBC
  176. ---help---
  177. This device-mapper target allows you to create a device that
  178. transparently encrypts the data on it. You'll need to activate
  179. the ciphers you're going to use in the cryptoapi configuration.
  180. Information on how to use dm-crypt can be found on
  181. <http://www.saout.de/misc/dm-crypt/>
  182. To compile this code as a module, choose M here: the module will
  183. be called dm-crypt.
  184. If unsure, say N.
  185. config DM_SNAPSHOT
  186. tristate "Snapshot target"
  187. depends on BLK_DEV_DM
  188. ---help---
  189. Allow volume managers to take writable snapshots of a device.
  190. config DM_MIRROR
  191. tristate "Mirror target"
  192. depends on BLK_DEV_DM
  193. ---help---
  194. Allow volume managers to mirror logical volumes, also
  195. needed for live data migration tools such as 'pvmove'.
  196. config DM_ZERO
  197. tristate "Zero target"
  198. depends on BLK_DEV_DM
  199. ---help---
  200. A target that discards writes, and returns all zeroes for
  201. reads. Useful in some recovery situations.
  202. config DM_MULTIPATH
  203. tristate "Multipath target"
  204. depends on BLK_DEV_DM
  205. # nasty syntax but means make DM_MULTIPATH independent
  206. # of SCSI_DH if the latter isn't defined but if
  207. # it is, DM_MULTIPATH must depend on it. We get a build
  208. # error if SCSI_DH=m and DM_MULTIPATH=y
  209. depends on SCSI_DH || !SCSI_DH
  210. ---help---
  211. Allow volume managers to support multipath hardware.
  212. config DM_DELAY
  213. tristate "I/O delaying target (EXPERIMENTAL)"
  214. depends on BLK_DEV_DM && EXPERIMENTAL
  215. ---help---
  216. A target that delays reads and/or writes and can send
  217. them to different devices. Useful for testing.
  218. If unsure, say N.
  219. config DM_UEVENT
  220. bool "DM uevents (EXPERIMENTAL)"
  221. depends on BLK_DEV_DM && EXPERIMENTAL
  222. ---help---
  223. Generate udev events for DM events.
  224. endif # MD