Bug 506894 - Data corrupted after rebuild on RAID1 and RAID10 for second volume.
Summary: Data corrupted after rebuild on RAID1 and RAID10 for second volume.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: dmraid
Version: 5.4
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: 5.4
Assignee: Heinz Mauelshagen
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-06-19 07:24 UTC by Krzysztof Wojcik
Modified: 2009-07-28 21:29 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-07-28 21:29:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Krzysztof Wojcik 2009-06-19 07:24:50 UTC
Description of problem:
This problem is visible when test on second volume is performed on RAID1 or RAID10.
When rebuild is finished (theoretically with PASS result), checksums of test files created before rebuild, do not equal checksums of files after rebuild. Dmsetup status reports rebuild is finished, but there is something wrong with rebuilded files.


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. echo y | dmraid -f isw -C r1d2n1s0-5 --type 1 --size 5G --disk "/dev/sdb /dev/sdc"
    echo y | dmraid -f isw -C r1d2n0s0 --type 1 --disk "/dev/sdb /dev/sdc"
2. dmraid -ay
5. mkfs.ext3 /dev/mapper/isw_ceacbaeigh_r1d2n0s0
    mkdir /mnt/isw_ceacbaeigh_r1d2n0s0
    mount /dev/mapper/isw_ceacbaeigh_r1d2n0s0 /mnt/isw_ceacbaeigh_r1d2n0s0
3. fsck -f -n /dev/mapper/isw_ceacbaeigh_r1d2n0s0
4. openssl rand -out /mnt/isw_ceacbaeigh_r1d2n0s0/r1testFile0.bin 419430400
    md5sum /mnt/isw_ceacbaeigh_r1d2n0s0/r1testFile0.bin | gawk '{print $1}'
    openssl rand -out /mnt/isw_ceacbaeigh_r1d2n0s0/r1testFile1.bin 400000000
    md5sum /mnt/isw_ceacbaeigh_r1d2n0s0/r1testFile1.bin | gawk '{print $1}'
    openssl rand -out /mnt/isw_ceacbaeigh_r1d2n0s0/r1testFile2.bin 1073741824
    md5sum /mnt/isw_ceacbaeigh_r1d2n0s0/r1testFile2.bin | gawk '{print $1}'
5. umount /dev/mapper/isw_ceacbaeigh_r1d2n0s0
    rmdir /mnt/isw_ceacbaeigh_r1d2n0s0
6. REBOOT PC- remove disk from raid
7.dmraid -R isw_ceacbaeigh_r1d2n0s0 "/dev/sdd"
      WAIT UNTILL REBUILD IS FINISHED
8. dmraid -an isw_ceacbaeigh_r1d2n0s0
9. mkdir /mnt/dev
      mount /dev/sdb /mnt/dev
10. md5sum /mnt/dev/r1testFile1.bin | gawk '{print $1}'
       md5sum /mnt/dev/r1testFile2.bin | gawk '{print $1}'
       COMPARE THESE CHECKSUMS WITH CHECKSUMS 
       FROM POINT 7 ABOVE; THEY'RE DIFFERENT

  
Actual results:
Checksums of files created before rebuild don't equal checksums of files after rebuild.

Expected results:
Checksums of files created before rebuild equal checksums of files after rebuild.

Additional info:

Comment 2 Krzysztof Wojcik 2009-07-20 13:30:57 UTC
Issue verified in RHEL5.4 Beta with pass result.

Comment 3 Tom Coughlan 2009-07-21 17:22:03 UTC
(In reply to comment #2)
> Issue verified in RHEL5.4 Beta with pass result.  

So, just to confirm, this BZ can be closed NOTABUG ?

Comment 4 Krzysztof Wojcik 2009-07-22 08:40:21 UTC
Yes you are right. This is not a bug.


Note You need to log in before you can comment on or make changes to this bug.