* telling mdadm to use spare drive.
@ 2007-11-04 16:05 Janek Kozicki
2007-11-05 10:58 ` man mdadm - suggested correction Janek Kozicki
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: Janek Kozicki @ 2007-11-04 16:05 UTC (permalink / raw)
To: linux-raid
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 |
^ permalink raw reply [flat|nested] 11+ messages in thread* man mdadm - suggested correction.
2007-11-04 16:05 telling mdadm to use spare drive Janek Kozicki
@ 2007-11-05 10:58 ` Janek Kozicki
2007-11-05 18:08 ` Michael Tokarev
2007-11-05 10:58 ` Janek Kozicki
2007-11-07 9:17 ` telling mdadm to use spare drive Goswin von Brederlow
2 siblings, 1 reply; 11+ messages in thread
From: Janek Kozicki @ 2007-11-05 10:58 UTC (permalink / raw)
To: linux-raid
Hello,
I did read 'man mdadm' from top to bottom, but I totally forgot to
look into /usr/share/doc/mdadm !
And there is much more - FAQs, recipes, etc!
Can you please add do the manual under 'SEE ALSO' a reference
to /usr/share/doc/mdadm ?
thanks :-)
--
Janek Kozicki |
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: man mdadm - suggested correction.
2007-11-05 10:58 ` man mdadm - suggested correction Janek Kozicki
@ 2007-11-05 18:08 ` Michael Tokarev
0 siblings, 0 replies; 11+ messages in thread
From: Michael Tokarev @ 2007-11-05 18:08 UTC (permalink / raw)
To: Janek Kozicki; +Cc: linux-raid
Janek Kozicki wrote:
[]
> Can you please add do the manual under 'SEE ALSO' a reference
> to /usr/share/doc/mdadm ?
/usr/share/doc/mdadm is Debian-specific (well.. not sure it's really
Debian (or something derived from it) -- some other distros may use
the same naming scheme, too). Other distributions may place the
files into a different directory, or not ship them at all, or ship
them in alternative package.
In any case, say, on Debian a user always knows that other misc.
docs are in /usr/share/doc/$package - even if no other links are
provided in the manpage. Users familiar with other distributions
knows where/how to find other docs there.
/mjt
^ permalink raw reply [flat|nested] 11+ messages in thread
* man mdadm - suggested correction.
2007-11-04 16:05 telling mdadm to use spare drive Janek Kozicki
2007-11-05 10:58 ` man mdadm - suggested correction Janek Kozicki
@ 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
2 siblings, 1 reply; 11+ messages in thread
From: Janek Kozicki @ 2007-11-05 10:58 UTC (permalink / raw)
To: linux-raid
Hello,
I did read 'man mdadm' from top to bottom, but I totally forgot to
look into /usr/share/doc/mdadm !
And there is much more - FAQs, recipes, etc!
Can you please add to the manual under 'SEE ALSO' a reference
to /usr/share/doc/mdadm ?
thanks :-)
--
Janek Kozicki |
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: telling mdadm to use spare drive.
2007-11-04 16:05 telling mdadm to use spare drive Janek Kozicki
2007-11-05 10:58 ` man mdadm - suggested correction Janek Kozicki
2007-11-05 10:58 ` Janek Kozicki
@ 2007-11-07 9:17 ` Goswin von Brederlow
2007-11-07 17:26 ` Janek Kozicki
2 siblings, 1 reply; 11+ messages in thread
From: Goswin von Brederlow @ 2007-11-07 9:17 UTC (permalink / raw)
To: Janek Kozicki; +Cc: linux-raid
Janek Kozicki <janek_listy@wp.pl> writes:
> 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:
Strange. That is exactly how I always do it and it always just worked.
mdadm should start syncing on any spare as soon as a disk fails or you
add the spare to a degraded array afaik. No special "start now"
interaction needed.
MfG
Goswin
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: telling mdadm to use spare drive.
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
0 siblings, 1 reply; 11+ messages in thread
From: Janek Kozicki @ 2007-11-07 17:26 UTC (permalink / raw)
To: linux-raid
Goswin von Brederlow said: (by the date of Wed, 07 Nov 2007 10:17:51 +0100)
> Strange. That is exactly how I always do it and it always just worked.
> mdadm should start syncing on any spare as soon as a disk fails or you
> add the spare to a degraded array afaik. No special "start now"
> interaction needed.
Thanks for your confirmation. I cannot explain this behaviour - I
just started using mdadm. If anybody here wants, I can remove the
drive and add this again, to see if I can duplicate this "bug" (?).
If so - then tell me what debug information you do need and I will
give it to you.
Anyway, it seems that this command
mdadm --assemble --update=resync /dev/md1 /dev/hda3 /dev/sda3 /dev/hdc3
worked, becasue `mdadm -D /dev/md1` says that array is in
"State : active" (not degraded).
best regards
--
Janek Kozicki |
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: telling mdadm to use spare drive.
2007-11-07 17:26 ` Janek Kozicki
@ 2007-11-07 19:13 ` Richard Scobie
2007-11-08 20:28 ` Janek Kozicki
0 siblings, 1 reply; 11+ messages in thread
From: Richard Scobie @ 2007-11-07 19:13 UTC (permalink / raw)
To: linux-raid
Janek Kozicki wrote:
> Goswin von Brederlow said: (by the date of Wed, 07 Nov 2007 10:17:51 +0100)
>
>
>>Strange. That is exactly how I always do it and it always just worked.
>>mdadm should start syncing on any spare as soon as a disk fails or you
>>add the spare to a degraded array afaik. No special "start now"
>>interaction needed.
>
>
> Thanks for your confirmation. I cannot explain this behaviour - I
> just started using mdadm. If anybody here wants, I can remove the
> drive and add this again, to see if I can duplicate this "bug" (?).
> If so - then tell me what debug information you do need and I will
> give it to you.
What kernel and RAID level is this?
If it's RAID 1, I seem to recall there was a relatively recently fixed
bug for this.
Regards,
Richard
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: telling mdadm to use spare drive.
2007-11-07 19:13 ` Richard Scobie
@ 2007-11-08 20:28 ` Janek Kozicki
2007-11-08 21:32 ` Richard Scobie
0 siblings, 1 reply; 11+ messages in thread
From: Janek Kozicki @ 2007-11-08 20:28 UTC (permalink / raw)
To: linux-raid
Richard Scobie said: (by the date of Thu, 08 Nov 2007 08:13:19 +1300)
> What kernel and RAID level is this?
>
> If it's RAID 1, I seem to recall there was a relatively recently fixed
> bug for this.
debian etch, stock install
Linux 2.6.18-5-k7 #1 SMP i686 GNU/Linux
The problem was with was RAID 5.
But also I have RAID 1 there, and after --add the drives
automatically resynced.
--
Janek Kozicki |
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2007-11-09 9:50 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-04 16:05 telling mdadm to use spare drive Janek Kozicki
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
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).