sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget5/translations/zh_CN/admin-guide/device-mapper/dm-raidmodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget5/translations/zh_TW/admin-guide/device-mapper/dm-raidmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget5/translations/it_IT/admin-guide/device-mapper/dm-raidmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget5/translations/ja_JP/admin-guide/device-mapper/dm-raidmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget5/translations/ko_KR/admin-guide/device-mapper/dm-raidmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget5/translations/sp_SP/admin-guide/device-mapper/dm-raidmodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhsection)}(hhh](htitle)}(hdm-raidh]hdm-raid}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhO/var/lib/git/docbuild/linux/Documentation/admin-guide/device-mapper/dm-raid.rsthKubh paragraph)}(hThe device-mapper RAID (dm-raid) target provides a bridge from DM to MD. It allows the MD RAID drivers to be accessed using a device-mapper interface.h]hThe device-mapper RAID (dm-raid) target provides a bridge from DM to MD. It allows the MD RAID drivers to be accessed using a device-mapper interface.}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hhh](h)}(hMapping Table Interfaceh]hMapping Table Interface}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhK ubh)}(hDThe target is named "raid" and it accepts the following parameters::h]hGThe target is named “raid” and it accepts the following parameters:}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hhhhubh literal_block)}(hl <#raid_params> \ <#raid_devs> [.. ]h]hl <#raid_params> \ <#raid_devs> [.. ]}hhsbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1hhhhKhhhhubh)}(h :h]h :}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh block_quote)}(hX============= =============================================================== raid0 RAID0 striping (no resilience) raid1 RAID1 mirroring raid4 RAID4 with dedicated last parity disk raid5_n RAID5 with dedicated last parity disk supporting takeover Same as raid4 - Transitory layout raid5_la RAID5 left asymmetric - rotating parity 0 with data continuation raid5_ra RAID5 right asymmetric - rotating parity N with data continuation raid5_ls RAID5 left symmetric - rotating parity 0 with data restart raid5_rs RAID5 right symmetric - rotating parity N with data restart raid6_zr RAID6 zero restart - rotating parity zero (left-to-right) with data restart raid6_nr RAID6 N restart - rotating parity N (right-to-left) with data restart raid6_nc RAID6 N continue - rotating parity N (right-to-left) with data continuation raid6_n_6 RAID6 with dedicate parity disks - parity and Q-syndrome on the last 2 disks; layout for takeover from/to raid4/raid5_n raid6_la_6 Same as "raid_la" plus dedicated last Q-syndrome disk - layout for takeover from raid5_la from/to raid6 raid6_ra_6 Same as "raid5_ra" dedicated last Q-syndrome disk - layout for takeover from raid5_ra from/to raid6 raid6_ls_6 Same as "raid5_ls" dedicated last Q-syndrome disk - layout for takeover from raid5_ls from/to raid6 raid6_rs_6 Same as "raid5_rs" dedicated last Q-syndrome disk - layout for takeover from raid5_rs from/to raid6 raid10 Various RAID10 inspired algorithms chosen by additional params (see raid10_format and raid10_copies below) - RAID10: Striped Mirrors (aka 'Striping on top of mirrors') - RAID1E: Integrated Adjacent Stripe Mirroring - RAID1E: Integrated Offset Stripe Mirroring - and other similar RAID10 variants ============= =============================================================== Reference: Chapter 4 of https://www.snia.org/sites/default/files/SNIA_DDF_Technical_Position_v2.0.pdf h](htable)}(hhh]htgroup)}(hhh](hcolspec)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1jhjubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthK?uh1jhjubhtbody)}(hhh](hrow)}(hhh](hentry)}(hhh]h)}(hraid0h]hraid0}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj8ubah}(h]h ]h"]h$]h&]uh1j6hj3ubj7)}(hhh]h)}(hRAID0 striping (no resilience)h]hRAID0 striping (no resilience)}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjOubah}(h]h ]h"]h$]h&]uh1j6hj3ubeh}(h]h ]h"]h$]h&]uh1j1hj.ubj2)}(hhh](j7)}(hhh]h)}(hraid1h]hraid1}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjoubah}(h]h ]h"]h$]h&]uh1j6hjlubj7)}(hhh]h)}(hRAID1 mirroringh]hRAID1 mirroring}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j6hjlubeh}(h]h ]h"]h$]h&]uh1j1hj.ubj2)}(hhh](j7)}(hhh]h)}(hraid4h]hraid4}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j6hjubj7)}(hhh]h)}(h%RAID4 with dedicated last parity diskh]h%RAID4 with dedicated last parity disk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1j1hj.ubj2)}(hhh](j7)}(hhh]h)}(hraid5_nh]hraid5_n}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j6hjubj7)}(hhh](h)}(hGRAID5 with dedicated last parity disk supporting takeover Same as raid4h]hGRAID5 with dedicated last parity disk supporting takeover Same as raid4}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubh bullet_list)}(hhh]h list_item)}(hTransitory layouth]h)}(hjh]hTransitory layout}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]bullet-uh1jhhhKhjubeh}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1j1hj.ubj2)}(hhh](j7)}(hhh]h)}(hraid5_lah]hraid5_la}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj:ubah}(h]h ]h"]h$]h&]uh1j6hj7ubj7)}(hhh](h)}(hRAID5 left asymmetrich]hRAID5 left asymmetric}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjQubj)}(hhh]j )}(h(rotating parity 0 with data continuationh]h)}(hjgh]h(rotating parity 0 with data continuation}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjeubah}(h]h ]h"]h$]h&]uh1j hjbubah}(h]h ]h"]h$]h&]j)j*uh1jhhhKhjQubeh}(h]h ]h"]h$]h&]uh1j6hj7ubeh}(h]h ]h"]h$]h&]uh1j1hj.ubj2)}(hhh](j7)}(hhh]h)}(hraid5_rah]hraid5_ra}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j6hjubj7)}(hhh](h)}(hRAID5 right asymmetrich]hRAID5 right asymmetric}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubj)}(hhh]j )}(h(rotating parity N with data continuationh]h)}(hjh]h(rotating parity N with data continuation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hjubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]j)j*uh1jhhhK hjubeh}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1j1hj.ubj2)}(hhh](j7)}(hhh]h)}(hraid5_lsh]hraid5_ls}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK!hjubah}(h]h ]h"]h$]h&]uh1j6hjubj7)}(hhh](h)}(hRAID5 left symmetrich]hRAID5 left symmetric}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK!hjubj)}(hhh]j )}(h#rotating parity 0 with data restarth]h)}(hjh]h#rotating parity 0 with data restart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK#hjubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]j)j*uh1jhhhK#hjubeh}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1j1hj.ubj2)}(hhh](j7)}(hhh]h)}(hraid5_rsh]hraid5_rs}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK$hj?ubah}(h]h ]h"]h$]h&]uh1j6hj<ubj7)}(hhh](h)}(hRAID5 right symmetrich]hRAID5 right symmetric}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK$hjVubj)}(hhh]j )}(h#rotating parity N with data restarth]h)}(hjlh]h#rotating parity N with data restart}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK&hjjubah}(h]h ]h"]h$]h&]uh1j hjgubah}(h]h ]h"]h$]h&]j)j*uh1jhhhK&hjVubeh}(h]h ]h"]h$]h&]uh1j6hj<ubeh}(h]h ]h"]h$]h&]uh1j1hj.ubj2)}(hhh](j7)}(hhh]h)}(hraid6_zrh]hraid6_zr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK'hjubah}(h]h ]h"]h$]h&]uh1j6hjubj7)}(hhh](h)}(hRAID6 zero restarth]hRAID6 zero restart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK'hjubj)}(hhh]j )}(h6rotating parity zero (left-to-right) with data restarth]h)}(hjh]h6rotating parity zero (left-to-right) with data restart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK)hjubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]j)j*uh1jhhhK)hjubeh}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1j1hj.ubj2)}(hhh](j7)}(hhh]h)}(hraid6_nrh]hraid6_nr}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK*hjubah}(h]h ]h"]h$]h&]uh1j6hjubj7)}(hhh](h)}(hRAID6 N restarth]hRAID6 N restart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK*hjubj)}(hhh]j )}(h3rotating parity N (right-to-left) with data restarth]h)}(hjh]h3rotating parity N (right-to-left) with data restart}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK,hjubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]j)j*uh1jhhhK,hjubeh}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1j1hj.ubj2)}(hhh](j7)}(hhh]h)}(hraid6_nch]hraid6_nc}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK-hjDubah}(h]h ]h"]h$]h&]uh1j6hjAubj7)}(hhh](h)}(hRAID6 N continueh]hRAID6 N continue}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK-hj[ubj)}(hhh]j )}(h8rotating parity N (right-to-left) with data continuationh]h)}(hjqh]h8rotating parity N (right-to-left) with data continuation}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK/hjoubah}(h]h ]h"]h$]h&]uh1j hjlubah}(h]h ]h"]h$]h&]j)j*uh1jhhhK/hj[ubeh}(h]h ]h"]h$]h&]uh1j6hjAubeh}(h]h ]h"]h$]h&]uh1j1hj.ubj2)}(hhh](j7)}(hhh]h)}(h raid6_n_6h]h raid6_n_6}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK0hjubah}(h]h ]h"]h$]h&]uh1j6hjubj7)}(hhh](h)}(h RAID6 with dedicate parity disksh]h RAID6 with dedicate parity disks}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK0hjubj)}(hhh]j )}(hTparity and Q-syndrome on the last 2 disks; layout for takeover from/to raid4/raid5_nh]h)}(hTparity and Q-syndrome on the last 2 disks; layout for takeover from/to raid4/raid5_nh]hTparity and Q-syndrome on the last 2 disks; layout for takeover from/to raid4/raid5_n}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK2hjubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]j)j*uh1jhhhK2hjubeh}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1j1hj.ubj2)}(hhh](j7)}(hhh]h)}(h raid6_la_6h]h raid6_la_6}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK4hjubah}(h]h ]h"]h$]h&]uh1j6hjubj7)}(hhh](h)}(h5Same as "raid_la" plus dedicated last Q-syndrome diskh]h9Same as “raid_la” plus dedicated last Q-syndrome disk}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK4hj ubj)}(hhh]j )}(h/layout for takeover from raid5_la from/to raid6h]h)}(hj h]h/layout for takeover from raid5_la from/to raid6}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK6hjubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]j)j*uh1jhhhK6hj ubeh}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1j1hj.ubj2)}(hhh](j7)}(hhh]h)}(h raid6_ra_6h]h raid6_ra_6}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK7hjJubah}(h]h ]h"]h$]h&]uh1j6hjGubj7)}(hhh](h)}(h1Same as "raid5_ra" dedicated last Q-syndrome diskh]h5Same as “raid5_ra” dedicated last Q-syndrome disk}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK7hjaubj)}(hhh]j )}(h/layout for takeover from raid5_ra from/to raid6h]h)}(hjwh]h/layout for takeover from raid5_ra from/to raid6}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK9hjuubah}(h]h ]h"]h$]h&]uh1j hjrubah}(h]h ]h"]h$]h&]j)j*uh1jhhhK9hjaubeh}(h]h ]h"]h$]h&]uh1j6hjGubeh}(h]h ]h"]h$]h&]uh1j1hj.ubj2)}(hhh](j7)}(hhh]h)}(h raid6_ls_6h]h raid6_ls_6}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK:hjubah}(h]h ]h"]h$]h&]uh1j6hjubj7)}(hhh](h)}(h1Same as "raid5_ls" dedicated last Q-syndrome diskh]h5Same as “raid5_ls” dedicated last Q-syndrome disk}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK:hjubj)}(hhh]j )}(h/layout for takeover from raid5_ls from/to raid6h]h)}(hjh]h/layout for takeover from raid5_ls from/to raid6}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKRAID10: Striped Mirrors (aka ‘Striping on top of mirrors’)}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKChjzubah}(h]h ]h"]h$]h&]uh1j hjwubj )}(h,RAID1E: Integrated Adjacent Stripe Mirroringh]h)}(hjh]h,RAID1E: Integrated Adjacent Stripe Mirroring}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKDhjubah}(h]h ]h"]h$]h&]uh1j hjwubj )}(h*RAID1E: Integrated Offset Stripe Mirroringh]h)}(hjh]h*RAID1E: Integrated Offset Stripe Mirroring}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKEhjubah}(h]h ]h"]h$]h&]uh1j hjwubj )}(h!and other similar RAID10 variantsh]h)}(hjh]h!and other similar RAID10 variants}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKFhjubah}(h]h ]h"]h$]h&]uh1j hjwubeh}(h]h ]h"]h$]h&]j)j*uh1jhhhKChjfubeh}(h]h ]h"]h$]h&]uh1j6hjLubeh}(h]h ]h"]h$]h&]uh1j1hj.ubeh}(h]h ]h"]h$]h&]uh1j,hjubeh}(h]h ]h"]h$]h&]colsKuh1jhjubah}(h]h ]h"]h$]h&]uh1j hjubh)}(heReference: Chapter 4 of https://www.snia.org/sites/default/files/SNIA_DDF_Technical_Position_v2.0.pdfh](hReference: Chapter 4 of }(hjhhhNhNubh reference)}(hMhttps://www.snia.org/sites/default/files/SNIA_DDF_Technical_Position_v2.0.pdfh]hMhttps://www.snia.org/sites/default/files/SNIA_DDF_Technical_Position_v2.0.pdf}(hjhhhNhNubah}(h]h ]h"]h$]h&]refurijuh1jhjubeh}(h]h ]h"]h$]h&]uh1hhhhKIhjubeh}(h]h ]h"]h$]h&]uh1jhhhKhhhhubh)}(h5<#raid_params>: The number of parameters that follow.h]h5<#raid_params>: The number of parameters that follow.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKLhhhhubh)}(h consists ofh]h consists of}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKNhhhhubj)}(hXMandatory parameters: : Chunk size in sectors. This parameter is often known as "stripe size". It is the only mandatory parameter and is placed first. followed by optional parameters (in any order): [sync|nosync] Force or prevent RAID initialization. [rebuild ] Rebuild drive number 'idx' (first drive is 0). [daemon_sleep ] Interval between runs of the bitmap daemon that clear bits. A longer interval means less bitmap I/O but resyncing after a failure is likely to take longer. [min_recovery_rate ] Throttle RAID initialization [max_recovery_rate ] Throttle RAID initialization [write_mostly ] Mark drive index 'idx' write-mostly. [max_write_behind ] See '--write-behind=' (man mdadm) [stripe_cache ] Stripe cache size (RAID 4/5/6 only) [region_size ] The region_size multiplied by the number of regions is the logical size of the array. The bitmap records the device synchronisation state for each region. [raid10_copies <# copies>], [raid10_format ] These two options are used to alter the default layout of a RAID10 configuration. The number of copies is can be specified, but the default is 2. There are also three variations to how the copies are laid down - the default is "near". Near copies are what most people think of with respect to mirroring. If these options are left unspecified, or 'raid10_copies 2' and/or 'raid10_format near' are given, then the layouts for 2, 3 and 4 devices are: ======== ========== ============== 2 drives 3 drives 4 drives ======== ========== ============== A1 A1 A1 A1 A2 A1 A1 A2 A2 A2 A2 A2 A3 A3 A3 A3 A4 A4 A3 A3 A4 A4 A5 A5 A5 A6 A6 A4 A4 A5 A6 A6 A7 A7 A8 A8 .. .. .. .. .. .. .. .. .. ======== ========== ============== The 2-device layout is equivalent 2-way RAID1. The 4-device layout is what a traditional RAID10 would look like. The 3-device layout is what might be called a 'RAID1E - Integrated Adjacent Stripe Mirroring'. If 'raid10_copies 2' and 'raid10_format far', then the layouts for 2, 3 and 4 devices are: ======== ============ =================== 2 drives 3 drives 4 drives ======== ============ =================== A1 A2 A1 A2 A3 A1 A2 A3 A4 A3 A4 A4 A5 A6 A5 A6 A7 A8 A5 A6 A7 A8 A9 A9 A10 A11 A12 .. .. .. .. .. .. .. .. .. A2 A1 A3 A1 A2 A2 A1 A4 A3 A4 A3 A6 A4 A5 A6 A5 A8 A7 A6 A5 A9 A7 A8 A10 A9 A12 A11 .. .. .. .. .. .. .. .. .. ======== ============ =================== If 'raid10_copies 2' and 'raid10_format offset', then the layouts for 2, 3 and 4 devices are: ======== ========== ================ 2 drives 3 drives 4 drives ======== ========== ================ A1 A2 A1 A2 A3 A1 A2 A3 A4 A2 A1 A3 A1 A2 A2 A1 A4 A3 A3 A4 A4 A5 A6 A5 A6 A7 A8 A4 A3 A6 A4 A5 A6 A5 A8 A7 A5 A6 A7 A8 A9 A9 A10 A11 A12 A6 A5 A9 A7 A8 A10 A9 A12 A11 .. .. .. .. .. .. .. .. .. ======== ========== ================ Here we see layouts closely akin to 'RAID1E - Integrated Offset Stripe Mirroring'. [delta_disks ] The delta_disks option value (-251 < N < +251) triggers device removal (negative value) or device addition (positive value) to any reshape supporting raid levels 4/5/6 and 10. RAID levels 4/5/6 allow for addition of devices (metadata and data device tuple), raid10_near and raid10_offset only allow for device addition. raid10_far does not support any reshaping at all. A minimum of devices have to be kept to enforce resilience, which is 3 devices for raid4/5 and 4 devices for raid6. [data_offset ] This option value defines the offset into each data device where the data starts. This is used to provide out-of-place reshaping space to avoid writing over data while changing the layout of stripes, hence an interruption/crash may happen at any time without the risk of losing data. E.g. when adding devices to an existing raid set during forward reshaping, the out-of-place space will be allocated at the beginning of each raid device. The kernel raid4/5/6/10 MD personalities supporting such device addition will read the data from the existing first stripes (those with smaller number of stripes) starting at data_offset to fill up a new stripe with the larger number of stripes, calculate the redundancy blocks (CRC/Q-syndrome) and write that new stripe to offset 0. Same will be applied to all N-1 other new stripes. This out-of-place scheme is used to change the RAID type (i.e. the allocation algorithm) as well, e.g. changing from raid5_ls to raid5_n. [journal_dev ] This option adds a journal device to raid4/5/6 raid sets and uses it to close the 'write hole' caused by the non-atomic updates to the component devices which can cause data loss during recovery. The journal device is used as writethrough thus causing writes to be throttled versus non-journaled raid4/5/6 sets. Takeover/reshape is not possible with a raid4/5/6 journal device; it has to be deconfigured before requesting these. [journal_mode ] This option sets the caching mode on journaled raid4/5/6 raid sets (see 'journal_dev ' above) to 'writethrough' or 'writeback'. If 'writeback' is selected the journal device has to be resilient and must not suffer from the 'write hole' problem itself (e.g. use raid1 or raid10) to avoid a single point of failure. h]hdefinition_list)}(hhh](hdefinition_list_item)}(hMandatory parameters: : Chunk size in sectors. This parameter is often known as "stripe size". It is the only mandatory parameter and is placed first. h](hterm)}(hMandatory parameters:h]hMandatory parameters:}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhhhKThjGubh definition)}(hhh]jA)}(hhh]jF)}(h: Chunk size in sectors. This parameter is often known as "stripe size". It is the only mandatory parameter and is placed first. h](jL)}(h :h]h :}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jKhhhKThjcubj\)}(hhh]h)}(hChunk size in sectors. This parameter is often known as "stripe size". It is the only mandatory parameter and is placed first.h]hChunk size in sectors. This parameter is often known as “stripe size”. It is the only mandatory parameter and is placed first.}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKRhjuubah}(h]h ]h"]h$]h&]uh1j[hjcubeh}(h]h ]h"]h$]h&]uh1jEhhhKThj`ubah}(h]h ]h"]h$]h&]uh1j@hj]ubah}(h]h ]h"]h$]h&]uh1j[hjGubeh}(h]h ]h"]h$]h&]uh1jEhhhKThjBubjF)}(hXfollowed by optional parameters (in any order): [sync|nosync] Force or prevent RAID initialization. [rebuild ] Rebuild drive number 'idx' (first drive is 0). [daemon_sleep ] Interval between runs of the bitmap daemon that clear bits. A longer interval means less bitmap I/O but resyncing after a failure is likely to take longer. [min_recovery_rate ] Throttle RAID initialization [max_recovery_rate ] Throttle RAID initialization [write_mostly ] Mark drive index 'idx' write-mostly. [max_write_behind ] See '--write-behind=' (man mdadm) [stripe_cache ] Stripe cache size (RAID 4/5/6 only) [region_size ] The region_size multiplied by the number of regions is the logical size of the array. The bitmap records the device synchronisation state for each region. [raid10_copies <# copies>], [raid10_format ] These two options are used to alter the default layout of a RAID10 configuration. The number of copies is can be specified, but the default is 2. There are also three variations to how the copies are laid down - the default is "near". Near copies are what most people think of with respect to mirroring. If these options are left unspecified, or 'raid10_copies 2' and/or 'raid10_format near' are given, then the layouts for 2, 3 and 4 devices are: ======== ========== ============== 2 drives 3 drives 4 drives ======== ========== ============== A1 A1 A1 A1 A2 A1 A1 A2 A2 A2 A2 A2 A3 A3 A3 A3 A4 A4 A3 A3 A4 A4 A5 A5 A5 A6 A6 A4 A4 A5 A6 A6 A7 A7 A8 A8 .. .. .. .. .. .. .. .. .. ======== ========== ============== The 2-device layout is equivalent 2-way RAID1. The 4-device layout is what a traditional RAID10 would look like. The 3-device layout is what might be called a 'RAID1E - Integrated Adjacent Stripe Mirroring'. If 'raid10_copies 2' and 'raid10_format far', then the layouts for 2, 3 and 4 devices are: ======== ============ =================== 2 drives 3 drives 4 drives ======== ============ =================== A1 A2 A1 A2 A3 A1 A2 A3 A4 A3 A4 A4 A5 A6 A5 A6 A7 A8 A5 A6 A7 A8 A9 A9 A10 A11 A12 .. .. .. .. .. .. .. .. .. A2 A1 A3 A1 A2 A2 A1 A4 A3 A4 A3 A6 A4 A5 A6 A5 A8 A7 A6 A5 A9 A7 A8 A10 A9 A12 A11 .. .. .. .. .. .. .. .. .. ======== ============ =================== If 'raid10_copies 2' and 'raid10_format offset', then the layouts for 2, 3 and 4 devices are: ======== ========== ================ 2 drives 3 drives 4 drives ======== ========== ================ A1 A2 A1 A2 A3 A1 A2 A3 A4 A2 A1 A3 A1 A2 A2 A1 A4 A3 A3 A4 A4 A5 A6 A5 A6 A7 A8 A4 A3 A6 A4 A5 A6 A5 A8 A7 A5 A6 A7 A8 A9 A9 A10 A11 A12 A6 A5 A9 A7 A8 A10 A9 A12 A11 .. .. .. .. .. .. .. .. .. ======== ========== ================ Here we see layouts closely akin to 'RAID1E - Integrated Offset Stripe Mirroring'. [delta_disks ] The delta_disks option value (-251 < N < +251) triggers device removal (negative value) or device addition (positive value) to any reshape supporting raid levels 4/5/6 and 10. RAID levels 4/5/6 allow for addition of devices (metadata and data device tuple), raid10_near and raid10_offset only allow for device addition. raid10_far does not support any reshaping at all. A minimum of devices have to be kept to enforce resilience, which is 3 devices for raid4/5 and 4 devices for raid6. [data_offset ] This option value defines the offset into each data device where the data starts. This is used to provide out-of-place reshaping space to avoid writing over data while changing the layout of stripes, hence an interruption/crash may happen at any time without the risk of losing data. E.g. when adding devices to an existing raid set during forward reshaping, the out-of-place space will be allocated at the beginning of each raid device. The kernel raid4/5/6/10 MD personalities supporting such device addition will read the data from the existing first stripes (those with smaller number of stripes) starting at data_offset to fill up a new stripe with the larger number of stripes, calculate the redundancy blocks (CRC/Q-syndrome) and write that new stripe to offset 0. Same will be applied to all N-1 other new stripes. This out-of-place scheme is used to change the RAID type (i.e. the allocation algorithm) as well, e.g. changing from raid5_ls to raid5_n. [journal_dev ] This option adds a journal device to raid4/5/6 raid sets and uses it to close the 'write hole' caused by the non-atomic updates to the component devices which can cause data loss during recovery. The journal device is used as writethrough thus causing writes to be throttled versus non-journaled raid4/5/6 sets. Takeover/reshape is not possible with a raid4/5/6 journal device; it has to be deconfigured before requesting these. [journal_mode ] This option sets the caching mode on journaled raid4/5/6 raid sets (see 'journal_dev ' above) to 'writethrough' or 'writeback'. If 'writeback' is selected the journal device has to be resilient and must not suffer from the 'write hole' problem itself (e.g. use raid1 or raid10) to avoid a single point of failure. h](jL)}(h/followed by optional parameters (in any order):h]h/followed by optional parameters (in any order):}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhhhKhjubj\)}(hhh]jA)}(hhh](jF)}(h4[sync|nosync] Force or prevent RAID initialization. h](jL)}(h [sync|nosync]h]h [sync|nosync]}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhhhKXhjubj\)}(hhh]h)}(h%Force or prevent RAID initialization.h]h%Force or prevent RAID initialization.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKXhjubah}(h]h ]h"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]uh1jEhhhKXhjubjF)}(h?[rebuild ] Rebuild drive number 'idx' (first drive is 0). h](jL)}(h[rebuild ]h]h[rebuild ]}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhhhK[hjubj\)}(hhh]h)}(h.Rebuild drive number 'idx' (first drive is 0).h]h2Rebuild drive number ‘idx’ (first drive is 0).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK[hjubah}(h]h ]h"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]uh1jEhhhK[hjubjF)}(h[daemon_sleep ] Interval between runs of the bitmap daemon that clear bits. A longer interval means less bitmap I/O but resyncing after a failure is likely to take longer. h](jL)}(h[daemon_sleep ]h]h[daemon_sleep ]}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhhhK`hjubj\)}(hhh]h)}(hInterval between runs of the bitmap daemon that clear bits. A longer interval means less bitmap I/O but resyncing after a failure is likely to take longer.h]hInterval between runs of the bitmap daemon that clear bits. A longer interval means less bitmap I/O but resyncing after a failure is likely to take longer.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK^hj,ubah}(h]h ]h"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]uh1jEhhhK`hjubjF)}(h>[min_recovery_rate ] Throttle RAID initializationh](jL)}(h![min_recovery_rate ]h]h![min_recovery_rate ]}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhhhKbhjIubj\)}(hhh]h)}(hThrottle RAID initializationh]hThrottle RAID initialization}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKchj[ubah}(h]h ]h"]h$]h&]uh1j[hjIubeh}(h]h ]h"]h$]h&]uh1jEhhhKbhjubjF)}(h>[max_recovery_rate ] Throttle RAID initializationh](jL)}(h![max_recovery_rate ]h]h![max_recovery_rate ]}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhhhKdhjxubj\)}(hhh]h)}(hThrottle RAID initializationh]hThrottle RAID initialization}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKehjubah}(h]h ]h"]h$]h&]uh1j[hjxubeh}(h]h ]h"]h$]h&]uh1jEhhhKdhjubjF)}(h9[write_mostly ] Mark drive index 'idx' write-mostly.h](jL)}(h[write_mostly ]h]h[write_mostly ]}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhhhKfhjubj\)}(hhh]h)}(h$Mark drive index 'idx' write-mostly.h]h(Mark drive index ‘idx’ write-mostly.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKghjubah}(h]h ]h"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]uh1jEhhhKfhjubjF)}(h>[max_write_behind ] See '--write-behind=' (man mdadm)h](jL)}(h[max_write_behind ]h]h[max_write_behind ]}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhhhKhhjubj\)}(hhh]h)}(h!See '--write-behind=' (man mdadm)h]h%See ‘--write-behind=’ (man mdadm)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKihjubah}(h]h ]h"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]uh1jEhhhKhhjubjF)}(h<[stripe_cache ] Stripe cache size (RAID 4/5/6 only)h](jL)}(h[stripe_cache ]h]h[stripe_cache ]}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhhhKjhj ubj\)}(hhh]h)}(h#Stripe cache size (RAID 4/5/6 only)h]h#Stripe cache size (RAID 4/5/6 only)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKkhj ubah}(h]h ]h"]h$]h&]uh1j[hj ubeh}(h]h ]h"]h$]h&]uh1jEhhhKjhjubjF)}(h[region_size ] The region_size multiplied by the number of regions is the logical size of the array. The bitmap records the device synchronisation state for each region. h](jL)}(h[region_size ]h]h[region_size ]}(hj8 hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhhhKohj4 ubj\)}(hhh]h)}(hThe region_size multiplied by the number of regions is the logical size of the array. The bitmap records the device synchronisation state for each region.h]hThe region_size multiplied by the number of regions is the logical size of the array. The bitmap records the device synchronisation state for each region.}(hjI hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKmhjF ubah}(h]h ]h"]h$]h&]uh1j[hj4 ubeh}(h]h ]h"]h$]h&]uh1jEhhhKohjubjF)}(hX [raid10_copies <# copies>], [raid10_format ] These two options are used to alter the default layout of a RAID10 configuration. The number of copies is can be specified, but the default is 2. There are also three variations to how the copies are laid down - the default is "near". Near copies are what most people think of with respect to mirroring. If these options are left unspecified, or 'raid10_copies 2' and/or 'raid10_format near' are given, then the layouts for 2, 3 and 4 devices are: ======== ========== ============== 2 drives 3 drives 4 drives ======== ========== ============== A1 A1 A1 A1 A2 A1 A1 A2 A2 A2 A2 A2 A3 A3 A3 A3 A4 A4 A3 A3 A4 A4 A5 A5 A5 A6 A6 A4 A4 A5 A6 A6 A7 A7 A8 A8 .. .. .. .. .. .. .. .. .. ======== ========== ============== The 2-device layout is equivalent 2-way RAID1. The 4-device layout is what a traditional RAID10 would look like. The 3-device layout is what might be called a 'RAID1E - Integrated Adjacent Stripe Mirroring'. If 'raid10_copies 2' and 'raid10_format far', then the layouts for 2, 3 and 4 devices are: ======== ============ =================== 2 drives 3 drives 4 drives ======== ============ =================== A1 A2 A1 A2 A3 A1 A2 A3 A4 A3 A4 A4 A5 A6 A5 A6 A7 A8 A5 A6 A7 A8 A9 A9 A10 A11 A12 .. .. .. .. .. .. .. .. .. A2 A1 A3 A1 A2 A2 A1 A4 A3 A4 A3 A6 A4 A5 A6 A5 A8 A7 A6 A5 A9 A7 A8 A10 A9 A12 A11 .. .. .. .. .. .. .. .. .. ======== ============ =================== If 'raid10_copies 2' and 'raid10_format offset', then the layouts for 2, 3 and 4 devices are: ======== ========== ================ 2 drives 3 drives 4 drives ======== ========== ================ A1 A2 A1 A2 A3 A1 A2 A3 A4 A2 A1 A3 A1 A2 A2 A1 A4 A3 A3 A4 A4 A5 A6 A5 A6 A7 A8 A4 A3 A6 A4 A5 A6 A5 A8 A7 A5 A6 A7 A8 A9 A9 A10 A11 A12 A6 A5 A9 A7 A8 A10 A9 A12 A11 .. .. .. .. .. .. .. .. .. ======== ========== ================ Here we see layouts closely akin to 'RAID1E - Integrated Offset Stripe Mirroring'. h](jL)}(hA[raid10_copies <# copies>], [raid10_format ]h]hA[raid10_copies <# copies>], [raid10_format ]}(hjg hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhhhKhjc ubj\)}(hhh](h)}(hXThese two options are used to alter the default layout of a RAID10 configuration. The number of copies is can be specified, but the default is 2. There are also three variations to how the copies are laid down - the default is "near". Near copies are what most people think of with respect to mirroring. If these options are left unspecified, or 'raid10_copies 2' and/or 'raid10_format near' are given, then the layouts for 2, 3 and 4 devices are:h]hXThese two options are used to alter the default layout of a RAID10 configuration. The number of copies is can be specified, but the default is 2. There are also three variations to how the copies are laid down - the default is “near”. Near copies are what most people think of with respect to mirroring. If these options are left unspecified, or ‘raid10_copies 2’ and/or ‘raid10_format near’ are given, then the layouts for 2, 3 and 4 devices are:}(hjx hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKrhju ubj )}(hhh]j)}(hhh](j)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhj ubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1jhj ubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhj ubhthead)}(hhh]j2)}(hhh](j7)}(hhh]h)}(h2 drivesh]h2 drives}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK|hj ubah}(h]h ]h"]h$]h&]uh1j6hj ubj7)}(hhh]h)}(h3 drivesh]h3 drives}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK|hj ubah}(h]h ]h"]h$]h&]uh1j6hj ubj7)}(hhh]h)}(h4 drivesh]h4 drives}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK|hj ubah}(h]h ]h"]h$]h&]uh1j6hj ubeh}(h]h ]h"]h$]h&]uh1j1hj ubah}(h]h ]h"]h$]h&]uh1j hj ubj-)}(hhh](j2)}(hhh](j7)}(hhh]h)}(hA1 A1h]hA1 A1}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK~hj ubah}(h]h ]h"]h$]h&]uh1j6hj ubj7)}(hhh]h)}(h A1 A1 A2h]h A1 A1 A2}(hj# hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK~hj ubah}(h]h ]h"]h$]h&]uh1j6hj ubj7)}(hhh]h)}(hA1 A1 A2 A2h]hA1 A1 A2 A2}(hj: hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK~hj7 ubah}(h]h ]h"]h$]h&]uh1j6hj ubeh}(h]h ]h"]h$]h&]uh1j1hj ubj2)}(hhh](j7)}(hhh]h)}(hA2 A2h]hA2 A2}(hjZ hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjW ubah}(h]h ]h"]h$]h&]uh1j6hjT ubj7)}(hhh]h)}(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h"]h$]h&]hhuh1jD hjZ ubah}(h]h ]h"]h$]h&]uh1j6hj> ubj7)}(hhh]jE )}(h .. .. ..h]h .. .. ..}hjt sbah}(h]h ]h"]h$]h&]hhuh1jD hjq ubah}(h]h ]h"]h$]h&]uh1j6hj> ubeh}(h]h ]h"]h$]h&]uh1j1hj ubeh}(h]h ]h"]h$]h&]uh1j,hj ubeh}(h]h ]h"]h$]h&]colsKuh1jhj ubah}(h]h ]h"]h$]h&]uh1j hju ubh)}(hThe 2-device layout is equivalent 2-way RAID1. The 4-device layout is what a traditional RAID10 would look like. The 3-device layout is what might be called a 'RAID1E - Integrated Adjacent Stripe Mirroring'.h]hThe 2-device layout is equivalent 2-way RAID1. The 4-device layout is what a traditional RAID10 would look like. The 3-device layout is what might be called a ‘RAID1E - Integrated Adjacent Stripe Mirroring’.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhju ubh)}(hZIf 'raid10_copies 2' and 'raid10_format far', then the layouts for 2, 3 and 4 devices are:h]hbIf ‘raid10_copies 2’ and ‘raid10_format far’, then the layouts for 2, 3 and 4 devices are:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhju ubj )}(hhh]j)}(hhh](j)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhj ubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1jhj ubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhj ubj )}(hhh]j2)}(hhh](j7)}(hhh]h)}(h2 drivesh]h2 drives}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1j6hj ubj7)}(hhh]h)}(h3 drivesh]h3 drives}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1j6hj ubj7)}(hhh]h)}(h4 drivesh]h4 drives}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh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h1j1hj8 ubj2)}(hhh](j7)}(hhh]h)}(hA6 A5h]hA6 A5}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j6hjubj7)}(hhh]h)}(h A9 A7 A8h]h A9 A7 A8}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj)ubah}(h]h ]h"]h$]h&]uh1j6hjubj7)}(hhh]h)}(hA10 A9 A12 A11h]hA10 A9 A12 A11}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj@ubah}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1j1hj8 ubj2)}(hhh](j7)}(hhh]jE )}(h..h]h..}hjcsbah}(h]h ]h"]h$]h&]hhuh1jD hj`ubah}(h]h ]h"]h$]h&]uh1j6hj]ubj7)}(hhh]jE )}(h.. ..h]h.. ..}hjzsbah}(h]h ]h"]h$]h&]hhuh1jD hjwubah}(h]h ]h"]h$]h&]uh1j6hj]ubj7)}(hhh]jE )}(h .. .. ..h]h .. .. ..}hjsbah}(h]h ]h"]h$]h&]hhuh1jD hjubah}(h]h ]h"]h$]h&]uh1j6hj]ubeh}(h]h ]h"]h$]h&]uh1j1hj8 ubeh}(h]h ]h"]h$]h&]uh1j,hj ubeh}(h]h ]h"]h$]h&]colsKuh1jhj ubah}(h]h ]h"]h$]h&]uh1j hju ubh)}(h]If 'raid10_copies 2' and 'raid10_format offset', then the layouts for 2, 3 and 4 devices are:h]heIf ‘raid10_copies 2’ and ‘raid10_format offset’, then the layouts for 2, 3 and 4 devices are:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhju ubj )}(hhh]j)}(hhh](j)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1jhjubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjubj )}(hhh]j2)}(hhh](j7)}(hhh]h)}(h2 drives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(h]h ]h"]h$]h&]uh1j6hjubj7)}(hhh]h)}(h A9 A7 A8h]h A9 A7 A8}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j6hjubj7)}(hhh]h)}(hA10 A9 A12 A11h]hA10 A9 A12 A11}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1j1hjGubj2)}(hhh](j7)}(hhh]jE )}(h..h]h..}hj$sbah}(h]h ]h"]h$]h&]hhuh1jD hj!ubah}(h]h ]h"]h$]h&]uh1j6hjubj7)}(hhh]jE )}(h.. ..h]h.. ..}hj;sbah}(h]h ]h"]h$]h&]hhuh1jD hj8ubah}(h]h ]h"]h$]h&]uh1j6hjubj7)}(hhh]jE )}(h .. .. ..h]h .. .. ..}hjRsbah}(h]h ]h"]h$]h&]hhuh1jD hjOubah}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1j1hjGubeh}(h]h ]h"]h$]h&]uh1j,hjubeh}(h]h ]h"]h$]h&]colsKuh1jhjubah}(h]h ]h"]h$]h&]uh1j hju ubh)}(hRHere we see layouts closely akin to 'RAID1E - Integrated Offset Stripe Mirroring'.h]hVHere we see layouts closely akin to ‘RAID1E - Integrated Offset Stripe Mirroring’.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhju ubeh}(h]h ]h"]h$]h&]uh1j[hjc ubeh}(h]h ]h"]h$]h&]uh1jEhhhKhjubjF)}(hX[delta_disks ] The delta_disks option value (-251 < N < +251) triggers device removal (negative value) or device addition (positive value) to any reshape supporting raid levels 4/5/6 and 10. RAID levels 4/5/6 allow for addition of devices (metadata and data device tuple), raid10_near and raid10_offset only allow for device addition. raid10_far does not support any reshaping at all. A minimum of devices have to be kept to enforce resilience, which is 3 devices for raid4/5 and 4 devices for raid6. h](jL)}(h[delta_disks ]h]h[delta_disks ]}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhhhKhjubj\)}(hhh]h)}(hXThe delta_disks option value (-251 < N < +251) triggers device removal (negative value) or device addition (positive value) to any reshape supporting raid levels 4/5/6 and 10. RAID levels 4/5/6 allow for addition of devices (metadata and data device tuple), raid10_near and raid10_offset only allow for device addition. raid10_far does not support any reshaping at all. A minimum of devices have to be kept to enforce resilience, which is 3 devices for raid4/5 and 4 devices for raid6.h]hXThe delta_disks option value (-251 < N < +251) triggers device removal (negative value) or device addition (positive value) to any reshape supporting raid levels 4/5/6 and 10. RAID levels 4/5/6 allow for addition of devices (metadata and data device tuple), raid10_near and raid10_offset only allow for device addition. raid10_far does not support any reshaping at all. A minimum of devices have to be kept to enforce resilience, which is 3 devices for raid4/5 and 4 devices for raid6.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]uh1jEhhhKhjubjF)}(hX[data_offset ] This option value defines the offset into each data device where the data starts. This is used to provide out-of-place reshaping space to avoid writing over data while changing the layout of stripes, hence an interruption/crash may happen at any time without the risk of losing data. E.g. when adding devices to an existing raid set during forward reshaping, the out-of-place space will be allocated at the beginning of each raid device. The kernel raid4/5/6/10 MD personalities supporting such device addition will read the data from the existing first stripes (those with smaller number of stripes) starting at data_offset to fill up a new stripe with the larger number of stripes, calculate the redundancy blocks (CRC/Q-syndrome) and write that new stripe to offset 0. Same will be applied to all N-1 other new stripes. This out-of-place scheme is used to change the RAID type (i.e. the allocation algorithm) as well, e.g. changing from raid5_ls to raid5_n. h](jL)}(h[data_offset ]h]h[data_offset ]}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhhhKhjubj\)}(hhh]h)}(hXThis option value defines the offset into each data device where the data starts. This is used to provide out-of-place reshaping space to avoid writing over data while changing the layout of stripes, hence an interruption/crash may happen at any time without the risk of losing data. E.g. when adding devices to an existing raid set during forward reshaping, the out-of-place space will be allocated at the beginning of each raid device. The kernel raid4/5/6/10 MD personalities supporting such device addition will read the data from the existing first stripes (those with smaller number of stripes) starting at data_offset to fill up a new stripe with the larger number of stripes, calculate the redundancy blocks (CRC/Q-syndrome) and write that new stripe to offset 0. Same will be applied to all N-1 other new stripes. This out-of-place scheme is used to change the RAID type (i.e. the allocation algorithm) as well, e.g. changing from raid5_ls to raid5_n.áh]hXThis option value defines the offset into each data device where the data starts. This is used to provide out-of-place reshaping space to avoid writing over data while changing the layout of stripes, hence an interruption/crash may happen at any time without the risk of losing data. E.g. when adding devices to an existing raid set during forward reshaping, the out-of-place space will be allocated at the beginning of each raid device. The kernel raid4/5/6/10 MD personalities supporting such device addition will read the data from the existing first stripes (those with smaller number of stripes) starting at data_offset to fill up a new stripe with the larger number of stripes, calculate the redundancy blocks (CRC/Q-syndrome) and write that new stripe to offset 0. Same will be applied to all N-1 other new stripes. This out-of-place scheme is used to change the RAID type (i.e. the allocation algorithm) as well, e.g. changing from raid5_ls to raid5_n.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]uh1jEhhhKhjubjF)}(hX[journal_dev ] This option adds a journal device to raid4/5/6 raid sets and uses it to close the 'write hole' caused by the non-atomic updates to the component devices which can cause data loss during recovery. The journal device is used as writethrough thus causing writes to be throttled versus non-journaled raid4/5/6 sets. Takeover/reshape is not possible with a raid4/5/6 journal device; it has to be deconfigured before requesting these. h](jL)}(h[journal_dev ]h]h[journal_dev ]}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhhhKhjubj\)}(hhh]h)}(hXThis option adds a journal device to raid4/5/6 raid sets and uses it to close the 'write hole' caused by the non-atomic updates to the component devices which can cause data loss during recovery. The journal device is used as writethrough thus causing writes to be throttled versus non-journaled raid4/5/6 sets. Takeover/reshape is not possible with a raid4/5/6 journal device; it has to be deconfigured before requesting these.h]hXThis option adds a journal device to raid4/5/6 raid sets and uses it to close the ‘write hole’ caused by the non-atomic updates to the component devices which can cause data loss during recovery. The journal device is used as writethrough thus causing writes to be throttled versus non-journaled raid4/5/6 sets. Takeover/reshape is not possible with a raid4/5/6 journal device; it has to be deconfigured before requesting these.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]uh1jEhhhKhjubjF)}(hXU[journal_mode ] This option sets the caching mode on journaled raid4/5/6 raid sets (see 'journal_dev ' above) to 'writethrough' or 'writeback'. If 'writeback' is selected the journal device has to be resilient and must not suffer from the 'write hole' problem itself (e.g. use raid1 or raid10) to avoid a single point of failure. h](jL)}(h[journal_mode ]h]h[journal_mode ]}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhhhKhj&ubj\)}(hhh]h)}(hX>This option sets the caching mode on journaled raid4/5/6 raid sets (see 'journal_dev ' above) to 'writethrough' or 'writeback'. If 'writeback' is selected the journal device has to be resilient and must not suffer from the 'write hole' problem itself (e.g. use raid1 or raid10) to avoid a single point of failure.h]hXRThis option sets the caching mode on journaled raid4/5/6 raid sets (see ‘journal_dev ’ above) to ‘writethrough’ or ‘writeback’. If ‘writeback’ is selected the journal device has to be resilient and must not suffer from the ‘write hole’ problem itself (e.g. use raid1 or raid10) to avoid a single point of failure.}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj8ubah}(h]h ]h"]h$]h&]uh1j[hj&ubeh}(h]h ]h"]h$]h&]uh1jEhhhKhjubeh}(h]h ]h"]h$]h&]uh1j@hjubah}(h]h ]h"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]uh1jEhhhKhjBubeh}(h]h ]h"]h$]h&]uh1j@hj<ubah}(h]h ]h"]h$]h&]uh1jhhhKPhhhhubjA)}(hhh]jF)}(hX<#raid_devs>: The number of devices composing the array. Each device consists of two entries. The first is the device containing the metadata (if any); the second is the one containing the data. A Maximum of 64 metadata/data device entries are supported up to target version 1.8.0. 1.9.0 supports up to 253 which is enforced by the used MD kernel runtime. If a drive has failed or is missing at creation time, a '-' can be given for both the metadata and data drives for a given position. h](jL)}(h8<#raid_devs>: The number of devices composing the array.h]h8<#raid_devs>: The number of devices composing the array.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhhhKhjvubj\)}(hhh](h)}(hX+Each device consists of two entries. The first is the device containing the metadata (if any); the second is the one containing the data. A Maximum of 64 metadata/data device entries are supported up to target version 1.8.0. 1.9.0 supports up to 253 which is enforced by the used MD kernel runtime.h]hX+Each device consists of two entries. The first is the device containing the metadata (if any); the second is the one containing the data. A Maximum of 64 metadata/data device entries are supported up to target version 1.8.0. 1.9.0 supports up to 253 which is enforced by the used MD kernel runtime.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(hIf a drive has failed or is missing at creation time, a '-' can be given for both the metadata and data drives for a given position.h]hIf a drive has failed or is missing at creation time, a ‘-’ can be given for both the metadata and data drives for a given position.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubeh}(h]h ]h"]h$]h&]uh1j[hjvubeh}(h]h ]h"]h$]h&]uh1jEhhhKhjsubah}(h]h ]h"]h$]h&]uh1j@hhhhhhhNubeh}(h]mapping-table-interfaceah ]h"]mapping table interfaceah$]h&]uh1hhhhhhhhK ubh)}(hhh](h)}(hExample Tablesh]hExample Tables}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hX$# RAID4 - 4 data drives, 1 parity (no metadata devices) # No metadata devices specified to hold superblock/bitmap info # Chunk size of 1MiB # (Lines separated for easy reading) 0 1960893648 raid \ raid4 1 2048 \ 5 - 8:17 - 8:33 - 8:49 - 8:65 - 8:81 # RAID4 - 4 data drives, 1 parity (with metadata devices) # Chunk size of 1MiB, force RAID initialization, # min recovery rate at 20 kiB/sec/disk 0 1960893648 raid \ raid4 4 2048 sync min_recovery_rate 20 \ 5 8:17 8:18 8:33 8:34 8:49 8:50 8:65 8:66 8:81 8:82h]hX$# RAID4 - 4 data drives, 1 parity (no metadata devices) # No metadata devices specified to hold superblock/bitmap info # Chunk size of 1MiB # (Lines separated for easy reading) 0 1960893648 raid \ raid4 1 2048 \ 5 - 8:17 - 8:33 - 8:49 - 8:65 - 8:81 # RAID4 - 4 data drives, 1 parity (with metadata devices) # Chunk size of 1MiB, force RAID initialization, # min recovery rate at 20 kiB/sec/disk 0 1960893648 raid \ raid4 4 2048 sync min_recovery_rate 20 \ 5 8:17 8:18 8:33 8:34 8:49 8:50 8:65 8:66 8:81 8:82}hjsbah}(h]h ]h"]h$]h&]hhuh1hhhhKhjhhubeh}(h]example-tablesah ]h"]example tablesah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h Status Outputh]h Status Output}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubh)}(hX?'dmsetup table' displays the table used to construct the mapping. The optional parameters are always printed in the order listed above with "sync" or "nosync" always output ahead of the other arguments, regardless of the order used when originally loading the table. Arguments that can be repeated are ordered by value.h]hXK‘dmsetup table’ displays the table used to construct the mapping. The optional parameters are always printed in the order listed above with “sync” or “nosync” always output ahead of the other arguments, regardless of the order used when originally loading the table. Arguments that can be repeated are ordered by value.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjhhubh)}(h'dmsetup status' yields information on the state and health of the array. The output is as follows (normally a single line, but expanded here for clarity)::h]h‘dmsetup status’ yields information on the state and health of the array. The output is as follows (normally a single line, but expanded here for clarity):}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubh)}(hs1: raid \ 2: <#devices> \ 3: h]hs1: raid \ 2: <#devices> \ 3: }hjsbah}(h]h ]h"]h$]h&]hhuh1hhhhMhjhhubh)}(h8Line 1 is the standard output produced by device-mapper.h]h8Line 1 is the standard output produced by device-mapper.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM hjhhubh)}(hNLine 2 & 3 are produced by the raid target and are best explained by example::h]hMLine 2 & 3 are produced by the raid target and are best explained by example:}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubh)}(h20 1960893648 raid raid4 5 AAAAA 2/490221568 init 0h]h20 1960893648 raid raid4 5 AAAAA 2/490221568 init 0}hj?sbah}(h]h ]h"]h$]h&]hhuh1hhhhMhjhhubh)}(hHere we can see the RAID type is raid4, there are 5 devices - all of which are 'A'live, and the array is 2/490221568 complete with its initial recovery. Here is a fuller description of the individual fields:h]hHere we can see the RAID type is raid4, there are 5 devices - all of which are ‘A’live, and the array is 2/490221568 complete with its initial recovery. Here is a fuller description of the individual fields:}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjhhubj)}(hX =============== ========================================================= Same as the used to create the array. One char for each device, indicating: - 'A' = alive and in-sync - 'a' = alive but not in-sync - 'D' = dead/failed. The ratio indicating how much of the array has undergone the process described by 'sync_action'. If the 'sync_action' is "check" or "repair", then the process of "resync" or "recover" can be considered complete. One of the following possible states: idle - No synchronization action is being performed. frozen - The current action has been halted. resync - Array is undergoing its initial synchronization or is resynchronizing after an unclean shutdown (possibly aided by a bitmap). recover - A device in the array is being rebuilt or replaced. check - A user-initiated full check of the array is being performed. All blocks are read and checked for consistency. The number of discrepancies found are recorded in . No changes are made to the array by this action. repair - The same as "check", but discrepancies are corrected. reshape - The array is undergoing a reshape. The number of discrepancies found between mirror copies in RAID1/10 or wrong parity values found in RAID4/5/6. This value is valid only after a "check" of the array is performed. A healthy array has a 'mismatch_cnt' of 0. The current data offset to the start of the user data on each component device of a raid set (see the respective raid parameter to support out-of-place reshaping). - 'A' - active write-through journal device. - 'a' - active write-back journal device. - 'D' - dead journal device. - '-' - no journal device. =============== ========================================================= h]j )}(hhh]j)}(hhh](j)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1jhjbubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthK9uh1jhjbubj-)}(hhh](j2)}(hhh](j7)}(hhh]h)}(h h]h }(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j6hj|ubj7)}(hhh]h)}(h1Same as the used to create the array.h]h1Same as the used to create the array.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j6hj|ubeh}(h]h ]h"]h$]h&]uh1j1hjyubj2)}(hhh](j7)}(hhh]h)}(hh]h}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j6hjubj7)}(hhh](h)}(h%One char for each device, indicating:h]h%One char for each device, indicating:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubj)}(hhh](j )}(h'A' = alive and in-synch]h)}(hjh]h‘A’ = alive and in-sync}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(h'a' = alive but not in-synch]h)}(hjh]h‘a’ = alive but not in-sync}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(h'D' = dead/failed.h]h)}(hjh]h‘D’ = dead/failed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]j)j*uh1jhhhMhjubeh}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1j1hjyubj2)}(hhh](j7)}(hhh]h)}(h h]h }(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhj;ubah}(h]h ]h"]h$]h&]uh1j6hj8ubj7)}(hhh]h)}(hThe ratio indicating how much of the array has undergone the process described by 'sync_action'. If the 'sync_action' is "check" or "repair", then the process of "resync" or "recover" can be considered complete.h]hThe ratio indicating how much of the array has undergone the process described by ‘sync_action’. If the ‘sync_action’ is “check” or “repair”, then the process of “resync” or “recover” can be considered complete.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMhjRubah}(h]h ]h"]h$]h&]uh1j6hj8ubeh}(h]h ]h"]h$]h&]uh1j1hjyubj2)}(hhh](j7)}(hhh]h)}(h h]h }(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM!hjrubah}(h]h ]h"]h$]h&]uh1j6hjoubj7)}(hhh](h)}(h%One of the following possible states:h]h%One of the following possible states:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM!hjubjA)}(hhh](jF)}(h4idle - No synchronization action is being performed.h](jL)}(hidleh]hidle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhhhM#hjubj\)}(hhh]j)}(hhh]j )}(h-No synchronization action is being performed.h]h)}(hjh]h-No synchronization action is being performed.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM$hjubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]j)j*uh1jhhhM$hjubah}(h]h ]h"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]uh1jEhhhM#hjubjF)}(h,frozen - The current action has been halted.h](jL)}(hfrozenh]hfrozen}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhhhM%hjubj\)}(hhh]j)}(hhh]j )}(h#The current action has been halted.h]h)}(hjh]h#The current action has been halted.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM&hjubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]j)j*uh1jhhhM&hjubah}(h]h ]h"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]uh1jEhhhM%hjubjF)}(hresync - Array is undergoing its initial synchronization or is resynchronizing after an unclean shutdown (possibly aided by a bitmap).h](jL)}(hresynch]hresync}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhhhM)hjubj\)}(hhh]j)}(hhh]j )}(h}Array is undergoing its initial synchronization or is resynchronizing after an unclean shutdown (possibly aided by a bitmap).h]h)}(h}Array is undergoing its initial synchronization or is resynchronizing after an unclean shutdown (possibly aided by a bitmap).h]h}Array is undergoing its initial synchronization or is resynchronizing after an unclean shutdown (possibly aided by a bitmap).}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM(hj7ubah}(h]h ]h"]h$]h&]uh1j hj4ubah}(h]h ]h"]h$]h&]j)j*uh1jhhhM(hj1ubah}(h]h ]h"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]uh1jEhhhM)hjubjF)}(h?recover - A device in the array is being rebuilt or replaced.h](jL)}(hrecoverh]hrecover}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1jKhhhM,hjaubj\)}(hhh]j)}(hhh]j )}(h3A device in the array is being rebuilt or replaced.h]h)}(h3A device in the array is being rebuilt or replaced.h]h3A device in the array is being rebuilt or replaced.}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM,hjyubah}(h]h ]h"]h$]h&]uh1j hjvubah}(h]h ]h"]h$]h&]j)j*uh1jhhhM,hjsubah}(h]h ]h"]h$]h&]uh1j[hjaubeh}(h]h ]h"]h$]h&]uh1jEhhhM,hjubjF)}(hcheck - A user-initiated full check of the array is being performed. All blocks are read and checked for consistency. The number of discrepancies found are recorded in . No changes are made to the array by this action.h](jL)}(hcheckh]hcheck}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhhhM3hjubj\)}(hhh]j)}(hhh]j )}(hA user-initiated full check of the array is being performed. All blocks are read and checked for consistency. The number of discrepancies found are recorded in . No changes are made to the array by this action.h]h)}(hA user-initiated full check of the array is being performed. All blocks are read and checked for consistency. The number of discrepancies found are recorded in . No changes are made to the array by this action.h]hA user-initiated full check of the array is being performed. All blocks are read and checked for consistency. The number of discrepancies found are recorded in . No changes are made to the array by this action.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM/hjubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]j)j*uh1jhhhM/hjubah}(h]h ]h"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]uh1jEhhhM3hjubjF)}(h@repair - The same as "check", but discrepancies are corrected.h](jL)}(hrepairh]hrepair}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jKhhhM6hjubj\)}(hhh]j)}(hhh]j )}(h5The same as "check", but discrepancies are corrected.h]h)}(h5The same as "check", but discrepancies are corrected.h]h9The same as “check”, but discrepancies are corrected.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM6hjubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]j)j*uh1jhhhM6hjubah}(h]h ]h"]h$]h&]uh1j[hjubeh}(h]h ]h"]h$]h&]uh1jEhhhM6hjubjF)}(h,reshape - The array is undergoing a reshape.h](jL)}(hreshapeh]hreshape}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jKhhhM8hj'ubj\)}(hhh]j)}(hhh]j )}(h"The array is undergoing a reshape.h]h)}(hjAh]h"The array is undergoing a reshape.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM9hj?ubah}(h]h ]h"]h$]h&]uh1j hj<ubah}(h]h ]h"]h$]h&]j)j*uh1jhhhM9hj9ubah}(h]h ]h"]h$]h&]uh1j[hj'ubeh}(h]h ]h"]h$]h&]uh1jEhhhM8hjubeh}(h]h ]h"]h$]h&]uh1j@hjubeh}(h]h ]h"]h$]h&]uh1j6hjoubeh}(h]h ]h"]h$]h&]uh1j1hjyubj2)}(hhh](j7)}(hhh]h)}(hh]h}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM:hj}ubah}(h]h ]h"]h$]h&]uh1j6hjzubj7)}(hhh]h)}(hThe number of discrepancies found between mirror copies in RAID1/10 or wrong parity values found in RAID4/5/6. This value is valid only after a "check" of the array is performed. A healthy array has a 'mismatch_cnt' of 0.h]hThe number of discrepancies found between mirror copies in RAID1/10 or wrong parity values found in RAID4/5/6. This value is valid only after a “check” of the array is performed. A healthy array has a ‘mismatch_cnt’ of 0.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM:hjubah}(h]h ]h"]h$]h&]uh1j6hjzubeh}(h]h ]h"]h$]h&]uh1j1hjyubj2)}(hhh](j7)}(hhh]h)}(h h]h }(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM>hjubah}(h]h ]h"]h$]h&]uh1j6hjubj7)}(hhh]h)}(hThe current data offset to the start of the user data on each component device of a raid set (see the respective raid parameter to support out-of-place reshaping).h]hThe current data offset to the start of the user data on each component device of a raid set (see the respective raid parameter to support out-of-place reshaping).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhM>hjubah}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1j1hjyubj2)}(hhh](j7)}(hhh]h)}(hh]h}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMAhjubah}(h]h ]h"]h$]h&]uh1j6hjubj7)}(hhh]j)}(hhh](j )}(h*'A' - active write-through journal device.h]h)}(hj h]h.‘A’ - active write-through journal device.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMAhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(h''a' - active write-back journal device.h]h)}(hj!h]h+‘a’ - active write-back journal device.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMBhjubah}(h]h ]h"]h$]h&]uh1j hjubj )}(h'D' - dead journal device.h]h)}(hj8h]h‘D’ - dead journal device.}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMChj6ubah}(h]h ]h"]h$]h&]uh1j hjubj )}(h'-' - no journal device.h]h)}(hjOh]h‘-’ - no journal device.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMDhjMubah}(h]h ]h"]h$]h&]uh1j hjubeh}(h]h ]h"]h$]h&]j)j*uh1jhhhMAhjubah}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1j1hjyubeh}(h]h ]h"]h$]h&]uh1j,hjbubeh}(h]h ]h"]h$]h&]colsKuh1jhj_ubah}(h]h ]h"]h$]h&]uh1j hj[ubah}(h]h ]h"]h$]h&]uh1jhhhMhjhhubeh}(h] status-outputah ]h"] status outputah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(hMessage Interfaceh]hMessage Interface}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMIubh)}(hThe dm-raid target will accept certain actions through the 'message' interface. ('man dmsetup' for more information on the message interface.) These actions include:h]hThe dm-raid target will accept certain actions through the ‘message’ interface. (‘man dmsetup’ for more information on the message interface.) These actions include:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMJhjhhubj)}(hX========= ================================================ "idle" Halt the current sync action. "frozen" Freeze the current sync action. "resync" Initiate/continue a resync. "recover" Initiate/continue a recover process. "check" Initiate a check (i.e. a "scrub") of the array. "repair" Initiate a repair of the array. ========= ================================================ h]j )}(hhh]j)}(hhh](j)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1jhjubj)}(hhh]h}(h]h ]h"]h$]h&]colwidthK0uh1jhjubj-)}(hhh](j2)}(hhh](j7)}(hhh]h)}(h"idle"h]h “idle”}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMOhjubah}(h]h ]h"]h$]h&]uh1j6hjubj7)}(hhh]h)}(hHalt the current sync action.h]hHalt the current sync action.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMOhjubah}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1j1hjubj2)}(hhh](j7)}(hhh]h)}(h"frozen"h]h “frozen”}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMPhjubah}(h]h ]h"]h$]h&]uh1j6hjubj7)}(hhh]h)}(hFreeze the current sync action.h]hFreeze the current sync action.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMPhj(ubah}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1j1hjubj2)}(hhh](j7)}(hhh]h)}(h"resync"h]h “resync”}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMQhjHubah}(h]h ]h"]h$]h&]uh1j6hjEubj7)}(hhh]h)}(hInitiate/continue a resync.h]hInitiate/continue a resync.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMQhj_ubah}(h]h ]h"]h$]h&]uh1j6hjEubeh}(h]h ]h"]h$]h&]uh1j1hjubj2)}(hhh](j7)}(hhh]h)}(h "recover"h]h “recover”}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMRhjubah}(h]h ]h"]h$]h&]uh1j6hj|ubj7)}(hhh]h)}(h$Initiate/continue a recover process.h]h$Initiate/continue a recover process.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMRhjubah}(h]h ]h"]h$]h&]uh1j6hj|ubeh}(h]h ]h"]h$]h&]uh1j1hjubj2)}(hhh](j7)}(hhh]h)}(h"check"h]h “check”}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMShjubah}(h]h ]h"]h$]h&]uh1j6hjubj7)}(hhh]h)}(h/Initiate a check (i.e. a "scrub") of the array.h]h3Initiate a check (i.e. a “scrub”) of the array.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMShjubah}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1j1hjubj2)}(hhh](j7)}(hhh]h)}(h"repair"h]h “repair”}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMThjubah}(h]h ]h"]h$]h&]uh1j6hjubj7)}(hhh]h)}(hInitiate a repair of the array.h]hInitiate a repair of the array.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMThjubah}(h]h ]h"]h$]h&]uh1j6hjubeh}(h]h ]h"]h$]h&]uh1j1hjubeh}(h]h ]h"]h$]h&]uh1j,hjubeh}(h]h ]h"]h$]h&]colsKuh1jhjubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jhhhMNhjhhubeh}(h]message-interfaceah ]h"]message interfaceah$]h&]uh1hhhhhhhhMIubh)}(hhh](h)}(hDiscard Supporth]hDiscard Support}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjBhhhhhMYubh)}(hXThe implementation of discard support among hardware vendors varies. When a block is discarded, some storage devices will return zeroes when the block is read. These devices set the 'discard_zeroes_data' attribute. Other devices will return random data. Confusingly, some devices that advertise 'discard_zeroes_data' will not reliably return zeroes when discarded blocks are read! Since RAID 4/5/6 uses blocks from a number of devices to calculate parity blocks and (for performance reasons) relies on 'discard_zeroes_data' being reliable, it is important that the devices be consistent. Blocks may be discarded in the middle of a RAID 4/5/6 stripe and if subsequent read results are not consistent, the parity blocks may be calculated differently at any time; making the parity blocks useless for redundancy. It is important to understand how your hardware behaves with discards if you are going to enable discards with RAID 4/5/6.h]hXThe implementation of discard support among hardware vendors varies. When a block is discarded, some storage devices will return zeroes when the block is read. These devices set the ‘discard_zeroes_data’ attribute. Other devices will return random data. Confusingly, some devices that advertise ‘discard_zeroes_data’ will not reliably return zeroes when discarded blocks are read! Since RAID 4/5/6 uses blocks from a number of devices to calculate parity blocks and (for performance reasons) relies on ‘discard_zeroes_data’ being reliable, it is important that the devices be consistent. Blocks may be discarded in the middle of a RAID 4/5/6 stripe and if subsequent read results are not consistent, the parity blocks may be calculated differently at any time; making the parity blocks useless for redundancy. It is important to understand how your hardware behaves with discards if you are going to enable discards with RAID 4/5/6.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMZhjBhhubh)}(hSince the behavior of storage devices is unreliable in this respect, even when reporting 'discard_zeroes_data', by default RAID 4/5/6 discard support is disabled -- this ensures data integrity at the expense of losing some performance.h]hSince the behavior of storage devices is unreliable in this respect, even when reporting ‘discard_zeroes_data’, by default RAID 4/5/6 discard support is disabled -- this ensures data integrity at the expense of losing some performance.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMihjBhhubh)}(hStorage devices that properly support 'discard_zeroes_data' are increasingly whitelisted in the kernel and can thus be trusted.h]hStorage devices that properly support ‘discard_zeroes_data’ are increasingly whitelisted in the kernel and can thus be trusted.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMnhjBhhubh)}(hwFor trusted devices, the following dm-raid module parameter can be set to safely enable discard support for RAID 4/5/6:h]hwFor trusted devices, the following dm-raid module parameter can be set to safely enable discard support for RAID 4/5/6:}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMqhjBhhubj)}(h"'devices_handle_discards_safely' h]h)}(h 'devices_handle_discards_safely'h]h$‘devices_handle_discards_safely’}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhMthjubah}(h]h ]h"]h$]h&]uh1jhhhMthjBhhubeh}(h]discard-supportah ]h"]discard supportah$]h&]uh1hhhhhhhhMYubh)}(hhh](h)}(hVersion Historyh]hVersion History}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhMxubh)}(hX8 1.0.0 Initial version. Support for RAID 4/5/6 1.1.0 Added support for RAID 1 1.2.0 Handle creation of arrays that contain failed devices. 1.3.0 Added support for RAID 10 1.3.1 Allow device replacement/rebuild for RAID 10 1.3.2 Fix/improve redundancy checking for RAID10 1.4.0 Non-functional change. Removes arg from mapping function. 1.4.1 RAID10 fix redundancy validation checks (commit 55ebbb5). 1.4.2 Add RAID10 "far" and "offset" algorithm support. 1.5.0 Add message interface to allow manipulation of the sync_action. New status (STATUSTYPE_INFO) fields: sync_action and mismatch_cnt. 1.5.1 Add ability to restore transiently failed devices on resume. 1.5.2 'mismatch_cnt' is zero unless [last_]sync_action is "check". 1.6.0 Add discard support (and devices_handle_discard_safely module param). 1.7.0 Add support for MD RAID0 mappings. 1.8.0 Explicitly check for compatible flags in the superblock metadata and reject to start the raid set if any are set by a newer target version, thus avoiding data corruption on a raid set with a reshape in progress. 1.9.0 Add support for RAID level takeover/reshape/region size and set size reduction. 1.9.1 Fix activation of existing RAID 4/10 mapped devices 1.9.2 Don't emit '- -' on the status table line in case the constructor fails reading a superblock. Correctly emit 'maj:min1 maj:min2' and 'D' on the status line. If '- -' is passed into the constructor, emit '- -' on the table line and '-' as the status line health character. 1.10.0 Add support for raid4/5/6 journal device 1.10.1 Fix data corruption on reshape request 1.11.0 Fix table line argument order (wrong raid10_copies/raid10_format sequence) 1.11.1 Add raid4/5/6 journal write-back support via journal_mode option 1.12.1 Fix for MD deadlock between mddev_suspend() and md_write_start() available 1.13.0 Fix dev_health status at end of "recover" (was 'a', now 'A') 1.13.1 Fix deadlock caused by early md_stop_writes(). Also fix size an state races. 1.13.2 Fix raid redundancy validation and avoid keeping raid set frozen 1.14.0 Fix reshape race on small devices. Fix stripe adding reshape deadlock/potential data corruption. Update superblock when specific devices are requested via rebuild. Fix RAID leg rebuild errors. 1.15.0 Fix size extensions not being synchronized in case of new MD bitmap pages allocated; also fix those not occurring after previous reductions 1.15.1 Fix argument count and arguments for rebuild/write_mostly/journal_(dev|mode) on the status line.h]hX8 1.0.0 Initial version. Support for RAID 4/5/6 1.1.0 Added support for RAID 1 1.2.0 Handle creation of arrays that contain failed devices. 1.3.0 Added support for RAID 10 1.3.1 Allow device replacement/rebuild for RAID 10 1.3.2 Fix/improve redundancy checking for RAID10 1.4.0 Non-functional change. Removes arg from mapping function. 1.4.1 RAID10 fix redundancy validation checks (commit 55ebbb5). 1.4.2 Add RAID10 "far" and "offset" algorithm support. 1.5.0 Add message interface to allow manipulation of the sync_action. New status (STATUSTYPE_INFO) fields: sync_action and mismatch_cnt. 1.5.1 Add ability to restore transiently failed devices on resume. 1.5.2 'mismatch_cnt' is zero unless [last_]sync_action is "check". 1.6.0 Add discard support (and devices_handle_discard_safely module param). 1.7.0 Add support for MD RAID0 mappings. 1.8.0 Explicitly check for compatible flags in the superblock metadata and reject to start the raid set if any are set by a newer target version, thus avoiding data corruption on a raid set with a reshape in progress. 1.9.0 Add support for RAID level takeover/reshape/region size and set size reduction. 1.9.1 Fix activation of existing RAID 4/10 mapped devices 1.9.2 Don't emit '- -' on the status table line in case the constructor fails reading a superblock. Correctly emit 'maj:min1 maj:min2' and 'D' on the status line. If '- -' is passed into the constructor, emit '- -' on the table line and '-' as the status line health character. 1.10.0 Add support for raid4/5/6 journal device 1.10.1 Fix data corruption on reshape request 1.11.0 Fix table line argument order (wrong raid10_copies/raid10_format sequence) 1.11.1 Add raid4/5/6 journal write-back support via journal_mode option 1.12.1 Fix for MD deadlock between mddev_suspend() and md_write_start() available 1.13.0 Fix dev_health status at end of "recover" (was 'a', now 'A') 1.13.1 Fix deadlock caused by early md_stop_writes(). Also fix size an state races. 1.13.2 Fix raid redundancy validation and avoid keeping raid set frozen 1.14.0 Fix reshape race on small devices. Fix stripe adding reshape deadlock/potential data corruption. Update superblock when specific devices are requested via rebuild. Fix RAID leg rebuild errors. 1.15.0 Fix size extensions not being synchronized in case of new MD bitmap pages allocated; also fix those not occurring after previous reductions 1.15.1 Fix argument count and arguments for rebuild/write_mostly/journal_(dev|mode) on the status line.}hjsbah}(h]h ]h"]h$]h&]hhuh1hhhhM|hjhhubeh}(h]version-historyah ]h"]version historyah$]h&]uh1hhhhhhhhMxubeh}(h]dm-raidah ]h"]dm-raidah$]h&]uh1hhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksj6footnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerjerror_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourceh _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}nameids}(jjjjjjjjj?j<jjjju nametypes}(jjjjj?jjuh}(jhjhjjjjj<jjjBjju footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}Rparse_messages]transform_messages] transformerN include_log] decorationNhhub.