Hi,
I recently noticed that qla2xxx (Qlogic HBAs) driver on Linux is capable of reporting FDMI.
By default it sends "Linux-default", and I'm failing to see how to change it to actual host name as it becomes way more handy then =) Any ideas?
Cheers, Vladimir
Assuming you mean HostName part - looking at current Linux kernel qla driver, it actually tries to return hostname as returned by utsname(); otherwise it falls back to using system_hostname per-FC adapter attribute. Again, in current kernel this should be exported via sysfs as
/sys/class/fc_host/hostX/system_hostname
And you should be able to set it via this sysfs attribute as well.
--- With best regards
Andrei Borzenkov Senior system engineer FTS WEMEAI RUC RU SC TMS FOS
FUJITSU Zemlyanoy Val Street, 9, 105 064 Moscow, Russian Federation Tel.: +7 495 730 62 20 ( reception) Mob.: +7 916 678 7208 Fax: +7 495 730 62 14 E-mail: Andrei.Borzenkov@ts.fujitsu.com Web: ru.fujitsu.com Company details: ts.fujitsu.com/imprint This communication contains information that is confidential, proprietary in nature and/or privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) or the person responsible for delivering it to the intended recipient(s), please note that any form of dissemination, distribution or copying of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender and delete the original communication. Thank you for your cooperation. Please be advised that neither Fujitsu, its affiliates, its employees or agents accept liability for any errors, omissions or damages caused by delays of receipt or by any virus infection in this message or its attachments, or which may otherwise arise as a result of this e-mail transmission.
-----Original Message----- From: toasters-bounces@teaparty.net [mailto:toasters-bounces@teaparty.net] On Behalf Of Momonth Sent: Wednesday, October 07, 2015 6:52 PM To: toasters@teaparty.net Subject: FDMI reporting with qla2xxx driver on Linux
Hi,
I recently noticed that qla2xxx (Qlogic HBAs) driver on Linux is capable of reporting FDMI.
By default it sends "Linux-default", and I'm failing to see how to change it to actual host name as it becomes way more handy then =) Any ideas?
Cheers, Vladimir _______________________________________________ Toasters mailing list Toasters@teaparty.net http://www.teaparty.net/mailman/listinfo/toasters
Yes, I'm after the hostname.
Apparently it fails to return utsname() structure, though running "uname" in Linux terminal works fine, my understanding these two should return the same data structure.
And doing "cat /sys/class/fc_host/host*/system_hostname" gives me empty entries for all HBAs, ie these structure are not initialized by default. Also simply changing /sys/class/fc_host/hostX/system_hostname doesn't change "FDMI Host Name", I guess it requires to re-initialize the drive to make an effect.
Here is a sample output I currently get, fetched via 'fdmishow' on Brocade 6510 running FOS v7.0.2d:
50:01:43:80:28:cf:67:40 Ports: 1 50:01:43:80:28:cf:67:40 Port attributes: FC4 Types: 0x0000010000000000000000000000000000000000000000000000000000000000 Supported Speed: 0x0000001b Port Speed: 0x00000010 Frame Size: 0x00000800 Device Name: qla2xxx:host1 Host Name: Linux-default HBA attributes: Node Name: 50:01:43:80:28:cf:67:41 Manufacturer: QLogic Corporation Serial Number: MY543520WM Model: HPAJ764A Model Description: HP 8Gb Dual Channel PCI-e 2.0 FC HBA Hardware Version: PX2810403-20 J Driver Version: 8.07.00.28.06.0-k1 Option ROM Version: 3.31 Firmware Version: 7.03.00 (90d5)
On Thu, Oct 8, 2015 at 9:13 AM, andrei.borzenkov@ts.fujitsu.com andrei.borzenkov@ts.fujitsu.com wrote:
Assuming you mean HostName part - looking at current Linux kernel qla driver, it actually tries to return hostname as returned by utsname(); otherwise it falls back to using system_hostname per-FC adapter attribute. Again, in current kernel this should be exported via sysfs as
/sys/class/fc_host/hostX/system_hostname
And you should be able to set it via this sysfs attribute as well.
With best regards
Andrei Borzenkov Senior system engineer FTS WEMEAI RUC RU SC TMS FOS
FUJITSU Zemlyanoy Val Street, 9, 105 064 Moscow, Russian Federation Tel.: +7 495 730 62 20 ( reception) Mob.: +7 916 678 7208 Fax: +7 495 730 62 14 E-mail: Andrei.Borzenkov@ts.fujitsu.com Web: ru.fujitsu.com Company details: ts.fujitsu.com/imprint This communication contains information that is confidential, proprietary in nature and/or privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) or the person responsible for delivering it to the intended recipient(s), please note that any form of dissemination, distribution or copying of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender and delete the original communication. Thank you for your cooperation. Please be advised that neither Fujitsu, its affiliates, its employees or agents accept liability for any errors, omissions or damages caused by delays of receipt or by any virus infection in this message or its attachments, or which may otherwise arise as a result of this e-mail transmission.
-----Original Message----- From: toasters-bounces@teaparty.net [mailto:toasters-bounces@teaparty.net] On Behalf Of Momonth Sent: Wednesday, October 07, 2015 6:52 PM To: toasters@teaparty.net Subject: FDMI reporting with qla2xxx driver on Linux
Hi,
I recently noticed that qla2xxx (Qlogic HBAs) driver on Linux is capable of reporting FDMI.
By default it sends "Linux-default", and I'm failing to see how to change it to actual host name as it becomes way more handy then =) Any ideas?
Cheers, Vladimir _______________________________________________ Toasters mailing list Toasters@teaparty.net http://www.teaparty.net/mailman/listinfo/toasters
I thought it might worth sharing of my findings. Here is how I enabled FDMI on CentOS 6.8 with the latest / greatest drivers from HP: HPAJ764A FW:v8.02.00 DVR:v8.07.00.34.06.0-k1:
1. Enable FDMI on your FOS switch:
switchdisable configure
Configure...
Fabric parameters (yes, y, no, n): [no] yes ...
Display FDMI Host Name (yes, y, no, n): [no] yes <<<<<<<< type 'yes'
...
2. Verify the FDMI flag is enabled:
configshow -all | grep dmiHostname
switch.fdmiHostname:1
3. Issue a LIP command on FCP initiator (it could be an idea to add it to startup script):
// numbers below are system dependent, ie can start from 2, 3 etc.
for i in 1 2 3 4 ; do echo 1 > /sys/class/fc_host/host${i}/issue_lip; done;
Cheers, Vladimir
On Mon, Oct 12, 2015 at 11:55 AM, Momonth momonth@gmail.com wrote:
Yes, I'm after the hostname.
Apparently it fails to return utsname() structure, though running "uname" in Linux terminal works fine, my understanding these two should return the same data structure.
And doing "cat /sys/class/fc_host/host*/system_hostname" gives me empty entries for all HBAs, ie these structure are not initialized by default. Also simply changing /sys/class/fc_host/hostX/system_hostname doesn't change "FDMI Host Name", I guess it requires to re-initialize the drive to make an effect.
Here is a sample output I currently get, fetched via 'fdmishow' on Brocade 6510 running FOS v7.0.2d:
50:01:43:80:28:cf:67:40 Ports: 1 50:01:43:80:28:cf:67:40 Port attributes: FC4 Types: 0x0000010000000000000000000000000000000000000000000000000000000000 Supported Speed: 0x0000001b Port Speed: 0x00000010 Frame Size: 0x00000800 Device Name: qla2xxx:host1 Host Name: Linux-default HBA attributes: Node Name: 50:01:43:80:28:cf:67:41 Manufacturer: QLogic Corporation Serial Number: MY543520WM Model: HPAJ764A Model Description: HP 8Gb Dual Channel PCI-e 2.0 FC HBA Hardware Version: PX2810403-20 J Driver Version: 8.07.00.28.06.0-k1 Option ROM Version: 3.31 Firmware Version: 7.03.00 (90d5)
On Thu, Oct 8, 2015 at 9:13 AM, andrei.borzenkov@ts.fujitsu.com andrei.borzenkov@ts.fujitsu.com wrote:
Assuming you mean HostName part - looking at current Linux kernel qla driver, it actually tries to return hostname as returned by utsname(); otherwise it falls back to using system_hostname per-FC adapter attribute. Again, in current kernel this should be exported via sysfs as
/sys/class/fc_host/hostX/system_hostname
And you should be able to set it via this sysfs attribute as well.
With best regards
Andrei Borzenkov Senior system engineer FTS WEMEAI RUC RU SC TMS FOS
FUJITSU Zemlyanoy Val Street, 9, 105 064 Moscow, Russian Federation Tel.: +7 495 730 62 20 ( reception) Mob.: +7 916 678 7208 Fax: +7 495 730 62 14 E-mail: Andrei.Borzenkov@ts.fujitsu.com Web: ru.fujitsu.com Company details: ts.fujitsu.com/imprint This communication contains information that is confidential, proprietary in nature and/or privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) or the person responsible for delivering it to the intended recipient(s), please note that any form of dissemination, distribution or copying of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender and delete the original communication. Thank you for your cooperation. Please be advised that neither Fujitsu, its affiliates, its employees or agents accept liability for any errors, omissions or damages caused by delays of receipt or by any virus infection in this message or its attachments, or which may otherwise arise as a result of this e-mail transmission.
-----Original Message----- From: toasters-bounces@teaparty.net [mailto:toasters-bounces@teaparty.net] On Behalf Of Momonth Sent: Wednesday, October 07, 2015 6:52 PM To: toasters@teaparty.net Subject: FDMI reporting with qla2xxx driver on Linux
Hi,
I recently noticed that qla2xxx (Qlogic HBAs) driver on Linux is capable of reporting FDMI.
By default it sends "Linux-default", and I'm failing to see how to change it to actual host name as it becomes way more handy then =) Any ideas?
Cheers, Vladimir _______________________________________________ Toasters mailing list Toasters@teaparty.net http://www.teaparty.net/mailman/listinfo/toasters