PDA

View Full Version : Problema mdadm (RAID)


carve81
30-11-2006, 20:58
Ciao a tutti io ho 3 devices md0 md1 e md2.

md0 con raid1 con sda1 e sdb1
md1 con raid0 con sda2 e sdb2
md2 con raid5 con sdc sdd e sde

Il problema è che in tutti e tre ottengo questo risultato (estratto da md2):

Version : 00.90.00
Creation Time : Tue Oct 24 22:17:14 2006
Raid Level : raid5
Array Size : 17773184 (16.95 GiB 18.20 GB)
Device Size : 8886592 (8.47 GiB 9.10 GB)
Raid Devices : 3
Total Devices : 4
Preferred Minor : 2
Persistence : Superblock is persistent

Update Time : Thu Nov 30 21:24:50 2006
State : active
Active Devices : 3
Working Devices : 3
Failed Devices : 1
Spare Devices : 0

Layout : left-symmetric
Chunk Size : 64K

UUID : 8837339b:8c95b391:0be6b00b:a2d58a38
Events : 0.21

Number Major Minor RaidDevice State
0 8 32 0 active sync /dev/sdc
1 8 48 1 active sync /dev/sdd
2 8 64 2 active sync /dev/sde
----------------------
Insomma mi vede sempre un device in piu rispetto al numero reale e me lo marca come failed.

----------------------------------
Aggiungo :
cat /proc/mdstat
Personalities : [raid1] [raid5]
read_ahead 1024 sectors
md1 : active raid1 scsi/host0/bus0/target1/lun0/part2[1] scsi/host0/bus0/target0/lun0/part2[0]
192704 blocks [2/2] [UU]

md2 : active raid5 scsi/host0/bus0/target2/lun0/disc[0] scsi/host0/bus0/target4/lun0/disc[2] scsi/host0/bus0/target3/lun0/disc[1]
17773184 blocks level 5, 64k chunk, algorithm 2 [3/3] [UUU]

md0 : active raid1 scsi/host0/bus0/target1/lun0/part1[1] scsi/host0/bus0/target0/lun0/part1[0]
8691008 blocks [2/2] [UU]

unused devices: <none>
---------------------------

Come mai??

grazie

ilsensine
01-12-2006, 08:11
Non ho mai usato mdadm per sperimentare con il raid5, ma è evidente che i tuoi tre dischi siano normalmente in linea. Non so perché ti segnala che c'è anche un device "failed". Puoi allegare il tuo mdadm.conf?