From: Simon <simon.xhz@gmail.com>
To: linux-raid@vger.kernel.org
Subject: spare not becoming active
Date: Wed, 27 Jun 2007 16:34:53 -0400 [thread overview]
Message-ID: <4682C9ED.9040503@gmail.com> (raw)
Hi,
not sure if this is the place to ask, as i'm trying to use and learn raids. So
i lack some knowledge of the general practice and still having trouble figuring
out mdadm...
Anyways, the story is simple, i had a raid5 going on 3 usb keys. The keys are
partitioned with fdisk to have 1 first ext2 device and a second raid-autodetect
device (i didn't know what to choose here, i belive it doesn't matter if i don't
bood with it...?)
All 3 arrays were active and nice, i decided to make an experiment and pull on
one (i wasn't sure if it was safe to do, but) and I immediately saw it was
missing. I removed it, replugged the drive, mounted partition 1, fine, add to
array, fine. Array started reconstructing here i think.
Then another drive, that i was suspecting of being faulty died. I did the same
remove/add procedure and it was there as spare.
Below are some outputs you'll recognize, my question is, how do you get the
spare ones to become active again? And I currently have one active device,
while I'm supposed to have at least two (to survive on raid5). So, what about
the data (i dont care as it was just a test, but) is it completely lost, are
there chances?
Thanks for any info/pointers!
Simon
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4]
[multipath] [faulty]
md0 : active raid5 sdf2[3](S) sde2[4](S) sdd2[5](F) sdc2[1] sdb2[6](F)
1952128 blocks level 5, 64k chunk, algorithm 2 [3/1] [_U_]
============================================================================
/dev/md0:
Version : 00.90.03
Creation Time : Sun Jun 24 09:30:24 2007
Raid Level : raid5
Array Size : 1952128 (1906.70 MiB 1998.98 MB)
Used Dev Size : 976064 (953.35 MiB 999.49 MB)
Raid Devices : 3
Total Devices : 5
Preferred Minor : 0
Persistence : Superblock is persistent
Update Time : Wed Jun 27 16:35:44 2007
State : clean, degraded
Active Devices : 1
Working Devices : 3
Failed Devices : 2
Spare Devices : 2
Layout : left-symmetric
Chunk Size : 64K
UUID : 170691d8:28aaa115:628a7a6d:3715a011
Events : 0.834
Number Major Minor RaidDevice State
0 0 0 0 removed
1 8 34 1 active sync /dev/sdc2
2 0 0 2 removed
3 8 82 - spare /dev/sdf2
4 8 66 - spare /dev/sde2
5 8 50 - faulty spare
6 8 18 - faulty spare
============================================================================
brw-rw---- 1 root disk 8, 1 Jun 22 23:24 /dev/sda1
brw-rw---- 1 root disk 8, 33 Jun 22 23:24 /dev/sdc1
brw-rw---- 1 root disk 8, 65 Jun 27 14:26 /dev/sde1
brw-rw---- 1 root disk 8, 81 Jun 27 15:14 /dev/sdf1
============================================================================
[dev 9, 0] /dev/md0 170691D8.28AAA115.628A7A6D.3715A011 online
[dev ?, ?] (unknown) 00000000.00000000.00000000.00000000 missing
[dev 8, 34] /dev/sdc2 170691D8.28AAA115.628A7A6D.3715A011 good
[dev ?, ?] (unknown) 00000000.00000000.00000000.00000000 missing
[dev 8, 82] /dev/sdf2 170691D8.28AAA115.628A7A6D.3715A011 spare
[dev 8, 66] /dev/sde2 170691D8.28AAA115.628A7A6D.3715A011 spare
next reply other threads:[~2007-06-27 20:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-27 20:34 Simon [this message]
2007-06-28 16:06 ` spare not becoming active Simon
2007-07-03 20:53 ` Simon
2007-07-03 22:20 ` Nix
2007-07-03 22:52 ` Simon
2007-07-03 22:54 ` Simon
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=4682C9ED.9040503@gmail.com \
--to=simon.xhz@gmail.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;
as well as URLs for NNTP newsgroup(s).