LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-23-2006, 01:49 PM   #1
Fredde87
Member
 
Registered: Aug 2005
Posts: 158

Rep: Reputation: 30
Growing RAID5 with mdadm not working in 2.6.17?


Hi,

I have finally gone over to raid5 so that when a drive fails i wont loose anything. Now, I have bought a new 320gb drive which I want to add to the array. So I did mdadm --manage --add /dev/md2 /dev/sdb2. So now my mdstat looks like this,

md2 : active raid5 sdb2[3](S) hdb2[0] sda2[2] hdc1[1]
586051072 blocks level 5, 64k chunk, algorithm 2 [3/3] [UUU]

so I now want to grow it, so I do mdadm --grow /dev/md2 --raid-disks=4 but for some reason I am getting the following,
mdadm: Need to backup 384K of critical section..
mdadm: Cannot set device size/shape for /dev/md2: Invalid argument

I tried adding --backup-file=/root/md2-backup as well but I still get the same error. Dmesg returns md: couldn't update array info. -22

What am I missing? I recompiled my raid5 module with reshape support, but that didnt change anything. I have also tried using --size=max as well but still nothing.
 
Old 08-24-2006, 03:45 AM   #2
Fredde87
Member
 
Registered: Aug 2005
Posts: 158

Original Poster
Rep: Reputation: 30
Ok I got it to work, just me being to lazy. It wasnt enough to compile the new module and add it to my existing kernel, I had to boot into the new kernel as well.

But now I have a new problem, the raid array is be reshaped, but it stops after just 583744 blocks and does nothing. I have tried to do fsck.ext3 -f /dev/md2 but that didnt change anything. What could be causing it to stop there? And how can I repair it?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RAID5 using mdadm, how to mount /dev/md0? ggduff Linux - Software 4 11-14-2007 01:59 AM
grow a raid5 with mdadm (kernel 2.6.17) best practice? DD.Jarod Linux - Software 1 08-14-2006 11:24 AM
mdadm (get my array working again) dadriver Linux - Software 1 01-20-2006 06:56 PM
mdadm problems with growing an existing array mjcramer Fedora 2 07-11-2005 08:28 PM
Growing Up... bkeating General 10 06-17-2002 05:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration