Hi all,

I am running a RAID-1 mirror set of two disks on our Linux server here.  A couple of 
weeks ago, one of the mirrors went bad.  While waiting for a replacement, I ran the 
mirror with a single drive, which worked fine.  However, now that I have a replacement 
drive, I can't seem to add it back into the mirror group.  Here's my /etc/raidtab:

raiddev                 /dev/md0
raid-level              1
nr-raid-disks           2
nr-spare-disks          0
chunk-size              4

device                  /dev/sda1
raid-disk               0

device                  /dev/sdd1
raid-disk               1

And here's the kernel message I get when /dev/md0 is started:

Partition check:
 sda: sda1
 sdb: sdb1
 sdc: sdc1
 sdd: sdd1
md.c: sizeof(mdp_super_t) = 4096
 hda: hda1 hda2 < hda5 hda6 >
autodetecting RAID arrays
(read) sda1's sb offset: 17775808 [events: 0000002d]
autorun ...
considering sda1 ...
  adding sda1 ...
created md0
bind<sda1,1>
running: <sda1>
now!
sda1's event counter: 0000002d
md0: max total readahead window set to 128k
md0: 1 data-disks, max readahead per data-disk: 128k
raid1: device sda1 operational as mirror 1
raid1: md0, not all disks are operational -- trying to recover array
raid1: raid set md0 active with 1 out of 2 mirrors
md: updating md0 RAID superblock on device
sda1 [events: 0000002e](write) sda1's sb offset: 17775808
considering sda1 ...
  adding sda1 ...
created md0
bind<sda1,1>
running: <sda1>
now!
sda1's event counter: 0000002d
md0: max total readahead window set to 128k
md0: 1 data-disks, max readahead per data-disk: 128k
raid1: device sda1 operational as mirror 1
raid1: md0, not all disks are operational -- trying to recover array
raid1: raid set md0 active with 1 out of 2 mirrors
md: updating md0 RAID superblock on device
sda1 [events: 0000002e](write) sda1's sb offset: 17775808
md: recovery thread got woken up ...
md0: no spare disk to reconstruct array! -- continuing in degraded mode
md: recovery thread finished ...
.
... autorun DONE.

It seems like a problem in /dev/sda1's superblock--that it's not indicating /dev/sdd1 
as another disk in the mirror anymore.  It seems like I should be able to fix this 
with mkraid, but every mkraid option is described as destructive in the man page.  
What I would *like* to do is to add /dev/sdd1 to the RAID-1 set and let it be 
resynchronized to the contents of /dev/sda1 by the recovery thread.  Is this possible? 
 Or am I stuck having to recreate the RAID-1 set, make a new file system, and restore 
all the files by hand?

Thanks,
-Matt
[EMAIL PROTECTED]

Reply via email to