AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
  • 1.  VIOS and SAN disks

    Posted Wed December 09, 2015 01:19 AM

    Originally posted by: Jack0fAll


    I've a VIOS server that hosts 2 clients. What command(s) do I need to run to see the SAN disks that have been presented to the 2 client LPARs?



  • 2.  Re: VIOS and SAN disks

    Posted Wed December 09, 2015 04:44 AM

    Originally posted by: Wouter Liefting


    If you use vSCSI, the SAN disks are assigned to the VIO (more technically, to the burned-in WWPN associated with the Fibre Channel Adapters that are assigned to the VIO). As such, you can see them as regular hdisks with commands such as lsdev. The mapping from the physical device to the virtual SCSI server adapter can be viewed with lsmap -all.

     

    If you use vFC (NPIV), then unfortunately you will not be able to view the SAN disks on the VIO server. After all, they are not assigned to the VIO server, but directly to the WWPN of the client LPAR (or more correctly, to the WWPNs associated with the vFC adapters that are assigned to the client LPAR). The only thing you can normally see is the mapping between the physical FC adapter and the virtual FC adapters: lsmap -all -npiv.

     

    There is a trick I've been thinking about that may or may not work - I have not tested it to the full extent. For testing purposes it is possible to login to the SAN on the VIO server, but using the WWPNs of the vFC client adapter (of the client LPAR). This is hidden relatively deep in the HMC screens. If you are logged in this way (which obviously you should only do when the client LPAR is down), you might be able to see the hdisks if you do a cfgmgr. But once again, I have not really tested this. It may or may not work. In any case, don't forget to rmdev the hdisks from the VIO server, and logout the vFC adapters, before you start the client LPAR.



  • 3.  Re: VIOS and SAN disks

    Posted Tue January 05, 2016 03:13 PM

    Originally posted by: AncientAIXer


    I have found this to be useful

     

    http://www.ibm.com/developerworks/aix/library/au-aix-graphviz/



  • 4.  Re: VIOS and SAN disks

    Posted Thu January 14, 2016 11:30 AM

    Originally posted by: Jack0fAll


    Thanks all... but i was looking for commands to give me a quick way of seeing the SAN LUNs presented to the server, adding those to a VG, followed by creating a new file system from them. If anyone can help with that it'd be great.