Brocade Fibre Channel Networking Community

Expand all | Collapse all

fabriclog "g=" meaning

  • 1.  fabriclog "g=" meaning

    Posted 01-07-2019 03:04 PM

    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   


    #BrocadeFibreChannelNetworkingCommunity
    #troubleshooting
    #fos
    #fabriclog


  • 2.  Re: fabriclog "g=" meaning

    Posted 01-07-2019 04:09 PM

    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!

     

     


    #BrocadeFibreChannelNetworkingCommunity


  • 3.  Re: fabriclog "g=" meaning

    Posted 01-07-2019 11:53 PM

    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.


    #BrocadeFibreChannelNetworkingCommunity


  • 4.  Re: fabriclog "g=" meaning

    Posted 01-08-2019 08:04 AM

    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.


    #BrocadeFibreChannelNetworkingCommunity


  • 5.  Re: fabriclog "g=" meaning

    Posted 01-16-2019 09:44 PM

    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.

     

     


    #BrocadeFibreChannelNetworkingCommunity