[dm-devel] dmsetup target parameters

christophe.varoqui at free.fr christophe.varoqui at free.fr
Wed May 19 11:09:03 UTC 2004


Selon Ling Hwa Hing <hwahing at nasioncom.net>:

> > > I've create with the dmsetup. this is what i've from the console.
> > > 
> > > echo "0 262132604 multipath 2 round-robin 1 0 /dev/sdc round-robin 1 0
> > > /dev/sdd round-robin 1 0 /dev/sde round-robin 1 0 /dev/sdf" | dmsetup
> create
> > > imapstor01
> > > device-mapper ioctl cmd 9 failed: Invalid argument
> > > Command failed
>  
> > So, what does the "multipath -v" command say ?
> 
> # all paths :
> 600508b400014ae80001b000001e0000 (2 0 0 1) /dev/sdc [HSV110 (C)COMPAQ]
> 600508b400014ae80001b000001e0000 (2 0 1 1) /dev/sdd [HSV110 (C)COMPAQ]
> 600508b400014ae80001b000001e0000 (3 0 0 1) /dev/sde [HSV110 (C)COMPAQ]
> 600508b400014ae80001b000001e0000 (3 0 1 1) /dev/sdf [HSV110 (C)COMPAQ]

This block is purely informative : it displays information that was gathered by
SCSI inquiries

> # all multipaths :
> 600508b400014ae80001b000001e0000
>  \_(2 0 0 1) /dev/sdc [HSV110 (C)COMPAQ]
>  \_(2 0 1 1) /dev/sdd [HSV110 (C)COMPAQ]
>  \_(3 0 0 1) /dev/sde [HSV110 (C)COMPAQ]
>  \_(3 0 1 1) /dev/sdf [HSV110 (C)COMPAQ]

This block is purely informative too : it displays information about the path
coalescing done by the tool

> # device maps :
> N:600508b400014ae80001b000001e0000:0 262144000 multipath 2 round-robin 2 0
> /dev/sdd /dev/sdf round-robin 2 0 /dev/sdc /dev/sde
> device-mapper ioctl cmd 9 failed: 22
>
This block shows what is currently being instructed to the device-mapper : the
devmap creation is failing here.
 
are your connection set to Solaris in the HSV110 ?
is your kernel configured with REPORT_LUN ?
does a simple dd on a ghost path fail or block ?
do a simple multipath map without the ghosts work ?
do a simple multipath map with non SAN disks work (don't do writes, don't mount :) ?

> some times multipath -v just hung. it just stop after display the 
> <snip>
> # device maps :
> N:600508b400014ae80001b000001e0000:0 262144000 multipath 2 round-robin 2 0
> /dev/sdd /dev/sdf round-robin 2 0 /dev/sdc /dev/sde
> 
> <stop display but no exit>
> 
> and i have another question.
> When I remove the device with dmsetup mknodes and dmsetup remove_all, why the
> informations in the multipath -v still remains the same as what is created
> earlier.
> 
hope it is clear now.

regards,
cvaroqui



More information about the dm-devel mailing list