From: Robin Bowes <robin-lists@robinbowes.com>
To: linux-raid@vger.kernel.org
Subject: Joys of spare disks!
Date: Mon, 28 Feb 2005 14:24:48 +0000 [thread overview]
Message-ID: <cvv9ai$svg$1@sea.gmane.org> (raw)
Hi,
I run a RAID5 array built from six 250GB Maxtor Maxline II SATA disks.
After having several problems with Maxtor disks I decided to use a spare
disk, i.e. 5+1 spare.
Well, *another* disk failed last week. The spare disk was brought into
play seamlessly:
[root@dude ~]# mdadm --detail /dev/md5
/dev/md5:
Version : 00.90.01
Creation Time : Thu Jul 29 21:41:38 2004
Raid Level : raid5
Array Size : 974566400 (929.42 GiB 997.96 GB)
Device Size : 243641600 (232.35 GiB 249.49 GB)
Raid Devices : 5
Total Devices : 6
Preferred Minor : 5
Persistence : Superblock is persistent
Update Time : Mon Feb 28 14:00:54 2005
State : clean
Active Devices : 5
Working Devices : 5
Failed Devices : 1
Spare Devices : 0
Layout : left-symmetric
Chunk Size : 128K
UUID : a4bbcd09:5e178c5b:3bf8bd45:8c31d2a1
Events : 0.6941488
Number Major Minor RaidDevice State
0 8 2 0 active sync /dev/sda2
1 8 18 1 active sync /dev/sdb2
2 8 34 2 active sync /dev/sdc2
3 8 82 3 active sync /dev/sdf2
4 8 66 4 active sync /dev/sde2
5 8 50 - faulty /dev/sdd2
I've done a quick test of /dev/sdd2:
[root@dude ~]# dd if=/dev/sdd2 of=/dev/null bs=64k
dd: reading `/dev/sdd2': Input/output error
50921+1 records in
50921+1 records out
So, I guess it's time to raise another return with Maxtor <sigh>.
/dev/sdd1 is used in /dev/md0. So, just to confirm, is this what I need
to do to remove bad disk/add new disk:
Remove faulty partition:
mdadm --manage /dev/md5 --remove /dev/sdd2
Remove "good" from RAID1 array:
mdadm --manage /dev/md0 --fail /dev/sdd1
mdadm --manage /dev/md0 --remove /dev/sdd1
[pull out bad disk, install replacement]
Partition new disk (will be /dev/sdd) (All six disks are partitioned the
same):
fdisk -l /dev/sda | fdisk /dev/sdd
(I seem to remember having a problem with this when I did it last time.
Something about a bug in fdisk that won't partition brand new new disks
correctly? Or was it sfdisk?)
Add new partitions to arrays:
mdadm --manage /dev/md0 --add /dev/sdd1
mdadm --manage /dev/md5 --add /dev/sdd2
Thanks,
R.
--
http://robinbowes.com
next reply other threads:[~2005-02-28 14:24 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-28 14:24 Robin Bowes [this message]
2005-02-28 15:04 ` Joys of spare disks! Jon Lewis
2005-02-28 15:23 ` Robin Bowes
2005-02-28 15:54 ` Nicola Fankhauser
2005-02-28 17:04 ` Robin Bowes
2005-02-28 18:58 ` Nicola Fankhauser
2005-02-28 19:25 ` Robin Bowes
2005-03-02 2:48 ` Robin Bowes
2005-03-02 2:59 ` Neil Brown
2005-03-02 3:50 ` Molle Bestefich
2005-03-02 3:52 ` Molle Bestefich
2005-03-02 5:52 ` Guy
2005-03-02 12:05 ` Molle Bestefich
2005-03-02 16:16 ` Guy
2005-03-03 9:37 ` Molle Bestefich
2005-03-02 4:57 ` Brad Campbell
2005-03-02 5:53 ` Guy
[not found] ` <eaa6dfe0503080915276466a1@mail.gmail.com>
2005-03-08 17:15 ` Derek Piper
[not found] ` <200503091704.j29H4l517152@www.watkins-home.com>
2005-03-10 19:24 ` Derek Piper
-- strict thread matches above, loose matches on Subject: below --
2005-03-07 16:36 LinuxRaid
2005-03-07 17:09 ` Peter T. Breuer
2005-03-07 20:15 LinuxRaid
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='cvv9ai$svg$1@sea.gmane.org' \
--to=robin-lists@robinbowes.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.