For more details, please see ourCookie Policy.


Fibre Channel (SAN)

Reply
Highlighted
New Contributor
Posts: 2
Registered: ‎09-16-2018

fabriclog "g=" meaning

Hello I was looking at a problem with an HBA having problem logging into the fabric and coming up as a G-port and noticed in the fabriclog a "g=" value that appears to be in hex that does not change for many of the LR_PORT events.  I was hoping this might give me some insight as to why the device is SCN LR_PORT over and over again.  Or this value is just some ID randomly assigned by the switch.  Any one with any clue what the "g=" means? 

 

fabriclog --show       :

Time Stamp      Input and *Action                           S, P   Sn,Pn  Port  Xid

===================================================================================

Switch 0; Sat Jan  5 07:58:54 2019 GMT+9 (GMT-9:00)

07:58:54.442329 SCN LR_PORT(0);g=0xbbe                      D0,P0  D0,P0  12    NA   

07:58:54.512123 SCN LR_PORT(0);g=0xbbe                      D0,P0  D0,P0  12    NA   

07:58:54.582571 SCN LR_PORT(0);g=0xbbe                      D0,P0  D0,P0  12    NA   

07:58:54.652624 SCN LR_PORT(0);g=0xbbe                      D0,P0  D0,P0  12    NA   

07:58:54.721915 SCN LR_PORT(0);g=0xbbe                      D0,P0  D0,P0  12    NA   

07:58:54.791488 SCN LR_PORT(0);g=0xbbe                      D0,P0  D0,P0  12    NA   

07:58:54.836042 SCN Port Online; g=0xbbe,isolated=0         D0,P0  D0,P1  12    NA   

07:58:54.857961 SCN Port Offline;g=0xbc0                    D0,P1  D0,P0  12    NA   

07:58:54.857978 *Removing all nodes from port               D0,P0  D0,P0  12    NA   

 

07:58:54.870109 SCN LR_PORT(0);g=0xbc0                      D0,P0  D0,P0  12    NA   

07:58:54.942553 SCN LR_PORT(0);g=0xbc0                      D0,P0  D0,P0  12    NA   

07:58:55.012282 SCN LR_PORT(0);g=0xbc0                      D0,P0  D0,P0  12    NA   

07:58:55.081413 SCN LR_PORT(0);g=0xbc0                      D0,P0  D0,P0  12    NA   

07:58:55.150907 SCN LR_PORT(0);g=0xbc0                      D0,P0  D0,P0  12    NA   

07:58:55.220721 SCN LR_PORT(0);g=0xbc0                      D0,P0  D0,P0  12    NA   

08:00:55.288915 SCN LR_PORT(0);g=0xbc0                      D0,P0  D0,P0  12    NA   

08:00:55.364581 SCN LR_PORT(0);g=0xbc0                      D0,P0  D0,P0  12    NA   

08:00:55.434141 SCN LR_PORT(0);g=0xbc0                      D0,P0  D0,P0  12    NA   

08:00:55.504727 SCN LR_PORT(0);g=0xbc0                      D0,P0  D0,P0  12    NA   

08:00:55.573925 SCN LR_PORT(0);g=0xbc0                      D0,P0  D0,P0  12    NA   

08:00:55.643561 SCN LR_PORT(0);g=0xbc0                      D0,P0  D0,P0  12    NA   

08:00:55.712760 SCN LR_PORT(0);g=0xbc0                      D0,P0  D0,P0  12    NA   

08:00:55.781996 SCN LR_PORT(0);g=0xbc0                      D0,P0  D0,P0  12    NA   

08:00:55.852378 SCN LR_PORT(0);g=0xbc0                      D0,P0  D0,P0  12    NA   

08:00:55.921569 SCN LR_PORT(0);g=0xbc0                      D0,P0  D0,P0  12    NA   

08:00:55.996217 SCN LR_PORT(0);g=0xbc0                      D0,P0  D0,P0  12    NA   

08:00:56.065473 SCN LR_PORT(0);g=0xbc0                      D0,P0  D0,P0  12    NA   

08:00:56.134576 SCN LR_PORT(0);g=0xbc0                      D0,P0  D0,P0  12    NA   

08:00:56.204454 SCN LR_PORT(0);g=0xbc0                      D0,P0  D0,P0  12    NA   

08:00:56.273718 SCN LR_PORT(0);g=0xbc0                      D0,P0  D0,P0  12    NA   

08:00:56.295719 SCN Port Online; g=0xbc0,isolated=0         D0,P0  D0,P1  12    NA   

08:00:56.338089 SCN Port Offline;g=0xbc2                    D0,P1  D0,P0  12    NA   

08:00:56.338106 *Removing all nodes from port               D0,P0  D0,P0  12    NA   

Regular Contributor
Posts: 151
Registered: ‎03-20-2018

Re: fabriclog "g=" meaning

I checked the fabric log reference and see that the "g=" is found throughout. Quite a few fabriclog events use this.

 

As for what it means, no clue. I never did support.

 

Interesting question though!

 

 

Super Contributor
Posts: 286
Registered: ‎04-04-2018

Re: fabriclog "g=" meaning

Hello,

 

to be honest i don't know the purpouse of g= as well.

If you like you may share portlogdumpport output for particular port to check for more details.

Please mark this response as "Accept as Solution" if it answers your question.

Marian Bezeg
Frequent Contributor
Posts: 81
Registered: ‎05-26-2010

Re: fabriclog "g=" meaning

Interesting observation. I too am not sure, but I notice a pattern.   The "g=" value remains the same while the port is under Link Reset state then once Online is acheived the next Link Reset state has an incremented "g=" value by 2. It remains constant during the storm of LR_PORT event, but again once Online is achieved the "g'=" value increments by 2 at next LR_PORT event.

 

Port 12 events look similar to a port having trouble keeping link sync. The LR_Port events are happening every ~0.07ms.

Suggest 1) clear fc counters, create the problem, observe the port counters (portstatsshow -i 12)

            2)  review the portlog dump file for 12 (portlogdump 12)

            3) ensure the device containing the HBA has a functional operating system and driver is loaded

            4) Qlogic and Emulex HBAs have utilities to query the adapter for errors, as well.

The comments and advise included are the author's and do not mirror the views and opinions of any company. Any comments, advise, statements or references are without warranty, liability or claims of expertise. You should seek the assistance of the professional entity for subject matter being pursued.
New Contributor
Posts: 4
Registered: ‎01-15-2019

Re: fabriclog "g=" meaning

yes, its me... :-)

 

"g" stands for "generation number". Each Primitive sequence is asigned such a number to keep track to which primitives belong to which sequences. Is especially inportant in NPIV environment as that would be the only way to keep track of state changes on logical addresses and not on the physical port.

 

It also depends on which state the port is prior to sending or receiving the LR.

 

 

Join the Broadcom Support Community

Get quick and easy access to valuable resources across the Broadcom Community Network.