System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

superdome npar boot chicken or the egg question. How to get WWN from FC cards. EFI or ioscan

 
Steven E. Protter
Exalted Contributor

superdome npar boot chicken or the egg question. How to get WWN from FC cards. EFI or ioscan

When we specify a storage request here for a boot disk, we have to provide a WWN for the fiber card.

Problem is right now we have to boot EFI on a npar and run the devtree command and have storage watch a utility to determine the WWN of the fiber card we are essentially pinging.

EFI displays all LAN MAC addreses. Can it display WWN. If so what command.


We did network boot a npar today.

Shell> lanboot select -cip 10.8.128.167 -sip 10.8.128.162 -m 255.255.252.0 -b "/
opt/ignite/boot/nbp.efi"
01 Acpi(HWP0002,PNP0A03,405)/Pci(1|0)/Pci(6|0)/Mac(002264E494DE)
02 Acpi(HWP0002,PNP0A03,405)/Pci(1|0)/Pci(6|1)/Mac(002264E494DF)
03 Acpi(HWP0002,PNP0A03,406)/Pci(1|0)/Pci(6|0)/Mac(002264E494BC)
04 Acpi(HWP0002,PNP0A03,406)/Pci(1|0)/Pci(6|1)/Mac(002264E494BD)
05 Acpi(HWP0002,PNP0A03,40D)/Pci(1|0)/Pci(6|0)/Mac(002264E47492)
06 Acpi(HWP0002,PNP0A03,40D)/Pci(1|0)/Pci(6|1)/Mac(002264E47493)
07 Acpi(HWP0002,PNP0A03,40E)/Pci(1|0)/Pci(6|0)/Mac(002264E494DC)
08 Acpi(HWP0002,PNP0A03,40E)/Pci(1|0)/Pci(6|1)/Mac(002264E494DD)
Select Desired LAN: 07

Client MAC Address: 00 22 64 E4 94 DC

LAN Configuration:
Client MAC Address : 00 22 64 E4 94 DC
Client IP Address : 10.8.128.167
Subnet Mask : 255.255.252.0
Boot Server IP Address : 10.8.128.162
DHCP Server IP Address : 0.0.0.0

Retrieving File Size.

Boot file name: /opt/ignite/boot/nbp.efi
Boot file size: 24576 bytes

Retrieving File (TFTP).

Executing Image: "/opt/ignite/boot/nbp.efi"
Optional Data: NONE


@(#) HP-UX IA64 Network Bootstrap Program Revision 1.0
Downloading HPUX bootloader
Starting HPUX bootloader
Obtaining size of fpswa.efi (328192 bytes)
Downloading file fpswa.efi (328192 bytes)

(C) Copyright 1999-2008 Hewlett-Packard Development Company, L.P.
All rights reserved

HP-UX Boot Loader for IPF -- Revision 2.036

Booting from Lan
Obtaining size of AUTO (226 bytes)
Downloading file AUTO (226 bytes)
Obtaining size of AUTO (226 bytes)
Downloading file AUTO (226 bytes)



Obtaining size of AUTO (226 bytes)
Downloading file AUTO (226 bytes)
1. target OS is B.11.23 IA
2. target OS is B.11.31 IA
3. Exit Boot Loader

Choose an operating system to install that your hardware supports:2

Obtaining size of AUTO (226 bytes)
Downloading file AUTO (226 bytes)
Obtaining size of Rel_B.11.31/IINSTALL (50966795 bytes)
Downloading file Rel_B.11.31/IINSTALL (50966795 bytes)
> System Memory = 65402 MB
loading section 0
.................................................................................................... (complete)
loading section 1
................. (complete)
loading symbol table
Obtaining size of Rel_B.11.31/IINSTALLFS (61341696 bytes)
Downloading file Rel_B.11.31/IINSTALLFS (61341696 bytes)
loading ram disk file (Rel_B.11.31/IINSTALLFS).
.....................................................................................................................
(complete)
Launching Rel_B.11.31/IINSTALL
SIZE: Text:50828K + Data:8272K + BSS:23776K = Total:82878K
Console is on Serial Device - via PCDP
Booting kernel...


We got the Ignite itool shell ran a hardware scan and all, but could not come up with WWN.

ioscan on 11.31 has some references to wwid, but we have yet to come up with a command syntax that makes the system cough up this information.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
5 REPLIES
Rita C Workman
Honored Contributor

Re: superdome npar boot chicken or the egg question. How to get WWN from FC cards. EFI or ioscan

Not sure this is what you're looking for but...

If you run the following:

ioscan -enkfCdisk > ioscan.disk-special

In that file you will find it includes the ACPI information. Taking a closer look you will also find using an example from my box, in the ACPI lines:
(WWN50060482CC36FEA8,Lun405000...etc)

OK, now on my box I ran for the HBA device file:

fcmsutil /dev/fcd0 get remote all

Note that in the output it will show

Target Port World Wide Name = 0x50060482cc36fea8
==================================

So, with this you can see from ioscan the disk and which HBA it is coming from. Obviously, this is not to be confused with the WWN that one would zone with. But it does tie the ACPI disk to the HBA.

But, just took another EFI session, so this did give me a chance to use some of the things I 'learnt'.

Kindest regards,
Rita

Steven E. Protter
Exalted Contributor

Re: superdome npar boot chicken or the egg question. How to get WWN from FC cards. EFI or ioscan

With the recovery shell we tarred up fcmsutil and its libraries copied them in with tftp or ftp and got the info we needed.

I will post to hpux.ws and link here probably on Monday. As an aside, HP really should include fcmsutil in the recovery shell or fcmsutil.
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com

Re: superdome npar boot chicken or the egg question. How to get WWN from FC cards. EFI or ioscan

>As an aside, HP really should include fcmsutil in the recovery shell or fcmsutil.

Please contact the Response Center with your enhancement request.
Olivier Masse
Honored Contributor

Re: superdome npar boot chicken or the egg question. How to get WWN from FC cards. EFI or ioscan

Steven, There is a way to bring up the fibre card configuration menu from EFI using the infamous "drvcfg" command. I just tried it, and it can provide the WWN number for you. No need to ignite or boot your system.

At the EFI, type "drivers" to get a list of EFI drivers in the system. Find the driver handle related to your fiber card (there will be one per card).

Then, type "drvcfg " to identify the control handle.

Example:
Shell> drvcfg 25
Configurable Components
Drv[25] Ctrl[27] Lang[eng]


Then, call "drvcfg -s" using the driver handle and the control handle.

Example:
Shell> drvcfg -s 25 27

You'll end up in this menu:


Fibre Channel Driver Configuration Utility

NOTE: Do not redirect console output to a file.


Main Menu

NVRAM Parameters
1. Edit Adapter Settings
2. Edit Advanced Settings
3. Edit Database
4. Edit Boot Settings
Information
5. Show Database
6. Show Translation
7. Show NVRAM Buffer
8. Info
9. Help
Operation
10. Abandon
11. Write
12. Quit


And the "info" menu will give you the WWN.

You can also use this menu to set EFIFCScanLevel value, which can be *VERY* useful if you loose your bootpath within the EFI.

EFIFCSCanLevel determines if EFI sees all available Luns as possible boot disks instead of only the ones given from setboot. So if you ever change your boot LUN and don't run setboot, you will not be able to boot at the EFI without changing EFIFCScanLevel first.

Good luck







Steven E. Protter
Exalted Contributor

Re: superdome npar boot chicken or the egg question. How to get WWN from FC cards. EFI or ioscan

The procedure.
http://www.hpux.ws/?p=129

It is a little raw.

The idea to copy fcmsutil to the recovery shell was joint between Ted Fisher and myself, contractors here at Dana.

Ted did the hard work of figuring out how to make fcmsutil work.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com