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

Re: degraded RAID array on squeeze



On Sat, Sep 24, 2011 at 07:33:23PM +1000, Andrew McGlashan wrote:
> Hi,
> 
> Milos Negovanovic wrote:
> >On Sat, Sep 24, 2011 at 07:09:57PM +1000, Andrew McGlashan wrote:
> >>Hi Milos,
> >>
> >>Milos Negovanovic wrote:
> >>>root@micro ~ # mdadm --add /dev/md2 /dev/sdb3
> >>>mdadm: add new device failed for /dev/sdb3 as 2: Invalid argument
> >>Try like this instead:
> >>
> >>mdadm /dev/md2 --add /dev/sdb3
> >>
> >
> >root@micro ~ # mdadm /dev/md2 --add /dev/sdb3
> >mdadm: add new device failed for /dev/sdb3 as 2: Invalid argument
> >
> >BTW I have tried all the variations of this command I could find online,
> >and all of them give me this error.
> 
> Okay, try the following and show us the output.
> 
> partprobe
> 
> blkid
> 
> mdadm --detail --scan
> 

root@micro ~ # partprobe 

root@micro ~ # blkid 
/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/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/sdb3: LABEL="home" UUID="4030e91a-c6fa-4640-81eb-654e2ad8c180" TYPE="ext4" 
/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 ~ # mdadm --detail --scan
ARRAY /dev/md/0 metadata=1.2 name=micro:0
UUID=ea2de79b:ee831c72:35ee44eb:048206bc
ARRAY /dev/md/1 metadata=1.2 name=micro:1
UUID=de73322a:76dffa34:7b3844b1:55266292
ARRAY /dev/md/2 metadata=1.2 name=micro:2
UUID=9bca8a2b:22839bed:c8fe9f89:b0860cb2


Hmmm this line looks suspicious:
/dev/sdb3: LABEL="home" UUID="4030e91a-c6fa-4640-81eb-654e2ad8c180" TYPE="ext4"

Where is blkid getting its info from? fdisk sees /dev/sdb3 as linux RAID
partition.

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


Reply to: