I have degraded array event mail from my sme, every day...
Ran cat /proc/mdstat
Got:
Personalities : [raid1]
md1 : active raid1 sda1[0]
104320 blocks [2/1] [U_]
md2 : active raid1 sda2[0]
975595200 blocks [2/1] [U_]
unused devices: <none>
Meaning the md2 is having troubles..
Quick search and I found this
http://wiki.contribs.org/Raid#Resynchronising_a_Failed_RAIDFollowed the instructions on removing md2 as U_ means md2 is having the problem:
mdadm --remove /dev/md2 /dev/sda2
but I am getting this error:
mdadm: hot remove failed for /dev/sda2: Device or resource busy
Tried with mdadm --manage /dev/md2 --remove /dev/sda2
same answer... mdadm: hot remove failed for /dev/sda2: Device or resource busy
Tried with mdadm --stop /dev/md2
same answer... mdadm: hot remove failed for /dev/sda2: Device or resource busy
mount got me this:
/dev/mapper/main-root on / type ext3 (rw,usrquota,grpquota)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/md1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sdb1 on /home/e-smith/files/ibays/hal/files type ext4 (rw)
/dev/sdc1 on /media/usbdisk type ext3 (rw)
as you can see there is no reference to md2.. or sda2.. so looks like is not mounted...
running mdadm --query --detail /dev/md1 I get....
/dev/md1:
Version : 0.90
Creation Time : Mon May 2 08:52:48 2011
Raid Level : raid1
Array Size : 104320 (101.89 MiB 106.82 MB)
Used Dev Size : 104320 (101.89 MiB 106.82 MB)
Raid Devices : 2
Total Devices : 1
Preferred Minor : 1
Persistence : Superblock is persistent
Update Time : Fri Aug 19 14:56:57 2011
State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0
UUID : 7361e483:63142ad2:773f3338:619f9c18
Events : 0.796
Number Major Minor RaidDevice State
0 8 1 0 active sync /dev/sda1
1 0 0 1 removed
running the same at md2
/dev/md2:
Version : 0.90
Creation Time : Mon May 2 08:52:49 2011
Raid Level : raid1
Array Size : 975595200 (930.40 GiB 999.01 GB)
Used Dev Size : 975595200 (930.40 GiB 999.01 GB)
Raid Devices : 2
Total Devices : 1
Preferred Minor : 2
Persistence : Superblock is persistent
Update Time : Fri Aug 19 16:25:38 2011
State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0
UUID : 080785ae:0db28d57:6a2c4489:a18058a4
Events : 0.5228248
Number Major Minor RaidDevice State
0 8 2 0 active sync /dev/sda2
1 0 0 1 removed
so... looks like md2 is removed.... then I tried to add it again with mdadm --add /dev/md2 /dev/sda2
got: mdadm: Cannot open /dev/sda2: Device or resource busy
any help will be appreciated.....
Thanks