RAID5 recovery after disk-change

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

 



Hi!

Well, I'm wondering if I did something wrong after replacing probably 
faulty disk by a fresh new one.

The new disk just hangs on the same controller on the same cable 
and is identical to the replaced one.

I switched on power. The raid still was working (in degraded mode).
 I used fdisk to partitionate the new disk (/dev/hdg) and create a 
partition (/dev/hdg1) with the fd-flag. After that I tried to add the new 
disk by this command:
mdadm /dev/md0 --add /dev/hdg1

That's how /proc/mdstat looks like now:
=====snip============================================================
thismaschine:~ # cat /proc/mdstat
Personalities : [raid5]
read_ahead 1024 sectors
md0 : active raid5 hdg1[4] hdh1[3] hdf1[1] hde1[0]
      480214656 blocks level 5, 128k chunk, algorithm 2 [4/3] [UU_U]
      [==================>..]  recovery = 90.8% (145491784/160071552) 
finish=21.4min speed=11336K/sec
unused devices: <none>
====snap==============================================================

Strange is, that the new disk didn't get place 2 in the array.

What went wrong?
Do I have to repair this?
How can I repair this?
How do I have to modify my raidtab (see below)?

I'd be very thankful for helping me, after I tried the howto, the faq and 
searched this mailinglist.

Ciao,
Simon Frettloeh


=====snip=============================================================
# autogenerated /etc/raidtab by YaST2

raiddev /dev/md0
   raid-level       5
   nr-raid-disks    4
   nr-spare-disks   0
   persistent-superblock 1
   parity-algorithm left-symmetric
   chunk-size       128
   device   /dev/hde1
   raid-disk 0
   device   /dev/hdf1
   raid-disk 1
   device   /dev/hdg1
   raid-disk 2
   device   /dev/hdh1
   raid-disk 3
=====snap=============================================================



-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux