Scrub corruption cases
From btrfs Wiki
(Difference between revisions)
Lakshmipathi (Talk | contribs) |
Lakshmipathi (Talk | contribs) |
||
Line 30: | Line 30: | ||
| 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 | | 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. | | Scrub expected not to recover f1.txt. It should recover f2.txt with valid parity. | ||
+ | | | ||
+ | |- | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | | | ||
+ | | | ||
+ | | | ||
| | | | ||
|- | |- | ||
|} | |} |
Revision as of 02:03, 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. | should Scrub display/log the filename f1.txt as unrecovered along with failed offset? |
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. | |