From: Carlos Mennens <carloswill@gmail.com>
To: Mdadm <linux-raid@vger.kernel.org>
Subject: Configuring RAID5 w/ Spare?
Date: Thu, 11 Mar 2010 13:11:47 -0500 [thread overview]
Message-ID: <d80f793f1003111011m588e1bdem3a9d934ff0fdc35e@mail.gmail.com> (raw)
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)
mdadm --create /dev/md0 --level=1 --raid-devices=3 /dev/sda1 /dev/sdb1
/dev/sdc1 --spare-devices=1 /dev/sdd
(Swap)
mdadm --create /dev/md1 --level=1 --raid-devices=3 /dev/sda2 /dev/sdb2
/dev/sdc2 --spare-devices=1 /dev/sdd
(/)
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?
next reply other threads:[~2010-03-11 18:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-11 18:11 Carlos Mennens [this message]
2010-03-11 18:16 ` Configuring RAID5 w/ Spare? Brendan Conoboy
2010-03-11 18:18 ` Carlos Mennens
2010-03-11 18:24 ` Brendan Conoboy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d80f793f1003111011m588e1bdem3a9d934ff0fdc35e@mail.gmail.com \
--to=carloswill@gmail.com \
--cc=linux-raid@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).