Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:services:storage_services:backup:tsm:admin:fc_stuff [2023/02/03 08:39] – [Rescaning the SCSI bus] bnachtw | en:services:storage_services:backup:tsm:admin:fc_stuff [2023/02/03 09:38] (current) – bnachtw | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== some useful commands around fibre channel ====== | ====== some useful commands around fibre channel ====== | ||
- | ===== WWN & Co ===== | + | ===== get adapters, |
- | ==== get the wwn from the adapers ==== | + | ==== get FC adapters / HBAs ==== |
- | === SLES === | + | |
< | < | ||
- | # for i in $(ls -d /sys/class/scsi_host/host*/device/fc_host/host*/port_name); do echo $i $(cat $i);done | + | h212: |
+ | total 0 | ||
+ | lrwxrwxrwx 1 root root 0 3. Feb 08:45 host1 -> ../../devices/ | ||
+ | lrwxrwxrwx 1 root root 0 3. Feb 08:45 host16 -> ../ | ||
+ | lrwxrwxrwx 1 root root 0 3. Feb 08:45 host17 -> ../ | ||
+ | lrwxrwxrwx 1 root root 0 3. Feb 08:45 host18 -> ../ | ||
</ | </ | ||
- | e.g. | + | ==== get adapter type ==== |
< | < | ||
- | # for i in $(ls -d / | + | h212: |
- | /sys/ | + | 3b:00.0 Fibre Channel: QLogic Corp. ISP8324-based 16Gb Fibre Channel to PCI Express Adapter |
- | /sys/ | + | 3b:00.1 Fibre Channel: QLogic Corp. ISP8324-based 16Gb Fibre Channel to PCI Express Adapter |
- | / | + | 5e:00.0 Fibre Channel: QLogic Corp. ISP2722-based 16/32Gb Fibre Channel to PCIe Adapter (rev 01) |
- | / | + | 5e:00.1 Fibre Channel: QLogic Corp. ISP2722-based 16/32Gb Fibre Channel to PCIe Adapter (rev 01) |
</ | </ | ||
+ | ==== get the wwn from the adapters ==== | ||
+ | < | ||
+ | h212:~ # awk ' | ||
+ | device:/ | ||
+ | device:/ | ||
+ | device:/ | ||
+ | device:/ | ||
+ | </ | ||
+ | ==== get Port state ==== | ||
+ | |||
=== using systool === | === using systool === | ||
according to [[https:// | according to [[https:// | ||
Line 62: | Line 76: | ||
thanks to [[https:// | thanks to [[https:// | ||
+ | * To list available HBA ports, type: | ||
+ | < | ||
+ | # ls -l / | ||
+ | total 0 | ||
+ | lrwxrwxrwx. 1 root root 0 Jun 24 13:52 host28 -> ../ | ||
+ | lrwxrwxrwx. 1 root root 0 Jun 24 14:15 host29 -> ../ | ||
+ | </ | ||
+ | |||
+ | The '' | ||
+ | |||
+ | The Fibre Channel (FC) HBA port access on RedHat can be temporarily disabled using the unbind string against the pci-device-id bus address. | ||
+ | |||
+ | Syntax: | ||
+ | |||
+ | < | ||
+ | # echo " | ||
+ | </ | ||
+ | |||
+ | To disconnect access for a specific PCI device (81:00:0), the sample syntax would be as follows: | ||
+ | |||
+ | < | ||
+ | # echo " | ||
+ | </ | ||
+ | |||
+ | To display the filename & associated WWN details for all FC HBA controllers: | ||
+ | < | ||
+ | # awk ' | ||
+ | / | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | To display the filename & HBA port status: | ||
+ | < | ||
+ | # awk ' | ||
+ | / | ||
+ | / | ||
+ | </ |