raid1 szétesés

Fórumok

Sziasztok!

Következőp gondom akadt.

Van egy partícióm, amin szétesett a raid1 tömböm.
Ezért fogtam és eltávolítottam, majd újra hozzáadtam a partíciót a tömbhöz:
mdadm /dev/md2 --remove /dev/sdb3
mdadm /dev/md2 --add /dev/sdb3

Ekkor azonban a /proc/mdstat a következőt mutatja:
md2 : active raid1 sdb3[2] sda3[0]
25647680 blocks [2/1] [U_]
resync=DELAYED
md0 : active raid1 sda1[0] sdb1[1]
497856 blocks [2/2] [UU]

md1 : active raid1 sda2[0] sdb2[1]
9767424 blocks [2/2] [UU]

Ha megnézem a raid device-t akkor pedig ezt látom:
partnerserv:~# mdadm --query --detail /dev/md2
/dev/md2:
Version : 00.90.01
Creation Time : Wed Mar 1 16:08:52 2006
Raid Level : raid1
Array Size : 25647680 (24.46 GiB 26.26 GB)
Device Size : 25647680 (24.46 GiB 26.26 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 2
Persistence : Superblock is persistent

Update Time : Mon Dec 3 18:10:03 2007
State : clean, degraded
Active Devices : 1
Working Devices : 2
Failed Devices : 0
Spare Devices : 1

UUID : c9a57608:dcf60142:77f0f3ca:9852f0af
Events : 0.11122772

Number Major Minor RaidDevice State
0 8 3 0 active sync /dev/sda3
1 0 0 - removed

2 8 19 1 spare rebuilding /dev/sdb3

Valamiért spare disknek illesztette vissza.
A gép pörög ezerrel, de semmi státuszt nem jelez ki, hogy hol tart. Nem fut a resync, csak ez a spare rebuilding, de már vagy fél órája. Nem tudom, hogy ez normális-e

Valakinek ötlete van esetleg?

Hozzászólások

Úgy néz ki reboot segített. Elkezdte a resync-et.

Én így szoktam:
mdadm --manage /dev/md3 --add /dev/sdb5

Részlet a manból, lehet a re-add lett volna a barátod:
For Manage mode:
-a, --add
hot-add listed devices.

--re-add
re-add a device that was recently removed from an array.

-r, --remove
remove listed devices. They must not be active. i.e. they should be failed or spare devices. As well as the name of a device file (e.g. /dev/sda1) the words
failed and detached can be given to --remove. The first causes all failed device to be removed. The second causes any device which is no longer connected to
the system (i.e and open returns ENXIO) to be removed. This will only succeed for devices that are spares or have already been marked as failed.

-f, --fail
mark listed devices as faulty. As well as the name of a device file, the word detached can be given. This will cause any device that has been detached from the
system to be marked as failed. It can then be removed.

--set-faulty
same as --fail.