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/06/11 18:11] manu |
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 ==== | ||
Line 432: | Line 446: | ||
</cli> | </cli> | ||
- | List all logical FC adapter | + | List all logical FC adapter (and their WWN) |
<cli prompt='#'> | <cli prompt='#'> | ||
[root@lnx001 /root/scripts]# systool -c fc_host -v | [root@lnx001 /root/scripts]# systool -c fc_host -v | ||
Line 457: | Line 471: | ||
uevent = "DEVTYPE=scsi_host" | uevent = "DEVTYPE=scsi_host" | ||
</cli> | </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> | ||
+ | |||
+ |