How to change the device state from transport-offline to offline.

Solution Verified - Updated -

Issue

  • When the state of a device (/sys/block/sdxx/device/state) is "transport-offline", if the connection with storage device recovers, the state will change to "running" automatically.
  • But, in our operation, we want to control the timing of state transition manually (Not automatically) by changing the state to "offline".
  • However, when we tried to change the state from "transport-offline" to "offline" directly, following error occurred.
 echo offline > /sys/block/sdX/device/state
 -bash: echo: write error: Invalid argument
  • We could change the state to "offline" after changing the state to "running". But we think that changing the state of problematic device to "running" is not appropriate. Are there any appropriate procedures to change the state from "transport-offline" to "offline"?

  • We've found the following transition is also possible. Is the transition above appropriate?

    transport-offline --> quiesce --> offline

Environment

  • Red Hat Enterprise Linux 7.1
  • kernel-3.10.0-229.el7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content