Search

Chapter 1. Kernel

download PDF

Enhanced SCSI Unit Attention Handling

The kernel in Red Hat Enterprise Linux 6.6 has been enhanced to enable user space to respond to certain SCSI Unit Attention conditions received from SCSI devices via the udev event mechanism. The supported Unit Attention conditions are:
  • 3F 03 INQUIRY DATA HAS CHANGED
  • 2A 09 CAPACITY DATA HAS CHANGED
  • 38 07 THIN PROVISIONING SOFT THRESHOLD REACHED
  • 2A 01 MODE PARAMETERS CHANGED
  • 3F 0E REPORTED LUNS DATA HAS CHANGED
Because SCSI Unit Attention conditions are only reported in response to a SCSI command, no conditions are reported if no commands are actively being sent to the SCSI device.
Red Hat Enterprise Linux 6.6 does not provide any default udev rules for these events, but user-supplied udev rules can be written to handle them. For example, the following rule causes a SCSI device to be rescanned if the inquiry data changes:
ACTION=="change", SUBSYSTEM=="scsi", ENV{SDEV_UA}=="INQUIRY_DATA_HAS_CHANGED", TEST=="rescan", ATTR{rescan}="x"
The rules for the supported events should match on the following SDEV_UA environment strings:
ENV{SDEV_UA}=="INQUIRY_DATA_HAS_CHANGED"
ENV{SDEV_UA}=="CAPACITY_DATA_HAS_CHANGED"
ENV{SDEV_UA}=="THIN_PROVISIONING_SOFT_THRESHOLD_REACHED"
ENV{SDEV_UA}=="MODE_PARAMETERS_CHANGED"
ENV{SDEV_UA}=="REPORTED_LUNS_DATA_HAS_CHANGED"
Note that in all cases the DEVPATH environment variable in the udev rule is the path of the device that reported the Unit Attention. Also, multipath I/O currently verifies that multiple paths to a device have some of the same attributes, such as the capacity. As a consequence, automatically rescanning a device in response to a capacity change can cause that some paths to a device have the old capacity and some paths have the new capacity. In such cases, multipath I/O stops using paths with the capacity change.

Open vSwitch Kernel Module

Red Hat Enterprise Linux 6.6 includes the Open vSwitch kernel module as an enabler for Red Hat's layered products. Open vSwitch is supported only in conjunction with products that contain the accompanying user-space utilities. Please note that without these required user-space utilities, Open vSwitch will not function and cannot be enabled for use. For more information, please refer to the following Knowledge Base article: https://access.redhat.com/knowledge/articles/270223.
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.