Monday, 25 August 2014

How to configure SAN LUNs on VIOS and LPAR (AIX 6.1)

How to configure SAN LUNs on VIOS and LPAR (AIX 6.1)
Before you begin make sure following tasks have been performed successfully.
1-LUN creation on SAN
2-LUN masking on SAN
3-Zoning on Fabric


4-Connect to HMC to check the LPAR ID of your AIX 6.1 system.
5-Now login to your VIOS. (You have to perform following steps on both VIOS)
$lspv will display existing disk on your VIOS.
$ lspv
hdisk0          0xyxysysysyx1bc1                    rootvg          active      
hdisk1          00435804395f9a8                    None                        
$ cfgdev                              (To rescan SAN LUNs)     
$ lspv
hdisk0          0xyxysysysyx1bc1     rootvg          active      
hdisk1          00435804395f9a8     None                        
hdisk2                                         None         <------New LUN has arrived.             
$ oem_setup_env                 (Switch to AIX mode)                               
# chdev -l hdisk2 -a pv=yes  (For Assigning PVID)
# lsattr -El hdisk2  (Verify Unique ID with SAN WWN) 
Switchback to VIOS
$ chdev -dev hdisk2 -attr reserve policy=no_reserve (For Make available Drive on both VIOS)
hdisk2 changed
$ chdev -dev hdisk2 -attr algorithm=round_robin (For Make available Drive on both VIOS)
hdisk2 changed
$ chdev -dev hdisk2 -attr queue_depth=32 (For Highly performance of Disk) 
hdisk2 changed
$ lsmap -all |more                   (client ID/LPAR ID, We Will get vhostX)
$ mkvdev -vdev hdisk2 -vadapter vhostX -dev vanyname      
                                              (For Mapping Hdisk on targeted Vhost/Lpar)
6-Login to LPAR
# lspv
# cfgmgr -vs
# lspv
# bootinfo –s hdisk1 <type required disk name> (Verify the LUNs)
smitty vg  (To Configure Volume Group for newly added LUN)
You can now create the desired filesystems. Please note that AIX will automatically create logical volumes for each filesystem, with default naming convention fslv001,fslv002... )
smitty fs
You can change logical volume names to match your FS names. You need to unmounts the FS first.
# chlv -n archivefslv14                (this will rename fslv14 to archive)
# mount /archive

For more useful articles, please also check out :


No comments:

Post a Comment