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:44] – [manual switch off/on of HBA] 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 72: | Line 86: | ||
The '' | The '' | ||
- | < | ||
- | # lspci | grep Fibre | ||
- | 81:00.0 Fibre Channel: QLogic Corp. ISP8324-based 16Gb Fibre Channel to PCI Express Adapter (rev 02) | ||
- | 81:00.1 Fibre Channel: QLogic Corp. ISP8324-based 16Gb Fibre Channel to PCI Express Adapter (rev 02) | ||
- | </ | ||
The Fibre Channel (FC) HBA port access on RedHat can be temporarily disabled using the unbind string against the pci-device-id bus address. | The Fibre Channel (FC) HBA port access on RedHat can be temporarily disabled using the unbind string against the pci-device-id bus address. |