Scrub corruption cases

From btrfs Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with " {| class="wikitable" |- ! Name ! Description ! Expected Result ! Comments (if any) |- | D0-corruption | 1. Create 128kb file.(f1.txt) <br/> 2. Corrupt D0 Stripe. <br/> 3...")
 
Line 17: Line 17:
 
|
 
|
 
|-
 
|-
| R2C1
+
| P-corruption
| R2C2
+
| 1. Create 128kb file.(f1.txt)  <br/>2. Corrupt Parity Stripe.    <br/>3. Run Scrub
| R2C3
+
| P should have original un-corrupted content.                 
 +
|
 
|-
 
|-
| R2C1
+
| D0-D1-corruption
| R2C2
+
| 1. Create 128kb file. (f1.txt) <br/> 2. Corrupt both D0 and D1    <br/> 3. Run Scrub
| R2C3
+
| Scrub expected to fail and should not recover f1.txt.
 +
|
 +
|-
 +
| D0-D1-corruption2
 +
| 1. Create 128kb file. (f1.txt)  and another file with size 128kb (f2.txt) <br/> 2. Corrupt both D0 and D1  from f1.txt<br/> 3. Corrupt only D0  from f2.txt      <br/>  4. Run Scrub
 +
| Scrub expected not to recover f1.txt. It should recover f2.txt with valid parity.               
 +
|
 +
|-
 +
 
 
|}
 
|}

Revision as of 02:00, 24 February 2017

Name Description Expected Result Comments (if any)
D0-corruption 1. Create 128kb file.(f1.txt)
2. Corrupt D0 Stripe.
3. Run Scrub
D0 should have original un-corrupted content.
Parity value should be valid.
RAID5 with 3 drives
D1-corruption 1. Create 128kb file.(f1.txt)
2. Corrupt D1 Stripe.
3. Run Scrub
D1 should have original un-corrupted content.
Parity value should be valid.
P-corruption 1. Create 128kb file.(f1.txt)
2. Corrupt Parity Stripe.
3. Run Scrub
P should have original un-corrupted content.
D0-D1-corruption 1. Create 128kb file. (f1.txt)
2. Corrupt both D0 and D1
3. Run Scrub
Scrub expected to fail and should not recover f1.txt.
D0-D1-corruption2 1. Create 128kb file. (f1.txt) and another file with size 128kb (f2.txt)
2. Corrupt both D0 and D1 from f1.txt
3. Corrupt only D0 from f2.txt
4. Run Scrub
Scrub expected not to recover f1.txt. It should recover f2.txt with valid parity.
Personal tools