Software RAID kérdés

Fórumok

Hali,

Adott egy 4 diskből álló tömb. Sajnos kihullott az egyik disk. Holap tudom csak kicserélni a disk-et. Az a kérdés érdemes már most eltávolítani a tömbből a hibás disk-et vagy csak a csere előtt. Vagy ez nem számít.

Köszi,
Sz.

Hozzászólások

gondolom raid5

1) mentsel
2) bizonyosodj meg rola, hogy a mentes jo

ha kihullott, akkor az nincs benne... kellene tudni, hogy hogyan hullott ki.
fizikailag lekapcsolod a rendszert a diszk szerelese elott?
akkor mentsel lekapcsolas elott.

mindenkeppen jol jonne egy
cat /proc/mdstat
mdadm --examine /dev/sdb

mdadm --examine /dev/sda3
/dev/sda3:
Magic : a92b4efc
Version : 00.90.00
UUID : dd6330ea:9ad68685:0a37b8d4:a0d223e7
Creation Time : Sun Aug 16 00:12:33 2009
Raid Level : raid5
Used Dev Size : 479588352 (457.37 GiB 491.10 GB)
Array Size : 1438765056 (1372.11 GiB 1473.30 GB)
Raid Devices : 4
Total Devices : 4
Preferred Minor : 0

Update Time : Sun Mar 6 01:13:36 2011
State : active
Active Devices : 4
Working Devices : 4
Failed Devices : 0
Spare Devices : 0
Checksum : 80ffda2b - correct
Events : 335

Layout : left-symmetric
Chunk Size : 64K

Number Major Minor RaidDevice State
this 0 8 3 0 active sync /dev/sda3

0 0 8 3 0 active sync /dev/sda3
1 1 8 19 1 active sync /dev/sdb3
2 2 8 35 2 active sync /dev/sdc3
3 3 8 51 3 active sync /dev/sdd3

mdadm --examine /dev/sdb3
/dev/sdb3:
Magic : a92b4efc
Version : 00.90.00
UUID : dd6330ea:9ad68685:0a37b8d4:a0d223e7
Creation Time : Sun Aug 16 00:12:33 2009
Raid Level : raid5
Used Dev Size : 479588352 (457.37 GiB 491.10 GB)
Array Size : 1438765056 (1372.11 GiB 1473.30 GB)
Raid Devices : 4
Total Devices : 4
Preferred Minor : 0

Update Time : Mon Mar 7 10:30:57 2011
State : clean
Active Devices : 3
Working Devices : 3
Failed Devices : 0
Spare Devices : 0
Checksum : 8105dc79 - correct
Events : 137136

Layout : left-symmetric
Chunk Size : 64K

Number Major Minor RaidDevice State
this 1 8 19 1 active sync /dev/sdb3

0 0 0 0 0 removed
1 1 8 19 1 active sync /dev/sdb3
2 2 8 35 2 active sync /dev/sdc3
3 3 8 51 3 active sync /dev/sdd3

cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md0 : active raid5 sda3[4](F) sdd3[3] sdc3[2] sdb3[1]
1438765056 blocks level 5, 64k chunk, algorithm 2 [4/3] [_UUU]

unused devices:

1) ments, az egesz sda-t is (sda1, sda2...), es a raid minden kritikus adatat

-- ez sokaig tarthat --

2) mdadm --remove /dev/md0 /dev/sda3

3) kikapcs, szetszed, uj diszk berak

4) bekapcs, ha egyaltalan felbootol sda nelkul, ha nem akkor CD-rol, uj diszket particionald fel

5) mdadm --add /dev/md0 /dev/sda3

tehat, konkretan a kerdesre a valasz az, hogy akkor matatunk a lemezekkel, ha csinalunk is valamit: amikor egyik kezdben van a csere diszk, masik kezdben a mentes.