Wednesday, June 25, 2014

AIX 5.3 to AIX 6.1 using nimadm





 Phase I

Preparing the NIM communication 

NIM server

1. Add the nim client communication details in /etc/hosts
2. lsnim | grep -i <nim client>, if already exist 'nim -o remove <nim-client>
3. Add the NIM client 



smitt nim > Perform NIM Administration Tasks
                  > Manage Machines > Define a Machine
Enter the client hostname (ie <hostname>-admin) used in the /etc/hosts entries
Press <enter>
Look for the NIM Network to have been automatically detected:
*   NIM Network                                       ent_10-198-10-10
4.

Set “Communication Protocol used by client” to “nimsh”
Press <enter>
 
5.  After nim client (1 and 2 ) completes. test the connection using the below command. 

 [root@nim] # nimquery -a host=<nim client>

This will returns the nim client network configuration details (IP, Mask and Gateway)

NIM client 

1. Add the nim server communication details in nim client /etc/hosts
2. Initialize nimsh



 [root@nimclient] # mv /etc/niminfo /etc/niminfo.orig
# niminit –a name=<client name> -a master=<nim master name> -a connect=nimsh



Output: you will get the below output

0513-059 The nimsh Subsystem has been started. Subsystem PID is 823436

3. /usr/lpp//bos/pre_migration  - Run this and keep the migration pre-check output files on nim server.


Phase II

 
Prerequisites

* Create a dummy vg on nim server named as cachevg, the disk size should be more or equal to the nimclient rootvg.
* Take mksysb, alt_disk_clone and datavg backups through any backup tools/technique.
* Break the root mirror on nim client and keep the disk ready for the upgrade.

NIM Client
 
1. Check for the consistency and commit if any existing applied filesets 
 
lppchk -v 
installp -c all 

2. Save current ssh configuration 

                 # cd /etc/ssh
                 # tar –cf ssh.tar ssh_host_*
                 # chmod 600 ssh.tar

               3. After break the mirror - hdisk1 is ready for the nim upgrade from AIX 5.3 to AIX 6.1

               4. Automatically bootlist will change to the new AIX 6.1 disk after nimadm completes phase12 of its migration    
                   process.Reboot the server to bring the server in AIX 6.1.

                   shtdown -Fr 

              5. /usr/lpp/bos/post_migration   - Compare the compatibility packages like Java, ssh, gtar, etc

              
  NIM Server
                

nimadm -V -j <empty vg in nim> -s <AIX 6.1 spot> -l <AIX 6.1 lpp> -Y -d <nim client free disk> -c <nim client name> 2>&a | tee nimclient1.out



[root@nim] # nimadm -V -j cachevg -s spot_6100-04-03 -l lpp_6100-04-02 -Y -d hdisk1 -c ninclient1-admin 2>&1 | tee nimclient1.out


Note:-Run this command in bg and nohup or execute this from HMC, the phase1 to phase12 will take 3-5 hours depends on the network spend and rootvg data. 


*********************************** End ************************************