dm-raid: enhance discard_zeroes_data documentation
Subsystems (2)
From: Heinz Mauelshagen <[email protected]>
This patch adds documentation explaining background of discard_zeroes_data issues with raid4/5/6 and the related devices_handle_discards_safely module parameter.
--- Documentation/device-mapper/dm-raid.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+)
Documentation/device-mapper/dm-raid.txt +21 -0
@@ -226,4 +226,25 @@ Version History 1.5.2 'mismatch_cnt' is zero unless [last_]sync_action is "check". 1.6.0 Add devices_handle_discards_safely module parameter to allow discards on disks anouncing uncertain discard_zeroes_data + (see *discard* below for more details) 1.7.0 Add support for MD RAID0 mappings + +*discard' +The MD raid4/5/6 personalities trust discard_zeroes_data ensuring +to return zeroes as block content after a discard and thus avoid +rewriting them; the zeroed content is used to reconstruct data +on a disk failure thus leading to corrupion in any reconstructed +block derived from discarded ones. + +Field reports showed, that an unknown number of disks fail supporting +discard_zeroes_data properly, hence they may return non-zero block +content after a discard. + +In order to avoid data corruption on recovery of failed RAID device +content using discarded blocks, we have to avoid using the feature +by default. + +For convenience, the module parameter devices_handle_discards_safely +allows users knowing for sure that discard_zeroes_data works properly +on all their raid disks to overwrite the default and make use +of the discard_zeroes_data optimization.
Signature · 1 line
2.1.0
Brassow Jonathan
NAKNack.
Please leave the ‘version history’ section at the end.
The new discard section should have a header like all the other sections, e.g. the section name underlined by single dashes.
brassow
Quoted 52 lines · On May 15, 2015, at 2:35 PM, [email protected] wrote:
From: Heinz Mauelshagen <[email protected]>
This patch adds documentation explaining background of
discard_zeroes_dataissues with raid4/5/6 and the relateddevices_handle_discards_safelymodule parameter.Signed-of-by Heinz Mauelshagen <[email protected]>---
Documentation/device-mapper/dm-raid.txt| 21 +++++++++++++++++++++1 file changed, 21 insertions(+)Documentation/device-mapper/dm-raid.txt +0
-0@@ -226,4 +226,25 @@ Version History1.5.2 '
mismatch_cnt' is zero unless [last_]sync_action is "check".
1.6.0 Adddevices_handle_discards_safelymodule parameter to
allow discards on disks anouncing uncertaindiscard_zeroes_dataDocumentation/device-mapper/dm-raid.txt +1
-0+ (see *discard* below for more details)1.7.0 Add support for MD RAID0 mappings
Documentation/device-mapper/dm-raid.txt +20
-0+ +*discard' +The MD raid4/5/6 personalities trust discard_zeroes_data ensuring +to return zeroes as block content after a discard and thus avoid +rewriting them; the zeroed content is used to reconstruct data +on a disk failure thus leading to corrupion in any reconstructed +block derived from discarded ones. + +Field reports showed, that an unknown number of disks fail supporting +discard_zeroes_data properly, hence they may return non-zero block +content after a discard. + +In order to avoid data corruption on recovery of failed RAID device +content using discarded blocks, we have to avoid using the feature +by default. + +For convenience, the module parameter devices_handle_discards_safely +allows users knowing for sure that discard_zeroes_data works properly +on all their raid disks to overwrite the default and make use +of the discard_zeroes_data optimization.Signature · 6 lines
2.1.0 -- dm-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/dm-devel
--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel