linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Raid 1 up after raidhotadd without rebuild
@ 2006-11-14  9:29 Elmar Weber
  2006-11-14  9:35 ` Neil Brown
  0 siblings, 1 reply; 3+ messages in thread
From: Elmar Weber @ 2006-11-14  9:29 UTC (permalink / raw)
  To: linux-raid

Hello,

I'm trying to rebuild a raid1 array by adding the replacement disk (sda) 
to the old one (sdf). I zero'd the new disk (sda) and created the 
partition table corresponding to the existing one.

I adapted my raidtab to the new drive node (changed due to other disk 
replacement) and now I'm trying to add the new disk, but the raid 1 is 
not rebuilding, the newly added disk is marked as U(p) in the mdstat output.

Here's what I do step by step (mdstat output reduced to one raid array, 
but the problem exists with every partition used as a raid 1):

# cat /proc/mdstat

md1 : active raid1 sdf1[1]
       112728000 blocks [2/1] [_U]


# raidhotadd /dev/md1 /dev/sda1 && cat /proc/mdstat

md1 : active raid1 sda1[1] sdf1[0]
       112728000 blocks [2/2] [UU]


Thats it, no resync, nothing. When I do a fsck on the md1 there are 
errors en masse. raidtools don't even seem to touch sda1, since when I 
create a filesystem with content on it, I can mount it after adding it 
to the raid.


Any ideas why this is and how to fix it?


Thanks in advance & ciao,
elm


Here is the entry in the syslog:
==
Nov 15 09:34:46 server md: bind<sda1>
Nov 15 09:34:46 server RAID1 conf printout:
Nov 15 09:34:46 server --- wd:1 rd:2
Nov 15 09:34:46 server disk 0, wo:1, o:1, dev:sda1
Nov 15 09:34:46 server disk 1, wo:0, o:1, dev:sdf1
Nov 15 09:34:46 server md: syncing RAID array md2
Nov 15 09:34:46 server md: minimum _guaranteed_ reconstruction speed: 
1000 KB/sec/disc.
Nov 15 09:34:46 server md: using maximum available idle IO bandwidth 
(but not more than 200000 KB/sec) for reconstruction.
Nov 15 09:34:46 server md: using 128k window, over a total of 112728000 
blocks.
Nov 15 09:34:46 server md: md1: sync done.
Nov 15 09:34:46 server RAID1 conf printout:
Nov 15 09:34:46 server --- wd:2 rd:2
Nov 15 09:34:46 server disk 0, wo:0, o:1, dev:sda1
Nov 15 09:34:46 server disk 1, wo:0, o:1, dev:sdf1
==

Here is the raidtab:
==
raiddev /dev/md1
     raid-level              1
     nr-raid-disks           2
     nr-spare-disks          0
     persistent-superblock   1
     chunk-size 8k

     device                  /dev/sda1
         raid-disk               0
     device                  /dev/sdf1
         raid-disk               1
==



-- 
"Religion und Familie sind die beiden größten Feinde des Fortschritts."
(André Gide (1869 - 1951), französischer Schriftsteller)
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Raid 1 up after raidhotadd without rebuild
  2006-11-14  9:29 Raid 1 up after raidhotadd without rebuild Elmar Weber
@ 2006-11-14  9:35 ` Neil Brown
  2006-11-14  9:46   ` Elmar Weber
  0 siblings, 1 reply; 3+ messages in thread
From: Neil Brown @ 2006-11-14  9:35 UTC (permalink / raw)
  To: Elmar Weber; +Cc: linux-raid

On Tuesday November 14, lists@elmarweber.org wrote:
> 
> Any ideas why this is and how to fix it?

You don't mention a kernel version.  If it is 2.6.18, upgrade to
2.6.18.2.

NeilBrown

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Raid 1 up after raidhotadd without rebuild
  2006-11-14  9:35 ` Neil Brown
@ 2006-11-14  9:46   ` Elmar Weber
  0 siblings, 0 replies; 3+ messages in thread
From: Elmar Weber @ 2006-11-14  9:46 UTC (permalink / raw)
  To: Neil Brown; +Cc: linux-raid

Neil Brown wrote:
> On Tuesday November 14, lists@elmarweber.org wrote:
>> Any ideas why this is and how to fix it?
> 
> You don't mention a kernel version.  If it is 2.6.18, upgrade to
> 2.6.18.2.

Its 2.6.18, I'll upgrade and try, I checked the log and guess it is
"[PATCH] md: Fix bug where spares don't always get rebuilt properly when 
they become live.". Exactly my problem.

Thanks for the fast help.

ciao,
elm

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-11-14  9:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-14  9:29 Raid 1 up after raidhotadd without rebuild Elmar Weber
2006-11-14  9:35 ` Neil Brown
2006-11-14  9:46   ` Elmar Weber

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).