Skip to contentSkip to conversation

skip raid5 reconstruction

DISCUSSION Ming Zhang 3 participants 7 messages Jul 5, 2005 – Jul 8, 2005 MD RAID

lore
Share & tools
lore

Ming Zhang

author
#0 lore raw

Hi folks

I am testing some HW performance with raid5 with 2.4.x kenrel.

It is really troublesome every time I create a raid5, wait 4 hours for reconstruction, and then test some data and then recreate another one and wait again. I wonder if there is any hack or option available to create a raid5 without reconstruct the parity disk. I just have interest to test the performance so do not care about data correctness at this stage.

Thanks!

Ming

#1 lore raw
Quoted 10 lines · Ming Zhang

Hi folks

I am testing some HW performance with raid5 with 2.4.x kenrel.

It is really troublesome every time I create a raid5, wait 4 hours for reconstruction, and then test some data and then recreate another one and wait again. I wonder if there is any hack or option available to create a raid5 without reconstruct the parity disk. I just have interest to test the performance so do not care about data correctness at this stage.

I did a similar thing a while back.
I created the raid and waited for it to sync, I then make dd copies of the raid superblocks. When I blew it up I just dd the clean superblocks back again (saved a 12 hour rebuild time)

Having just thought about what you wrote, I guess you are building the raid in different configurationes each time, so my method might not be good for you.

Regards,
Brad

Signature · 3 lines
"Human beings, who are almost unique in having the ability
to learn from the experience of others, are also remarkable
for their apparent disinclination to do so." -- Douglas Adams
author
#2 lore raw
Quoted 12 lines · Brad Campbell
Quoted 10 lines · Ming Zhang

Hi folks

I am testing some HW performance with raid5 with 2.4.x kenrel.

It is really troublesome every time I create a raid5, wait 4 hours for reconstruction, and then test some data and then recreate another one and wait again. I wonder if there is any hack or option available to create a raid5 without reconstruct the parity disk. I just have interest to test the performance so do not care about data correctness at this stage.

Quoted 3 lines

I did a similar thing a while back.
I created the raid and waited for it to sync, I then make dd copies of the raid superblocks. When I blew it up I just dd the clean superblocks back again (saved a 12 hour rebuild time)

interesting to know about this. u just check the dmesg and see where is the sb and then u dd it out and dd back later?

Quoted 4 lines

Having just thought about what you wrote, I guess you are building the raid in different configurationes each time, so my method might not be good for you.

yes, i changed it many times.

thx anyway!

Ming

Quoted 2 lines

Regards,
Brad

#3 lore raw
Quoted 6 lines · Ming Zhang
Quoted 3 lines

I did a similar thing a while back.
I created the raid and waited for it to sync, I then make dd copies of the raid superblocks. When I blew it up I just dd the clean superblocks back again (saved a 12 hour rebuild time)

interesting to know about this. u just check the dmesg and see where is the sb and then u dd it out and dd back later?

Actually, I used blockdev to get the device size and then just copied the last 64kb from memory.. It's a bit hazy now but that's pretty close I think

Regards
Brad

Signature · 3 lines
"Human beings, who are almost unique in having the ability
to learn from the experience of others, are also remarkable
for their apparent disinclination to do so." -- Douglas Adams
author
#4 lore raw
Quoted 6 lines · Brad Campbell
Quoted 4 lines · Ming Zhang
Quoted 3 lines

I did a similar thing a while back.
I created the raid and waited for it to sync, I then make dd copies of the raid superblocks. When I blew it up I just dd the clean superblocks back again (saved a 12 hour rebuild time)

Quoted 6 lines
Quoted 2 lines

interesting to know about this. u just check the dmesg and see where is the sb and then u dd it out and dd back later?

Actually, I used blockdev to get the device size and then just copied the last 64kb from memory.. It's a bit hazy now but that's pretty close I think

:P that is a good method!

thx

ming

Quoted 2 lines

Regards
Brad

#5 lore raw
In reply to Ming Zhang
Quoted 10 lines · Ming Zhang

Hi folks

I am testing some HW performance with raid5 with 2.4.x kenrel.

It is really troublesome every time I create a raid5, wait 4 hours for reconstruction, and then test some data and then recreate another one and wait again. I wonder if there is any hack or option available to create a raid5 without reconstruct the parity disk. I just have interest to test the performance so do not care about data correctness at this stage.

Maybe try smaller partitions?

/mjt

author
#6 lore raw

Thanks, that is a workaround as well. :P

I already solve this by using mkraid.

Ming

Quoted 15 lines · Michael Tokarev
Quoted 10 lines · Ming Zhang

Hi folks

I am testing some HW performance with raid5 with 2.4.x kenrel.

It is really troublesome every time I create a raid5, wait 4 hours for reconstruction, and then test some data and then recreate another one and wait again. I wonder if there is any hack or option available to create a raid5 without reconstruct the parity disk. I just have interest to test the performance so do not care about data correctness at this stage.

Maybe try smaller partitions?

/mjt