From: Janek Kozicki <janek_listy@wp.pl>
To: linux-raid@vger.kernel.org
Subject: telling mdadm to use spare drive.
Date: Sun, 4 Nov 2007 17:05:02 +0100 [thread overview]
Message-ID: <20071104170502.6db7fcb1@absurd> (raw)
Hi,
I finished copying all data from old disc hdc to my shiny new
RAID5 array (/dev/hda3 /dev/sda3 missing). Next step is to create a
partition on hdc and add it to the array. And so I did this:
# mdadm --add /dev/md1 /dev/hdc3
But then I had a problem - the /dev/hdc3 was a spare, it didn't
resync automatically:
# mdadm -D /dev/md1
[....]
Number Major Minor RaidDevice State
0 3 3 0 active sync /dev/hda3
1 8 3 1 active sync /dev/sda3
2 0 0 2 removed
3 22 3 - spare /dev/hdc3
I wanted to tell mdadm to use the spare device, and I wasn't sure how
to do this, so I tried following:
# mdadm --stop /dev/md1
# mdadm --assemble --update=resync /dev/md1 /dev/hda3 /dev/sda3 /dev/hdc3
Now, 'mdadm -D /dev/md1' says:
[...]
Number Major Minor RaidDevice State
0 3 3 0 active sync /dev/hda3
1 8 3 1 active sync /dev/sda3
3 22 3 2 spare rebuilding /dev/hdc3
I'm writing here just because I want to be sure that I added this new
device correctly, I don't want to make any stupid mistake here...
# cat /proc/mdstat
md1 : active raid5 hda3[0] hdc3[3] sda3[1]
966807296 blocks super 1.1 level 5, 128k chunk, algorithm 2 [3/2] [UU_]
[=>...................] recovery = 6.2% (30068096/483403648) finish=254.9min speed=29639K/sec
bitmap: 8/8 pages [32KB], 32768KB chunk
Was there a better way to do this, is it OK?
--
Janek Kozicki |
next reply other threads:[~2007-11-04 16:05 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-04 16:05 Janek Kozicki [this message]
2007-11-05 10:58 ` man mdadm - suggested correction Janek Kozicki
2007-11-05 18:08 ` Michael Tokarev
2007-11-05 10:58 ` Janek Kozicki
2007-11-05 11:04 ` Janek Kozicki
2007-11-07 9:17 ` telling mdadm to use spare drive Goswin von Brederlow
2007-11-07 17:26 ` Janek Kozicki
2007-11-07 19:13 ` Richard Scobie
2007-11-08 20:28 ` Janek Kozicki
2007-11-08 21:32 ` Richard Scobie
2007-11-09 9:50 ` Janek Kozicki
-- strict thread matches above, loose matches on Subject: below --
2007-11-04 14:20 Janek Kozicki
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=20071104170502.6db7fcb1@absurd \
--to=janek_listy@wp.pl \
--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.