RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1071382 - Change to comment out some default SCSI UA udev rules
Summary: Change to comment out some default SCSI UA udev rules
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libstoragemgmt
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Tony Asleson
QA Contact: Xiaowei Li
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-28 16:02 UTC by Ewan D. Milne
Modified: 2021-09-03 14:09 UTC (History)
6 users (show)

Fixed In Version: libstoragemgmt-0.0.24-4.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 12:55:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Ewan D. Milne 2014-02-28 16:02:15 UTC
Description of problem:

Default SCSI UA udev rules that rescan device properties can cause
multipath to stop using paths if properties change on some paths
but not others.

Version-Release number of selected component (if applicable):  7.0


How reproducible:  Seen by QE but not always reproducible by me


Steps to Reproduce:
1. Setup multipath to a LUN on a storage array
2. Change the LUN size on the array
3. Observe whether multipath complains about size mismatch on paths

Actual results:

Multipath says:

multipath 360a98000324669436c2b424f41675337
Feb 25 02:25:05 | 65:0: size 2097152, expected 4194304. Discard
Feb 25 02:25:05 | DM message failed [queue_if_no_path]
reject: 360a98000324669436c2b424f41675337 undef NETAPP  ,LUN

Expected results:

No errors from multipath

Additional info:

We have decided to comment out the default SCSI UA udev rules for
all uevents except REPORTED LUNS DATA HAS CHANGED, which we will
leave active, since scanning new LUNs won't affect existing ones.
This will allow people to see which events are supported, and can
customize the rules if they wish.

Patch posted to libstoragemgmt-devel.

Comment 3 Ayyanar 2014-03-04 11:07:42 UTC
I have verified this bug with the patch http://marc.info/?l=linux-scsi&m=139360367531645&w=2 and it works fine for me.

Steps:
1. Create a 2GB LUN from NetApp array and map it to RHEL7 host.

 vol create -volume test aggr_data61 -size 10GB -state online -type RW
 lun create -path /vol/test/lun -size 2GB -ostype linux -space-reserve enabled -class regular
 lun modify -path /vol/test/lun -space-allocation enabled
 lun modify -path /vol/test/lun -space-reserve disabled
 lun map -path /vol/test/lun igp_data_52

2. Do re-scan and run multipathd with 16 paths to a LUN.

[root@ibmx3550-229-52 ~]# multipath -ll
3600a09803246696a5a5d44372d513864 dm-3 NETAPP  ,LUN C-Mode
size=2.0G features='4 queue_if_no_path pg_init_retries 50 retain_attached_hw_handle' hwhandler='1 alua' wp=rw
|-+- policy='service-time 0' prio=50 status=active
| |- 7:0:1:50 sdc 8:32  active ready running
| |- 7:0:0:50 sdb 8:16  active ready running
| |- 7:0:3:50 sde 8:64  active ready running
| |- 7:0:4:50 sdf 8:80  active ready running
| |- 8:0:0:50 sdj 8:144 active ready running
| |- 8:0:1:50 sdk 8:160 active ready running
| |- 8:0:3:50 sdm 8:192 active ready running
| `- 8:0:4:50 sdn 8:208 active ready running
`-+- policy='service-time 0' prio=10 status=enabled
  |- 7:0:2:50 sdd 8:48  active ready running
  |- 7:0:5:50 sdg 8:96  active ready running
  |- 7:0:6:50 sdh 8:112 active ready running
  |- 7:0:7:50 sdi 8:128 active ready running
  |- 8:0:2:50 sdl 8:176 active ready running
  |- 8:0:5:50 sdo 8:224 active ready running
  |- 8:0:6:50 sdp 8:240 active ready running
  `- 8:0:7:50 sdq 65:0  active ready running

3. Check the LUN size

[root@ibmx3550-229-52 ~]# cat /sys/block/sd*/size
4194304
4194304
4194304
4194304
4194304
4194304
4194304
4194304
4194304
4194304
4194304
4194304
4194304
4194304
4194304
4194304

4. Change the LUN size to 6GB

  lun resize -path /vol/test/lun -size 6GB

5. Check the LUN size now;(multipathd is running and it will fire TUR for every 20 sec;)

[root@ibmx3550-229-52 ~]# cat /sys/block/sd*/size
12582912
12582912
12582912
12582912
12582912
12582912
12582912
12582912
12582912
12582912
12582912
12582912
12582912
12582912
12582912
12582912

6. Now run multipathd -k"reconfigure" and check for the new size.

[root@ibmx3550-229-52 ~]# multipathd -k"reconfigure"
ok
[root@ibmx3550-229-52 ~]# multipath -ll
3600a09803246696a5a5d44372d513864 dm-3 NETAPP  ,LUN C-Mode
size=6.0G features='4 queue_if_no_path pg_init_retries 50 retain_attached_hw_handle' hwhandler='1 alua' wp=rw
|-+- policy='service-time 0' prio=50 status=active
| |- 7:0:0:50 sdb 8:16  active ready running
| |- 7:0:1:50 sdc 8:32  active ready running
| |- 7:0:3:50 sde 8:64  active ready running
| |- 7:0:4:50 sdf 8:80  active ready running
| |- 8:0:0:50 sdj 8:144 active ready running
| |- 8:0:1:50 sdk 8:160 active ready running
| |- 8:0:3:50 sdm 8:192 active ready running
| `- 8:0:4:50 sdn 8:208 active ready running
`-+- policy='service-time 0' prio=10 status=enabled
  |- 7:0:2:50 sdd 8:48  active ready running
  |- 7:0:5:50 sdg 8:96  active ready running
  |- 7:0:6:50 sdh 8:112 active ready running
  |- 7:0:7:50 sdi 8:128 active ready running
  |- 8:0:2:50 sdl 8:176 active ready running
  |- 8:0:5:50 sdo 8:224 active ready running
  |- 8:0:6:50 sdp 8:240 active ready running
  `- 8:0:7:50 sdq 65:0  active ready running

Comment 4 Xiaowei Li 2014-03-04 11:45:31 UTC
check the /lib/udev/rules.d/90-scsi-ua.rules

#ACTION=="change", SUBSYSTEM=="scsi", ENV{SDEV_UA}=="INQUIRY_DATA_HAS_CHANGED", TEST=="rescan", ATTR{rescan}="x"
#ACTION=="change", SUBSYSTEM=="scsi", ENV{SDEV_UA}=="CAPACITY_DATA_HAS_CHANGED", TEST=="rescan", ATTR{rescan}="x"
#ACTION=="change", SUBSYSTEM=="scsi", ENV{SDEV_UA}=="THIN_PROVISIONING_SOFT_THRESHOLD_REACHED", TEST=="rescan", ATTR{rescan}="x"
#ACTION=="change", SUBSYSTEM=="scsi", ENV{SDEV_UA}=="MODE_PARAMETERS_CHANGED", TEST=="rescan", ATTR{rescan}="x"
ACTION=="change", SUBSYSTEM=="scsi", ENV{SDEV_UA}=="REPORTED_LUNS_DATA_HAS_CHANGED", RUN+="scan-scsi-target $env{DEVPATH}"

and can get the newly luns on my node when multipathd is enabled ( emc vnx5300 & qla2xxx fcoe ).

Comment 5 Ludek Smid 2014-06-13 12:55:50 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


Note You need to log in before you can comment on or make changes to this bug.