Implement shadow mirrors - #18896
Open
pcd1193182 wants to merge 2 commits into
Open
Conversation
Shadow mirrors provide a mechanism for adding an experimental or untrustworthy device to ZFS. This can be useful for testing purposes, where we want to put actual load on a drive in a production or near-production environment, but also want the assurances of existing, reliable storage. Shadow mirrors issue reads to all of their shadow children and one of their non-shadow children (like regular mirrors). The shadow reads are checked for correctness, but not used to return the result of the read. Writes are directed to all children as usual. Signed-off-by: Paul Dagnelie <paul.dagnelie@klarasystems.com> Sponsored-by: Klara, Inc. Sponsored-by: Railway Corporation
pcd1193182
force-pushed
the
shadow_drive
branch
from
August 6, 2026 18:46
d0bf7e4 to
f844c7d
Compare
Signed-off-by: Paul Dagnelie <paul.dagnelie@klarasystems.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sponsored by: Railway Corporation; Klara, Inc.
Description
Shadow mirrors provide a mechanism for adding an experimental or untrustworthy device to ZFS. This can be useful for testing purposes, where we want to put actual load on a drive in a production or near-production environment, but also want the assurances of existing, reliable storage. Shadow mirrors issue reads to all of their shadow children and one of their non-shadow children (like regular mirrors). The shadow reads are checked for correctness, but not used to return the result of the read. Writes are directed to all children as usual.
How Has This Been Tested?
In addition to the new unit test, manual testing was performed to ensure that reads and writes are directed appropriately (all reads go to the shadow child, non-shadow children are distributed as normal).
Types of Changes
Checklist
Signed-off-by.