Bug 1071382
Summary: | Change to comment out some default SCSI UA udev rules | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Ewan D. Milne <emilne> |
Component: | libstoragemgmt | Assignee: | Tony Asleson <tasleson> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Xiaowei Li <xiaoli> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.0 | CC: | ayyanar, bdonahue, coughlan, qcai, xdl-redhat-bugzilla, xiaoli |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libstoragemgmt-0.0.24-4.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-06-13 12:55:50 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Ewan D. Milne
2014-02-28 16:02:15 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 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 ). 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. |