LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 01-09-2010, 12:49 PM   #1
CADIT
LQ Newbie
 
Registered: Nov 2009
Location: Belfast Northern Ireland
Distribution: Debian Lenny
Posts: 7

Rep: Reputation: 0
Recreate a Raid5 MD0 into a Raid5 MD3


Hi,
I have no drive failures but just need to recreate a raid5 set as the next free MD disk number.
Originally I built a temp OS of debian on a single drive and had 4x2TB drives in a raid5 software array (MD0) this worked fine and allowed me to move all data to it, and remove our old fileserver.
I have now pulled out the 4 x 2TB Raid 5 drives and created a new OS on two new 80GB drives, partioned as follows,
MD0 is now 250mb Raid1 as /boot
MD1 is 4GB Raid1 Swap
MD2 is 76GB Raid1 as /

If I turn off and push back in the 4x2TB drives I cannot see a MD3. I presume I would need to create a MD3 from these 4 drives but I dont want to mess things up as its live data. So im here asking for help, or a bit of hand holding to get it done right.

As I say no drives have failed so hopefully it should be a simple process.
Thanks
Dave

PS - Its a Debian Lenny 5.0.3 Raid1 fresh install replacing a Debian Lenny 5.0.3 on a single disk.
 
Old 01-10-2010, 09:55 PM   #2
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Wheezy/Jessie/Sid, Linux Mint DE
Posts: 4,192

Rep: Reputation: 538Reputation: 538Reputation: 538Reputation: 538Reputation: 538Reputation: 538
You might try to add a line to mdadm.conf which contains the same information as the previous mdadm.conf on the 4x2TB system. On the 4x2 system you had a line which described md0 with UUID's and all. You should add this line to the current mdadm.conf, but this time change md0 to md3.

jlinkels
 
1 members found this post helpful.
Old 01-11-2010, 05:46 AM   #3
CADIT
LQ Newbie
 
Registered: Nov 2009
Location: Belfast Northern Ireland
Distribution: Debian Lenny
Posts: 7

Original Poster
Rep: Reputation: 0
Worked a treat!

Thanks jlinkels, got the old array definition details from the old mdadm.conf file, and copied it into the new mdadm.conf file. Then changed /dev/md0 to /dev/md3 and rebooted. It picked up the array and I just had to mount it.
Thanks again for you help
 
  


Reply

Tags
debian, lenny, md, mdadm, raid


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Multi Layer RAID50 fail (Intel SRCS14L RAID5 + 3ware 9550SX-4LP RAID5)+Linux RAID 0 BaronVonChickenPants Linux - Server 4 09-27-2009 05:06 AM
RAID5 using mdadm, how to mount /dev/md0? ggduff Linux - Software 4 11-14-2007 02:59 AM
>raid5 : not enough operational devices for md0 (2/3 failed) targi Linux - Newbie 3 04-08-2006 01:03 AM
Raid5 subho Linux - Newbie 1 03-24-2006 05:33 PM
Raid5 IwantLINUX Linux - Newbie 2 03-17-2005 04:33 PM


All times are GMT -5. The time now is 01:06 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration