This section describes how to modify the link loss behavior of devices that use either fibre channel or iSCSI protocols.
39.1. Fibre Channel
If a driver implements the Transport dev_loss_tmo callback, access attempts to a device through a link will be blocked when a transport problem is detected. To verify if a device is blocked, run the following command:
$ cat /sys/block/device/device/state
This command will return blocked if the device is blocked. If the device is operating normally, this command will return running.
Procedure 39.1. Determining The State of a Remote Port
To determine the state of a remote port, run the following command:
When a link or target port loss exceeds dev_loss_tmo, the scsi_device and sdN devices are removed. The target port SCSI ID binding is saved. When the target returns, the SCSI address and sdNassignments may be changed. The SCSI address will change if there has been any LUN configuration changes behind the target port. The sdN names may change depending on timing variations during the LUN discovery process or due to LUN configuration change within storage. These assignments are not persistent as described in Chapter 28, Persistent Naming. Refer to section Chapter 28, Persistent Naming for alternative device naming methods that are persistent.