linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* failed drive in raid 1 array
@ 2011-02-23 16:52 Roberto Nunnari
  2011-02-23 17:56 ` Roberto Spadim
  0 siblings, 1 reply; 15+ messages in thread
From: Roberto Nunnari @ 2011-02-23 16:52 UTC (permalink / raw)
  To: linux-raid

Hello.

I have a linux box, with two 2TB sata HD in raid 1.

Now, one disk is in failed state and it has no spares:
# cat /proc/mdstat
Personalities : [raid1]
md1 : active raid1 sdb4[2](F) sda4[0]
       1910200704 blocks [2/1] [U_]

md0 : active raid1 sdb1[1] sda2[0]
       40957568 blocks [2/2] [UU]

unused devices: <none>


The drives are not hot-plug, so I need to shutdown the box.

My plan is to:
# sfdisk -d /dev/sdb > sdb.sfdisk
# mdadm /dev/md1 -r /dev/sdb4
# mdadm /dev/md0 -r /dev/sdb1
# shutdown -h now

replace the disk and boot (it should come back up, even without one 
drive, right?)

# sfdisk /dev/sdb < sdb.sfdisk
# mdadm /dev/md1 -a /dev/sdb4
# mdadm /dev/md0 -a /dev/sdb1

and the drives should start to resync, right?

This is my first time I do such a thing, so please, correct me
if the above is not correct, or is not a best practice for
my configuration.

My last backup of md1 is of mid november, so I need to be
pretty sure I will not lose my data (over 1TB).

A bit abount my environment:
# mdadm --version
mdadm - v1.12.0 - 14 June 2005
# cat /etc/redhat-release
CentOS release 4.8 (Final)
# uname -rms
Linux 2.6.9-89.31.1.ELsmp i686

Thank you very much and best regards.
Robi

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

end of thread, other threads:[~2011-02-24 22:00 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-23 16:52 failed drive in raid 1 array Roberto Nunnari
2011-02-23 17:56 ` Roberto Spadim
2011-02-23 18:20   ` Albert Pauw
2011-02-23 21:21     ` Roberto Nunnari
2011-02-24 21:51       ` Roberto Nunnari
2011-02-24 22:00         ` Roberto Spadim
2011-02-23 19:16   ` Roberto Nunnari
2011-02-23 19:20     ` Roberto Spadim
2011-02-23 21:24       ` Roberto Nunnari
2011-02-23 21:34         ` Roberto Spadim
2011-02-23 22:13           ` Roberto Nunnari
2011-02-24 16:05             ` Iordan Iordanov
2011-02-24 20:08               ` Roberto Spadim
2011-02-24 21:32                 ` Iordan Iordanov
2011-02-24 21:38                   ` Roberto Spadim

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