[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to reconstruct MD RAID device?



On Wed, 24 Aug 2005 16:31:37 +0200
Jukka Salmi <j+debian@2005.salmi.ch> wrote:

> Clive Menzies --> debian-user (2005-08-24 15:08:11 +0100):
> > On (24/08/05 15:53), Jukka Salmi wrote:
> > > Clive Menzies --> debian-user (2005-08-24 14:22:39 +0100):
> > > > On (24/08/05 14:45), Jukka Salmi wrote:
> > > > > a Debian 3.1 system which uses md devices for all its file systems and
> > > > > swap was reset by a power failure. On startup, the root file systems
> > > > > md device failed to configure and is in degraded mode now. I think the
> > > > > failed device is probably fine, but md configuration failed due to
> > > > > parity errors or similar. After skimming through mdadm(8)'s man page
> > > > > I still can't figure out what I need to do now, so help is appreciated.
> > > > 
> > > > What is the output of:
> > > > 
> > > > $  cat /proc/mdstat
> > > 
> > > Sorry, I forgot to add that...
> > > 
> > > $ cat /proc/mdstat
> > > Personalities : [raid1] 
> > > md0 : active raid1 hda1[0] hdb1[1]
> > >       62400 blocks [2/2] [UU]
> > >       
> > > md2 : active raid1 hda3[0]
> > >       39107264 blocks [2/1] [U_]
> > >       
> > > md1 : active raid1 hda2[0] hdb2[1]
> > >       976640 blocks [2/2] [UU]
> > >       
> > > unused devices: <none>
> > 
> > Have you tried something like:
> > 
> > $ mdadm /dev/md2 -a /dev/hdb3
> 
> No. Unfortunately it's a production system, hence I'm a little bit
> cautious with "trying" things... So, considering md2 is used as the
> root file system device, is adding hdb3 to it as you describe dangerous?
> What exactly does this command do? Does it also start reconstruction
> onto hdb3? As you notice, I'm not familiar with Linux software RAID
> at all...

You should start syncing hdb3 or exit with error.

David



Reply to: