11da177e4SLinus Torvalds# 21da177e4SLinus Torvalds# Block device driver configuration 31da177e4SLinus Torvalds# 41da177e4SLinus Torvalds 51da177e4SLinus Torvaldsmenu "Multi-device support (RAID and LVM)" 61da177e4SLinus Torvalds 71da177e4SLinus Torvaldsconfig MD 81da177e4SLinus Torvalds bool "Multiple devices driver support (RAID and LVM)" 91da177e4SLinus Torvalds help 101da177e4SLinus Torvalds Support multiple physical spindles through a single logical device. 111da177e4SLinus Torvalds Required for RAID and logical volume management. 121da177e4SLinus Torvalds 131da177e4SLinus Torvaldsconfig BLK_DEV_MD 141da177e4SLinus Torvalds tristate "RAID support" 151da177e4SLinus Torvalds depends on MD 161da177e4SLinus Torvalds ---help--- 171da177e4SLinus Torvalds This driver lets you combine several hard disk partitions into one 181da177e4SLinus Torvalds logical block device. This can be used to simply append one 191da177e4SLinus Torvalds partition to another one or to combine several redundant hard disks 201da177e4SLinus Torvalds into a RAID1/4/5 device so as to provide protection against hard 211da177e4SLinus Torvalds disk failures. This is called "Software RAID" since the combining of 221da177e4SLinus Torvalds the partitions is done by the kernel. "Hardware RAID" means that the 231da177e4SLinus Torvalds combining is done by a dedicated controller; if you have such a 241da177e4SLinus Torvalds controller, you do not need to say Y here. 251da177e4SLinus Torvalds 261da177e4SLinus Torvalds More information about Software RAID on Linux is contained in the 271da177e4SLinus Torvalds Software RAID mini-HOWTO, available from 281da177e4SLinus Torvalds <http://www.tldp.org/docs.html#howto>. There you will also learn 291da177e4SLinus Torvalds where to get the supporting user space utilities raidtools. 301da177e4SLinus Torvalds 311da177e4SLinus Torvalds If unsure, say N. 321da177e4SLinus Torvalds 331da177e4SLinus Torvaldsconfig MD_LINEAR 341da177e4SLinus Torvalds tristate "Linear (append) mode" 351da177e4SLinus Torvalds depends on BLK_DEV_MD 361da177e4SLinus Torvalds ---help--- 371da177e4SLinus Torvalds If you say Y here, then your multiple devices driver will be able to 381da177e4SLinus Torvalds use the so-called linear mode, i.e. it will combine the hard disk 391da177e4SLinus Torvalds partitions by simply appending one to the other. 401da177e4SLinus Torvalds 411da177e4SLinus Torvalds To compile this as a module, choose M here: the module 421da177e4SLinus Torvalds will be called linear. 431da177e4SLinus Torvalds 441da177e4SLinus Torvalds If unsure, say Y. 451da177e4SLinus Torvalds 461da177e4SLinus Torvaldsconfig MD_RAID0 471da177e4SLinus Torvalds tristate "RAID-0 (striping) mode" 481da177e4SLinus Torvalds depends on BLK_DEV_MD 491da177e4SLinus Torvalds ---help--- 501da177e4SLinus Torvalds If you say Y here, then your multiple devices driver will be able to 511da177e4SLinus Torvalds use the so-called raid0 mode, i.e. it will combine the hard disk 521da177e4SLinus Torvalds partitions into one logical device in such a fashion as to fill them 531da177e4SLinus Torvalds up evenly, one chunk here and one chunk there. This will increase 541da177e4SLinus Torvalds the throughput rate if the partitions reside on distinct disks. 551da177e4SLinus Torvalds 561da177e4SLinus Torvalds Information about Software RAID on Linux is contained in the 571da177e4SLinus Torvalds Software-RAID mini-HOWTO, available from 581da177e4SLinus Torvalds <http://www.tldp.org/docs.html#howto>. There you will also 591da177e4SLinus Torvalds learn where to get the supporting user space utilities raidtools. 601da177e4SLinus Torvalds 611da177e4SLinus Torvalds To compile this as a module, choose M here: the module 621da177e4SLinus Torvalds will be called raid0. 631da177e4SLinus Torvalds 641da177e4SLinus Torvalds If unsure, say Y. 651da177e4SLinus Torvalds 661da177e4SLinus Torvaldsconfig MD_RAID1 671da177e4SLinus Torvalds tristate "RAID-1 (mirroring) mode" 681da177e4SLinus Torvalds depends on BLK_DEV_MD 691da177e4SLinus Torvalds ---help--- 701da177e4SLinus Torvalds A RAID-1 set consists of several disk drives which are exact copies 711da177e4SLinus Torvalds of each other. In the event of a mirror failure, the RAID driver 721da177e4SLinus Torvalds will continue to use the operational mirrors in the set, providing 731da177e4SLinus Torvalds an error free MD (multiple device) to the higher levels of the 741da177e4SLinus Torvalds kernel. In a set with N drives, the available space is the capacity 751da177e4SLinus Torvalds of a single drive, and the set protects against a failure of (N - 1) 761da177e4SLinus Torvalds drives. 771da177e4SLinus Torvalds 781da177e4SLinus Torvalds Information about Software RAID on Linux is contained in the 791da177e4SLinus Torvalds Software-RAID mini-HOWTO, available from 801da177e4SLinus Torvalds <http://www.tldp.org/docs.html#howto>. There you will also 811da177e4SLinus Torvalds learn where to get the supporting user space utilities raidtools. 821da177e4SLinus Torvalds 831da177e4SLinus Torvalds If you want to use such a RAID-1 set, say Y. To compile this code 841da177e4SLinus Torvalds as a module, choose M here: the module will be called raid1. 851da177e4SLinus Torvalds 861da177e4SLinus Torvalds If unsure, say Y. 871da177e4SLinus Torvalds 881da177e4SLinus Torvaldsconfig MD_RAID10 891da177e4SLinus Torvalds tristate "RAID-10 (mirrored striping) mode (EXPERIMENTAL)" 901da177e4SLinus Torvalds depends on BLK_DEV_MD && EXPERIMENTAL 911da177e4SLinus Torvalds ---help--- 921da177e4SLinus Torvalds RAID-10 provides a combination of striping (RAID-0) and 931da177e4SLinus Torvalds mirroring (RAID-1) with easier configuration and more flexable 941da177e4SLinus Torvalds layout. 951da177e4SLinus Torvalds Unlike RAID-0, but like RAID-1, RAID-10 requires all devices to 961da177e4SLinus Torvalds be the same size (or at least, only as much as the smallest device 971da177e4SLinus Torvalds will be used). 981da177e4SLinus Torvalds RAID-10 provides a variety of layouts that provide different levels 991da177e4SLinus Torvalds of redundancy and performance. 1001da177e4SLinus Torvalds 1011da177e4SLinus Torvalds RAID-10 requires mdadm-1.7.0 or later, available at: 1021da177e4SLinus Torvalds 1031da177e4SLinus Torvalds ftp://ftp.kernel.org/pub/linux/utils/raid/mdadm/ 1041da177e4SLinus Torvalds 1051da177e4SLinus Torvalds If unsure, say Y. 1061da177e4SLinus Torvalds 1071da177e4SLinus Torvaldsconfig MD_RAID5 1081da177e4SLinus Torvalds tristate "RAID-4/RAID-5 mode" 1091da177e4SLinus Torvalds depends on BLK_DEV_MD 1101da177e4SLinus Torvalds ---help--- 1111da177e4SLinus Torvalds A RAID-5 set of N drives with a capacity of C MB per drive provides 1121da177e4SLinus Torvalds the capacity of C * (N - 1) MB, and protects against a failure 1131da177e4SLinus Torvalds of a single drive. For a given sector (row) number, (N - 1) drives 1141da177e4SLinus Torvalds contain data sectors, and one drive contains the parity protection. 1151da177e4SLinus Torvalds For a RAID-4 set, the parity blocks are present on a single drive, 1161da177e4SLinus Torvalds while a RAID-5 set distributes the parity across the drives in one 1171da177e4SLinus Torvalds of the available parity distribution methods. 1181da177e4SLinus Torvalds 1191da177e4SLinus Torvalds Information about Software RAID on Linux is contained in the 1201da177e4SLinus Torvalds Software-RAID mini-HOWTO, available from 1211da177e4SLinus Torvalds <http://www.tldp.org/docs.html#howto>. There you will also 1221da177e4SLinus Torvalds learn where to get the supporting user space utilities raidtools. 1231da177e4SLinus Torvalds 1241da177e4SLinus Torvalds If you want to use such a RAID-4/RAID-5 set, say Y. To 1251da177e4SLinus Torvalds compile this code as a module, choose M here: the module 1261da177e4SLinus Torvalds will be called raid5. 1271da177e4SLinus Torvalds 1281da177e4SLinus Torvalds If unsure, say Y. 1291da177e4SLinus Torvalds 130*29269553SNeilBrownconfig MD_RAID5_RESHAPE 131*29269553SNeilBrown bool "Support adding drives to a raid-5 array (experimental)" 132*29269553SNeilBrown depends on MD_RAID5 && EXPERIMENTAL 133*29269553SNeilBrown ---help--- 134*29269553SNeilBrown A RAID-5 set can be expanded by adding extra drives. This 135*29269553SNeilBrown requires "restriping" the array which means (almost) every 136*29269553SNeilBrown block must be written to a different place. 137*29269553SNeilBrown 138*29269553SNeilBrown This option allows such restriping to be done while the array 139*29269553SNeilBrown is online. However it is still EXPERIMENTAL code. It should 140*29269553SNeilBrown work, but please be sure that you have backups. 141*29269553SNeilBrown 142*29269553SNeilBrown You will need a version of mdadm newer than 2.3.1. During the 143*29269553SNeilBrown early stage of reshape there is a critical section where live data 144*29269553SNeilBrown is being over-written. A crash during this time needs extra care 145*29269553SNeilBrown for recovery. The newer mdadm takes a copy of the data in the 146*29269553SNeilBrown critical section and will restore it, if necessary, after a crash. 147*29269553SNeilBrown 148*29269553SNeilBrown The mdadm usage is e.g. 149*29269553SNeilBrown mdadm --grow /dev/md1 --raid-disks=6 150*29269553SNeilBrown to grow '/dev/md1' to having 6 disks. 151*29269553SNeilBrown 152*29269553SNeilBrown Note: The array can only be expanded, not contracted. 153*29269553SNeilBrown There should be enough spares already present to make the new 154*29269553SNeilBrown array workable. 155*29269553SNeilBrown 1561da177e4SLinus Torvaldsconfig MD_RAID6 1571da177e4SLinus Torvalds tristate "RAID-6 mode" 1581da177e4SLinus Torvalds depends on BLK_DEV_MD 1591da177e4SLinus Torvalds ---help--- 1601da177e4SLinus Torvalds A RAID-6 set of N drives with a capacity of C MB per drive 1611da177e4SLinus Torvalds provides the capacity of C * (N - 2) MB, and protects 1621da177e4SLinus Torvalds against a failure of any two drives. For a given sector 1631da177e4SLinus Torvalds (row) number, (N - 2) drives contain data sectors, and two 1641da177e4SLinus Torvalds drives contains two independent redundancy syndromes. Like 1651da177e4SLinus Torvalds RAID-5, RAID-6 distributes the syndromes across the drives 1661da177e4SLinus Torvalds in one of the available parity distribution methods. 1671da177e4SLinus Torvalds 1681da177e4SLinus Torvalds RAID-6 requires mdadm-1.5.0 or later, available at: 1691da177e4SLinus Torvalds 1701da177e4SLinus Torvalds ftp://ftp.kernel.org/pub/linux/utils/raid/mdadm/ 1711da177e4SLinus Torvalds 1721da177e4SLinus Torvalds If you want to use such a RAID-6 set, say Y. To compile 1731da177e4SLinus Torvalds this code as a module, choose M here: the module will be 1741da177e4SLinus Torvalds called raid6. 1751da177e4SLinus Torvalds 1761da177e4SLinus Torvalds If unsure, say Y. 1771da177e4SLinus Torvalds 1781da177e4SLinus Torvaldsconfig MD_MULTIPATH 1791da177e4SLinus Torvalds tristate "Multipath I/O support" 1801da177e4SLinus Torvalds depends on BLK_DEV_MD 1811da177e4SLinus Torvalds help 1821da177e4SLinus Torvalds Multipath-IO is the ability of certain devices to address the same 1831da177e4SLinus Torvalds physical disk over multiple 'IO paths'. The code ensures that such 1841da177e4SLinus Torvalds paths can be defined and handled at runtime, and ensures that a 1851da177e4SLinus Torvalds transparent failover to the backup path(s) happens if a IO errors 1861da177e4SLinus Torvalds arrives on the primary path. 1871da177e4SLinus Torvalds 1881da177e4SLinus Torvalds If unsure, say N. 1891da177e4SLinus Torvalds 1901da177e4SLinus Torvaldsconfig MD_FAULTY 1911da177e4SLinus Torvalds tristate "Faulty test module for MD" 1921da177e4SLinus Torvalds depends on BLK_DEV_MD 1931da177e4SLinus Torvalds help 1941da177e4SLinus Torvalds The "faulty" module allows for a block device that occasionally returns 1951da177e4SLinus Torvalds read or write errors. It is useful for testing. 1961da177e4SLinus Torvalds 1971da177e4SLinus Torvalds In unsure, say N. 1981da177e4SLinus Torvalds 1991da177e4SLinus Torvaldsconfig BLK_DEV_DM 2001da177e4SLinus Torvalds tristate "Device mapper support" 2011da177e4SLinus Torvalds depends on MD 2021da177e4SLinus Torvalds ---help--- 2031da177e4SLinus Torvalds Device-mapper is a low level volume manager. It works by allowing 2041da177e4SLinus Torvalds people to specify mappings for ranges of logical sectors. Various 2051da177e4SLinus Torvalds mapping types are available, in addition people may write their own 2061da177e4SLinus Torvalds modules containing custom mappings if they wish. 2071da177e4SLinus Torvalds 2081da177e4SLinus Torvalds Higher level volume managers such as LVM2 use this driver. 2091da177e4SLinus Torvalds 2101da177e4SLinus Torvalds To compile this as a module, choose M here: the module will be 2111da177e4SLinus Torvalds called dm-mod. 2121da177e4SLinus Torvalds 2131da177e4SLinus Torvalds If unsure, say N. 2141da177e4SLinus Torvalds 2151da177e4SLinus Torvaldsconfig DM_CRYPT 2161da177e4SLinus Torvalds tristate "Crypt target support" 2171da177e4SLinus Torvalds depends on BLK_DEV_DM && EXPERIMENTAL 2181da177e4SLinus Torvalds select CRYPTO 2191da177e4SLinus Torvalds ---help--- 2201da177e4SLinus Torvalds This device-mapper target allows you to create a device that 2211da177e4SLinus Torvalds transparently encrypts the data on it. You'll need to activate 2221da177e4SLinus Torvalds the ciphers you're going to use in the cryptoapi configuration. 2231da177e4SLinus Torvalds 2241da177e4SLinus Torvalds Information on how to use dm-crypt can be found on 2251da177e4SLinus Torvalds 2261da177e4SLinus Torvalds <http://www.saout.de/misc/dm-crypt/> 2271da177e4SLinus Torvalds 2281da177e4SLinus Torvalds To compile this code as a module, choose M here: the module will 2291da177e4SLinus Torvalds be called dm-crypt. 2301da177e4SLinus Torvalds 2311da177e4SLinus Torvalds If unsure, say N. 2321da177e4SLinus Torvalds 2331da177e4SLinus Torvaldsconfig DM_SNAPSHOT 2341da177e4SLinus Torvalds tristate "Snapshot target (EXPERIMENTAL)" 2351da177e4SLinus Torvalds depends on BLK_DEV_DM && EXPERIMENTAL 2361da177e4SLinus Torvalds ---help--- 2371da177e4SLinus Torvalds Allow volume managers to take writeable snapshots of a device. 2381da177e4SLinus Torvalds 2391da177e4SLinus Torvaldsconfig DM_MIRROR 2401da177e4SLinus Torvalds tristate "Mirror target (EXPERIMENTAL)" 2411da177e4SLinus Torvalds depends on BLK_DEV_DM && EXPERIMENTAL 2421da177e4SLinus Torvalds ---help--- 2431da177e4SLinus Torvalds Allow volume managers to mirror logical volumes, also 2441da177e4SLinus Torvalds needed for live data migration tools such as 'pvmove'. 2451da177e4SLinus Torvalds 2461da177e4SLinus Torvaldsconfig DM_ZERO 2471da177e4SLinus Torvalds tristate "Zero target (EXPERIMENTAL)" 2481da177e4SLinus Torvalds depends on BLK_DEV_DM && EXPERIMENTAL 2491da177e4SLinus Torvalds ---help--- 2501da177e4SLinus Torvalds A target that discards writes, and returns all zeroes for 2511da177e4SLinus Torvalds reads. Useful in some recovery situations. 2521da177e4SLinus Torvalds 2531da177e4SLinus Torvaldsconfig DM_MULTIPATH 2541da177e4SLinus Torvalds tristate "Multipath target (EXPERIMENTAL)" 2551da177e4SLinus Torvalds depends on BLK_DEV_DM && EXPERIMENTAL 2561da177e4SLinus Torvalds ---help--- 2571da177e4SLinus Torvalds Allow volume managers to support multipath hardware. 2581da177e4SLinus Torvalds 2591da177e4SLinus Torvaldsconfig DM_MULTIPATH_EMC 2601da177e4SLinus Torvalds tristate "EMC CX/AX multipath support (EXPERIMENTAL)" 2611da177e4SLinus Torvalds depends on DM_MULTIPATH && BLK_DEV_DM && EXPERIMENTAL 2621da177e4SLinus Torvalds ---help--- 2631da177e4SLinus Torvalds Multipath support for EMC CX/AX series hardware. 2641da177e4SLinus Torvalds 2651da177e4SLinus Torvaldsendmenu 2661da177e4SLinus Torvalds 267