Skip to contentSkip to conversation

dm-raid: enhance discard_zeroes_data documentation

PATCH NAK [email protected] 2 participants 2 messages May 15, 2015 – May 24, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index bceb865..713739b 100644
@@ -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
#1 lore raw

Nack.

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_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 +0 -0
index bceb865..713739b 100644
@@ -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

Documentation/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