Linux RAID subsystem development
 help / color / mirror / Atom feed
From: "Mark Cuss" <mcuss@cdlsystems.com>
To: linux-raid@vger.kernel.org
Subject: How to force a spare drive to take over in a RAID5?
Date: Fri, 5 Aug 2005 08:31:47 -0600	[thread overview]
Message-ID: <006301c599ca$69410700$ab0e10ac@pinchy> (raw)
In-Reply-To: 20050805010236.12d811ff.akpm@osdl.org

Hi!

I have a 4 drive SW RAID5 running on my machine.  One of the drives is upset 
for some reason - I'm not sure if the drive itself is bad, but that's not 
too important right now.  The important thing is to get the RAID5 to stop 
using this drive and start using a spare drive that I just added.

The current raid status is:
[root@hal cdl]# lsraid -a /dev/md4
lsraid: Unable to read raid superblock from device "/dev/sdr1": Input/output 
error
lsraid: Device "/dev/sdr1" does not have a valid raid superblock
lsraid: Unable to read raid superblock from device "/dev/sdr1": Input/output 
error
lsraid: Device "/dev/sdr1" does not have a valid raid superblock
lsraid: Unable to read raid superblock from device "/dev/sdr1": Input/output 
error
lsraid: Device "/dev/sdr1" does not have a valid raid superblock
lsraid: Unable to read raid superblock from device "/dev/sdr1": Input/output 
error
lsraid: Device "/dev/sdr1" does not have a valid raid superblock
lsraid: Unable to read raid superblock from device "/dev/sdr1": Input/output 
error
lsraid: Device "/dev/sdr1" does not have a valid raid superblock
[dev   9,   4] /dev/md4         24989439.D4F0D908.67494E4A.97B3BA91 online
[dev   ?,   ?] (unknown)        00000000.00000000.00000000.00000000 missing
[dev   8,  161] /dev/sdk1        24989439.D4F0D908.67494E4A.97B3BA91 good
[dev   8,  177] /dev/sdl1        24989439.D4F0D908.67494E4A.97B3BA91 good
[dev   8,  193] /dev/sdm1        24989439.D4F0D908.67494E4A.97B3BA91 good
[dev  65,  33] /dev/sds1        24989439.D4F0D908.67494E4A.97B3BA91 spare

[root@hal cdl]#

Clearly, sdr is unhappy.  However, /proc/mdstat says that all the drives are 
online:
md4 : active raid5 sds1[4] sdr1[0] sdm1[3] sdl1[2] sdk1[1]
      430115904 blocks level 5, 64k chunk, algorithm 2 [4/4] [UUUU]

I did a raidhotadd to add in a new drive, sds.  Now, I would like the array 
to stop using sdr and reconstruct all of the parity tables on sds so I can 
pull sdr and get it replaced or whatever...

Any ideas?

Thanks
Mark



  reply	other threads:[~2005-08-05 14:31 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <45138.213.188.237.106.1123086677.squirrel@localhost>
2005-08-05  2:58 ` File corruption on LVM2 on top of software RAID1 Andrew Morton
2005-08-05  3:01   ` Andrew Morton
2005-08-05  7:56   ` Simon Matter
2005-08-05  8:02     ` Andrew Morton
2005-08-05 14:31       ` Mark Cuss [this message]
2005-08-07 11:29         ` How to force a spare drive to take over in a RAID5? David Greaves
2005-08-08 21:43           ` Mark Cuss
2005-08-08 22:29             ` Mike Tran
2005-08-09 19:48               ` Mark Cuss
2005-08-11 10:11                 ` Neil Brown
2005-08-11 16:03                   ` Mark Cuss

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='006301c599ca$69410700$ab0e10ac@pinchy' \
    --to=mcuss@cdlsystems.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox