[[email protected]: Re: dm-raid Question:]

Heinz Mauelshagen <[email protected]>
Newsgroups gmane.linux.ataraid
Message-ID <[email protected]>
----- Forwarded message from Heinz Mauelshagen <[email protected]> -----

X-Sieve: CMU Sieve 2.2
Date: Wed, 8 Nov 2006 19:14:30 +0100
From: Heinz Mauelshagen <[email protected]>
To: Jeremy Moles <[email protected]>
Cc: [email protected]
Subject: Re: dm-raid Question:
Reply-To: [email protected]
In-Reply-To: <1163009170.2728.22.camel@localhost>
User-Agent: Mutt/1.4.2.1i
X-Sender: [email protected]

On Wed, Nov 08, 2006 at 01:06:10PM -0500, Jeremy Moles wrote:
> Heyas, this is Jeremy over at EmperorLinux. I hate to e-mail you

Hi.

> directly, but it wasn't immediately clear how to register for the lists.
> It was mentioned a few times in various google searches, but I never
> actually found it.
> 
> At any rate:
> 
> I have a new Sony BX670 here with two 100GB hard drives that are
> "software raided" (RAID1, according to the BIOS) using the Intel Matrix
> Storage Manager. I've built dmraid and have--what I believe--to be an
> appropriately configured 2.6.15.6 kernel.
> 
> So far, dmraid is able to recognize that "something" is going on, but
> when I try and activate the raid (using "dmraid -an") I get:
> 
> device-mapper: dm-linear: Invalid argument count
> device-mapper: error adding target to table

Hrm, a kernel/userspace missmatch.
Please provide the output of "dmraid -V ; dmraid -tay".

Regards,
Heinz

> 
> A file is created regardless in /dev/mapper, though I'm not able to do
> anything with it. If I might not mistaken, I should get one new block
> device per partition in /dev/mapper, right?
> 
> Is there anything you can recommend I try before writing this off?
> 
> P.S. I've attched the output of dmesg, dmraid -s, and fdisk -l if that
> helps.

> Linux version 2.6.15.6 (jeremy@quadxeon) (gcc version 3.3.6 (Debian 1:3.3.6-7)) #5 Wed Nov 8 12:47:54 EST 2006
> BIOS-provided physical RAM map:
>  BIOS-e820: 0000000000000000 - 000000000009cc00 (usable)
>  BIOS-e820: 000000000009cc00 - 00000000000a0000 (reserved)
>  BIOS-e820: 00000000000dc000 - 0000000000100000 (reserved)
>  BIOS-e820: 0000000000100000 - 000000003fe80000 (usable)
>  BIOS-e820: 000000003fe80000 - 000000003ff00000 (ACPI NVS)
>  BIOS-e820: 000000003ff00000 - 0000000040000000 (reserved)
>  BIOS-e820: 00000000e0000000 - 00000000f0000000 (reserved)
>  BIOS-e820: 00000000fec00000 - 00000000fec10000 (reserved)
>  BIOS-e820: 00000000fed14000 - 00000000fed1a000 (reserved)
>  BIOS-e820: 00000000fed1c000 - 00000000fed90000 (reserved)
>  BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
>  BIOS-e820: 00000000ff000000 - 0000000100000000 (reserved)
> 126MB HIGHMEM available.
> 896MB LOWMEM available.
> found SMP MP-table at 000f6da0
> On node 0 totalpages: 261760
>   DMA zone: 4096 pages, LIFO batch:0
>   DMA32 zone: 0 pages, LIFO batch:0
>   Normal zone: 225280 pages, LIFO batch:31
>   HighMem zone: 32384 pages, LIFO batch:7
> DMI present.
> ACPI: RSDP (v000 PTLTD                                 ) @ 0x000f6cf0
> ACPI: RSDT (v001   SONY       X7 0x20060911  LTP 0x00000000) @ 0x3fe84c35
> ACPI: FADT (v002   SONY       X7 0x20060911 LOHR 0x0000005a) @ 0x3fe8be48
> ACPI: MADT (v001   SONY       X7 0x20060911 LOHR 0x0000005a) @ 0x3fe8becc
> ACPI: MCFG (v001   SONY       X7 0x20060911 LOHR 0x0000005a) @ 0x3fe8bf34
> ACPI: MADT (v001   SONY       X7 0x20060911  LTP 0x00000000) @ 0x3fe8bf70
> ACPI: BOOT (v001   SONY       X7 0x20060911  LTP 0x00000001) @ 0x3fe8bfd8
> ACPI: SSDT (v001   SONY       X7 0x20060911 INTL 0x20050624) @ 0x3fe84c71
> ACPI: DSDT (v001   SONY       X7 0x20060911 MSFT 0x02000002) @ 0x00000000
> ACPI: PM-Timer IO Port: 0x1008
> ACPI: Local APIC address 0xfee00000
> ACPI: 2 duplicate APIC table ignored.
> ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
> Processor #0 6:15 APIC version 20
> ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
> Processor #1 6:15 APIC version 20
> WARNING: NR_CPUS limit of 1 reached.  Processor ignored.
> ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1])
> ACPI: LAPIC_NMI (acpi_id[0x01] high edge lint[0x1])
> ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
> IOAPIC[0]: apic_id 1 already used, trying 2
> IOAPIC[0]: apic_id 2, version 32, address 0xfec00000, GSI 0-23
> ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
> ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
> ACPI: IRQ0 used by override.
> ACPI: IRQ2 used by override.
> ACPI: IRQ9 used by override.
> Enabling APIC mode:  Flat.  Using 1 I/O APICs
> Using ACPI (MADT) for SMP configuration information
> Allocating PCI resources starting at 50000000 (gap: 40000000:a0000000)
> Built 1 zonelists
> Kernel command line: load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=131072 rw root=/dev/ram0 initrd=empclone.ird.jeremy.dm video=vesafb vga=791 BOOT_IMAGE=vmlinuz.jeremy.dm 
> mapped APIC to ffffd000 (fee00000)
> mapped IOAPIC to ffffc000 (fec00000)
> Initializing CPU#0
> PID hash table entries: 4096 (order: 12, 65536 bytes)
> Detected 2000.604 MHz processor.
> Using pmtmr for high-res timesource
> Console: colour dummy device 80x25
> Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
> Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
> Memory: 1020368k/1047040k available (1364k kernel code, 26040k reserved, 584k data, 140k init, 129536k highmem)
> Checking if this processor honours the WP bit even in supervisor mode... Ok.
> Calibrating delay using timer specific routine.. 4007.00 BogoMIPS (lpj=8014016)
> Mount-cache hash table entries: 512
> CPU: After generic identify, caps: bfebfbff 20100000 00000000 00000000 0000e3bd 00000000 00000001
> CPU: After vendor identify, caps: bfebfbff 20100000 00000000 00000000 0000e3bd 00000000 00000001
> monitor/mwait feature present.
> using mwait in idle threads.
> CPU: L1 I cache: 32K, L1 D cache: 32K
> CPU: L2 cache: 4096K
> CPU: After all inits, caps: bfebfbff 20100000 00000000 00000040 0000e3bd 00000000 00000001
> CPU: Intel(R) Core(TM)2 CPU         T7200  @ 2.00GHz stepping 06
> Enabling fast FPU save and restore... done.
> Enabling unmasked SIMD FPU exception support... done.
> Checking 'hlt' instruction... OK.
> Checking for popad bug... OK.
> ENABLING IO-APIC IRQs
> ..TIMER: vector=0x31 apic1=0 pin1=2 apic2=-1 pin2=-1
> checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
> Freeing initrd memory: 14690k freed
> NET: Registered protocol family 16
> ACPI: bus type pci registered
> PCI: PCI BIOS revision 2.10 entry at 0xfd8c2, last bus=11
> PCI: Using MMCONFIG
> ACPI: Subsystem revision 20050902
> ACPI: Interpreter enabled
> ACPI: Using IOAPIC for interrupt routing
> ACPI: PCI Root Bridge [PCI0] (0000:00)
> PCI: Probing PCI hardware (bus 00)
> PCI: Ignoring BAR0-3 of IDE controller 0000:00:1f.1
> Boot video device is 0000:01:00.0
> PCI: Transparent bridge - 0000:00:1e.0
> ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
> ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PEGP._PRT]
> ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.RP01._PRT]
> ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.RP02._PRT]
> ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.RP03._PRT]
> ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PCIB._PRT]
> ACPI: PCI Interrupt Link [LNKA] (IRQs 1 3 4 5 6 *7 10 12 14 15)
> ACPI: PCI Interrupt Link [LNKB] (IRQs 1 3 4 5 6 7 11 12 14 15) *10
> ACPI: PCI Interrupt Link [LNKC] (IRQs 1 *3 4 5 6 7 10 12 14 15)
> ACPI: PCI Interrupt Link [LNKD] (IRQs 1 3 4 5 6 7 11 12 14 15) *10
> ACPI: PCI Interrupt Link [LNKE] (IRQs 1 3 4 5 6 7 *10 12 14 15)
> ACPI: PCI Interrupt Link [LNKF] (IRQs 1 3 4 5 6 7 11 12 14 15) *10
> ACPI: PCI Interrupt Link [LNKG] (IRQs 1 3 4 5 6 7 *10 12 14 15)
> ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 *5 6 7 11 12 14 15)
> ACPI: Embedded Controller [EC0] (gpe 23)
> PCI: Using ACPI for IRQ routing
> PCI: If a device doesn't work, try "pci=routeirq".  If it helps, post a report
> PCI: Bridge: 0000:00:01.0
>   IO window: 2000-2fff
>   MEM window: b0100000-b01fffff
>   PREFETCH window: c8000000-cfffffff
> PCI: Bridge: 0000:00:1c.0
>   IO window: 3000-3fff
>   MEM window: b4000000-b7ffffff
>   PREFETCH window: d0000000-d3ffffff
> PCI: Bridge: 0000:00:1c.1
>   IO window: 4000-4fff
>   MEM window: b8000000-bbffffff
>   PREFETCH window: d4000000-d7ffffff
> PCI: Bridge: 0000:00:1c.2
>   IO window: 5000-5fff
>   MEM window: bc000000-bfffffff
>   PREFETCH window: d8000000-dbffffff
> PCI: Bus 11, cardbus bridge: 0000:0a:09.0
>   IO window: 00006400-000064ff
>   IO window: 00006800-000068ff
>   PREFETCH window: 50000000-51ffffff
>   MEM window: 54000000-55ffffff
> PCI: Bridge: 0000:00:1e.0
>   IO window: 6000-6fff
>   MEM window: c0000000-c00fffff
>   PREFETCH window: 50000000-52ffffff
> ACPI: PCI Interrupt 0000:00:01.0[A] -> GSI 16 (level, low) -> IRQ 16
> PCI: Setting latency timer of device 0000:00:01.0 to 64
> ACPI: PCI Interrupt 0000:00:1c.0[A] -> GSI 16 (level, low) -> IRQ 16
> PCI: Setting latency timer of device 0000:00:1c.0 to 64
> ACPI: PCI Interrupt 0000:00:1c.1[B] -> GSI 17 (level, low) -> IRQ 17
> PCI: Setting latency timer of device 0000:00:1c.1 to 64
> ACPI: PCI Interrupt 0000:00:1c.2[C] -> GSI 18 (level, low) -> IRQ 18
> PCI: Setting latency timer of device 0000:00:1c.2 to 64
> PCI: Setting latency timer of device 0000:00:1e.0 to 64
> ACPI: PCI Interrupt 0000:0a:09.0[A] -> GSI 20 (level, low) -> IRQ 19
> Simple Boot Flag at 0x35 set to 0x1
> highmem bounce pool size: 64 pages
> Initializing Cryptographic API
> io scheduler noop registered
> io scheduler cfq registered
> ACPI: PCI Interrupt 0000:00:01.0[A] -> GSI 16 (level, low) -> IRQ 16
> PCI: Setting latency timer of device 0000:00:01.0 to 64
> assign_interrupt_mode Found MSI capability
> Allocate Port Service[pcie00]
> Allocate Port Service[pcie03]
> ACPI: PCI Interrupt 0000:00:1c.0[A] -> GSI 16 (level, low) -> IRQ 16
> PCI: Setting latency timer of device 0000:00:1c.0 to 64
> assign_interrupt_mode Found MSI capability
> Allocate Port Service[pcie00]
> Allocate Port Service[pcie02]
> Allocate Port Service[pcie03]
> ACPI: PCI Interrupt 0000:00:1c.1[B] -> GSI 17 (level, low) -> IRQ 17
> PCI: Setting latency timer of device 0000:00:1c.1 to 64
> assign_interrupt_mode Found MSI capability
> Allocate Port Service[pcie00]
> Allocate Port Service[pcie02]
> Allocate Port Service[pcie03]
> ACPI: PCI Interrupt 0000:00:1c.2[C] -> GSI 18 (level, low) -> IRQ 18
> PCI: Setting latency timer of device 0000:00:1c.2 to 64
> assign_interrupt_mode Found MSI capability
> Allocate Port Service[pcie00]
> Allocate Port Service[pcie02]
> Allocate Port Service[pcie03]
> vesafb: framebuffer at 0xc8000000, mapped to 0xf8880000, using 3072k, total 16384k
> vesafb: mode is 1024x768x16, linelength=2048, pages=9
> vesafb: protected mode interface info at c000:aeac
> vesafb: scrolling: redraw
> vesafb: Truecolor: size=0:5:6:5, shift=0:11:5:0
> vesafb: Mode is VGA compatible
> Console: switching to colour frame buffer device 128x48
> fb0: VESA VGA frame buffer device
> serio: i8042 AUX port at 0x60,0x64 irq 12
> serio: i8042 KBD port at 0x60,0x64 irq 1
> RAMDISK driver initialized: 16 RAM disks of 131072K size 1024 blocksize
> Intel(R) PRO/1000 Network Driver - version 6.1.16-k2
> Copyright (c) 1999-2005 Intel Corporation.
> e100: Intel(R) PRO/100 Network Driver, 3.4.14-k4-NAPI
> e100: Copyright(c) 1999-2005 Intel Corporation
> mice: PS/2 mouse device common for all mice
> md: linear personality registered as nr 1
> md: raid0 personality registered as nr 2
> md: raid1 personality registered as nr 3
> md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27
> md: bitmap version 4.39
> device-mapper: 4.4.0-ioctl (2005-01-12) initialised: [email protected]
> NET: Registered protocol family 2
> IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
> TCP established hash table entries: 131072 (order: 7, 524288 bytes)
> TCP bind hash table entries: 65536 (order: 6, 262144 bytes)
> TCP: Hash tables configured (established 131072 bind 65536)
> TCP reno registered
> TCP bic registered
> Using IPI Shortcut mode
> input: AT Translated Set 2 keyboard as /class/input/input0
> md: Autodetecting RAID arrays.
> md: autorun ...
> md: ... autorun DONE.
> RAMDISK: Compressed image found at block 0
> EXT2-fs warning: maximal mount count reached, running e2fsck is recommended
> VFS: Mounted root (ext2 filesystem).
> Freeing unused kernel memory: 140k freed
> NET: Registered protocol family 1
> ACPI: PCI Interrupt 0000:03:00.0[A] -> GSI 17 (level, low) -> IRQ 17
> sk98lin: Network Device Driver v8.31.2.3
> (C)Copyright 1999-2006 Marvell(R).
> ACPI: PCI Interrupt 0000:03:00.0[A] -> GSI 17 (level, low) -> IRQ 17
> PCI: Setting latency timer of device 0000:03:00.0 to 64
> eth0: Marvell Yukon 88E8055 Gigabit Ethernet Controller
>       PrefPort:A  RlmtMode:Check Link State
> NET: Registered protocol family 17
> eth0: network connection up using port A
>     speed:           1000
>     autonegotiation: yes
>     duplex mode:     full
>     flowctrl:        symmetric
>     role:            master
>     irq moderation:  disabled
>     tcp offload:     disabled
>     scatter-gather:  enabled
>     tx-checksum:     enabled
>     rx-checksum:     enabled
> SCSI subsystem initialized
> libata version 1.20 loaded.
> ahci 0000:00:1f.2: version 1.2
> ACPI: PCI Interrupt 0000:00:1f.2[B] -> GSI 19 (level, low) -> IRQ 20
> PCI: Setting latency timer of device 0000:00:1f.2 to 64
> ahci 0000:00:1f.2: AHCI 0001.0100 32 slots 4 ports 1.5 Gbps 0x5 impl RAID mode
> ahci 0000:00:1f.2: flags: 64bit ncq pm led clo pio slum part 
> ata1: SATA max UDMA/133 cmd 0xF8836500 ctl 0x0 bmdma 0x0 irq 20
> ata2: SATA max UDMA/133 cmd 0xF8836580 ctl 0x0 bmdma 0x0 irq 20
> ata3: SATA max UDMA/133 cmd 0xF8836600 ctl 0x0 bmdma 0x0 irq 20
> ata4: SATA max UDMA/133 cmd 0xF8836680 ctl 0x0 bmdma 0x0 irq 20
> ata1: dev 0 cfg 49:2f00 82:346b 83:7d09 84:6003 85:3469 86:3c09 87:6003 88:207f
> ata1: dev 0 ATA-7, max UDMA/133, 195371568 sectors: LBA48
> ata1: dev 0 configured for UDMA/133
> scsi0 : ahci
> ata2: no device found (phy stat 00000000)
> scsi1 : ahci
> ata3: dev 0 cfg 49:2f00 82:346b 83:7d09 84:6003 85:3469 86:3c09 87:6003 88:207f
> ata3: dev 0 ATA-7, max UDMA/133, 195371568 sectors: LBA48
> ata3: dev 0 configured for UDMA/133
> scsi2 : ahci
> ata4: no device found (phy stat 00000000)
> scsi3 : ahci
>   Vendor: ATA       Model: ST9100824AS       Rev: 3.14
>   Type:   Direct-Access                      ANSI SCSI revision: 05
> SCSI device sda: 195371568 512-byte hdwr sectors (100030 MB)
> SCSI device sda: drive cache: write back
> SCSI device sda: 195371568 512-byte hdwr sectors (100030 MB)
> SCSI device sda: drive cache: write back
>  sda: sda1 sda2
> sd 0:0:0:0: Attached scsi disk sda
>   Vendor: ATA       Model: ST9100824AS       Rev: 3.14
>   Type:   Direct-Access                      ANSI SCSI revision: 05
> SCSI device sdb: 195371568 512-byte hdwr sectors (100030 MB)
> SCSI device sdb: drive cache: write back
> SCSI device sdb: 195371568 512-byte hdwr sectors (100030 MB)
> SCSI device sdb: drive cache: write back
>  sdb: unknown partition table
> sd 2:0:0:0: Attached scsi disk sdb
> device-mapper: dm-linear: Invalid argument count
> device-mapper: error adding target to table
> device-mapper: dm-linear: Invalid argument count
> device-mapper: error adding target to table
> device-mapper: dm-linear: Invalid argument count
> device-mapper: error adding target to table
> device-mapper: dm-linear: Invalid argument count
> device-mapper: error adding target to table
> device-mapper: dm-linear: Invalid argument count
> device-mapper: error adding target to table
> device-mapper: dm-linear: Invalid argument count
> device-mapper: error adding target to table
> device-mapper: dm-linear: Invalid argument count
> device-mapper: error adding target to table
> device-mapper: dm-linear: Invalid argument count
> device-mapper: error adding target to table


> 
> Disk /dev/sda: 100.0 GB, 100030242816 bytes
> 255 heads, 63 sectors/track, 12161 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> 
>    Device Boot      Start         End      Blocks   Id  System
> /dev/sda1               1         784     6297448+  12  Compaq diagnostics
> /dev/sda2   *         785       24321   189060952+   7  HPFS/NTFS
> 
> Disk /dev/sdb: 100.0 GB, 100030242816 bytes
> 255 heads, 63 sectors/track, 12161 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> 

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Red Hat GmbH
Consulting Development Engineer                   Am Sonnenhang 11
Storage Development                               56242 Marienrachdorf
                                                  Germany
[email protected]                            PHONE +49  171 7803392
                                                  FAX   +49 2626 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

----- End forwarded message -----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.