Kconfig 9.7 KB

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