Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Re-activating a software RAID disk? [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
rev138
l33t
l33t


Joined: 19 Jun 2003
Posts: 848
Location: Vermont, USA

PostPosted: Wed Sep 05, 2007 12:13 pm    Post subject: Re-activating a software RAID disk? [SOLVED] Reply with quote

I have two SATA disks in a software RAID array using mdadm.

For various reasons, one disk has been unplugged for several months. I reconnected it this morning, and I expected the array to start syncing up, but instead I see this:
Code:
# cat /proc/mdstat
Personalities : [raid1]
md1 : active raid1 sdb1[1]
      104320 blocks [2/1] [_U]
      bitmap: 1/13 pages [4KB], 4KB chunk

md2 : active raid1 sdb2[1]
      4891712 blocks [2/1] [_U]
      bitmap: 11/150 pages [44KB], 16KB chunk

md3 : active raid1 sdb3[1]
      307572352 blocks [2/1] [_U]
      bitmap: 35/147 pages [140KB], 1024KB chunk

unused devices: <none>


If I grep the syslog for "mdadm" I see a ton of these:
Code:
# grep mdadm /var/log/messages
Sep  5 08:06:36 burley mdadm: SpareActive event detected on md device /dev/md3
Sep  5 08:07:30 burley mdadm: SpareActive event detected on md device /dev/md3
Sep  5 08:07:30 burley mdadm: SpareActive event detected on md device /dev/md2
Sep  5 08:08:30 burley mdadm: SpareActive event detected on md device /dev/md3
Sep  5 08:08:30 burley mdadm: SpareActive event detected on md device /dev/md2
Sep  5 08:08:30 burley mdadm: SpareActive event detected on md device /dev/md1
Sep  5 08:09:30 burley mdadm: SpareActive event detected on md device /dev/md3
Sep  5 08:09:30 burley mdadm: SpareActive event detected on md device /dev/md2
Sep  5 08:09:30 burley mdadm: SpareActive event detected on md device /dev/md1
Sep  5 08:10:30 burley mdadm: SpareActive event detected on md device /dev/md3
Sep  5 08:11:30 burley mdadm: SpareActive event detected on md device /dev/md3


Code:
# fdisk -l

Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   fd  Linux raid autodetect
/dev/sda2              14         622     4891792+  fd  Linux raid autodetect
/dev/sda3             623       38913   307572457+  fd  Linux raid autodetect

Disk /dev/sdb: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1          13      104391   fd  Linux raid autodetect
/dev/sdb2              14         622     4891792+  fd  Linux raid autodetect
/dev/sdb3             623       38913   307572457+  fd  Linux raid autodetect

Disk /dev/md3: 314.9 GB, 314954088448 bytes
2 heads, 4 sectors/track, 76893088 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md3 doesn't contain a valid partition table

Disk /dev/md2: 5009 MB, 5009113088 bytes
2 heads, 4 sectors/track, 1222928 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md2 doesn't contain a valid partition table

Disk /dev/md1: 106 MB, 106823680 bytes
2 heads, 4 sectors/track, 26080 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md1 doesn't contain a valid partition table


Any help would be appreciated.
_________________
Vermont Free PC
http://www.vtfreepc.org
Back to top
View user's profile Send private message
rev138
l33t
l33t


Joined: 19 Jun 2003
Posts: 848
Location: Vermont, USA

PostPosted: Wed Sep 05, 2007 1:11 pm    Post subject: Reply with quote

I manually re-added the paritions on /dev/sda using "mdadm --add". It's resyncing as I type this :)
_________________
Vermont Free PC
http://www.vtfreepc.org
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum