Skip to contentSkip to conversation

2.5.24-dj1,smp,ext2,raid0: I got random zero blocks in my files.

DISCUSSION Helge Hafting 3 participants 3 messages Jul 1, 2002 – Jul 4, 2002

lore
Share & tools
lore
#0 lore raw

2.5.24-dj1 gave me files with zeroed blocks inside. What I did: I untarred the source for lyx 1.2.0 and tried to compile it, several times.

gcc and make choked on occational blocks of zeroes inside files, different places each time. Going back to 2.5.18 fixed it.

This isn't all that surprising considering that the raid driver logs complaints about requests bigger than 32k, which is the stripe size.
I believed this worked by retrying with much smaller requests, perhaps I am wrong?

The filesystems use 4k blocks.
I haven't seen any trouble on non-raid or raid-1 partitions.

Helge Hafting

#1 lore raw
Quoted 15 lines · Helge Hafting

2.5.24-dj1 gave me files with zeroed blocks inside. What I did: I untarred the source for lyx 1.2.0 and tried to compile it, several times.

gcc and make choked on occational blocks of zeroes inside files, different places each time. Going back to 2.5.18 fixed it.

This isn't all that surprising considering that the raid driver logs complaints about requests bigger than 32k, which is the stripe size.
I believed this worked by retrying with much smaller requests, perhaps I am wrong?

Quoted 3 lines

The filesystems use 4k blocks.
I haven't seen any trouble on non-raid or raid-1 partitions.

Yes, the large BIO stuff went into 2.5.19. RAID0 doesn't like those big BIOs. Jens is cooking up a fix for that.

Just to confirm that this is the problem, could you please set MPAGE_BIO_MAX_SIZE in 32768 in fs/mpage.c and see if the failure goes away?

-

#2 lore raw
In reply to Helge Hafting
Quoted 8 lines · On Monday July 1, [email protected] wrote:

2.5.24-dj1 gave me files with zeroed blocks inside. What I did: I untarred the source for lyx 1.2.0 and tried to compile it, several times.

gcc and make choked on occational blocks of zeroes inside files, different places each time. Going back to 2.5.18 fixed it.

Quoted 5 lines

This isn't all that surprising considering that the raid driver logs complaints about requests bigger than 32k, which is the stripe size.
I believed this worked by retrying with much smaller requests, perhaps I am wrong?

You are wrong. It doesn't re-try. It just fails. raid0 does not work in 2.5 yet. Don't even both trying.

NeilBrown