ich habe einige Fragen was das RAID5 betrifft.
Zunächst das System:
Squeeze, 2.6.32-5-amd64, Atom D525, 4GB
RAID5, 4x 1TB, davon 3xDaten 1x Hot Spare
Das OS läuft auf einer separaten HDD
So starte ich das RAID nach dem Booten:
Code: Alles auswählen
#!/bin/bash
# Script zum Starten des RAID Arrays
echo "Starting RAID Array"
mdadm-startall
echo "Unlocking /dev/md0"
cryptsetup luksOpen /dev/md0 cryptraid5
echo "Scanning for volume groups"
vgscan --mknodes
echo "Setting volume groups 2 Active"
vgchange -ay vg
echo "Mounting RAID5 Array"
mount /dev/mapper/vg-crypt /mnt/array1/
echo "Array mounted @ /mnt/array1"
mdadm.conf:
Code: Alles auswählen
# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#
# by default, scan all partitions (/proc/partitions) for MD superblocks.
# alternatively, specify devices to scan, using wildcards if desired.
DEVICE partitions
# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes
# automatically tag new arrays as belonging to the local system
HOMEHOST <system>
# instruct the monitoring daemon where to send mail alerts
MAILADDR root
# definitions of existing MD arrays
# This file was auto-generated on Fri, 25 Feb 2011 19:51:46 +0100
# by mkconf 3.1.4-1+8efb9d1
ARRAY /dev/md0 level=raid5 devices=/dev/sda,/dev/sdb,/dev/sdc,/dev/sdd
mdadm --detail /dev/md0:
Code: Alles auswählen
root@homer:/mnt/array1# mdadm --detail /dev/md0
/dev/md0:
Version : 1.2
Creation Time : Fri Feb 25 20:10:08 2011
Raid Level : raid5
Array Size : 2930284032 (2794.54 GiB 3000.61 GB)
Used Dev Size : 976761344 (931.51 GiB 1000.20 GB)
Raid Devices : 4
Total Devices : 3
Persistence : Superblock is persistent
Update Time : Mon Jun 4 20:49:33 2012
State : clean, degraded
Active Devices : 3
Working Devices : 3
Failed Devices : 0
Spare Devices : 0
Layout : left-symmetric
Chunk Size : 512K
Name : homer:0 (local to host homer)
UUID : 05ca68f2:245c258e:b77b7725:fa43e5bf
Events : 49178
Number Major Minor RaidDevice State
0 8 0 0 active sync /dev/sda
1 8 16 1 active sync /dev/sdb
2 8 32 2 active sync /dev/sdc
3 0 0 3 removed
oder wurde die beim starten des RAID-Arrays einfach nicht mit aufgenommen?
das Forum und auch das Netz ist voll von diesem Phänomen, jedoch gibt es einen kleinen unterschied: bei mir spuckt die 4te HDD (/dev/sdd) KEINE fehler aus:
root@homer:/mnt/array1# mdadm -E /dev/sda
Code: Alles auswählen
/dev/sda:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x0
Array UUID : 05ca68f2:245c258e:b77b7725:fa43e5bf
Name : homer:0 (local to host homer)
Creation Time : Fri Feb 25 20:10:08 2011
Raid Level : raid5
Raid Devices : 4
Avail Dev Size : 1953523120 (931.51 GiB 1000.20 GB)
Array Size : 5860568064 (2794.54 GiB 3000.61 GB)
Used Dev Size : 1953522688 (931.51 GiB 1000.20 GB)
Data Offset : 2048 sectors
Super Offset : 8 sectors
State : clean
Device UUID : 065ced4e:1f760953:1ba1d71f:e9fc11d3
Update Time : Mon Jun 4 20:49:33 2012
Checksum : 8fa8e811 - correct
Events : 49178
Layout : left-symmetric
Chunk Size : 512K
Device Role : Active device 0
Array State : AAAA ('A' == active, '.' == missing)
Code: Alles auswählen
/dev/sdb:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x0
Array UUID : 05ca68f2:245c258e:b77b7725:fa43e5bf
Name : homer:0 (local to host homer)
Creation Time : Fri Feb 25 20:10:08 2011
Raid Level : raid5
Raid Devices : 4
Avail Dev Size : 1953523120 (931.51 GiB 1000.20 GB)
Array Size : 5860568064 (2794.54 GiB 3000.61 GB)
Used Dev Size : 1953522688 (931.51 GiB 1000.20 GB)
Data Offset : 2048 sectors
Super Offset : 8 sectors
State : clean
Device UUID : 5c3a368e:6b397ce9:5edb1bda:a885aca8
Update Time : Mon Jun 4 20:49:33 2012
Checksum : f5434cb7 - correct
Events : 49178
Layout : left-symmetric
Chunk Size : 512K
Device Role : Active device 1
Array State : AAAA ('A' == active, '.' == missing)
Code: Alles auswählen
/dev/sdc:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x0
Array UUID : 05ca68f2:245c258e:b77b7725:fa43e5bf
Name : homer:0 (local to host homer)
Creation Time : Fri Feb 25 20:10:08 2011
Raid Level : raid5
Raid Devices : 4
Avail Dev Size : 1953523120 (931.51 GiB 1000.20 GB)
Array Size : 5860568064 (2794.54 GiB 3000.61 GB)
Used Dev Size : 1953522688 (931.51 GiB 1000.20 GB)
Data Offset : 2048 sectors
Super Offset : 8 sectors
State : clean
Device UUID : 050644a7:f8c43c19:926630b9:ef20d442
Update Time : Mon Jun 4 20:49:33 2012
Checksum : b74dca68 - correct
Events : 49178
Layout : left-symmetric
Chunk Size : 512K
Device Role : Active device 2
Array State : AAAA ('A' == active, '.' == missing)
Code: Alles auswählen
/dev/sdd:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x0
Array UUID : 05ca68f2:245c258e:b77b7725:fa43e5bf
Name : homer:0 (local to host homer)
Creation Time : Fri Feb 25 20:10:08 2011
Raid Level : raid5
Raid Devices : 4
Avail Dev Size : 1953523120 (931.51 GiB 1000.20 GB)
Array Size : 5860568064 (2794.54 GiB 3000.61 GB)
Used Dev Size : 1953522688 (931.51 GiB 1000.20 GB)
Data Offset : 2048 sectors
Super Offset : 8 sectors
State : clean
Device UUID : 9f4a8a6e:538b919f:f806f866:19af9ded
Update Time : Thu Jun 23 21:49:15 2011
Checksum : 5bafee18 - correct
Events : 5316
Layout : left-symmetric
Chunk Size : 512K
Device Role : Active device 3
Array State : AAAA ('A' == active, '.' == missing)
Dennoch sagt
cat /proc/mdstat:
Code: Alles auswählen
Personalities : [raid6] [raid5] [raid4]
md0 : active raid5 sda[0] sdc[2] sdb[1]
2930284032 blocks super 1.2 level 5, 512k chunk, algorithm 2 [4/3] [UUU_]
unused devices: <none>
Hardwaredefekt halte ich angesichts des Alters (1,5 Jahre; HDDs mit 24/7 freigabe, ein reboot gibt es ca alle 3-6monate wegen Kernelupdate oderso, HDDS kühlen also nicht ab, umgebungstemperatur durchgehend 20-25°C) und der Ausgaben (s.o.) für unwahrscheinlich, wenn auch nicht unmöglich. Garantie habe ich noch.
habe ich iwie ein denk- oder Konfigurationsfehler?
im Syslog fand ich nichts auffälliges.
nur sachen wie:
cat /var/log/syslog | grep mdadm
Code: Alles auswählen
Jun 4 22:16:33 homer kernel: [873590.114825] mdadm: sending ioctl 1261 to a partition!
Jun 4 22:16:33 homer kernel: [873590.233599] mdadm: sending ioctl 1261 to a partition!
Jun 4 22:16:33 homer kernel: [873590.275935] mdadm: sending ioctl 1261 to a partition!
Jun 4 22:16:33 homer kernel: [873590.312136] mdadm: sending ioctl 1261 to a partition!
Jun 4 22:16:33 homer kernel: [873590.356001] mdadm: sending ioctl 800c0910 to a partition!
Jun 4 22:16:33 homer kernel: [873590.356632] mdadm: sending ioctl 800c0910 to a partition!
Jun 4 22:16:33 homer kernel: [873590.569739] mdadm: sending ioctl 1261 to a partition!
Jun 4 22:16:34 homer kernel: [873590.827639] mdadm: sending ioctl 1261 to a partition!
Jun 4 22:16:34 homer kernel: [873590.904270] mdadm: sending ioctl 1261 to a partition!
Jun 4 22:16:34 homer kernel: [873590.990289] mdadm: sending ioctl 1261 to a partition!