From: Mitchell Laks <mlaks@verizon.net>
To: linux-raid@vger.kernel.org
Subject: what does spares=1 mean in mdadm --detail --scan for raid1
Date: Fri, 29 Apr 2005 02:25:42 -0400 [thread overview]
Message-ID: <200504290225.42442.mlaks@verizon.net> (raw)
Hi,
I have multiple raid 1 devices on my system.
recently i noticed read seek errors in /var/log/kern.log from /dev/hdi1 which
is part of /dev/md1.
I then did a lot of work with /dev/md1 and then i noticed that /dev/hdi1
failed in the /dev/md1 but the data was fine on remaining part of raid1.
I then shut system down and
then i put in another device to replace /dev/hdi1 and rebooted
At this point of rebooting, i had forgotten to edit the contents
of /etc/mdadm/mdadm.conf and it still had the line something like
ARRAY /dev/md1 level=raid1 num-devices=2 \
UUID=d876333b:694e852b:e9a6f40f:0beb90f9
devices /dev/hdc1,/dev/hdi1
then i got an error from fsck on bootup as it reached /dev/md1
and dropped me into single user mode
then i changed the mdadm.conf file to
ARRAY /dev/md1 level=raid1 num-devices=2
UUID=d876333b:694e852b:e9a6f40f:0beb90f9
devices /dev/hdc1
and it booted fine.
i then did
mdadm /dev/md1 -a /dev/hdi1
to add in my new drive.
Mdadm then began to recreate the array.
and then, while the raid was in the process of rebuilding
i did
mdadm --detail --scan
and the line read
ARRAY /dev/md1 level=raid1 num-devices=2 spares=1 \
UUID=d876333b:694e852b:e9a6f40f:0beb90f9
devices /dev/hdc1,/dev/hdi1
so my question for the group is
what is the meaning of spares=1?
does it mean to indicate that the device is still rebuilding?
On the other raid 1 devices on my system, such as
/dev/md0 the mdadm --detail --scan says
ARRAY /dev/md0 level=raid1 num-devices=2
UUID=d876333b:694e852b:e9a6f40f:0beb90f9
devices /dev/hda1,/dev/hdg1
without the spares=1 clause.
The reason I ask is: What should I write into my new version of mdadm.conf?
I am guessing I should write
ARRAY /dev/md1 level=raid1 num-devices=2
UUID=d876333b:694e852b:e9a6f40f:0beb90f9
devices /dev/hdc1,/dev/hdi1
without the spares=1 thing.
I am confused what spares=1 is for.....
Thanks!!!
Mitchell Laks
next reply other threads:[~2005-04-29 6:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-29 6:25 Mitchell Laks [this message]
2005-04-29 6:38 ` what does spares=1 mean in mdadm --detail --scan for raid1 Guy
2005-04-29 8:44 ` Mitchell Laks
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=200504290225.42442.mlaks@verizon.net \
--to=mlaks@verizon.net \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.