--- Ethernet Interface ---

$ chdev -dev ent0 -attr jumbo_frames=yes

$ chdev -l en0 -a mtu=9000

   > vios 및 etherchannel 구성전에 적용할 것!!!


--- vSCSI Interface ---

$ chdev -dev fscsi0 -attr fc_err_recov=fast_fail dyntrk=yes -perm

$ chdev -dev hdisk1 -attr reserve_policy=no_reserve

$ chdev -dev hdisk1 -attr algorithm=round_robin

$ chdev -l hdisk1 -a hcheck_interval=60 -P



# chdev -l vscsi0 -a vscsi_err_recov=fast_fail

# lsdev –Cc adapter | grep fcs | grep –v grep | awk '{print "chdev –l " $1 " –a num_cmd_elems=2048 –P " }'  | sh -x

# lsdev –Cc disk | grep –v hdisk0 | grep –v hdisk1 | awk '{print "chdev –l " $1 " –a queue_depth=20 -P" }' | sh -x

# lsattr -El hdisk2 | grep "hcheck_"

# lspv | awk '{print "chdev -l " $1 " -a hcheck_interval=60 -P " }' | sh -x



--- NPIV Interface ---

# chdev -l vscsi0 -a vscsi_err_recov=fast_fail

# chdev -l vscsi0 -a dyntrk=yes

# lsdev –Cc adapter | grep fcs | grep –v grep | awk '{print "chdev –l " $1 " –a num_cmd_elems=2048 –P " }'  | sh -x

# lsdev –Cc disk | grep –v hdisk0 | grep –v hdisk1 | awk '{print "chdev –l " $1 " –a queue_depth=20 -P" }' | sh -x


--- vios server 10g adapter ---

-> vios 10g adapter

# chdev -l ent0 -a large_send=yes

# chdev -l ent0 -a large_receive=yes


-> vios server SEA 

# chdev -l ent8 -a largesend=1

# chdev -l ent8 -a large_receive=yes


-> vios vlan adapter

# chdev -l ent2 -a min_buf_medium=512 -a max_buf_medium=1024 -a min_buf_large=96 -a max_buf_large=256 -a min_buf_huge=96 -a max_buf_huge=128 -P


--- vios client ---

-> virtual ethernet adapter

# ifconfig en0 largesend

   -> /etc/inittab 에도 추가하여 재부팅시마다 largesend가 적용되도록 할 것

# chdev -l ent0 -a min_buf_medium=512 -a max_buf_medium=1024 -a min_buf_large=96 -a max_buf_large=256 -a min_buf_huge=96 -a max_buf_huge=128 –P


--- lpar 10g adapter ---

# chdev -l ent0 -a large_send=yes

# chdev -l ent0 -a large_receive=yes



--- processor affinity ---

# lssrad -av


--- others ---

# virtual apdatper에서 entstat -d ent0 혹은 netstat -v ent1로 볼때 Packets Dropped / No Resource Error / Hpervisor Failure 오류가 발생하는 경우

    -> chdev -l ent1 -a min_buf_medium=512 -a max_buf_medium=1024 -a min_buf_large=96 -a max_buf_large=256 -a min_buf_huge=96 -a max_buf_huge=128 -P



블로그 이미지

Melting

,

http://www.youtube.com/watch?v=2PH-r_j5N50




블로그 이미지

Melting

,
# mkssys -s NAME -p PATH -u UID -S -n15 -f9 -a 'COMMAND ARGS'
  > NAME: new signal-controlled (-S) service
  > PATH: executable to run is
  > Signal 15 (TERM) is used for normal shut-down 
  > Signal 9 (KILL) for forced shutdown

# startsrc -s NAME
# stopsrc -s NAME
# rmssys -s NAME
# vi  /etc/inittab
NAME:2:respawn:/usr/bin/startsrc -s NAME
  > execute automatically on runlevel 2(multi-user mode boot)
  > respawn when the service fail


블로그 이미지

Melting

,

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


(vios)$ viostat -adapter vfchost3



Tips for implementing NPIV on IBM Power Systems


Overview

In this article, I will share with you my experience in implementing NPIV on IBM Power Systems with AIX and the Virtual I/O Server (VIOS). There are several publications that already discuss the steps on how to configure NPIV using a VIOS, and I have provided links to some of these in the Resources section. Therefore, I will not step through the process of creating virtual Fibre Channel (FC) adapters or preparing your environment so that it is NPIV and virtual FC ready. I assume you already know about this and will ensure you have everything you need. Rather, I will impart information that I found interesting and perhaps undocumented during my own real-life experience of deploying this technology. Ultimately this system was to provide an infrastructure platform to host SAP applications running against a DB2 database.

NPIV (N_Port ID Virtualization) is an industry standard that allows a single physical Fibre Channel port to be shared among multiple systems. Using this technology you can connect multiple systems (in my case AIX LPARs) to one physical port of a physical fibre channel adapter. Each system (LPAR) has its own unique worldwide port name (WWPN) associated with its own virtual FC adapter. This means you can connect each LPAR to physical storage on a SAN natively.

This is advantageous for several reasons. First, you can save money. Having the ability to share a single fibre channel adapter among multiple LPARs could save you the cost of purchasing more adapters than you really need.

Another reason to use NPIV is the reduction in VIOS administration overhead. Unlike virtual SCSI (VSCSI), there is no need to assign the SAN disks to the VIOS first and then map them to the Virtual I/O client (VIOC) LPARs. Instead, the storage is zoned directly to the WWPNs of the virtual FC adapters on the clients. It also eliminates the need to keep your documentation up to date every time you map a new disk to an LPAR/VIOS or un-map a disk on the VIO server.

I/O performance is another reason you may choose NPIV over VSCSI. With NPIV all paths to a disk can be active with MPIO, thus increasing the overall bandwidth and availability to your SAN storage. The I/O load can be load-balanced across more than one VIO server at a time. There is no longer any need to modify a clients VSCSI hdisk path priority to send I/O to an alternate VIO server, as all I/O can be served by all the VIO servers if you wish.

One more reason is the use of disk "copy service" functions. Most modern storage devices provide customers with the capability to "flash copy" or "snap shot" their SAN LUNs for all sorts of purposes, like cloning of systems, taking backups, and so on. It can be a challenge to implement these types of functions when using VSCSI. It is possible, but automation of the processes can be tricky. Some products provide tools that can be run from the host level rather than on the storage subsystem. For this to work effectively, the client LPARs often need to "see" the disk as a native device. For example, it may be necessary for an AIX system to detect that its disk is a native NetApp disk for the NetApp "snapshot" tools to work. If it cannot find a native NetApp device, and instead finds only a VSCSI disk, and it is unable to communicate with the NetApp system directly, then the tool may fail to function or be supported.

The biggest disadvantage (that I can see) to using NPIV is the fact that you must install any necessary MPIO device drivers and/or host attachment kits on any and all of the client LPARs. This means that if you have 100 AIX LPARs that all use NPIV and connect to IBM DS8300 disk, you must install and maintain SDDPCM on all 100 LPARs. In contrast, when you implement VSCSI, the VIOS is the only place that you must install and maintain SDDPCM. And there's bound to be fewer VIOS than there are clients! There are commonly only two to four VIO servers on a given Power system.

Generally speaking, I'd recommend NPIV at most large enterprise sites since it is far more flexible, manageable, and scalable. However, there's still a place for VSCSI, even in the larger sites. In some cases, it may be better to use VSCSI for the rootvg disk(s) and use NPIV for all non-rootvg (data) volume groups. For example, if you boot from SAN using NPIV (rootvg resides on SAN disk) and you had to install MPIO device drivers to support the storage. It can often be difficult to update MPIO software when it is still in use, which in the case of SAN boot is all the time. There are procedures and methods to work around this, but if you can avoid it, then you should consider it!

For example, if you were a customer that had a large number of AIX LPARs that were all going to boot from HDS SAN storage, then I'd suggest that you use VSCSI for the rootvg disks. This means that HDLM (Hitachi Dynamic Link Manager, HDS MPIO) software would need to be installed on the VIOS, the HDS LUNs for rootvg would be assigned to and mapped from the VIOS. All other LUNS for data (for databases or application files/code) would reside on storage presented via NPIV and virtual FC adapters. HDLM would also be installed on the LPARs but only for non-rootvg disks. Implementing it this way means that when it comes time to update the HDLM software on the AIX LPARs, you would not need to worry about moving rootvg to non-HDS storage so that you can update the software. Food for thought!

Environment

The environment I will describe for my NPIV implementation consists of a POWER7 750 and IBM XIV storage. The client LPARs are all running AIX 6.1 TL6 SP3. The VIO servers are running version 2.2.0.10 Fix Pack 24 Service Pack 1 (2.2.0.10-FP-24-SP-01). The 750 is configured with six 8GB fibre channel adapters (feature code 5735). Each 8GB FC adapter has 2 ports. The VIO servers were assigned 3 FC adapters each. The first two adapters in each VIOS would be used for disk and the last FC adapter in each VIOS would be for tape connectivity.

NPIV and virtual FC for disk

I made the conscious decision during the planning stage to provide each production LPAR with four virtual FC adapters. The first two virtual FC adapters would be mapped to the first two physical FC ports on the first VIOS and the last two virtual FC adapters would be mapped to first two physical FC ports on the second VIOS. As shown in the following diagram below.


Figure 1: Virtual FC connectivity to SAN and Storage
Illustration of Virtual Fibre Channel connectivity to SAN and Storage 

(View a larger version of Figure 1.)

I also decided to isolate other disk traffic (for example, non-critical production traffic) over different physical FC adapters/ports. In the previous diagram, the blue lines/LUNs indicate production traffic. This traffic is mapped from the virtual adapters, fcs0 and fcs1 in an LPAR, to the physical ports on the first FC adapters in vio1: fcs0 and fcs1. The virtual FC adapters, fcs2 and fcs3 in an LPAR, map to the physical ports on the first FC adapter in vio2: fcs0 and fcs1.

The red lines indicate all non-critical disk traffic. For example, the NIM and Tivoli Storage Manager LPARs use different FC adapters in each VIOS than the production LPARs. The virtual FC adapters, fcs0 and fcs1, map to the physical ports on the second FC adapter, fcs2 and fcs3 in vio1. The virtual FC adapters, fcs2 and fcs3, map to the physical ports on the second FC adapter, fcs2 and fcs3 in vio2.

An example of the vfcmap commands that we used to create this mapping on the VIO servers are shown here:

For production systems (e.g. LPAR4):

  1. Map LPAR4 vfchost0 adapter to physical FC adapter fcs0 on vio1.
    	$ vfcmap –vadpater vfchost0 –fcp fcs0
    

  2. Map LPAR4 vfchost1 adapter to physical FC adapter fcs1 on vio1.
    	$ vfcmap –vadapter vfchost1 – fcp fcs1
    

  3. Map LPAR4 vfchost0 adapter to physical FC adapter fcs0 on vio2.
    	$ vfcmap –vadapter vfchost0 – fcp fcs0
    

  4. Map LPAR4 vfchost1 adapter to physical FC adapter fcs1 on vio2.
    	$ vfcmap –vadapter vfchost1 –fcp fcs1
    

For non-critical systems (e.g. NIM1):

  1. Map NIM1 vfchost3 adapter to physical FC adapter fcs2 on vio1.
    	$ vfcmap –vadapter vfchost3 –fcp fcs2
    

  2. Map NIM1 vfchost4 adapter to physical FC adapter fcs3 on vio1.
    	$ vfcmap –vadapter vfchost4 – fcp fcs3
    

  3. Map NIM1 vfchost3 adapter to physical FC adapter fcs2 on vio2.
    	$ vfcmap –vadapter vfchost3 – fcp fcs2
    

  4. Map NIM1 vfchost4 adapter to physical FC adapter fcs3 on vio2.
    	$ vfcmap –vadapter vfchost4 –fcp fcs3
    

I used the lsmap –all –npiv command on each of the VIO servers to confirm that the mapping of the vfchost adapters, to the physical FC ports, was correct (as shown below).

vio1 (production LPAR):

	Name          Physloc                            ClntID ClntName       ClntOS
	------------- ---------------------------------- ------ -------------- -------
	vfchost0      U8233.E8B.XXXXXXX-V1-C66                4 LPAR4          AIX
	
	Status:LOGGED_IN
	FC name:fcs0                    FC loc code:U78A0.001.XXXXXXX-P1-C3-T1
	Ports logged in:5
	Flags:a<LOGGED_IN,STRIP_MERGE>
	VFC client name:fcs0            VFC client DRC:U8233.E8B.XXXXXXX-V6-C30-T1
	
	Name          Physloc                            ClntID ClntName       ClntOS
	------------- ---------------------------------- ------ -------------- -------
	vfchost1      U8233.E8B.XXXXXXX-V1-C67                4 LPAR4          AIX
	
	Status:LOGGED_IN
	FC name:fcs1                    FC loc code:U78A0.001.XXXXXXX-P1-C3-T2
	Ports logged in:5
	Flags:a<LOGGED_IN,STRIP_MERGE>
	VFC client name:fcs1            VFC client DRC:U8233.E8B.XXXXXXX-V6-C31-T1


vio1 (non-production LPAR):

	Name          Physloc                            ClntID ClntName       ClntOS
	------------- ---------------------------------- ------ -------------- -------
	vfchost3      U8233.E8B.XXXXXXX-V1-C30                3 nim1           AIX
	
	Status:LOGGED_IN
	FC name:fcs2                    FC loc code:U5877.001.XXXXXXX-P1-C1-T1
	Ports logged in:5
	Flags:a<LOGGED_IN,STRIP_MERGE>
	VFC client name:fcs0            VFC client DRC:U8233.E8B.XXXXXXX-V3-C30-T1
	
	Name          Physloc                            ClntID ClntName       ClntOS
	------------- ---------------------------------- ------ -------------- -------
	vfchost4      U8233.E8B.XXXXXXX-V1-C31                3 nim1           AIX
	
	Status:LOGGED_IN
	FC name:fcs3                    FC loc code:U5877.001.XXXXXXX-P1-C1-T2
	Ports logged in:5
	Flags:a<LOGGED_IN,STRIP_MERGE>
	VFC client name:fcs1            VFC client DRC:U8233.E8B.XXXXXXX-V3-C31-T1


vio2 (production LPAR):

	Name          Physloc                            ClntID ClntName       ClntOS
	------------- ---------------------------------- ------ -------------- -------
	vfchost0      U8233.E8B.XXXXXXX-V2-C66                4 LPAR4          AIX
	
	Status:LOGGED_IN
	FC name:fcs0                    FC loc code:U5877.001.XXXXXXX-P1-C3-T1
	Ports logged in:5
	Flags:a<LOGGED_IN,STRIP_MERGE>
	VFC client name:fcs2            VFC client DRC:U8233.E8B.XXXXXXX-V6-C32-T1
	
	Name          Physloc                            ClntID ClntName       ClntOS
	------------- ---------------------------------- ------ -------------- -------
	vfchost1      U8233.E8B.XXXXXXX-V2-C67                4 LPAR4          AIX
	
	Status:LOGGED_IN
	FC name:fcs1                    FC loc code:U5877.001.XXXXXXX-P1-C3-T2
	Ports logged in:5
	Flags:a<LOGGED_IN,STRIP_MERGE>
	VFC client name:fcs3            VFC client DRC:U8233.E8B.XXXXXXX-V6-C33-T1


vio2 (non-production LPAR):

	Name          Physloc                            ClntID ClntName       ClntOS
	------------- ---------------------------------- ------ -------------- -------
	vfchost3      U8233.E8B.XXXXXXX-V2-C30                3 nim1           AIX
	
	Status:LOGGED_IN
	FC name:fcs2                    FC loc code:U5877.001.XXXXXXX-P1-C4-T1
	Ports logged in:5
	Flags:a<LOGGED_IN,STRIP_MERGE>
	VFC client name:fcs2            VFC client DRC:U8233.E8B.XXXXXXX-V3-C32-T1
	
	Name          Physloc                            ClntID ClntName       ClntOS
	------------- ---------------------------------- ------ -------------- -------
	vfchost4      U8233.E8B.XXXXXXX-V2-C31                3 nim1           AIX
	
	Status:LOGGED_IN
	FC name:fcs3                    FC loc code:U5877.001.XXXXXXX-P1-C4-T2
	Ports logged in:5
	Flags:a<LOGGED_IN,STRIP_MERGE>
	VFC client name:fcs3            VFC client DRC:U8233.E8B.XXXXXXX-V3-C33-T1


Fortunately, as we were using IBM XIV storage, we did not need to install additional MPIO devices drivers to support the disk. AIX supports XIV storage natively. We did, however, install some additional management utilities from the XIV host attachment package. This gave us handy tools such as xiv_devlist (output shown below).

# lsdev –Cc disk
hdisk0          Available 30-T1-01    MPIO 2810 XIV Disk
hdisk1          Available 30-T1-01    MPIO 2810 XIV Disk
hdisk2          Available 30-T1-01    MPIO 2810 XIV Disk
hdisk3          Available 30-T1-01    MPIO 2810 XIV Disk

# lslpp –l | grep xiv
xiv.hostattachment.tools   1.5.2.0  COMMITTED  Support tools for XIV
                                                 connectivity

# xiv_devlist

Loading disk info... 
                                                                                 
XIV Devices
----------------------------------------------------------------------
Device       Size     Paths  Vol Name      Vol Id   XIV Id   XIV Host 
----------------------------------------------------------------------
/dev/hdisk1  51.5GB   16/16  nim2_ rootvg  7        7803242  nim2     
----------------------------------------------------------------------
/dev/hdisk2  51.5GB   16/16  nim2_ nimvg   8        7803242  nim2     
----------------------------------------------------------------------
/dev/hdisk3  103.1GB  16/16  nim2_ imgvg   9        7803242  nim2     
----------------------------------------------------------------------


Non-XIV Devices
---------------------
Device   Size   Paths
---------------------


If you are planning on implementing XIV storage with AIX, I highly recommend that you take a close look at Anthony Vandewert's blog on this topic.

You may have noticed in the diagram that the VIO servers themselves boot from internal SAS drives in the 750. Each VIO server was configured with two SAS drives and a mirrored rootvg. They did not boot from SAN.

LPAR profiles

During the build of the LPARs we noticed that if we booted a new LPAR with all four of its virtual FC adapters in place, the fcsX adapter name and slot id were not in order (fcs0=slot32, fcs1=slot33, fcs3=slot30, fcs4=slot31). To prevent this from happening, we created two profiles for each LPAR.

The first profile (known as normal) contained the information for all four of the virtual FC adapters. The second profile (known aswwpns) contained only the first two virtual FC adapters that mapped to the first two physical FC ports on vio1. Using this profile to perform the LPARs first boot and to install AIX allowed the adapters to be discovered in the correct order (fcs0=slot30, fcs1=slot31). After AIX was installed and the LPAR booted, we would then re-activate the LPAR using the normal profile and all four virtual FC adapters.

Two LPAR profiles exist for each AIX LPAR. An example is shown below.


Figure 2: LPAR profiles for virtual FC
Example of LPAR profiles for virtual FC 

The profile named normal contained all of the necessary Virtual I/O devices for an LPAR (shown below). This profile was used to activate an LPAR during standard operation.


Figure 3: Profile with all virtual FC adapters used after install
Profile with             all virtual FC adapters used after install 

The profile named wwpns contained only the first two virtual FC devices for an LPAR (shown below). This profile was only used to activate an LPAR in the event that the AIX operating system needed to be reinstalled. Once the AIX installation completed successfully, the LPAR was activated again using the normal profile. This configured the remaining virtual FC adapters.


Figure 4: An LPAR with first two virtual FC adapters only
An LPAR with first two VFC adapters only 

Also during the build process, we needed to collect a list of WWPNs for the new AIX LPARs we were installing from scratch. There were two ways we could find the WWPN for a virtual Fibre Channel adapter on a new LPAR (for example, one that did not yet have an operating system installed). First, we started by checking the LPAR properties from the HMC (as shown below).


Figure 5: Virtual FC adapter WWPNS
VFC adapter WWPNS 

To speed things up we moved to the HMC command line tool, lssyscfg, to display the WWPNs (as shown below).

hscroot@hmc1:~> lssyscfg -r prof -m 750-1 -F virtual_fc_adapters --filter lpar_names=LPAR4
"""4/client/2/vio1/32/c0507603a2920084,c0507603a2920084/0"",
""5/client/3/vio2/32/c050760160ca0008,c050760160ca0009/0"""


We now had a list of WWPNs for each LPAR.

	# cat LPAR4_wwpns.txt
	c0507603a292007c
	c0507603a292007e
	c0507603a2920078
	c0507603a292007a


We gave these WWPNS to the SAN administrator so that he could manually "zone in" the LPARs on the SAN switches and allocate storage to each. To speed things up even more, we used sed to insert colons into the WWPNs. This allowed the SAN administrator to simply cut and paste the WWPNs without needing to insert colons manually.

	# cat LPAR4_wwpns | sed 's/../&:/g;s/:$//'
	c0:50:76:03:a2:92:00:7c
	c0:50:76:03:a2:92:00:7e
	c0:50:76:03:a2:92:00:78
	c0:50:76:03:a2:92:00:7a


An important note here, if you plan on implementing Live Partition Mobility (LPM) with NPIV enabled systems, make sure you zone both of the WWPNs for each virtual FC adapter on the client LPAR. Remember that for each client virtual FC adapter that is created, a pair of WWPNs is generated (a primary and a secondary). Please refer to Live Partition Mobility with Virtual Fibre Channel in the Resources section for more information.

Virtual FC adapters for tape

Tivoli Storage Manager was the backup software used to backup and recover the systems in this new environment. Tivoli Storage Manager would use a TS3310 tape library, as well as disk storage pools to backup client data. In this environment, we chose to use virtual FC adapters to connect the tape library to Tivoli Storage Manager. This also gave us the capability to assign the tape devices to any LPAR, without moving the physical adapters from one LPAR to another, should the need arise in the future. As I mentioned earlier, there were three 2-port 8GB FC adapters assigned to each VIOS. Two adapters were used for disk and the third would be used exclusively for tape.

The following diagram shows that physical FC ports, fcs4 and fcs5, in each VIOS would be used for tape connectivity. It also shows that each of the 4 tape drives would be zoned to a specific virtual FC adapter in the Tivoli Storage Manager LPAR.


Figure 6. Tape drive connectivity via virtual FC
Example of a tape drive connectivity via virtual FC 

(View a larger version of Figure 6.)

The Tivoli Storage Manager LPAR was initially configured with virtual FC adapters for connectivity to XIV disk only. As shown in thelspath output below, fcs0 through fcs3 are used exclusively for access to disk only.

# lsdev -Cc adapter | grep fcs
fcs0 Available 30-T1 Virtual Fibre Channel Client Adapter
fcs1 Available 31-T1 Virtual Fibre Channel Client Adapter
fcs2 Available 32-T1 Virtual Fibre Channel Client Adapter
fcs3 Available 33-T1 Virtual Fibre Channel Client Adapter

# lspath
Enabled hdisk0  fscsi0
Enabled hdisk0  fscsi0
Enabled hdisk0  fscsi0
Enabled hdisk0  fscsi0
Enabled hdisk0  fscsi1
Enabled hdisk0  fscsi1
Enabled hdisk0  fscsi1
Enabled hdisk0  fscsi1
Enabled hdisk0  fscsi2
Enabled hdisk0  fscsi2
Enabled hdisk0  fscsi2
Enabled hdisk0  fscsi2
Enabled hdisk0  fscsi3
Enabled hdisk0  fscsi3
Enabled hdisk0  fscsi3
Enabled hdisk0  fscsi3
..etc.. for the other disks on the system


To connect to the tape drives, we configured four additional virtual FC adapters for the LPAR. First, we ensured that the physical adapters were available and had fabric connectivity. On both VIOS, we used the lsnports command to determine the state of the adapters and their NPIV capability. As shown in the following output, the physical adapter's fcs4 and fcs5 were both available and NPIV ready. There was a 1 in the fabric column. If it was zero then the adapter may not be connected to an NPIV capable SAN.

$ lsnports
name  physloc                    fabric tports aports swwpns awwpns
fcs0  U78A0.001.DNWK4W9-P1-C3-T1      1     64     52   2048   1988
fcs1  U78A0.001.DNWK4W9-P1-C3-T2      1     64     52   2048   1988
fcs2  U5877.001.0084548-P1-C1-T1      1     64     61   2048   2033
fcs3  U5877.001.0084548-P1-C1-T2      1     64     61   2048   2033
fcs4 U5877.001.0084548-P1-C2-T1  1    64    64   2048  2048
fcs5 U5877.001.0084548-P1-C2-T2  1    64    64   2048  2048


When I initially checked the state of the adapters on both VIOS, I encountered the following output from lsnports:

$ lsnports
name  physloc                    fabric tports aports swwpns awwpns
fcs0  U78A0.001.DNWK4W9-P1-C3-T1      1     64     52   2048   1988
fcs1  U78A0.001.DNWK4W9-P1-C3-T2      1     64     52   2048   1988
fcs2  U5877.001.0084548-P1-C1-T1      1     64     61   2048   2033
fcs3  U5877.001.0084548-P1-C1-T2      1     64     61   2048   2033
fcs4 U5877.001.0084548-P1-C2-T1      0     64     64   2048   2048


As you can see, only the fcs4 adapter was discovered; the fabric value for fcs4 was 0 and fcs5 was missing. Both of these issues were the result of physical connectivity issues to the SAN. The cables were unplugged and/or they had a loopback adapter plugged into the interface. The error report indicated link errors on fcs4 but not for fcs5.

$ errlog
IDENTIFIER TIMESTAMP  T C RESOURCE_NAME  DESCRIPTION
7BFEEA1F 0502104011 T H fcs4  LINK ERROR


Once the ports were physically connected to the SAN switches, I removed the entry for fcs4 from the ODM (as shown below) and then ran cfgmgr on the VIOS.

$ r oem
oem_setup_env
# rmdev -dRl fcs4
fcnet4 deleted
sfwcomm4 deleted
fscsi4 deleted
fcs4 deleted
# cfgmgr
# exit
$


Then both fcs4 and fcs5 were discovered and configured correctly.

$ lsnports
name  physloc              fabric     tports  aports  swwpns  awwpns
fcs0  U78A0.001.DNWK4W9-P1-C3-T1      1         64      52    2048    1988
fcs1  U78A0.001.DNWK4W9-P1-C3-T2      1         64      52    2048    1988
fcs2  U5877.001.0084548-P1-C1-T1      1         64      61    2048    2033
fcs3  U5877.001.0084548-P1-C1-T2      1         64      61    2048    2033
fcs4 U5877.001.0084548-P1-C2-T1  1        64     64   2048   2048
fcs5 U5877.001.0084548-P1-C2-T2  1        64     64   2048   2048


The Tivoli Storage Manager LPARs dedicated virtual FC adapters, for tape, appeared as fcs4, fcs5, fcs6 and fcs7. The plan was for fcs4 on tsm1 to map to fcs4 on vio1, fcs5 to map to fcs5 on vio1, fcs6 to map to fcs4 on vio2, and fcs7 to map to fcs5 on vio2.

The virtual adapter slot configuration was as follows:

LPAR: tsm1  VIOS: vio1
U8233.E8B.06XXXXX-V4-C34-T1 >   U8233.E8B.06XXXXX-V1-C60  
U8233.E8B.06XXXXX-V4-C35-T1 >   U8233.E8B.06XXXXX-V1-C61  

LPAR: tsm1  VIOS: vio2
U8233.E8B.06XXXXX-V4-C36-T1 >   U8233.E8B.06XXXXX-V2-C60  
U8233.E8B.06XXXXX-V4-C37-T1 >   U8233.E8B.06XXXXX-V2-C61  


We created two new virtual FC host (vfchost) adapters on vio1 and two new vfchost adapters on vio2. This was done by updating the profile for both VIOS (on the HMC) with the new adapters and then adding them with a DLPAR operation on each VIOS. Once we had run the cfgdev command on each VIOS to bring in the new vfchost adapters, we needed to map them to the physical FC ports.

Using the vfcmap command on each of the VIOS, we mapped the physical ports to the virtual host adapters as follows:

  1. Map tsm1 vfchost60 adapter to physical FC adapter fcs4 on vio1.
    	$ vfcmap –vadapter vfchost60 –fcp fcs4
    

  2. Map tsm1 vfchost61 adapter to physical FC adapter fcs5 on vio1.
    	$ vfcmap –vadapter vfchost61 – fcp fcs5
    

  3. Map tsm1 vfchost60 adapter to physical FC adapter fcs4 on vio2.
    	$ vfcmap –vadapter vfchost60 – fcp fcs4
    

  4. Map tsm1 vfchost61 adapter to physical FC adapter fcs5 on vio2.
    	$ vfcmap –vadapter vfchost61 –fcp fcs5
    

Next we used DLPAR (using the following procedure) to update the client LPAR with four new virtual FC adapters. Please make sure you read the procedure on adding a virtual FC adapter to client LPAR. If care is not taken, the WWPNs for a client LPAR can be lost, which can result in loss of connectivity to your SAN storage. You may also want to review the HMC's chsyscfg command, as it is possible to use this command to modify WWPNs for an LPAR.

After running the cfgmgr command on the LPAR, we confirmed we had four new virtual FC adapters. We ensured that we saved the LPARs current configuration, as outlined in the procedure.

# lsdev –Cc adapter  grep fcs
fcs0 Available 30-T1  Virtual Fibre Channel Client Adapter
fcs1 Available 31-T1  Virtual Fibre Channel Client Adapter
fcs2 Available 32-T1  Virtual Fibre Channel Client Adapter
fcs3 Available 33-T1  Virtual Fibre Channel Client Adapter
fcs4 Available 34-T1  Virtual Fibre Channel Client Adapter
fcs5 Available 35-T1  Virtual Fibre Channel Client Adapter
fcs6 Available 36-T1  Virtual Fibre Channel Client Adapter
fcs7 Available 37-T1  Virtual Fibre Channel Client Adapter


On both VIOS, we confirmed that the physical to virtual mapping on the FC adapters was correct using the lsmap –all –npivcommand. Also checking that client LPAR had successfully logged into the SAN by noting the Status: LOGGED_IN entry in thelsmap output for each adapter.

vio1:
Name Physloc ClntID ClntName  ClntOS
------------- ---------------------------------- ------ -------------- -------
vfchost60  U8233.E8B.06XXXXX-V1-C60  6 tsm1  AIX

Status:LOGGED_IN
FC name:fcs4  FC loc code:U5877.001.0084548-P1-C2-T1
Ports logged in:1
Flags:a<LOGGED_IN,STRIP_MERGE>
VFC client name:fcs4  VFC client DRC:U8233.E8B.06XXXXX-V4-C34-T1

Name Physloc ClntID ClntName  ClntOS
------------- ---------------------------------- ------ -------------- -------
vfchost61  U8233.E8B.06XXXXX-V1-C61  6 tsm1  AIX

Status:LOGGED_IN
FC name:fcs5  FC loc code:U5877.001.0084548-P1-C2-T2
Ports logged in:1
Flags:a<LOGGED_IN,STRIP_MERGE>
VFC client name:fcs5    VFC client DRC:U8233.E8B.06XXXXX-V4-C35-T1


vio2:
Name Physloc ClntID ClntName  ClntOS
------------- ---------------------------------- ------ -------------- -------
vfchost60  U8233.E8B.06XXXXX-V2-C60         6 tsm1  AIX

Status:LOGGED_IN
FC name:fcs4  FC loc code:U5877.001.0084548-P1-C5-T1
Ports logged in:1
Flags:a<LOGGED_IN,STRIP_MERGE>
VFC client name:fcs6  VFC client DRC:U8233.E8B.06XXXXX-V4-C36-T1

Name Physloc ClntID ClntName  ClntOS
------------- ---------------------------------- ------ -------------- -------
vfchost61  U8233.E8B.06XXXXX-V2-C61  6 tsm1  AIX

Status:LOGGED_IN
FC name:fcs5              FC loc code:U5877.001.0084548-P1-C5-T2
Ports logged in:1
Flags:a<LOGGED_IN,STRIP_MERGE>
VFC client name:fcs7  VFC client DRC:U8233.E8B.06XXXXX-V4-C37-T1


We were able to capture the WWPNs for the new adapters at this point. This information was required to zone the tape drives to the system.

# for i in 4 5 6 7
> do
> echo fcs$i
> lscfg -vpl fcs$i | grep Net
> echo
> done
fcs4
  Network Address.............C0507603A2720087

fcs5
  Network Address.............C0507603A272008B

fcs6
  Network Address.............C0507603A272008C

fcs7
  Network Address.............C0507603A272008D


The IBM Atape device drivers were installed prior to zoning in the TS3310 tape drives.

# lslpp -l | grep -i atape
 Atape.driver  12.2.4.0  COMMITTED  IBM AIX Enhanced Tape and


Then, once the drives had been zoned to the new WWPNs, we ran cfgmgr on the Tivoli Storage Manager LPAR to configure the tape drives.

# lsdev -Cc tape

# cfgmgr
# lsdev -Cc tape
rmt0 Available 34-T1-01-PRI IBM 3580 Ultrium Tape Drive (FCP)
rmt1 Available 34-T1-01-PRI IBM 3580 Ultrium Tape Drive (FCP)
rmt2 Available 35-T1-01-ALT IBM 3580 Ultrium Tape Drive (FCP)
rmt3 Available 35-T1-01-ALT IBM 3580 Ultrium Tape Drive (FCP)
rmt4 Available 36-T1-01-PRI IBM 3580 Ultrium Tape Drive (FCP)
rmt5 Available 36-T1-01-PRI IBM 3580 Ultrium Tape Drive (FCP)
rmt6 Available 37-T1-01-ALT IBM 3580 Ultrium Tape Drive (FCP)
rmt7 Available 37-T1-01-ALT IBM 3580 Ultrium Tape Drive (FCP)
smc0 Available 34-T1-01-PRI IBM 3576 Library Medium Changer (FCP)
smc1 Available 35-T1-01-ALT IBM 3576 Library Medium Changer (FCP)
smc2 Available 37-T1-01-ALT IBM 3576 Library Medium Changer (FCP)


Our new tape drives were now available to Tivoli Storage Manager.

Monitoring virtual FC adapters

Apparently the viostat command on the VIO server allows you to monitor I/O traffic on the vfchost adapters (as shown in the following example).

$  viostat -adapter vfchost3
System configuration: lcpu=8 drives=1 ent=0.50 paths=4 vdisks=20 tapes=0 

tty: tin tout  avg-cpu: % user % sys % idle % iowait physc %
entc
0.0 0.2 0.0 0.2 99.8 0.0  0.0
0.4 

Adapter: Kbps tps Kb_read  Kb_wrtn
fcs1 2.5 0.4 199214  249268 

Adapter: Kbps tps Kb_read  Kb_wrtn
fcs2 0.0 0.0 0  0 

Vadapter: Kbps tps bkread  bkwrtn
vfchost4 0.0 0.0 0.0  0.0 

Vadapter: Kbps tps bkread  bkwrtn
vfchost6 0.0 0.0 0.0  0.0 

Vadapter: Kbps tps bkread  bkwrtn
vfchost5 0.0 0.0 0.0  0.0 

Vadapter: Kbps tps bkread  bkwrtn
vfchost0 0.0 0.0 0.0  0.0 

Vadapter: Kbps tps bkread  bkwrtn
vfchost3 0.0 0.0 0.0  0.0 

Vadapter: Kbps tps bkread  bkwrtn
vfchost2 0.0 0.0 0.0  0.0 

Vadapter: Kbps tps bkread  bkwrtn
vfchost1 0.0 0.0 0.0  0.0


I must admit I had limited success using this tool to monitor I/O on these devices. I am yet to discover why this tool did not report any statistics for any of my vfchost adapters. Perhaps it was an issue with the level of VIOS code we were running?

Fortunately, nmon captures and reports on virtual FC adapter performance statistics on the client LPAR. This is nothing new, as nmon has always captured FC adapter information, but it is good to know that nmon can record the data for both virtual and physical FC adapters.


Figure 7. nmon data for virtual FC adapter usage
Example of nmon data for virtual FC adapter usage 

(View a larger version of Figure 7.)

The fcstat command can be used on the client LPARs to monitor performance statistics relating to buffer usage and overflows on the adapters. For example, the following output indicated that we needed to tune some of the settings on our virtual FC adapters. In particular the following attributes were modified, num_cmd_elems and max_xfer_size.

# fcstat fcs0 | grep -p DMA | grep -p 'FC SCSI'
FC SCSI Adapter Driver Information
  No DMA Resource Count: 580
  No Adapter Elements Count: 0
  No Command Resource Count: 6093967

# fcstat fcs1 | grep -p DMA | grep -p 'FC SCSI'
FC SCSI Adapter Driver Information
  No DMA Resource Count: 386
  No Adapter Elements Count: 0
  No Command Resource Count: 6132098

# fcstat fcs2 | grep -p DMA | grep -p 'FC SCSI'
FC SCSI Adapter Driver Information
  No DMA Resource Count: 222
  No Adapter Elements Count: 0
  No Command Resource Count: 6336080

# fcstat fcs3 | grep -p DMA | grep -p 'FC SCSI'
FC SCSI Adapter Driver Information
  No DMA Resource Count: 875
  No Adapter Elements Count: 0
  No Command Resource Count: 6425427


We also found buffer issues (via the fcstat command) on the physical adapters on the VIO servers. We tuned the FC adapters on the VIO servers to match the settings on the client LPARs, such as max_xfer_size=0x200000 and num_cmd_elems=2048.

The fcstat command will report a value of UNKNOWN for some attributes of a virtual FC adapter. Because it is a virtual adapter, it does not contain any information relating to the physical adapter attributes, such as firmware level information or supported port speeds.

# fcstat fcs0
FIBRE CHANNEL STATISTICS REPORT: fcs0
Device Type: FC Adapter (adapter/vdevice/IBM,vfc-client)
Serial Number: UNKNOWN
Option ROM Version: UNKNOWN
Firmware Version: UNKNOWN
World Wide Node Name: 0xC0507603A202007c
World Wide Port Name: 0xC0507603A202007e
FC-4 TYPES:
Supported: 0x0000010000000000000000000000000000000000000000000000000000000000
Active: 0x0000010000000000000000000000000000000000000000000000000000000000
Class of Service: 3
Port Speed (supported): UNKNOWN
Port Speed (running): 8 GBIT
Port FC ID: 0x5D061D


Conclusion

In all that describes my experience with NPIV, Power Systems, Virtual I/O and AIX. I hope you have enjoyed reading this article. Of course, as they say, "there's always more than one way to skin a cat"! So please feel free to contact me and share your experiences with this technology, I'd like to hear your thoughts and experiences.


Resources

Learn

Get products and technologies

  • Try out IBM software for free. Download a trial version, log into an online trial, work with a product in a sandbox environment, or access it through the cloud. Choose from over 100 IBM product trials.

Discuss





블로그 이미지

Melting

,

http://www-01.ibm.com/support/docview.wss?uid=isg3T1012452


간단하게 따라하기에는 역시 Technote가 짱~



PowerVM NPIV / IBM Switch Configuration


Technote (troubleshooting)


Problem(Abstract)


What is NPIV?

NPIV is an industry standard technology that provides the capability to assign a
physical Fibre Channel adapter to multiple unique world wide port names
(WWPN). To access physical storage from a SAN, the physical storage is
mapped to logical units (LUNs) and the LUNs are mapped to the ports of physical
Fibre Channel adapters. Then the Virtual I/O Server uses the maps to connect
the LUNs to the virtual Fibre Channel adapter of the virtual I/O client.

Symptom

How to configure NPIV


Environment

Minimum NPIV Requirements

Diagnosing the problem

You must meet the following requirements to set up and use NPIV.

1. Hardware

Any POWER6-based system or higher

Note: IBM intends to support N_Port ID Virtualization (NPIV) on the
POWER6 processor-based Power 595, BladeCenter JS12, and
BladeCenter JS22 in 2009

Install a minimum System Firmware level of EL340_039 for the IBM Power
520 and Power 550, and EM340_036 for the IBM Power 560 and IBM
Power 570

Minimum of one 8 Gigabit PCI Express Dual Port Fibre Channel Adapter
(Feature Code 5735)
Check the latest available firmware for the adapter at:
http://www.ibm.com/support/us/en

Select Power at the support type, then go to Firmware updates.

NPIV-enabled SAN switch

Only the first SAN switch which is attached to the Fibre Channel adapter in
the Virtual I/O Server needs to be NPIV-capable. Other switches in your
SAN environment do not need to be NPIV-capable.

2. Software

HMC V7.3.4, or later
Virtual I/O Server Version 2.1 with Fix Pack 20.1, or later
AIX 5.3 TL9, or later
AIX 6.1 TL2, or later
SDD 1.7.2.0 + PTF 1.7.2.2
SDDPCM 2.2.0.0 + PTF v2.2.0.6
SDDPCM 2.4.0.0 + PTF v2.4.0.1

Note: At the time of writing, only the 8 Gigabit PCI Express Dual Port
Fibre Channel Adapter (Feature Code 5735) was announced.

Note: Check, with the storage vendor, whether your SAN switch is
NPIV-enabled.

For information about IBM SAN switches, refer to Implementing an
IBM/Brocade SAN with 8 Gbps Directors and Switches, SG24-6116,
and search for NPIV.

Use the latest available firmware level for your SAN switch.

Resolving the problem

Configuring IBM NPIV and Switch for Virtualization


1. On the SAN switch, you must perform two tasks before it can be used for
NPIV.

a. Update the firmware to a minimum level of Fabric OS (FOS) 5.3.0. To
check the level of Fabric OS on the switch, log on to the switch and run the
version command, as shown in Example 2-20:

Example 2-20 version command shows Fabric OS level
itsosan02:admin> version
Kernel: 2.6.14
Fabric OS: v5.3.0
Made on: Thu Jun 14 19:04:02 2007
Flash: Mon Oct 20 12:14:10 2008
BootProm: 4.5.3

Note: You can find the firmware for IBM SAN switches at:
http://www-03.ibm.com/systems/storage/san/index.html

Click Support and select Storage are network (SAN) in the Product
family. Then select your SAN product.

b. After a successful firmware update, you must enable the NPIV capability
on each port of the SAN switch. Run the portCfgNPIVPort command to
enable NPIV on port 16:

itsosan02:admin> portCfgNPIVPort 16, 1
The portcfgshow command lists information for all ports, as shown in
Example 2-21.

Example 2-21 List port configuration
itsosan02:admin> portcfgshow
Ports of Slot 0 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
-----------------+--+--+--+--+----+--+--+--+----+--+--+--+----+--+--+--
Speed AN AN AN AN AN AN AN AN AN AN AN AN AN AN AN AN
Trunk Port ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON
Long Distance .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
VC Link Init .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
Locked L_Port .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
Locked G_Port .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
Disabled E_Port .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
ISL R_RDY Mode .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
RSCN Suppressed .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
Persistent Disable.. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
NPIV capability .. ON ON ON ON ON ON ON ON ON .. .. .. ON ON ON
Ports of Slot 0 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
-----------------+--+--+--+--+----+--+--+--+----+--+--+--+----+--+--+--
Speed AN AN AN AN AN AN AN AN AN AN AN AN AN AN AN AN
Trunk Port ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON ON
Long Distance .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
VC Link Init .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
Locked L_Port .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
Locked G_Port .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
Disabled E_Port .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
ISL R_RDY Mode .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
RSCN Suppressed .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
Persistent Disable.. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
NPIV capability ON .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
where AN:AutoNegotiate, ..:OFF, ??:INVALID,
SN:Software controlled AutoNegotiation.

Note: Refer to your SAN switch users guide for the command to enable
NPIV on your SAN switch.

2. Follow these steps to create the virtual Fibre Channel server adapter in the
Virtual I/O Server partition.

a. On the HMC, select the managed server to be configured:
Systems Management → Servers → <servername>

b. Select the Virtual I/O Server partition on which the virtual Fibre Channel
server adapter is to be configured. Then select Tasks → Dynamic
Logical Partitioning → Virtual Adapters as shown in Figure 2-18.



c. To create a virtual Fibre Channel server adapter, select Actions 
Create → Fibre Channel Adapter... as shown in Figure 2-19.



d. Enter the virtual slot number for the Virtual Fibre Channel server adapter.
Then select the Client Partition to which the adapter may be assigned, and
enter the Client adapter ID as shown in Figure 2-20. Click Ok.



e. Click OK.

f. Remember to update the profile of the Virtual I/O Server partition so that
the change will be reflected across restarts of the partitions. As an
alternative, you may use the Configuration → Save Current
Configuration option to save the changes to the new profile

3. Follow these steps to create virtual Fibre Channel client adapter in the virtual
I/O client partition.
a. Select the virtual I/O client partition on which the virtual Fibre Channel
client adapter is to be configured. Then select Tasks → Configuration 
Manage Profiles as shown in Figure 2-22.



b. To create a virtual Fibre Channel client adapter select the profile, select
Actions → Edit. Then expand the Virtual Adapters tab and select
Actions → Create → Fibre Channel Adapter as shown in Figure 2-23.



c. Enter the virtual slot number for the Virtual Fibre Channel client adapter.
Then select the Virtual I/O Server partition to which the adapter may be
assigned and enter the Server adapter ID as shown in Figure 2-24. Click
OK.



d. Click OK → OK → Close.

4. Logon to the Virtual I/O Server partition as user padmin.

5. Run the cfgdev command to get the virtual Fibre Channel server adapter(s)
configured.

6. The command lsdev -dev vfchost* lists all available virtual Fibre Channel
server adapters in the Virtual I/O Server partition before mapping to a
physical adapter, as shown in Example 2-22.

Example 2-22 lsdev -dev vfchost* command on the Virtual I/O Server
$ lsdev -dev vfchost*
name status description
vfchost0 Available Virtual FC Server Adapter

7. The lsdev -dev fcs* command lists all available physical Fibre Channel
server adapters in the Virtual I/O Server partition, as shown in Example 2-23.

Example 2-23 lsdev -dev fcs* command on the Virtual I/O Server
$ lsdev -dev fcs*
name status description
fcs0 Available 4Gb FC PCI Express Adapter (df1000fe)
fcs1 Available 4Gb FC PCI Express Adapter (df1000fe)
fcs2 Available 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)
fcs3 Available 8Gb PCI Express Dual Port FC Adapter (df1000f114108a03)

8. Run the lsnports command to check the Fibre Channel adapter NPIV
readiness of the adapter and the SAN switch. Example 2-24 shows that the
fabric attribute for the physical Fibre Channel adapter in slot C6 is set to 1.

This means the adapter and the SAN switch is NPIV ready. If the value is
equal 0, then the adapter or SAN switch is not NPIV ready and you should
check the SAN switch configuration.

Example 2-24 lsnports command on the Virtual I/O Server
$ lsnports
name physloc fabric tports aports swwpns awwpns
fcs3 U789D.001.DQDYKYW-P1-C6-T2 64 63 2048 2046

9. Before mapping the virtual FC adapter to a physical adapter, get the vfchost
name of the virtual adapter you created and the fcs name for the FC adapter
from the previous lsdev commands output.

10.To map the virtual adapters vfchost0 to the physical Fibre Channel adapter
fcs3, use the vfcmap command as shown in Example 2-25.

Example 2-25 vfcmap command with vfchost2 and fcs3
$ vfcmap -vadapter vfchost0 -fcp fcs3
vfchost0 changed


11.To list the mappings use the lsmap -npiv -vadapter vfchost0 command, as
shown in Example 2-26.

Example 2-26 lsmap -npiv -vadapter vfchost0 command
$ lsmap -npiv -vadapter vfchost0
Name Physloc ClntID ClntName ClntOS
============= ================================== ====== ============== =======
vfchost0 U9117.MMA.101F170-V1-C31 3
Status:NOT_LOGGED_IN
FC name: FC loc code:
Ports logged in:0
Flags:1<NOT_MAPPED,NOT_CONNECTED>
VFC client name: VFC client DRC:

12.After you have created the virtual Fibre Channel server adapters in the Virtual
I/O server partition and in the virtual I/O client partition, you need to do the
correct zoning in the SAN switch. Follow the next steps:

a. Get the information about the WWPN of the virtual Fibre Channel client
adapter created in the virtual I/O client partition.

i. Select the appropriate virtual I/O client partition, then click Task 
Properties. Expand Virtual Adapters tab, select the Client Fibre
Channel client adapter and then select Actions → Properties to list
the properties of the virtual Fibre Channel client adapter, as shown in
Figure 2-25.



ii. Figure 2-26 shows the properties of the virtual Fibre Channel client
adapter. Here you can get the WWPN that is required for the zoning.



b. Logon to your SAN switch and create a new zoning, or customize an
existing one.

The command zoneshow, which is available on the IBM 2109-F32 switch,
lists the existing zones as shown in Example 2-27.

Example 2-27 The zoneshow command before adding a new WWPN
itsosan02:admin> zoneshow
Defined configuration:
cfg: npiv vios1; vios2
zone: vios1 20:32:00:a0:b8:11:a6:62; c0:50:76:00:0a:fe:00:18
zone: vios2 C0:50:76:00:0A:FE:00:12; 20:43:00:a0:b8:11:a6:62
Effective configuration:
cfg: npiv
zone: vios1 20:32:00:a0:b8:11:a6:62
c0:50:76:00:0a:fe:00:18
zone: vios2 c0:50:76:00:0a:fe:00:12
20:43:00:a0:b8:11:a6:62

To add the WWPN c0:50:76:00:0a:fe:00:14 to the zone named vios1,
execute the following command:

itsosan02:admin> zoneadd "vios1", "c0:50:76:00:0a:fe:00:14"

To save and enable the new zoning, execute the cfgsave and cfgenable
npiv commands, as shown in Example 2-28 on page 76.

Example 2-28 The cfgsave and cfgenable commands
itsosan02:admin> cfgsave

You are about to save the Defined zoning configuration. This
action will only save the changes on Defined configuration.
Any changes made on the Effective configuration will not
take effect until it is re-enabled.

Do you want to save Defined zoning configuration only? (yes, y, no, n): [no]
y
Updating flash ...
itsosan02:admin> cfgenable npiv
You are about to enable a new zoning configuration.
This action will replace the old zoning configuration with the
current configuration selected.
Do you want to enable 'npiv' configuration (yes, y, no, n): [no] y
zone config "npiv" is in effect
Updating flash ...

With the zoneshow command you can check whether the added WWPN is
active, as shown in Example 2-29.

Example 2-29 The zoneshow command after adding a new WWPN
itsosan02:admin> zoneshow

Defined configuration:

cfg: npiv vios1; vios2

zone: vios1 20:32:00:a0:b8:11:a6:62; c0:50:76:00:0a:fe:00:18;
c0:50:76:00:0a:fe:00:14

zone: vios2 C0:50:76:00:0A:FE:00:12; 20:43:00:a0:b8:11:a6:62

Effective configuration:

cfg: npiv
zone: vios1 20:32:00:a0:b8:11:a6:62
c0:50:76:00:0a:fe:00:18
c0:50:76:00:0a:fe:00:14
zone: vios2 c0:50:76:00:0a:fe:00:12
20:43:00:a0:b8:11:a6:62

c. After you have finished with the zoning, you need to map the LUN
device(s) to the WWPN. In our example the LUN named NPIV_AIX61 is
mapped to the Host Group named VIOS1_NPIV, as shown in Figure 2-27.



13.Activate your AIX client partition and boot it into SMS.

14.Select the correct boot devices within SMS, such as a DVD or a NIM Server.

15.Continue to boot the LPAR into the AIX Installation Main menu.

16.Select the disk where you want to install the operating system and continue to
install AIX.





블로그 이미지

Melting

,

역시 Infocenter 짱~이에요. ㅎㅎ


mkvdev -sea ent6 -vadapter ent2,ent3,ent4 -default ent2 -defaultid 2 -attr ha_mode=auto ctl_chan=ent5





블로그 이미지

Melting

,

PowerVM new Redbooks

IBM Power 2013. 6. 28. 14:29

진작 있었으면 좋았을건만... 이제라도 꽤 괜찮은 RedBook 이 나온듯...



sg247590 - IBM PowerVM Virtualization Managing and Monitoring.pdf


sg247940 - IBM PowerVM Virtualization Introduction and Configuration.pdf


블로그 이미지

Melting

,

+. USB port installation on AIX Partition

   a. Configure the USB bridge (DLPAR/LPAR Configuration)

      PCI-to-PCI bridge (Physical I/O) to AIX Partition

   b. Configure the USB port

      # cfgmgr

 # lsdev -C | grep usb

 


+. mksysb backup to the USB memory stick

a. mksysb -mieX /dev/usbms0  (using mksysb cli)


b. smitty mksysb (using smit)

 # smitty mksysb

   > Back DEVICE or FILE : /dev/usbms0

+. Deconfigure the USB meory stick

    a. lsdev -C | grep usb

       -----------------------------------

usb0 Available USB System Software

usbhc0 Available 00-08 USB Host Controller (33103500)

usbhc1 Available 00-09 USB Host Controller (33103500)

usbhc2 Available 00-0a USB Enhanced Host Controller (3310e000)

usbms0 Available 2.3 USB Mass Storage

       -----------------------------------

    b. lsdev -l usbhc0 -F parent     (USB Host Controller)

    c. lsdev -l usb0 -F parent       (USB System Software)

    d. rmdev -dl pci0 -R ; rmdev -dl usb0 -R 

    e. cfgmgr 

    f. lsdev -C | grep usb

+. Restoring the AIX system for usb memory stick

    a. Start the LPAR into SMS mode

b. Select Boot Options > Select Install/Boot Device 

     > List all Devices > select option with USB disk

 > Normal Mode Boot > exit 'SMS Mode'

 > AIX Installation


블로그 이미지

Melting

,




sg248080 - IBM Power Systems Performance Guide - Implementing and Optimizing.pdf


블로그 이미지

Melting

,

- http://pic.dhe.ibm.com/infocenter/powersys/v3r1m5/topic/iphb1/iphb1_vios_configuring_sea.htm


Configuring a Shared Ethernet Adapter

Find instructions for configuring Shared Ethernet Adapters.

Before you can configure a Shared Ethernet Adapter, you must first create the adapter using the Hardware Management Console (HMC). For instructions, see Creating a virtual Ethernet adapter using HMC version 7.

To configure a Shared Ethernet Adapter using the HMC, version 7 release 3.4.2 or later, see Creating a shared Ethernet adapter for a Virtual I/O Server logical partition using the Hardware Management Console.

To configure a Shared Ethernet Adapter using versions prior to the HMC, version 7 release 3.4.2, complete the following steps from the Virtual I/O Server command-line interface:

  1. Verify that the virtual Ethernet trunk adapter is available by running the following command:
    lsdev -virtual
  2. Identify the appropriate physical Ethernet adapter that will be used to create the Shared Ethernet Adapter by running the following command:
    lsdev -type adapter
    Notes:
    • Ensure that TCP/IP is not configured on the interface for the physical Ethernet adapter. If TCP/IP is configured, the mkvdev command in the next step fails.
    • You can also use a Link Aggregation, or EtherChannel, device as the Shared Ethernet Adapter.
    • If you plan to use the Host Ethernet Adapter or Integrated Virtual Ethernet with the Shared Ethernet Adapter, ensure that you use the Logical Host Ethernet Adapter to create the Shared Ethernet Adapter.
  3. Configure the Shared Ethernet Adapter by running the following command:
    mkvdev -sea target_device -vadapter virtual_ethernet_adapters \
    -default DefaultVirtualEthernetAdapter -defaultid SEADefaultPVID
    Where:
    target_device
    The physical adapter being used as part of the Shared Ethernet Adapter device.
    virtual_ethernet_adapters
    The virtual Ethernet adapter or adapters that will use the Shared Ethernet Adapter.
    DefaultVirtualEthernetAdapter
    The default virtual Ethernet adapter used to handle untagged packets. If you have only one virtual Ethernet adapter for this logical partition, use it as the default.
    SEADefaultPVID
    The PVID associated with your default virtual Ethernet adapter.
    For example:
    • To create Shared Ethernet Adapter ent3 with ent0 as the physical Ethernet adapter (or Link Aggregation) and ent2 as the only virtual Ethernet adapter (defined with a PVID of 1), type the following command:
      mkvdev -sea ent0 -vadapter ent2 -default ent2 -defaultid 1
    • To obtain the value for the SEADefaultPVID attribute in the mkvdev command, type the following command:
      enstat -all ent2 | grep "Port VLAN ID:"
      Output similar to the following example is displayed:
      Port VLAN ID: 1
  4. Verify that the Shared Ethernet Adapter was created by running the following command:
    lsdev -virtual
  5. Do you plan to access the Virtual I/O Server from the network with the physical device used to create the Shared Ethernet Adapter?
    • Yes: Go to step 6.
    • No: You are finished with this procedure and do not need to complete the remaining steps.
  6. Do you plan to set bandwidth apportioning by defining a Quality of Service (QoS)?
    • Yes: Go to step 11 to enable the Shared Ethernet Adapter device to prioritize traffic.
    • No: Go to step 9 to configure a TCP/IP connection.
  7. Do you plan to define IP addresses on any VLANs other than the VLAN specified by the PVID of the Shared Ethernet Adapter?
    • Yes: Go to step 8 to create VLAN pseudo-devices.
    • No: Go to step 9 to configure a TCP/IP connection.
  8. To configure VLAN pseudo-devices, complete the following steps:
    1. Create a VLAN pseudo-device on the Shared Ethernet Adapter by running the following command:
      mkvdev -vlan TargetAdapter -tagid TagID
      Where:
      • TargetAdapter is the Shared Ethernet Adapter.
      • TagID is the VLAN ID that you defined when creating the virtual Ethernet adapter associated with the Shared Ethernet Adapter.
      For example, to create a VLAN pseudo-device using the Shared Ethernet Adapter ent3 that you just created with a VLAN ID of 1, type the following command:
      mkvdev -vlan ent3 -tagid 1
    2. Verify that the VLAN pseudo-device was created by running the following command:
      lsdev -virtual
    3. Repeat this step for any additional VLAN pseudo-devices that you need.
  9. Run the following command to configure the first TCP/IP connection. The first connection must be on the same VLAN and logical subnet as the default gateway.
    mktcpip -hostname Hostname -inetaddr Address -interface Interface -netmask \
    SubnetMask -gateway Gateway -nsrvaddr NameServerAddress -nsrvdomain Domain
    Where:
    • Hostname is the host name of the Virtual I/O Server
    • Address is the IP address you want to use for the TCP/IP connection
    • Interface is the interface associated with either the Shared Ethernet Adapter device or a VLAN pseudo-device. For example, if the Shared Ethernet Adapter device is ent3, the associated interface is en3.
    • Subnetmask is the subnet mask address for your subnet.
    • Gateway is the gateway address for your subnet.
    • NameServerAddress is the address of your domain name server.
    • Domain is the name of your domain.
    If you do not have additional VLANs, then you are finished with this procedure and do not need to complete the remaining step.
  10. Run the following command to configure additional TCP/IP connections:
    chdev -dev interface -perm -attr netaddr=IPaddress -attr netmask=netmask 
    -attr state=up
    When using this command, enter the interface (enX) associated with either the Shared Ethernet Adapter device or VLAN pseudo-device.
  11. Enable the Shared Ethernet Adapter device to prioritize traffic. Client logical partitions must insert a VLAN priority value in their VLAN header. For AIX® clients, a VLAN pseudo-device must be created over the Virtual I/O Ethernet Adapter, and the VLAN priority attribute must be set (the default value is 0). Do the following steps to enable traffic prioritization on an AIX client:
    1. Set the Shared Ethernet Adapter qos_mode attribute to either strict or loose mode. Use one of the following commands: chdev -dev <SEA device name> -attr qos_mode=strict or chdev -dev <SEA device name> -attr qos_mode=loose. For more information about the modes, see Shared Ethernet Adapter.
    2. From the HMC, create a Virtual I/O Ethernet Adapter for the AIX client with all of the tagged VLANs that are required (specified in the Additional VLAN ID list). Packets sent over the default VLAN ID (specified in the Adapter ID or Virtual LAN ID field) will not be tagged as VLAN; therefore, a VLAN priority value cannot be assigned to them.
    3. On the AIX client, run the smitty vlan command.
    4. Select Add a VLAN.
    5. Select the name of the Virtual I/O Ethernet Adapter created in step 1.
    6. In the VLAN Tag ID attribute, specify one of the tagged VLANs that are configured on the Virtual I/O Ethernet Adapter that you created in step 1.
    7. Specify an attribute value (0 - 7) in the VLAN Priority attribute, which corresponds to the importance the VIOS should give to the traffic sent over that VLAN pseudo-device.
    8. Configure the interface over the VLAN pseudo-device created in step 6.
    Traffic sent over the interface created in step 7 will be tagged as VLAN and its VLAN header will have the VLAN priority value specified in step 6. When this traffic is bridged by a Shared Ethernet Adapter that has been enabled for bandwidth apportioning, the VLAN priority value is used to determine how quickly it should be sent in relation to other packets at different priorities.
The Shared Ethernet Adapter is now configured. After you configure the TCP/IP connections for the virtual adapters on the client logical partitions using the client logical partitions' operating systems, those logical partitions can communicate with the external network.



블로그 이미지

Melting

,