All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] md: warn about using another MD array as write journal
@ 2021-03-17  4:37 Manuel Riel
  2021-03-19 23:16 ` Song Liu
  0 siblings, 1 reply; 8+ messages in thread
From: Manuel Riel @ 2021-03-17  4:37 UTC (permalink / raw)
  To: Linux-RAID, Song Liu; +Cc: Vojtech Myslivec

To follow up on a previous discussion[1] about stuck RAIDs, I'd like to propose adding a warning
about this to the relevant docs. Specifically users shouldn't add other MD arrays as journal device.

Ideally mdadm would check for this, but having it in the docs is useful too.

1: https://lore.kernel.org/linux-btrfs/d3fced3f-6c2b-5ffa-fd24-b24ec6e7d4be@xmyslivec.cz/

---

diff --git a/Documentation/driver-api/md/raid5-cache.rst b/Documentation/driver-api/md/raid5-cache.rst
index d7a15f44a..128044018 100644
--- a/Documentation/driver-api/md/raid5-cache.rst
+++ b/Documentation/driver-api/md/raid5-cache.rst
@@ -17,7 +17,10 @@ And switch it back to write-through mode by::
        echo "write-through" > /sys/block/md0/md/journal_mode

 In both modes, all writes to the array will hit cache disk first. This means
-the cache disk must be fast and sustainable.
+the cache disk must be fast and sustainable. The cache disk also can't be
+another MD RAID array, since such a nested setup can cause problems when
+assembling an array or lead to the primary array getting stuck during
+operation.

 write-through mode
 ==================

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-05-13  1:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-17  4:37 [PATCH] md: warn about using another MD array as write journal Manuel Riel
2021-03-19 23:16 ` Song Liu
2021-03-20  1:12   ` Manuel Riel
2021-03-21  4:22     ` Manuel Riel
2021-03-22 17:13       ` Song Liu
2021-03-23  3:27         ` Manuel Riel
2021-05-12 22:39         ` Vojtech Myslivec
2021-05-13  1:19           ` Guoqing Jiang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.