#!/bin/sh
dmsetup remove_all

dmsetup create stripe0 <<EOF
0 134217728 striped 8 512 /dev/sdd 0 /dev/sde 0 /dev/sdf 0 /dev/sdg 0 /dev/sdp 0 /dev/sdq 0 /dev/sdr 0 /dev/sds 0
EOF

dmsetup create stripe1 <<EOF
0 134217728 striped 8 512 /dev/sdt 0 /dev/sdu 0 /dev/sdv 0 /dev/sdw 0 /dev/sdae 0 /dev/sdaf 0 /dev/sdag 0 /dev/sdah 0
EOF

dmsetup create mirror <<EOF
0 134217728 mirror core 1 2048 2 /dev/mapper/stripe0 0 /dev/mapper/stripe1 0
EOF

SysRq : Show Regs
Modules linked in: dm_mirror evdev joydev sg st sr_mod ide_cd cdrom ipv6 binfmt_misc tg3 usbcore nls_iso8859_1 nls_cp437 dm_mod xfs exportfs qla2300 qla2xxx scsi_transport_fc qla1280 sgiioc4 sd_mod scsi_mod

Pid: 0, CPU 1, comm:              swapper
psr : 0000101008026018 ifs : 8000000000000002 ip  : [<a00000010053a6c0>]    Not tainted
ip is at _read_lock+0x80/0xc0
unat: 0000000000000000 pfs : 000000000000040a rsc : 0000000000000003
rnat: 8000000000000004 bsps: 0000000000000000 pr  : 80000000e9556569
ldrs: 0000000000000000 ccv : 0000000000000000 fpsr: 0009804c0270033f
csd : 0000000000000000 ssd : 0000000000000000
b0  : a00000020500f5e0 b6  : a000000100003320 b7  : a00000020500f560
f6  : 1003e000000000000003d f7  : 1003e0000000000007a00
f8  : 1003e0000000000001dc9 f9  : 1003e000000000000007d
f10 : 1003e000000000000007a f11 : 1003e0000000000000100
r1  : a00000010095b0c0 r2  : 0000000080000000 r3  : 0000000080000000
r8  : 0000000080000000 r9  : e00000346143d1a0 r10 : 0000000000000000
r11 : e00000346143d1b0 r12 : e00000b0f6037b60 r13 : e00000b0f6030000
r14 : 0000000080000001 r15 : a0000002050139f8 r16 : 0000000000000000
r17 : 0000000000000011 r18 : e00000346143d198 r19 : a00000020500f560
r20 : a0007fff65270000 r21 : e00000b0f6030d84 r22 : 00000000161c7c00
r23 : a00000010076d1d0 r24 : e00000b0f24dd860 r25 : 000000000000217f
r26 : e00000b0f1af6440 r27 : e00000b0f1af6400 r28 : e00000b013ba1898
r29 : 0000000000004000 r30 : 0000000000004000 r31 : e00000b0f24dd850

Call Trace:
 [<a000000100011660>] show_stack+0x80/0xa0
                                sp=e00000b0f6037700 bsp=e00000b0f6031808
 [<a000000100011ec0>] show_regs+0x840/0x880
                                sp=e00000b0f60378d0 bsp=e00000b0f60317a0
 [<a000000100356190>] sysrq_handle_showregs+0x30/0x60
                                sp=e00000b0f60378e0 bsp=e00000b0f6031778
 [<a000000100355bd0>] __handle_sysrq+0xf0/0x2a0
                                sp=e00000b0f60378e0 bsp=e00000b0f6031720
 [<a000000100355dc0>] handle_sysrq+0x40/0x60
                                sp=e00000b0f60378e0 bsp=e00000b0f60316f0
 [<a000000100372e70>] sn_receive_chars+0x450/0x480
                                sp=e00000b0f60378e0 bsp=e00000b0f6031660
 [<a0000001003731a0>] sn_sal_interrupt+0x1e0/0x240
                                sp=e00000b0f60378f0 bsp=e00000b0f6031618
 [<a0000001000e4190>] handle_IRQ_event+0x90/0x120
                                sp=e00000b0f6037990 bsp=e00000b0f60315d0
 [<a0000001000e44a0>] __do_IRQ+0x280/0x360
                                sp=e00000b0f6037990 bsp=e00000b0f6031578
 [<a00000010000e770>] ia64_handle_irq+0xd0/0x160
                                sp=e00000b0f6037990 bsp=e00000b0f6031538
 [<a00000010000ab20>] ia64_leave_kernel+0x0/0x260
                                sp=e00000b0f6037990 bsp=e00000b0f6031538
 [<a00000010053a6c0>] _read_lock+0x80/0xc0
                                sp=e00000b0f6037b60 bsp=e00000b0f6031528
 [<a00000020500f5e0>] mirror_end_io+0x80/0x200 [dm_mirror]
                                sp=e00000b0f6037b60 bsp=e00000b0f60314e8
 [<a000000204e51b70>] clone_endio+0xd0/0x2c0 [dm_mod]
                                sp=e00000b0f6037b60 bsp=e00000b0f60314a0
 [<a00000010013eb20>] bio_endio+0x100/0x160
                                sp=e00000b0f6037b60 bsp=e00000b0f6031468
 [<a000000205012f10>] write_callback+0x130/0x160 [dm_mirror]
                                sp=e00000b0f6037b60 bsp=e00000b0f6031440
 [<a000000204e60390>] dec_count+0x170/0x180 [dm_mod]
                                sp=e00000b0f6037b70 bsp=e00000b0f60313f0
 [<a000000204e605e0>] endio+0x240/0x2a0 [dm_mod]
                                sp=e00000b0f6037b70 bsp=e00000b0f6031388
 [<a00000010013eb20>] bio_endio+0x100/0x160
                                sp=e00000b0f6037b80 bsp=e00000b0f6031350
 [<a000000204e51ca0>] clone_endio+0x200/0x2c0 [dm_mod]
                                sp=e00000b0f6037b80 bsp=e00000b0f6031308
 [<a00000010013eb20>] bio_endio+0x100/0x160
                                sp=e00000b0f6037b80 bsp=e00000b0f60312d0
 [<a000000100386d80>] __end_that_request_first+0x240/0x4a0
                                sp=e00000b0f6037b80 bsp=e00000b0f6031258
 [<a000000100387010>] end_that_request_chunk+0x30/0x60
                                sp=e00000b0f6037b80 bsp=e00000b0f6031228
 [<a000000204d99d60>] scsi_end_request+0x60/0x220 [scsi_mod]
                                sp=e00000b0f6037b80 bsp=e00000b0f60311d8
 [<a000000204d9a1e0>] scsi_io_completion+0x2c0/0x960 [scsi_mod]
                                sp=e00000b0f6037b80 bsp=e00000b0f6031148
 [<a000000204d43030>] sd_rw_intr+0x1d0/0x5e0 [sd_mod]
                                sp=e00000b0f6037b90 bsp=e00000b0f60310d8
 [<a000000204d8a700>] scsi_finish_command+0x1c0/0x200 [scsi_mod]
                                sp=e00000b0f6037bb0 bsp=e00000b0f60310a8
 [<a000000204d8bf40>] scsi_softirq+0x320/0x360 [scsi_mod]
                                sp=e00000b0f6037bb0 bsp=e00000b0f6031068
 [<a0000001000a6ad0>] __do_softirq+0x130/0x240
                                sp=e00000b0f6037bc0 bsp=e00000b0f6030fc0
 [<a0000001000a6c60>] do_softirq+0x80/0xe0
                                sp=e00000b0f6037bc0 bsp=e00000b0f6030f60
 [<a0000001000a6d40>] irq_exit+0x80/0xa0
                                sp=e00000b0f6037bc0 bsp=e00000b0f6030f48
 [<a00000010000e7e0>] ia64_handle_irq+0x140/0x160
                                sp=e00000b0f6037bc0 bsp=e00000b0f6030f08
 [<a00000010000ab20>] ia64_leave_kernel+0x0/0x260
                                sp=e00000b0f6037bc0 bsp=e00000b0f6030f08
 [<a00000010000ff30>] default_idle+0x170/0x1a0
                                sp=e00000b0f6037d90 bsp=e00000b0f6030e90
 [<a000000100011160>] cpu_idle+0x200/0x2c0
                                sp=e00000b0f6037e30 bsp=e00000b0f6030e20
 [<a00000010004e9a0>] start_secondary+0x2e0/0x300
                                sp=e00000b0f6037e30 bsp=e00000b0f6030de0
 [<a0000001000085f0>] _start+0x2d0/0x300
                                sp=e00000b0f6037e30 bsp=e00000b0f6030de0


