#1  
Old 11th March 2010, 20:15
carlosinfl carlosinfl is offline
Member
 
Join Date: Dec 2009
Location: Orlando, FL
Posts: 70
Thanks: 3
Thanked 4 Times in 4 Posts
Send a message via AIM to carlosinfl
 
Default Configure RAID5 w/ Spare?

I have a machine that supports 4 S-ATA drives. I have all identical drives in each slot. I am asking for someone to please tell me how I can create a RAID5 array on Linux and then also have the 4th drive (/dev/sdd) as a hot spare for any of the three drives in the array / volume?

I did the following:

/device = type @ parition size

/dev/sda1 = fd @ 100 MB (bootable for /boot)
/dev/sda2 = fd @ 1 GB (Going to be used for Swap)
/dev/sda3 = fd @ 300 GB (Going to be used for /)

Now I make the same thing for /dev/sdb & /dev/sdc. I DON'T PARTITION OR FORMAT /dev/sdd.

Now I am creating my RAID and this is where I am confused. How do I correctly issue the 'mdadm' command to create the volumes for my filesystem and also utilize /dev/sdd as a hot spare?

(/boot)
Code:
mdadm --create /dev/md0 --level=1 --raid-devices=3 /dev/sda1 /dev/sdb1 /dev/sdc1 --spare-devices=1 /dev/sdd
(Swap)
Code:
mdadm --create /dev/md1 --level=1 --raid-devices=3 /dev/sda2 /dev/sdb2 /dev/sdc2 --spare-devices=1 /dev/sdd
(/)
Code:
mdadm --create /dev/md2 --level=5 --raid-devices=3 /dev/sda3 /dev/sdb3 /dev/sdc3 --spare-devices=1 /dev/sdd
Is that correct above or would I 1st have to partition the /dev/sdd drive?
Reply With Quote
Sponsored Links
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating SSL crashed apache punto Installation/Configuration 8 22nd June 2009 09:00
Error compile Courier-Authlib pcom11 Server Operation 1 29th September 2007 13:15
Debian: Failed Raid5 Array & Kernal Panic snowfly Installation/Configuration 0 29th August 2007 13:52
Configure Mail Server (PostFix) Mariel Installation/Configuration 4 24th April 2007 20:10
Can't mount RAID5... jdlvfr Installation/Configuration 4 3rd November 2006 22:14


All times are GMT +2. The time now is 15:18.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.