PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Software Raid-5



leo_80
22.08.12, 00:45
Hallo zusammen

Seit einiger Zeit habe Ich Probleme mit einem Softwareraid 5 4 Platte mit jeweils 500 GB

Zwei Platten hat es immer ausgehängt.
Bisher konnte ich mir mit readden helfen können.

mdadm -D /dev/md0
zeigte /dev/md0:
Version : 0.90
Creation Time : Sat Dec 17 22:33:05 2011
Raid Level : raid5
Array Size : 1452187392 (1384.91 GiB 1487.04 GB)
Used Dev Size : 484062464 (461.64 GiB 495.68 GB)
Raid Devices : 4
Total Devices : 4
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Wed Aug 22 00:14:09 2012
State : active, degraded
Active Devices : 3
Working Devices : 3
Failed Devices : 1
Spare Devices : 0

Layout : left-symmetric
Chunk Size : 256K

UUID : 3f6750bc:83ff8986:2a2f3616:7e8c24d6
Events : 0.383287

Number Major Minor RaidDevice State
0 8 3 0 active sync /dev/sda3
1 8 18 1 active sync /dev/sdb2
2 8 34 2 active sync /dev/sdc2
3 0 0 3 removed

4 8 50 - faulty spare

die 4. Platte normal sdd ist nun als sdf zu finden.

diese wollte ich wieder readden.

nun sieht das so aus:

/dev/md0:
Version : 0.90
Creation Time : Sat Dec 17 22:33:05 2011
Raid Level : raid5
Array Size : 1452187392 (1384.91 GiB 1487.04 GB)
Used Dev Size : 484062464 (461.64 GiB 495.68 GB)
Raid Devices : 4
Total Devices : 5
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Wed Aug 22 00:44:44 2012
State : active, degraded, recovering
Active Devices : 3
Working Devices : 4
Failed Devices : 1
Spare Devices : 1

Layout : left-symmetric
Chunk Size : 256K

Rebuild Status : 0% complete

UUID : 3f6750bc:83ff8986:2a2f3616:7e8c24d6
Events : 0.384369

Number Major Minor RaidDevice State
0 8 3 0 active sync /dev/sda3
1 8 18 1 active sync /dev/sdb2
2 8 34 2 active sync /dev/sdc2
4 8 82 3 spare rebuilding /dev/sdf2

5 8 50 - faulty spare

Diese Email kommt auch bei einem neustart immer

This email was generated by the smartd daemon running on:

host name: centos.ed.riebe-gmbh.de
DNS domain: ed.riebe-gmbh.de
NIS domain: (none)

The following warning/error was logged by the smartd daemon:

Device: /dev/sdd, unable to open device

For details see host's SYSLOG (default: /var/log/messages).

You can also use the smartctl utility for further investigation.
No additional email messages about this problem will be sent.

Grüsse Felipe

muell200
22.08.12, 07:31
hallo Felipe


Zwei Platten hat es immer ausgehängt.


das ist schon komisch.

und verwende bitte [code] damit der text besser lesbar ist!

wie sieht deine config dazu aus?

leo_80
22.08.12, 16:41
Ja natürlich ich werde es mir merken

/etc/mdadm.conf

# mdadm.conf written out by anaconda
DEVICE partitions
MAILADDR noebauer@dncom.de
ARRAY /dev/md0 level=raid5 num-devices=4 uuid=3f6750bc:83ff8986:2a2f3616:7e8c24d6

Ich habe nun die platte mit fail markiert anschliesend entfernt.
Anschliesend den Server neugestartet.
das schlug fehl, mit Livesystem weiter

Nun sieht es so aus:

mdadm -D /dev/md0

/dev/md0:
Version : 0.90
Creation Time : Sat Dec 17 22:33:05 2011
Raid Level : raid5
Array Size : 1452187392 (1384.91 GiB 1487.04 GB)
Used Dev Size : 484062464 (461.64 GiB 495.68 GB)
Raid Devices : 4
Total Devices : 4
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Wed Aug 22 16:32:09 2012
State : active, degraded, recovering
Active Devices : 3
Working Devices : 4
Failed Devices : 0
Spare Devices : 1

Layout : left-symmetric
Chunk Size : 256K

Rebuild Status : 4% complete

UUID : 3f6750bc:83ff8986:2a2f3616:7e8c24d6
Events : 0.405579

Number Major Minor RaidDevice State
0 8 3 0 active sync /dev/sda3
1 8 18 1 active sync /dev/sdb2
2 8 34 2 active sync /dev/sdc2
4 8 50 3 spare rebuilding /dev/sdd2

Was ich komisch finde, dass er die Platte als Spare rebuildet und die Nummer 4 stadt 3 hat.

Felipe

just4uk
23.08.12, 00:05
poste mal den Output von
cat /proc/mdstat

mdadm -D /dev/mdyx

mdadm -E /dev/sdxx

blkid -olistwobei der
mdadm -E /dev/sdxxvon jedem Raiddevice sein sollte.

Gruß aus L.E.
Uwe

leo_80
23.08.12, 00:18
Wie gewünscht

cat /proc/mdstat

Personalities : [raid6] [raid5] [raid4]
md0 : active raid5 sdc2[2] sdb2[1] sda3[0]
1452187392 blocks level 5, 256k chunk, algorithm 2 [4/3] [UUU_]

unused devices: <none>

mdadm -D /dev/md0

/dev/md0:
Version : 0.90
Creation Time : Sat Dec 17 22:33:05 2011
Raid Level : raid5
Array Size : 1452187392 (1384.91 GiB 1487.04 GB)
Used Dev Size : 484062464 (461.64 GiB 495.68 GB)
Raid Devices : 4
Total Devices : 3
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Thu Aug 23 00:14:05 2012
State : clean, degraded
Active Devices : 3
Working Devices : 3
Failed Devices : 0
Spare Devices : 0

Layout : left-symmetric
Chunk Size : 256K

UUID : 3f6750bc:83ff8986:2a2f3616:7e8c24d6
Events : 0.422352

Number Major Minor RaidDevice State
0 8 3 0 active sync /dev/sda3
1 8 18 1 active sync /dev/sdb2
2 8 34 2 active sync /dev/sdc2
3 0 0 3 removed

mdadm -E /dev/sda3

/dev/sda3:
Magic : a92b4efc
Version : 0.90.00
UUID : 3f6750bc:83ff8986:2a2f3616:7e8c24d6
Creation Time : Sat Dec 17 22:33:05 2011
Raid Level : raid5
Used Dev Size : 484062464 (461.64 GiB 495.68 GB)
Array Size : 1452187392 (1384.91 GiB 1487.04 GB)
Raid Devices : 4
Total Devices : 3
Preferred Minor : 0

Update Time : Thu Aug 23 00:15:21 2012
State : clean
Active Devices : 3
Working Devices : 3
Failed Devices : 1
Spare Devices : 0
Checksum : d15b0291 - correct
Events : 422386

Layout : left-symmetric
Chunk Size : 256K

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 18 1 active sync /dev/sdb2
2 2 8 34 2 active sync /dev/sdc2
3 3 0 0 3 faulty removed

mdadm -E /dev/sdb2

/dev/sdb2:
Magic : a92b4efc
Version : 0.90.00
UUID : 3f6750bc:83ff8986:2a2f3616:7e8c24d6
Creation Time : Sat Dec 17 22:33:05 2011
Raid Level : raid5
Used Dev Size : 484062464 (461.64 GiB 495.68 GB)
Array Size : 1452187392 (1384.91 GiB 1487.04 GB)
Raid Devices : 4
Total Devices : 3
Preferred Minor : 0

Update Time : Thu Aug 23 00:16:51 2012
State : clean
Active Devices : 3
Working Devices : 3
Failed Devices : 1
Spare Devices : 0
Checksum : d15b0364 - correct
Events : 422438

Layout : left-symmetric
Chunk Size : 256K

Number Major Minor RaidDevice State
this 1 8 18 1 active sync /dev/sdb2

0 0 8 3 0 active sync /dev/sda3
1 1 8 18 1 active sync /dev/sdb2
2 2 8 34 2 active sync /dev/sdc2
3 3 0 0 3 faulty removed

mdadm -E /dev/sdc2

/dev/sdc2:
Magic : a92b4efc
Version : 0.90.00
UUID : 3f6750bc:83ff8986:2a2f3616:7e8c24d6
Creation Time : Sat Dec 17 22:33:05 2011
Raid Level : raid5
Used Dev Size : 484062464 (461.64 GiB 495.68 GB)
Array Size : 1452187392 (1384.91 GiB 1487.04 GB)
Raid Devices : 4
Total Devices : 3
Preferred Minor : 0

Update Time : Thu Aug 23 00:17:51 2012
State : clean
Active Devices : 3
Working Devices : 3
Failed Devices : 1
Spare Devices : 0
Checksum : d15b03ea - correct
Events : 422466

Layout : left-symmetric
Chunk Size : 256K

Number Major Minor RaidDevice State
this 2 8 34 2 active sync /dev/sdc2

0 0 8 3 0 active sync /dev/sda3
1 1 8 18 1 active sync /dev/sdb2
2 2 8 34 2 active sync /dev/sdc2
3 3 0 0 3 faulty removed

blkid -olist

Invalid output format list. Chose from value, device, or full

Felipe

just4uk
23.08.12, 15:50
Die vierte Platte fehlt.
Bei
blkid -o listmal ein Lerzeichen zwischen -o und list versuchen.
Warum einmal Partition 2 und dann mal 3. Warum nicht generell die 1.
Der Output von blkid wäre sehr wichtig!
Wenn dir Platten mehr oder weniger regelmäßig rausfliegen hast du bestimmt schon die Verkabelung, Power usw. usw. überprüft?!?
Btw was sagt den eigentlich dein syslog (messages) in so einem Fall?

Gruß aus L.E.
Uwe

leo_80
03.09.12, 15:05
ähh Ja

habe ich noch nicht geantwortet.
Es ist so man muss warten.

Wenn das rebuild kommplett ist passt alles.

Felipe

A just4uk Ich konnte keine Rechschreibfehler feststellen