Este conteúdo não está disponível no idioma selecionado.
Chapter 8. Using Fibre Channel devices
Configure Fibre Channel devices by using native RHEL drivers including lpfc, qla2xxx, and zfcp. Covers LUN rescanning, link loss behavior configuration, and Fibre Channel configuration file management.
8.1. Re-scanning Fibre Channel logical units after resizing a LUN Copiar o linkLink copiado para a área de transferência!
If you changed the logical unit number (LUN) size on the external storage, use the echo command to update the kernel’s view of the size.
Procedure
Determine which devices are paths for a
multipathlogical unit:multipath -ll
# multipath -llCopy to Clipboard Copied! Toggle word wrap Toggle overflow Re-scan Fibre Channel logical units on a system that uses multipathing:
echo 1 > /sys/block/<device_ID>/device/rescan
$ echo 1 > /sys/block/<device_ID>/device/rescanCopy to Clipboard Copied! Toggle word wrap Toggle overflow Replace
<device_ID>with the ID of your device, for examplesda.
8.2. Determining the link loss behavior of device using Fibre Channel Copiar o linkLink copiado para a área de transferência!
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.
Procedure
Determine the state of a remote port:
cat /sys/class/fc_remote_ports/rport-host:bus:remote-port/port_state
$ cat /sys/class/fc_remote_ports/rport-host:bus:remote-port/port_stateCopy to Clipboard Copied! Toggle word wrap Toggle overflow This command returns one of the following output:
-
Blockedwhen the remote port along with devices accessed through it are blocked. Onlineif the remote port is operating normallyIf the problem is not resolved within
dev_loss_tmoseconds, therportand devices will be unblocked. All I/O running on that device along with any new I/O sent to that device will fail.When a link loss exceeds
dev_loss_tmo, thescsi_deviceandsd_N_devices are removed. Typically, the Fibre Channel class does not alter the device, for example,/dev/sdaremains/dev/sda. This is because the target binding is saved by the Fibre Channel driver and when the target port returns, the SCSI addresses are recreated faithfully. However, this cannot be guaranteed, the device will be restored only if no additional change on in-storage box configuration of LUNs is made.
-
8.3. Fibre Channel configuration files Copiar o linkLink copiado para a área de transferência!
Learn about Fibre Channel configuration files, their structure in the /sys/class/ directory, key variables, and recommendations for adjusting device parameters safely in environments using multipath software.
The following is the list of configuration files in the /sys/class/ directory that provide the user-space API to Fibre Channel.
The items use the following variables:
H- Host number
B- Bus number
T- Target
L- Logical unit (LUNs)
R- Remote port number
Consult your hardware vendor before changing any of the values described in this section, if your system is using multipath software.
Transport configuration in /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
Remote port configuration in /sys/class/fc_remote_ports/rport-H:B-R/
-
port_id -
node_name -
port_name dev_loss_tmoControls when the scsi device gets removed from the system. After
dev_loss_tmotriggers, the scsi device is removed. In themultipath.conffile , you can setdev_loss_tmotoinfinity.In Red Hat Enterprise Linux 10, if you do not set the
fast_io_fail_tmooption,dev_loss_tmois capped to600seconds. By default,fast_io_fail_tmois set to5seconds in Red Hat Enterprise Linux 10 if themultipathdservice is running; otherwise, it is set tooff.fast_io_fail_tmoSpecifies the number of seconds to wait before it marks a link as "bad". Once a link is marked bad, existing running I/O or any new I/O on its corresponding path fails.
If I/O is in a blocked queue, it will not be failed until
dev_loss_tmoexpires and the queue is unblocked.If
fast_io_fail_tmois set to any value except off,dev_loss_tmois uncapped. Iffast_io_fail_tmois set to off, no I/O fails until the device is removed from the system. Iffast_io_fail_tmois set to a number, I/O fails immediately when thefast_io_fail_tmotimeout triggers.
Host configuration in /sys/class/fc_host/hostH/
-
port_id -
node_name -
port_name issue_lipInstructs the driver to rediscover remote ports.