Topic
  • 3 replies
  • Latest Post - ‏2012-06-06T20:35:59Z by sfoster
patricequet
patricequet
1 Post

Pinned topic From an AIX LPAR, how to know which VIOS is serving that LPAR ?

‏2012-06-01T14:46:06Z |
Hello everybody,

I would like to know if it is possible, from a virtualized AIX LPAR, to know what are the VIOS that is "serving" that LPAR without ask it to the HMC because I don't have any HMC access from the LPAR.
In other words, is there a way from AIX only running into the LPAR to know from which VIOS that LPAR is depending on ?
I tried to find some way to do that but didn't succeed.
If any idea, thanks to post an update.
Thanks in advance and best regards.
Patrice.
Updated on 2012-06-06T20:35:59Z at 2012-06-06T20:35:59Z by sfoster
  • SystemAdmin
    SystemAdmin
    1743 Posts

    Re: From an AIX LPAR, how to know which VIOS is serving that LPAR ?

    ‏2012-06-01T16:10:46Z  
    Hi Patrice,

    If virtualized lpar is connected to SAN trough NPIV you can use theses commands :
    • List fcs adapters on virtualized lpar :
    
    # lsdev -Cc adapter | grep fcs fcs0 Available 10-T1 Virtual Fibre Channel Client Adapter fcs1 Available 11-T1 Virtual Fibre Channel Client Adapter
    

    • Find associted VIOS with KDB :
    
    # kdb The specified kernel file is a 64-bit kernel. [..] (0)> vfcs NAME      ADDRESS             STATE   HOST      HOST_ADAP  OPENED NUM_ACTIVE fcs0      0xF10001003AE1F000  0x0008  vios1 vfchost2  0x01    0x0000 fcs1      0xF10001003A693000  0x0008  vios2 vfchost2  0x01    0x0000
    

    If virtualized lpar is connected to SAN using Vscsi :
    
    # echo 
    "cvai"|kdb|grep vscsi read vscsi_scsi_ptrs OK, ptr = 0x4240398 vscsi0     0x000007 0x0000000000 0x0                vios1->vhost8 vscsi1     0x000007 0x0000000000 0x0                vios2->vhost5
    


    I've tested the first solution it works.
    The second seems not working on AIX 5.3 (all my vscsi lpar are in 5.3), if you can test it in AIX 6.1 let me know.

    Best.

    Benoît.
  • SystemAdmin
    SystemAdmin
    1743 Posts

    Re: From an AIX LPAR, how to know which VIOS is serving that LPAR ?

    ‏2012-06-01T16:50:08Z  
    Hi Patrice,

    If virtualized lpar is connected to SAN trough NPIV you can use theses commands :
    • List fcs adapters on virtualized lpar :
    <pre class="jive-pre"> # lsdev -Cc adapter | grep fcs fcs0 Available 10-T1 Virtual Fibre Channel Client Adapter fcs1 Available 11-T1 Virtual Fibre Channel Client Adapter </pre>
    • Find associted VIOS with KDB :
    <pre class="jive-pre"> # kdb The specified kernel file is a 64-bit kernel. [..] (0)> vfcs NAME ADDRESS STATE HOST HOST_ADAP OPENED NUM_ACTIVE fcs0 0xF10001003AE1F000 0x0008 vios1 vfchost2 0x01 0x0000 fcs1 0xF10001003A693000 0x0008 vios2 vfchost2 0x01 0x0000 </pre>
    If virtualized lpar is connected to SAN using Vscsi :
    <pre class="jive-pre"> # echo "cvai"|kdb|grep vscsi read vscsi_scsi_ptrs OK, ptr = 0x4240398 vscsi0 0x000007 0x0000000000 0x0 vios1->vhost8 vscsi1 0x000007 0x0000000000 0x0 vios2->vhost5 </pre>

    I've tested the first solution it works.
    The second seems not working on AIX 5.3 (all my vscsi lpar are in 5.3), if you can test it in AIX 6.1 let me know.

    Best.

    Benoît.
    I ran the:
    echo "cvai"|kdb|grep vscsi
    on both AIX 6.1 and 7.1 and it works fine.

    Ken C.
  • sfoster
    sfoster
    4 Posts

    Re: From an AIX LPAR, how to know which VIOS is serving that LPAR ?

    ‏2012-06-06T20:35:59Z  
    Thanks Ben, great info!