[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: degraded RAID array on squeeze



On Sat, Sep 24, 2011 at 01:46:21PM +0200, martin f krafft wrote:
> also sprach Milos Negovanovic <milos.negovanovic@gmail.com> [2011.09.24.1305 +0200]:
> > > If the disk is failing as it appears from the smartctl message ...
> > > then I also concur that you should look at replacing the disk ASAP.
> > 
> > Ill try to fix the RAID first, Ive seen crappy drives going into
> > temporary spasm and everything being OK after ;). I think my problem is
> > due to mdadm not seeing /dev/sdb3 as valid RAID partition, so Ill try to
> > fix that first.
> 
> You could try to /dev/zero it with dd and then to re-add it, BUT
> FIRST MAKE SURE THERE ARE NO DATA ON THERE.
> 
> Can you mount /dev/sdb3 ?
> 

Ive dd-ed /dev/sdb3 and that did the trick! I was able to re-add the
partition to RAID array.

root@micro ~ # blkid -c /dev/null
/dev/sda1: UUID="ea2de79b-ee83-1c72-35ee-44eb048206bc" LABEL="micro:0" TYPE="linux_raid_member"
/dev/sda2: UUID="de73322a-76df-fa34-7b38-44b155266292" LABEL="micro:1" TYPE="linux_raid_member"
/dev/sda3: UUID="9bca8a2b-2283-9bed-c8fe-9f89b0860cb2" LABEL="micro:2" TYPE="linux_raid_member"
/dev/sdb1: UUID="ea2de79b-ee83-1c72-35ee-44eb048206bc" LABEL="micro:0" TYPE="linux_raid_member"
/dev/sdb2: UUID="de73322a-76df-fa34-7b38-44b155266292" LABEL="micro:1" TYPE="linux_raid_member"
/dev/sdb3: UUID="9bca8a2b-2283-9bed-c8fe-9f89b0860cb2" LABEL="micro:2" TYPE="linux_raid_member"
/dev/md0: UUID="16453ab8-e70a-48f3-a435-649505897d2f" TYPE="swap"
/dev/md1: UUID="3810bb4b-12be-4e7a-9818-8503f90aa96f" TYPE="ext4"
/dev/md2: UUID="3c69773f-5595-4e29-9c8e-66bfbdfd4422" TYPE="ext4"

root@micro ~ # cat /proc/mdstat 
Personalities : [raid1] 
md2 : active raid1 sdb3[2] sda3[0]
1424121720 blocks super 1.2 [2/1] [U_]
[>....................]  recovery =  0.9%
(13493312/1424121720) finish=307.6min speed=76413K/sec
	          
md1 : active raid1 sda2[0] sdb2[1]
29295544 blocks super 1.2 [2/2] [UU]
			      
md0 : active (auto-read-only) raid1
sda1[0] sdb1[1]
11716536 blocks super 1.2 [2/2] [UU]
				          
unused devices: <none>

Thanks to everyone for useful suggestions!

Ill let it rebuild parity and then Ill reboot the server just to make
sure everything is OK.

Regards
-- 
Milos Negovanovic
milos.negovanovic@gmail.com


Reply to: