This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
linux:linuxppc_devices [2025/04/28 17:01] manu [Device not found] |
linux:linuxppc_devices [2025/06/11 18:17] (current) manu [Connections to VIOS] |
||
|---|---|---|---|
| Line 353: | Line 353: | ||
| for i in $(ls /sys/class/scsi_host/host*/scan); do echo "- - -" > $i; done | for i in $(ls /sys/class/scsi_host/host*/scan); do echo "- - -" > $i; done | ||
| </cli> | </cli> | ||
| + | |||
| + | ==== Reset the FC port ==== | ||
| + | |||
| + | If the paths are still bad, then reset the FC adapter (systool -c fc_host -v) | ||
| + | Here example for one adapter | ||
| + | <cli prompt='#'> | ||
| + | # echo "1" > /sys/devices/vio/30000004/host1/fc_host/host1/issue_lip | ||
| + | |||
| + | Or | ||
| + | |||
| + | # echo 1 > /sys/class/fc_host/host1/issue_lip | ||
| + | </cli> | ||
| + | |||
| + | |||
| ==== Connections to VIOS ==== | ==== Connections to VIOS ==== | ||
| + | List all SCSI emulation: vscsi and Fc SCSI emulation | ||
| <cli prompt='#'> | <cli prompt='#'> | ||
| - | [root@lnx001 /root/scripts]$ systool -c scsi_host -v | + | [root@lnx001 /root/scripts]# systool -c scsi_host -v |
| Class = "scsi_host" | Class = "scsi_host" | ||
| Line 430: | Line 445: | ||
| uevent = "DEVTYPE=scsi_host" | uevent = "DEVTYPE=scsi_host" | ||
| </cli> | </cli> | ||
| + | |||
| + | List all logical FC adapter (and their WWN) | ||
| + | <cli prompt='#'> | ||
| + | [root@lnx001 /root/scripts]# systool -c fc_host -v | ||
| + | Class = "fc_host" | ||
| + | |||
| + | Class Device = "host1" | ||
| + | Class Device path = "/sys/devices/vio/30000003/host1/fc_host/host1" | ||
| + | dev_loss_tmo = "300" | ||
| + | fabric_name = "0xc050760xxxxe05d5" | ||
| + | issue_lip = <store method only> | ||
| + | maxframe_size = "2048 bytes" | ||
| + | node_name = "0xc050760xxxxe05d5" | ||
| + | port_id = "0x702521" | ||
| + | port_name = "0xc050760xxxxe05d5" | ||
| + | port_state = "Online" | ||
| + | port_type = "NPIV VPORT" | ||
| + | speed = "unknown" | ||
| + | supported_classes = "Class 3" | ||
| + | tgtid_bind_type = "wwpn (World Wide Port Name)" | ||
| + | uevent = | ||
| + | |||
| + | Device = "host1" | ||
| + | Device path = "/sys/devices/vio/30000003/host1" | ||
| + | uevent = "DEVTYPE=scsi_host" | ||
| + | </cli> | ||
| + | |||
| + | Identify also the PCI virtual slots (PPC64LE) | ||
| + | <cli prompt='#'> | ||
| + | [root@lnx001 /root/scripts]# lsslot | ||
| + | # Slot Description Linux Name Device(s) | ||
| + | U9009.22G.78xxxxx-V35-C0 Virtual I/O Slot 30000000 vty | ||
| + | U9009.22G.78xxxxx-V35-C2 Virtual I/O Slot 30000002 v-scsi | ||
| + | U9009.22G.78xxxxx-V35-C3 Virtual I/O Slot 30000003 vfc-client | ||
| + | U9009.22G.78xxxxx-V35-C4 Virtual I/O Slot 30000004 vfc-client | ||
| + | U9009.22G.78xxxxx-V35-C5 Virtual I/O Slot 30000005 vfc-client | ||
| + | </cli> | ||
| + | |||