All of lore.kernel.org
 help / color / mirror / Atom feed
* multipath 4k partition block issues.
@ 2013-09-04 21:01 Ross Anderson
  2013-09-04 21:27 ` Mike Snitzer
  0 siblings, 1 reply; 3+ messages in thread
From: Ross Anderson @ 2013-09-04 21:01 UTC (permalink / raw)
  To: dm-devel

Greetings,


The current git version of multipath-tools doesn't properly handle 4k 
block sizes and partions creation. There very little verbose output but 
I will post what I can find. I would appreciate any help getting this 
working.

The raw devices detect the 4k partition.

A manual run of kpartx -a creates the dm points.

Thanks for the assistance,
Ross

##Log Errors w/multipathd -v4
[   15.760507] sd 8:0:1:2: [sdn] Attached SCSI disk
[   15.760709]  sdp: sdp1 sdp2
[   15.760781] sd 7:0:1:2: [sdq] 681574400 4096-byte logical blocks: 
(2.79 TB/2.53 TiB)
[   15.760854] sd 7:0:1:1: [sdo] Attached SCSI disk
[   15.760953] sd 8:0:1:3: [sdp] 57671680 4096-byte logical blocks: (236 
GB/220 GiB)
[   15.761056] sd 7:0:1:0: [sdm] Attached SCSI disk
[   15.761484] sd 7:0:1:2: [sdq] Attached SCSI disk
[   15.761496] sd 8:0:1:3: [sdp] Attached SCSI disk
[   15.762166]  sdr: sdr1 sdr2
[   15.762400] sd 7:0:1:3: [sdr] 57671680 4096-byte logical blocks: (236 
GB/220 GiB)
[   15.762935] sd 7:0:1:3: [sdr] Attached SCSI disk
[   36.699314] device-mapper: table: 253:6: multipath: error getting device
[   36.699318] device-mapper: ioctl: error adding target to table
[   36.699709] device-mapper: table: 253:6: multipath: error getting device
[   36.699711] device-mapper: ioctl: error adding target to table
  [multipathd] emc-test: load table [0 114224640 multipath 1 
queue_if_no_path 0 1 1 service-time 0 2 1 8:112 4 8:96 4]_
  [multipathd] emc-bak: load table [0 8239795200 multipath 1 
queue_if_no_path 0 1 1 service-time 0 2 1 8:160 4 8:128 4]_
  [multipathd] sfx4k: load table [0 165076992 multipath 0 0 1 1 
service-time 0 2 1 8:192 4 8:144 4]_
  [multipathd] general: load table [0 1258291200 multipath 0 0 1 1 
service-time 0 2 1 8:224 4 8:176 4]_
  [multipathd] audio: load table [0 5452595200 multipath 0 0 1 1 
service-time 0 2 1 65:0 4 8:208 4]_
  [multipathd] samplelib: load table [0 461373440 multipath 0 0 1 1 
service-time 0 2 1 65:16 4 8:240 4]_
  [multipathd] ST3250310AS_5RY18PMP: ignoring map_
  [multipathd] emc-test: event checker started_
[multipathd] emc-bak: event checker started_
  [multipathd] sfx4k: event checker started_
  [multipathd] general: event checker started_
[multipathd] audio: event checker started_
  [multipathd] samplelib: event checker started_
  [multipathd] path checkers start up_
  [   36.699314] device-mapper: table: 253:6: multipath: error getting 
device
  [   36.699318] device-mapper: ioctl: error adding target to table
  [   36.699709] device-mapper: table: 253:6: multipath: error getting 
device
  [   36.699711] device-mapper: ioctl: error adding target to table
  [multipathd] sdr: ownership set to samplelib_
  [multipathd] sdr: not found in pathvec_
  [multipathd] sdr: mask = 0xc_
  [multipathd] sdr: path state = running__
  [multipathd] sdr: get_state_
  [multipathd] uevent 'add' from '/devices/virtual/block/dm-3'_
  [multipathd] sdr: state = up_
  [multipathd] sdr: const prio = 1_
  [multipathd] sdp: ownership set to samplelib_
  [multipathd] sdp: not found in pathvec_
  [multipathd] sdp: mask = 0xc_
  [multipathd] sdp: path state = running__
  [multipathd] sdp: get_state_
  [multipathd] sdp: state = up_
  [multipathd] sdp: const prio = 1_
  [multipathd] samplelib: pgfailback = -2 (config file default)_
  [multipathd] samplelib: pgpolicy = multibus (config file default)_
  [multipathd] samplelib: selector = service-time 0 (LUN setting)_
[multipathd] samplelib: features = 0 (config file default)_
  [multipathd] samplelib: hwhandler = 0 (internal default)_
  [multipathd] samplelib: rr_weight = 2 (LUN setting)_
  [multipathd] samplelib: minio = 4 rq (config file default)_
  [multipathd] samplelib: no_path_retry = -1 (config file default)_
  [multipathd] mode = 0644 (config file default)_
  [multipathd] uid = 0 (config file default)_
  [multipathd] samplelib: fast_io_fail_tmo = 5 (config file default)_
  [multipathd] samplelib: retain_attached_hw_handler = 1 (config file 
default)_
  [multipathd] samplelib: remove queue_if_no_path from '0'_
  [multipathd] samplelib: assembled map [0 0 1 1 service-time 0 2 1 
65:16 4 8:240 4]_
[multipathd] samplelib: set ACT_CREATE (map does not exist)_
  [multipathd] uevent 'add' from '/devices/virtual/block/dm-4'_
  [multipathd] samplelib: load table [0 461373440 multipath 0 0 1 1 
service-time 0 2 1 65:16 4 8:240 4]_
  [multipathd] samplelib: unset queue_if_no_path feature_
  [multipathd] samplelib: discover_
  [multipathd] samplelib: disassemble map [0 0 1 1 service-time 0 2 2 
65:16 4 1 8:240 4 1 ]_
  [multipathd] samplelib: disassemble status [2 0 0 0 1 1 A 0 2 2 65:16 
A 0 4096 1 8:240 A 0 0 1 ]_
  [multipathd] uevent 'add' from '/devices/virtual/block/dm-6'_
  [multipathd] uevent 'remove' from '/devices/virtual/block/dm-6'_


##Kpart output
  kpartx -v /dev/mapper/samplelib
samplelib1 : 0 262144 /dev/mapper/samplelib 48
samplelib2 : 0 461107200 /dev/mapper/samplelib 264192

## /dev/mapper/
ls -l
total 0
brw-r--r-- 1 root root 253,   4 Sep  4 15:40 audio
crw------- 1 root root  10, 236 Sep  4 15:38 control
brw-r--r-- 1 root root 253,   1 Sep  4 15:40 emc-bak
brw-r--r-- 1 root root 253,   0 Sep  4 15:40 emc-test
brw-r--r-- 1 root root 253,   3 Sep  4 15:40 general
brw-r--r-- 1 root root 253,   5 Sep  4 15:40 samplelib
brw-r--r-- 1 root root 253,   2 Sep  4 15:40 sfx4k

## output after kpartx -a of each 4k device.
brw-r--r-- 1 root root 253,   4 Sep  4 15:40 audio
crw------- 1 root root  10, 236 Sep  4 15:38 control
brw-r--r-- 1 root root 253,   1 Sep  4 15:40 emc-bak
brw-r--r-- 1 root root 253,   0 Sep  4 15:40 emc-test
brw-r--r-- 1 root root 253,   3 Sep  4 15:40 general
brw-r--r-- 1 root root 253,   5 Sep  4 15:40 samplelib
brw-r--r-- 1 root root 253,   9 Sep  4 15:52 samplelib1
brw------- 1 root root 253,   6 Sep  4 15:51 samplelib2
brw-r--r-- 1 root root 253,   2 Sep  4 15:40 sfx4k
brw-r--r-- 1 root root 253,   7 Sep  4 15:52 sfx4k1
brw-r--r-- 1 root root 253,   8 Sep  4 15:52 sfx4k2

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: multipath 4k partition block issues.
  2013-09-04 21:01 multipath 4k partition block issues Ross Anderson
@ 2013-09-04 21:27 ` Mike Snitzer
  2013-09-04 23:38   ` Ross Anderson
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Snitzer @ 2013-09-04 21:27 UTC (permalink / raw)
  To: Ross Anderson; +Cc: dm-devel

On Wed, Sep 04 2013 at  5:01pm -0400,
Ross Anderson <rosander@dsotm.net> wrote:

> Greetings,
> 
> 
> The current git version of multipath-tools doesn't properly handle
> 4k block sizes and partions creation. There very little verbose
> output but I will post what I can find. I would appreciate any help
> getting this working.
> 
> The raw devices detect the 4k partition.

Ben Marzinski had a patch to print the table _before_ it was sent to the
kernel so that we had something to go on beyond "253:6: multipath: error
getting device"...

As is the output is useless.  We have no idea _why_ it failed to get the
device (or which device it failed to get).  We can do better here in
both kernel and userspace error logging.  But chances are multipathd is
just looking to use multipath on devices that aren't meant for
multipathing (and they should be blacklisted in the multipath.conf).

> A manual run of kpartx -a creates the dm points.

Which distro is this?

So samplelib and sfx4k are 4K devices that have partitions.

[multipathd] sfx4k: load table [0 165076992 multipath 0 0 1 1 service-time 0 2 1 8:192 4 8:144 4]
[multipathd] samplelib: load table [0 461373440 multipath 0 0 1 1 service-time 0 2 1 65:16 4 8:240 4]

I assume these devices map to sdp and sdr, and likely other devices not
provided in your log output.  multipathd -ll would be useful.

Are you certain none-4K devices with partitions are created properly?
(I think multpathd leans on kpartx to be invoked by udev after the
multipathd device is established but I could be misrembering).. Could be
the udev hook isn't working in general?

Mike

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: multipath 4k partition block issues.
  2013-09-04 21:27 ` Mike Snitzer
@ 2013-09-04 23:38   ` Ross Anderson
  0 siblings, 0 replies; 3+ messages in thread
From: Ross Anderson @ 2013-09-04 23:38 UTC (permalink / raw)
  To: device-mapper development; +Cc: Mike Snitzer

Greetings,

>> Greetings,
>>
>>
>> The current git version of multipath-tools doesn't properly handle
>> 4k block sizes and partions creation. There very little verbose
>> output but I will post what I can find. I would appreciate any help
>> getting this working.
>>
>> The raw devices detect the 4k partition.
> Ben Marzinski had a patch to print the table _before_ it was sent to the
> kernel so that we had something to go on beyond "253:6: multipath: error
> getting device"...
>
> As is the output is useless.  We have no idea _why_ it failed to get the
> device (or which device it failed to get).  We can do better here in
> both kernel and userspace error logging.  But chances are multipathd is
> just looking to use multipath on devices that aren't meant for
> multipathing (and they should be blacklisted in the multipath.conf).

I've very carefully blacklisted all the non-mp devices. They are all FC 
from two target devices. Any non EMC device is 4k block. 512 partition 
devices do detect.






>> A manual run of kpartx -a creates the dm points.
> Which distro is this?

This particular machine is a Gentoo disto. I have other debian and 
Ubuntu. Udev v204


>
> So samplelib and sfx4k are 4K devices that have partitions.
>
> [multipathd] sfx4k: load table [0 165076992 multipath 0 0 1 1 service-time 0 2 1 8:192 4 8:144 4]
> [multipathd] samplelib: load table [0 461373440 multipath 0 0 1 1 service-time 0 2 1 65:16 4 8:240 4]
>
> I assume these devices map to sdp and sdr, and likely other devices not
> provided in your log output.  multipathd -ll would be useful.

I realize I trimmed a few of the extra devices out of the list to focus 
down to the main set. Didn't want to flood the list with full logs. 
here's -ll

Thanks

audio (26334336163623562) dm-4 SCST_FIO,audio
size=2.5T features='0' hwhandler='0' wp=rw
`-+- policy='service-time 0' prio=1 status=active
   |- 7:0:1:2 sdo 8:224 active ready running
   `- 8:0:1:2 sdp 8:240 active ready running
sfx4k (23836326166643837) dm-2 SCST_FIO,sfx4k
size=79G features='0' hwhandler='0' wp=rw
`-+- policy='service-time 0' prio=1 status=active
   |- 7:0:1:0 sdk 8:160 active ready running
   `- 8:0:1:0 sdl 8:176 active ready running
emc-test (36006048000018799014253594d313037) dm-0 EMC ,SYMMETRIX
size=54G features='1 queue_if_no_path' hwhandler='0' wp=rw
`-+- policy='service-time 0' prio=1 status=active
   |- 7:0:0:0 sdg 8:96  active ready running
   `- 8:0:0:0 sdh 8:112 active ready running
general (26562393662643538) dm-3 SCST_FIO,general
size=600G features='0' hwhandler='0' wp=rw
`-+- policy='service-time 0' prio=1 status=active
   |- 7:0:1:1 sdm 8:192 active ready running
   `- 8:0:1:1 sdn 8:208 active ready running
emc-bak (36006048000018799014253594d313238) dm-1 EMC ,SYMMETRIX
size=3.8T features='1 queue_if_no_path' hwhandler='0' wp=rw
`-+- policy='service-time 0' prio=1 status=active
   |- 7:0:0:1 sdi 8:128 active ready running
   `- 8:0:0:1 sdj 8:144 active ready running
samplelib (26266376537366261) dm-5 SCST_FIO,samplerlib
size=220G features='0' hwhandler='0' wp=rw
`-+- policy='service-time 0' prio=1 status=active
   |- 7:0:1:3 sdq 65:0  active ready running
   `- 8:0:1:3 sdr 65:16 active ready running

> Are you certain none-4K devices with partitions are created properly?
> (I think multpathd leans on kpartx to be invoked by udev after the
> multipathd device is established but I could be misrembering).. Could be
> the udev hook isn't working in general?
>
> Mike
>
> --
> dm-devel mailing list
> dm-devel@redhat.com
> https://www.redhat.com/mailman/listinfo/dm-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-09-04 23:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-04 21:01 multipath 4k partition block issues Ross Anderson
2013-09-04 21:27 ` Mike Snitzer
2013-09-04 23:38   ` Ross Anderson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.