linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* need help: corrupt files on one of my raids
@ 2009-11-10 14:07 Arild Langseid
  2009-11-10 15:34 ` Majed B.
  0 siblings, 1 reply; 10+ messages in thread
From: Arild Langseid @ 2009-11-10 14:07 UTC (permalink / raw)
  To: linux-raid

Hi all!

I have a strange problem with corrupted files on my raid1 volume. (A 
raid5 volume on the same computer works just fine).

One of my raids (md1) is a raid1 with two 1TB sata drives.
I am running lvm on the raid and have two of the volumes on the raid are:
/dev/vg0sata/lv0_bilderArchive
/dev/vg0sata/lv0_bilderProjects
(For your info: "bilder" in Norwegian is "pictures" in english)

What I want:
I want to use the lv0_bilderArchive to store my pictures unmodified and 
lv0_bilderProjects to hold my edited pictures and projects.

My problem is:

My files are corrupted. Usually the files (crw/cr2/jpg) are stored ok, 
but is corrupted later when new files/directories is added to the 
volume. Sometimes the files are corrupted instantly at save-time.

I discovered this first when copying from my laptop to the server via 
samba. By testing I have found that this behavour also applies when I 
copy local on the server from raid5 (md0) to the faulty raid1(md1) with 
cp -a.

I have tested with both reiserfs and ext3 filesystem. The 
file-corruption happens on both reiserfs and ext3.

One of my test-procedures was as follows:
1. copied 21 pictures localy to the root of the lv0_bilderProjects 
volume. First 10 pictures, then 11 more by cp -a. All pictures survived 
and was stored non-corrupted.
2. Then I copied a whole directory-tree with cp -a to the 
lv0_bilderProjects volume. Many pictures was corrupted, a few stored ok. 
All small text-files with exif-info seems ok. All files on the 
volume-root copied in 1) is ok.
3. Then I copied one more directory-tree. All pictures seems ok. Mostly 
jpg this time.
4. Then I copied one more directory-tree, larger this time. Now the 
first 21 pictures in the volume-root is corrupted. All of them - and 
some of them in a way that my browser can't show them at all but shows 
an error-message.

I think by my test that the samba, network and type of filesystem is not 
the source to my problems.

I have the same problem on all lvm-volumes on the raid in question (md1).

What's common and what's different on my to raids:

differences on the two raid-systems:
md0 (working correct) is a raid5, three ide-disks, 200GB each.
md1 (corrupted files) is a raid1, two sata-disks, 1TB each.

common:
I use lvm on both raid-devices to host my filesystems.

other useful information:
I use Debian:
creator:~# cat /proc/version
Linux version 2.6.18-6-686 (Debian 2.6.18.dfsg.1-26etch1) 
(dannf@debian.org) (gcc version 4.1.2 20061115 (prerelease) (Debian 
4.1.1-21)) #1 SMP Thu Nov 5 16:28:13 UTC 2009

I have run apt-get update and apt-get upgrade, and all seems to be updated.

The sata disks are hosted on the motherboard: ABit NF7
The disks hosting the raid I have trouble with (md1) are Hitachi
Deskstar 1TB 16MB SATA2 7200RPM, 0A38016

The output from mdadm --detail /dev/md1 and cat /proc/mdstat seems ok, 
but I can post the results here at request. The same applies to the 
output from pvdisplay, vgdisplay and lvdisplay. They seems ok, but I can 
post at request.

Due to the time to build a 1TB raid I have not tried to use the disks in 
md1 without raiding them. Is it a good idea to tear the raid down and 
test the disks directly or does any of you have other ideas to test 
before I take this time consuming action?


Any ideas out there? Links to information I should read?

Thank heaven for my backup-routines including all copy on cold
harddrives both in my safe and off location :-D

Thanks for all help!

Best Regards,
Arild, Oslo, Norway




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

end of thread, other threads:[~2009-11-11  8:31 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-10 14:07 need help: corrupt files on one of my raids Arild Langseid
2009-11-10 15:34 ` Majed B.
     [not found]   ` <4AF99159.4000800@langseid.no>
2009-11-10 18:26     ` Majed B.
     [not found]       ` <4AF9CB19.7000803@langseid.no>
2009-11-10 20:31         ` Majed B.
     [not found]           ` <4AF9D194.6000306@langseid.no>
2009-11-11  2:29             ` Majed B.
2009-11-11  4:16               ` Michael Evans
2009-11-11  8:06                 ` Arild Langseid
2009-11-11  8:15                 ` Arild Langseid
2009-11-11  8:25                   ` Leslie Rhorer
2009-11-11  8:31                   ` Michael Evans

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).