From: Derek Vadala <derek@cynicism.com>
To: linux-raid@vger.kernel.org
Cc: "mousebusiness.com" <arturj@mousebusiness.com>
Subject: Re: Adding spare drive
Date: Mon, 6 May 2002 21:29:51 -0700 (PDT) [thread overview]
Message-ID: <Pine.GSO.4.21.0205062122580.15444-100000@gecko.roadtoad.net> (raw)
In-Reply-To: <002901c1f579$464ec5a0$050010ac@niunia.org>
On Mon, 6 May 2002, mousebusiness.com wrote:
> I will be building a RAID5 array with 5 data drives and one hot spare. I
> need to use the drive for hot spare for something else at the moment. Is it
> possible to build my array with 5 drives and add hot spare later by simply
> adding the entry for it in /etc/raidtab?
Just create a 5-disk RAID-5 without a hot spare. When you're ready to
bring the spare disk into the array just use raidhotadd to insert it.
# raidhotadd /dev/md0 /dev/<sparedevice>
Now <sparedevice> is a spare disk in /dev/md0 (the 5-disk RAID-5). Now
update /etc/raidtab to reflect the new config. That means you'll add
nr-spare-disks and a device/spare-disk entry for /dev/<sparedevice>.
You can raidstop and raidstart the array to make sure it works, if it
makes you feel better, but you shouldn't need to.
> The array will be built with 6 drives connected to 3 IDE controllers, one
> per channel, 2 channels on each board. If one controller fails, obviously
> the array will go down with it. Does that mean that all data will be
> irrecoverably lost or will things go back to normal after I replace
> defective controller and let the array resync?
You'll be able to recover from a controller failure by replacing the
failed controller. Since physical controller placement typically impacts
device names you want to make sure you put a new controller in the same
slot as the one the failed, or make sure you have mapped out the disk
order and changed /etc/raidtab to reflect any changes.
---
Derek Vadala, derek@cynicism.com, http://www.cynicism.com/~derek
prev parent reply other threads:[~2002-05-07 4:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-07 3:42 Adding spare drive mousebusiness.com
2002-05-07 4:29 ` Derek Vadala [this message]
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=Pine.GSO.4.21.0205062122580.15444-100000@gecko.roadtoad.net \
--to=derek@cynicism.com \
--cc=arturj@mousebusiness.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).