LinuxQuestions.org
Help answer threads with 0 replies.
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 04-03-2009, 07:42 PM   #1
jsemon
LQ Newbie
 
Registered: Apr 2009
Posts: 1

Rep: Reputation: 0
Mdadm - raid5


Hey guys, I've got a little bit of confusion. I have a CentOS 4.7 server that I have rebuilt and that previously had raid 1. I have now purchased 4 new drives and want to use raid 5 with a hot spare.

I booted with a liveCD and created the raid 5 array using:
Code:
#mdadm --create /dev/md0 --level=5 --raid-devices=3 /dev/sda /dev/sdb /dev/sdc
#mdadm --add /dev/md0 /dev/sdd
I did this using the block devices instead of creating partitions. I then issued the command
Code:
#dd if=/dev/sde of=/dev/md0
Thus my partitions will be created on my raid 5 array that were previously on my raid 1 array.

Now, dd is still running so I'm not even sure how the partitions will look after it is done.

So my question is, will this work? Will this create issues with GRUB? My motherboard doesn't support raid other than 0 and 1.

Will I have to use any tricks to make this work if it will work at all.
 
Old 04-04-2009, 06:45 PM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,251

Rep: Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026
So what happened? Personally I'd go with cp -r instead. dd is a block by block copy. You'd be better off letting the new raid sort that out for itself.
Looks like you're using SW raid, so the M/B issue is irrelevant.

BTW, you can add the spare on the same cmd line
Quote:
-x, --spare-devices=
Specify the number of spare (eXtra) devices in the initial
array. Spares can also be added and removed later. The number
of component devices listed on the command line must equal the
number of raid devices plus the number of spare devices.
 
  


Reply


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
raid5 with mdadm does not ron or rebuild adiehl Linux - General 12 07-26-2010 10:01 AM
mdadm and raid5 doorito Linux - Server 16 10-13-2009 08:56 PM
RAID5 using mdadm, how to mount /dev/md0? ggduff Linux - Software 4 11-14-2007 01:59 AM
raid5 through mdadm doorito Linux - Server 1 04-09-2007 09:22 PM
Growing RAID5 with mdadm not working in 2.6.17? Fredde87 Linux - Software 1 08-24-2006 03:45 AM


All times are GMT -5. The time now is 09:37 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