View previous topic :: View next topic |
Author |
Message |
LauPro n00b
Joined: 05 Jan 2004 Posts: 43 Location: Gelderland, The Netherlands
|
Posted: Mon Jul 09, 2007 4:18 pm Post subject: Software RAID broken / mdadm segfaults [SOLVED] |
|
|
I have a software RAID5 array with 3 devices, the config: Code: | raiddev /dev/md0
raid-level 5
nr-raid-disks 3
nr-spare-disks 0
persistent-superblock 0
parity-algorithm left-symmetric
chunk-size 128
device /dev/sdb
raid-disk 0
device /dev/sdc
raid-disk 1
device /dev/sdd
raid-disk 2 | When i try to start this array a segfault occurs: Code: | # mdadm --assemble /dev/md0 /dev/sdb /dev/sdc /dev/sdd
# dmesg
md: md0 stopped.
mdadm[15041]: segfault at 000000000056c8b0 rip 00000000004167e4 rsp 00007fff18e03190 error 4 | The kernel configuration seems okay: Code: | # grep -i raid /usr/src/linux/.config
CONFIG_RAID_ATTRS=m
# CONFIG_BLK_DEV_3W_XXXX_RAID is not set
# CONFIG_SCSI_AACRAID is not set
# CONFIG_MEGARAID_NEWGEN is not set
# CONFIG_MEGARAID_LEGACY is not set
# CONFIG_MEGARAID_SAS is not set
# Multi-device support (RAID and LVM)
CONFIG_MD_RAID0=m
CONFIG_MD_RAID1=m
CONFIG_MD_RAID10=m
CONFIG_MD_RAID456=m
# CONFIG_MD_RAID5_RESHAPE is not set | And the loaded modules: Code: | # lsmod
Module Size Used by
linear 9216 0
multipath 11776 0
raid0 10880 0
raid1 23808 0
raid456 119072 0
xor 9872 1 raid456
md_mod 71580 6 linear,multipath,raid0,raid1,raid456 | What is the reason that mdadm segfaults? I seems like some version conflict.
Last edited by LauPro on Thu Jul 12, 2007 1:12 am; edited 1 time in total |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54834 Location: 56N 3W
|
Posted: Mon Jul 09, 2007 5:57 pm Post subject: |
|
|
LauPro,
It looks like your mdadm is broken - try
A segfault means the program tried to access some memory its not supposed to. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
LauPro n00b
Joined: 05 Jan 2004 Posts: 43 Location: Gelderland, The Netherlands
|
Posted: Mon Jul 09, 2007 11:48 pm Post subject: |
|
|
I've tried to reemerge the package but i get still the segfault, also when i compile the options as builtin and reboot for the new kernel.
Maybe it has something to do with the order of loading the modules? One module for a SATA-controller is loaded after the md-stuff: Code: | md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
scsi3 : sata_sil
ata4: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
ata4.00: ATA-7, max UDMA/133, 398297088 sectors: LBA48 NCQ (depth 0/32)
ata4.00: ata4: dev 0 multi count 16
ata4.00: configured for UDMA/100
scsi 2:0:0:0: Direct-Access ATA Maxtor 6L200M0 BANC PQ: 0 ANSI: 5
SCSI device sdc: 398297088 512-byte hdwr sectors (203928 MB)
sdc: Write Protect is off
sdc: Mode Sense: 00 3a 00 00
SCSI device sdc: write cache: enabled, read cache: enabled, doesn't support DPO or FUA
SCSI device sdc: 398297088 512-byte hdwr sectors (203928 MB)
sdc: Write Protect is off
sdc: Mode Sense: 00 3a 00 00
SCSI device sdc: write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sdc: unknown partition table
sd 2:0:0:0: Attached scsi disk sdc
sd 2:0:0:0: Attached scsi generic sg2 type 0
scsi 3:0:0:0: Direct-Access ATA Maxtor 6B200M0 BANC PQ: 0 ANSI: 5
SCSI device sdd: 398297088 512-byte hdwr sectors (203928 MB)
sdd: Write Protect is off
sdd: Mode Sense: 00 3a 00 00
SCSI device sdd: write cache: enabled, read cache: enabled, doesn't support DPO or FUA
SCSI device sdd: 398297088 512-byte hdwr sectors (203928 MB)
sdd: Write Protect is off
sdd: Mode Sense: 00 3a 00 00
SCSI device sdd: write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sdd: unknown partition table
sd 3:0:0:0: Attached scsi disk sdd
sd 3:0:0:0: Attached scsi generic sg3 type 0
VP_IDE: IDE controller at PCI slot 0000:00:0f.1
ACPI: PCI Interrupt 0000:00:0f.1[A] -> Link [ALKA] -> GSI 20 (level, low) -> IRQ 20
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
VP_IDE: VIA vt8237 (rev 00) IDE UDMA133 controller on pci0000:00:0f.1
ide0: BM-DMA at 0xdc00-0xdc07, BIOS settings: hda:DMA, hdb:pio
ide1: BM-DMA at 0xdc08-0xdc0f, BIOS settings: hdc:pio, hdd:pio
Probing IDE interface ide0...
hda: _NEC DVD+RW ND-1100A, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Probing IDE interface ide1...
ACPI: PCI Interrupt Link [ALKC] enabled at IRQ 22
ACPI: PCI Interrupt 0000:00:11.5[C] -> Link [ALKC] -> GSI 22 (level, low) -> IRQ 22
PCI: Setting latency timer of device 0000:00:11.5 to 64
hda: ATAPI 40X DVD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.20
ACPI: PCI Interrupt 0000:00:09.0[A] -> GSI 17 (level, low) -> IRQ 17
PCI: Enabling device 0000:01:00.0 (0000 -> 0002)
ACPI: PCI Interrupt 0000:01:00.0[A] -> GSI 16 (level, low) -> IRQ 16
NVRM: loading NVIDIA UNIX x86_64 Kernel Module 100.14.11 Wed Jun 13 16:33:22 PDT 2007
Probing IDE interface ide1...
md: md0 stopped.
mdadm[3225]: segfault at 000000000056c830 rip 00000000004167e4 rsp 00007fffda12e570 error 4
|
|
|
Back to top |
|
|
LauPro n00b
Joined: 05 Jan 2004 Posts: 43 Location: Gelderland, The Netherlands
|
Posted: Thu Jul 12, 2007 1:11 am Post subject: |
|
|
I've solved the problem by first adding 2 disks to the array and then rebuild it with the third. It seems there was some kind of misconfiguration that triggered the segfault. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|