Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#782488: multipath-tools: updates for compatibility with property blacklist

182 views
Skip to first unread message

Mauricio Faria de Oliveira

unread,
Apr 12, 2015, 10:10:02 PM4/12/15
to
Package: src:multipath-tools
Version: 0.5.0-6
Severity: serious
Tags: patch

Hi Ritesh,

multipath-tools 0.5.0 contains commit "multipath: Implement 'property'
blacklist", which started to blacklist devices that don't have any of
the whitelisted udev properties - initially, ID_WWN or ID_SCSI_VPD.

AFAICT, neither is set by udev rules installed by default in Debian,
rendering any SCSI disk blacklisted.

After 0.5.0, commit "Use 'SCSI_IDENT_.*' as the default property
whitelist" changed that to SCSI_IDENT_.* or ID_WWN.

The SCSI_IDENT_* attributes are defined by sg3-utils's udev rules,
but the current sg3-utils package doesn't install them.

I submitted a patch in #782487 that creates sg3-utils-udev to install
them, and to put them plus dependencies in the initramfs, as properties
must be defined on disk detection (even for non'-boot' multipath-tools).

With that patch for sg3-utils and the attached patch, the SCSI devices
are not anymore blacklisted by default.

May you please consider them for an upload to jessie? Thanks!

--
Mauricio Faria de Oliveira
IBM Linux Technology Center
multipath-tools_property-whitelist.debdiff

Mauricio Faria de Oliveira

unread,
Apr 12, 2015, 10:10:02 PM4/12/15
to
Details:
-------

Before patches:

# multipath -v3
...
Apr 12 20:07:51 | sda: blacklisted, udev property missing
Apr 12 20:07:51 | sdb: blacklisted, udev property missing
Apr 12 20:07:51 | sdc: blacklisted, udev property missing
Apr 12 20:07:51 | sdd: blacklisted, udev property missing
Apr 12 20:07:51 | sde: blacklisted, udev property missing
Apr 12 20:07:51 | sdf: blacklisted, udev property missing
Apr 12 20:07:51 | sdg: blacklisted, udev property missing
Apr 12 20:07:51 | sdh: blacklisted, udev property missing
Apr 12 20:07:51 | sdi: blacklisted, udev property missing
Apr 12 20:07:51 | sdj: blacklisted, udev property missing
Apr 12 20:07:51 | sdk: blacklisted, udev property missing
Apr 12 20:07:51 | sdl: blacklisted, udev property missing
Apr 12 20:07:51 | dm-0: blacklisted, udev property missing
Apr 12 20:07:51 | dm-1: blacklisted, udev property missing
Apr 12 20:07:51 | dm-2: blacklisted, udev property missing
Apr 12 20:07:51 | dm-3: blacklisted, udev property missing
Apr 12 20:07:51 | dm-4: blacklisted, udev property missing
Apr 12 20:07:51 | dm-5: blacklisted, udev property missing
Apr 12 20:07:51 | dm-6: blacklisted, udev property missing
Apr 12 20:07:51 | dm-7: blacklisted, udev property missing
Apr 12 20:07:51 | dm-8: blacklisted, udev property missing
===== no paths =====
...


After patches + reboot:

Apr 13 06:08:10 | sda: udev property SCSI_IDENT_LUN_T10 whitelisted
Apr 13 06:08:10 | sda: not found in pathvec
Apr 13 06:08:10 | sda: mask = 0x3f
Apr 13 06:08:10 | sda: dev_t = 8:0
Apr 13 06:08:10 | sda: size = 554287104
Apr 13 06:08:10 | sda: vendor = IBM
Apr 13 06:08:10 | sda: product = IPR-0 5EC99A00
Apr 13 06:08:10 | sda: rev =
Apr 13 06:08:10 | sda: h:b:t:l = 0:2:3:0
Apr 13 06:08:10 | sda: path state = running

Apr 13 06:08:10 | sda: 4252 cyl, 128 heads, 32 sectors/track, start at 0
Apr 13 06:08:10 | sda: serial =
Apr 13 06:08:10 | sda: get_state
Apr 13 06:08:10 | sda: path checker = tur (controller setting)
Apr 13 06:08:10 | sda: checker timeout = 30 ms (internal default)
Apr 13 06:08:10 | sda: state = up
Apr 13 06:08:10 | sda: uid_attribute = ID_SERIAL (internal default)
Apr 13 06:08:10 | sda: uid = 1IBM_IPR-0_5EC99A0000000430 (udev)
Apr 13 06:08:10 | sda: detect_prio = 1 (config file default)
Apr 13 06:08:10 | sda: prio = alua (controller setting)
Apr 13 06:08:10 | sda: prio args = (null) (controller setting)
Apr 13 06:08:10 | reported target port group is 53722
Apr 13 06:08:10 | aas = 80 [active/optimized] [preferred]
Apr 13 06:08:10 | sda: alua prio = 50
<...>
===== paths list =====
uuid hcil dev dev_t pri dm_st chk_st
vend/prod/rev
1IBM_IPR-0_5EC99A0000000410 0:2:0:0 sdb 8:16 50 undef ready
IBM,IPR-0 5EC
1IBM_IPR-0_5EC99A00000003F0 0:2:1:0 sdc 8:32 50 undef ready
IBM,IPR-0 5EC
1IBM_IPR-0_5EC99A00000003D0 0:2:2:0 sdd 8:48 50 undef ready
IBM,IPR-0 5EC
1IBM_IPR-0_5EC99A0000000430 0:2:3:0 sda 8:0 50 undef ready
IBM,IPR-0 5EC
1IBM_IPR-0_5EC9470000000060 0:2:4:0 sde 8:64 50 undef ready
IBM,IPR-0 5EC
1IBM_IPR-0_5EC9470000000080 0:2:5:0 sdf 8:80 50 undef ready
IBM,IPR-0 5EC
1IBM_IPR-0_5EC99A0000000410 1:2:0:0 sdg 8:96 10 undef ready
IBM,IPR-0 5EC
1IBM_IPR-0_5EC99A00000003F0 1:2:1:0 sdh 8:112 10 undef ready
IBM,IPR-0 5EC
1IBM_IPR-0_5EC99A00000003D0 1:2:2:0 sdi 8:128 10 undef ready
IBM,IPR-0 5EC
1IBM_IPR-0_5EC99A0000000430 1:2:3:0 sdj 8:144 10 undef ready
IBM,IPR-0 5EC
1IBM_IPR-0_5EC9470000000060 1:2:4:0 sdk 8:160 10 undef ready
IBM,IPR-0 5EC
1IBM_IPR-0_5EC9470000000080 1:2:5:0 sdl 8:176 10 undef ready
IBM,IPR-0 5EC


multipath-tools-boot is functional (root fs on multipath disk):

root@debian:~# df /
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/dm-5 261562524 4828280 243424548 2% /


--
Mauricio Faria de Oliveira
IBM Linux Technology Center


--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
0 new messages