sysfs
objects. Red Hat advises that the sysfs
object names and directory structure are subject to change in major Red Hat Enterprise Linux releases. This is because the upstream Linux kernel does not provide a stable internal API. For guidelines on how to reference sysfs
objects in a transportable way, refer to the document /usr/share/doc/kernel-doc-version
/Documentation/sysfs-rules.txt
in the kernel source tree for guidelines.
/sys/class/
directories that contain files used to provide the userspace API. In each item, host numbers are designated by H
, bus numbers are B
, targets are T
, logical unit numbers (LUNs) are L
, and remote port numbers are R
.
/sys/class/fc_transport/targetH
:B
:T
/
port_id
— 24-bit port ID/address
node_name
— 64-bit node name
port_name
— 64-bit port name
/sys/class/fc_remote_ports/rport-H
:B
-R
/
port_id
node_name
port_name
dev_loss_tmo
— number of seconds to wait before marking a link as "bad". Once a link is marked bad, I/O running on its corresponding path (along with any new I/O on that path) will be failed.
dev_loss_tmo
value varies, depending on which driver/device is used. If a Qlogic adapter is used, the default is 35 seconds, while if an Emulex adapter is used, it is 30 seconds. The dev_loss_tmo
value can be changed via the scsi_transport_fc
module parameter dev_loss_tmo
, although the driver can override this timeout value.
dev_loss_tmo
value is 600 seconds. If dev_loss_tmo
is set to zero or any value greater than 600, the driver's internal timeouts will be used instead.
fast_io_fail_tmo
— length of time to wait before failing I/O executed when a link problem is detected. I/O that reaches the driver will fail. If I/O is in a blocked queue, it will not be failed until dev_loss_tmo
expires and the queue is unblocked.
/sys/class/fc_host/hostH
/
lpfc
qla2xxx
zfcp
mptfc
lpfc
|
qla2xxx
|
zfcp
|
mptfc
| |
---|---|---|---|---|
Transport port_id
| X | X | X | X |
Transport node_name
| X | X | X | X |
Transport port_name
| X | X | X | X |
Remote Port dev_loss_tmo
| X | X | X | X |
Remote Port fast_io_fail_tmo
| X | X [a] | X [b] | |
Host port_id
| X | X | X | X |
Host issue_lip
| X | X | ||
[a] Supported as of Red Hat Enterprise Linux 5.4 [b] Supported as of Red Hat Enterprise Linux 6.0 |