Friday, January 24, 2020

How to migrate from AIX 6.1 to AIX 7.1 using DVD in aix?

How to migrate from AIX 6.1 to AIX 7.1 using DVD in aix?


chsysstate -m <Frame_name> -r lpar -o shutdown --immed -n <target_lpar>
chsysstate -r lpar -m <frame_name> -o on -f normal -b sms -n <target_lpar>

vtmenu
select the target lpar and connect the console, it will lead you to the SMS menu -
5. select Boot options
1. select Install/Boot Device
3. CD/DVD
5. SATA
1. pci@7OOOOOO2OO0O300/pci2048,06DC@1/sata
1. SATA CD-ROM
2. Normal Mode Boot
1. Yes
Type a 1 and press Enter to use this terminal as the system console
>> 1 Type 1 and press Enter to have English during install.
2 change/show Installation settings and Install
>>>  choice [0]: 1
>>> 3 Migration Install
>>> choice []: 2 (or choose the correct disk)
if everything is fine, then >>> Choice [0):
See the Migration Installation Summary and then  >>> 1 Continue with Install
once you get the Migration Confirmation, then  >>> 0 Continue with the migration.
Then migration starts from the DVD
once the migration is done, please check with “oslevel -s” command.


Note: Do not forget to change the boot mode into normal

Saturday, January 11, 2020

OS migration from 6.1 to 7.1 using NIM server in aix?

OS migration from 6.1 to 7.1 using NIM server in aix?


On the NIM server
==============

lsnim -1 <target_lpar>
nim -o allocate -a lppsource=aix71_TL05_SP02_lppsource -a spot=aix71_TL05_SP02_spot <target_lpar>
nim -o bos_inst -a lppsource=aix71_TL05_SP02_lppsource -a spot=aix71_TL05_SP02_spot -a accept_licenses=yes -a boot_client=no <target_lpar>
lsnim -l <target_lpar>
tail /etc/bootptab

On the HMC
==========
chsysstate -m <frame_name> -r ipar -n <targe-t_lpar_name> —o shutdown --immed
chsysstate -r ipar -m <frame_name> -o on -f Normal -b sms -n <target_lpar_name>

vtmenu
select the target lpar to get into the console
2 - Remote ipl
2 Interpartit Ion logical lun (choose th correct one)
1 - IPv4 Address Format
1 - Bootp
1 - IP parameters (need to fill it up Client lp,Server Ip, gateway ip, subnet mask... sometimes it automatically shows the detalli,ln this case chek the IPs against /et/bootptab)
press escape
3 - ping test
1 - Execute ping test (check the ping test success, now press enter)
M - return to in menu
5 - select boot option
1 - Select Install/boot device
6 -  Network
1 - Bootp
2 - Interpartition Logical LAN
2 - Normal Node Boot
1 - yes
1 - 1 Type 1 and press Ffltrr to have English (During install)
2 - change/show Installation Settings and Install
1 - System Settings
3 - Migration Install
77 - Display More Disk Infore.at ion
77 - Display More Disk Information
Select the correct disk (1-hdisk0)
2 - Primary Language Lnvlronmrnt Settings (After Install):
38 - English (Great Britain) English (ISO8859-t) English (Great Britain)
1 English(Great Britain) KBD ID 168
[0] enter to get into actual migration
1 - Continue with Install

1 - List the saved Base System configuration files which will not be merged into the system. These files are saved in /tmp/bos.
2 list the filesets which will be removed and not replaced
3 List directories which will have all current contents removed

>>>  Choice(0J; 1
>>>  Choiceloj: 2
>> > Cholce[0J: 3
0 - Continue with the migration

Migration starts now

once the migration is done, check the OS level and version
oslevel -s
instfix -i|grep -i ml
lppchk -vm3


Note: Do not forget to change the booting option into Normal mode.
chsysstate -r ipar -m <frame_name> -o on -f Normal -b norm -n <target_lpar_name>


How to recover the root password from maintenance mode in aix?

How to recover the root password from maintenance mode in aix?



On the NIM server
=================

lsnim -1 <target_lpar_name>    (If the machine not defined, then defined it using smitty nim)
lsnim -1 <target_lpar_name>    (check “Cstate= ready for a NIM operation”)
smitty nim_mac_op           (Select Client/Spot and enable a machine to boot in maintenance mode)
lsnlm -1 <target_lpar_name>    (Check cstate - maintenance boot has been enabled)
cat /etc/bootptab

On the HMC
===========

chsysstate -m <frame_name> -r ipar -n <targe-t_lpar_name> —o shutdown --immed
chsysstate -r ipar -m <frame_name> -o on -f Normal -b sms -n <target_lpar_name>

vtmenu
select the target lpar to get into the console

2. Setup Remote IPI. (Initial Program load)
Choose the proper Interpartition Logical LAN
1. 1Pv4 Address Format
1. BOOTP
1. IP Parameters

Fill it up the below 
1. Client IP Address/Server IP Address/Gateway IP Address/Subnet Mask

Once done ESC key — return to previous screen
3. Ping Test
1. Execute Ping Test

once ping test successful, Press any key to continue
Press M = return to Main Menu
5. Select Boot Options
1. Select Install/Boot Device
6. Network
1. Bootp

Now select Interpartition logical LAN
2. Normal Mode Boot
1 Yes

You will see Elapsed time since release of system processors and welcome to aix board
Type a 1 and press Enter to use this terminal as the system console. (>>> Choice [1): enter)

>>> I Access a Root Volume Group ( >>> Choice [1): Enter)
0 Continue
Now select the root volume group disk (Now you could see the volume group info)
1) Accss this Volume Group and start a sheji

now you will get the promt (#)

passwd root
changing password for “root”
root's New password:
Re-enter roots new password: -
# sync;sync;sync;reboot


Saturday, December 7, 2019

VCS Administration with commands

VCS Administration with command line




VCS Quick-start wizard                   
# $VCS_HOME/wizards/config/quick_start
VCS Quick-NFS wizard                    
# $VCS_HOME/wizards/services/quick_nfs
Verify LLT                              
# /sbin/llstat -n
Get interface MAC Address               
# /opt/VRTSllt/getmac device_name
Check network connectivity              
# /opt/VRTSllt/dlpiping -s|-c -v device_name
Verify GAB                              
# /sbin/gabconfig -a ; /sbin/gabconfig -l
List systems in cluster                 
# /opt/VRTSvcs/bin/hasys -list
Detailed info on each cluster node      
# /opt/VRTSvcs/bin/hasys -display (sysname)
Increase system count in gabtab startup 
# /opt/VRTSvcs/bin/hasys -add (sysname)
Delete a system                         
# /opt/VRTSvcs/bin/hasys -delete (sysname)
Start VCS cluster                       
# /opt/VRTSvcs/bin/hastart
Force start a stale VCS cluster         
# /opt/VRTSvcs/bin/hastart -force -stale
Stop VCS on all systems                 
# /opt/VRTSvcs/bin/hastop -all
Stop VCS had, keep srvc-groups running  
# /opt/VRTSvcs/bin/hastop -local -force
Stop VCS, migrate srvc-groups to sysname
# /opt/VRTSvcs/bin/hastop -sys (sysname) -evacuate
Provide continual status of service grps
# /opt/VRTSvcs/bin/hastatus
Verify status of service groups         
# /opt/VRTSvcs/bin/hastatus -summary
Check for syntax errors in main.cf      
# /opt/VRTSvcs/bin/hacf -verify /etc/VRTSvcs/conf/config/main.cf
Generate dependency tree in main.cf     
# /opt/VRTSvcs/bin/hacf -generate /etc/VRTSvcs/conf/config/main.cf
List all resources                      
# /opt/VRTSvcs/bin/hares -list
List a resource's dependencies          
# /opt/VRTSvcs/bin/hares -dep (resource_name)
Get detailed info on a resource         
# /opt/VRTSvcs/bin/hares -display (resource)
Add a resource                          
# /opt/VRTSvcs/bin/hares -add (resource_name (resource_type (service_group)
Modify attributes of the new resource   
# /opt/VRTSvcs/bin/hares -modify (resource_name (attribute_name (value)
Delete a resource                       
# /opt/VRTSvcs/bin/hares -delete (resource_name)
Online a resource                       
# /opt/VRTSvcs/bin/hares -online (resource_name) -sys (system_name)
Offline a resource                      
# /opt/VRTSvcs/bin/hares -offline (resource_name) -sys (system_name)
Monitor resource on a system            
# /opt/VRTSvcs/bin/hares -probe (resource_name) -sys (system_name)
Clear a faulted resource                 
# /opt/VRTSvcs/bin/hares -clear (resource_name) [-sys system_name]
Make a resource's attribute value local 
# /opt/VRTSvcs/bin/hares -local (resource_name) (attribute_name) value)
Make a resource's attribute value global
# /opt/VRTSvcs/bin/hares -global (resource_name) (attribute_name) value)
Specify a dependency between 2 resources
# /opt/VRTSvcs/bin/hares -link (parent_res) (child_res)
Remove dependency between 2 resources   
# /opt/VRTSvcs/bin/hares -unlink (parent_res) (child_res)
Modify a Share res. by adding options   
# /opt/VRTSvcs/bin/hares Share_cicgt-as4-p_apps Options "%-o rw,root=dcsa-cln1"
List all service groups                 
# /opt/VRTSvcs/bin/hagrp -list
List a service group's resources         
# /opt/VRTSvcs/bin/hagrp -resources [service_group]
List a service group's dependencies     
# /opt/VRTSvcs/bin/hagrp -dep [service_group]
Detailed info about a service group     
# /opt/VRTSvcs/bin/hagrp -display [service_group]
Start service group, bring res. online  
# /opt/VRTSvcs/bin/hagrp -online (service_group) -sys (system_name)
Stop service group, bring res. offline  
# /opt/VRTSvcs/bin/hagrp -offline (service_group) -sys (system_name)
Switch service group between nodes      
# /opt/VRTSvcs/bin/hagrp -switch (service_group) -to (system_name)
Freeze svcgroup, (disable onl. & offl.) 
# /opt/VRTSvcs/bin/hagrp -freeze (service_group) [-persistent]
Thaw a svcgroup, (enable onl. & offl.)  
# /opt/VRTSvcs/bin/hagrp -unfreeze (service_group) [-persistent]
Enable a service group                  
# /opt/VRTSvcs/bin/hagrp -enable (service_group) [-sys system_name]
Disable a service group                 
# /opt/VRTSvcs/bin/hagrp -disable (service_group) [-sys system_name]
Enable all resources in a service group 
# /opt/VRTSvcs/bin/hagrp -enableresources (service_group)
Disable all resources in a service group
# /opt/VRTSvcs/bin/hagrp -disableresources (service_group)
Specify dependenciy between 2 svc groups
# /opt/VRTSvcs/bin/hagrp -link (parent_group) (child_group) (relationship)
Remove dependenciy between 2 svc groups 
# /opt/VRTSvcs/bin/hagrp -unlink (parent_group) (child_group)
Auto-Enable a servicegroup marked       
# /opt/VRTSvcs/bin/hagrp -autoenable (service_group) [-sys system_name]
List resource types                     
# /opt/VRTSvcs/bin/hatype -list
Detailed info on a resource type        
# /opt/VRTSvcs/bin/hatype -display (resource_type)
List all resources of a part. type      
# /opt/VRTSvcs/bin/hatype -resources (resource_type)
Add a resource type                     
# /opt/VRTSvcs/bin/hatype -add (resource_type)
Set static attribute values             
# /opt/VRTSvcs/bin/hatype -modify ...
Delete a resource type                   
# /opt/VRTSvcs/bin/hatype -delete (resource_type)
Delete a Entry in a Type definition     
# /opt/VRTSvcs/bin/haattr -delete (resource_type) (attribute_name)
Set VCS configuration file to r/w mode  
# /opt/VRTSvcs/bin/haconf -makerw
Set VCS configuration file to read mode 
# /opt/VRTSvcs/bin/haconf -dump -makero
Add a user with r/w access to VCS       
# /opt/VRTSvcs/bin/hauser -add (user_name)
Add a user with read access only to VCS 
# /opt/VRTSvcs/bin/hauser -add VCSGuest
Update a user                           
# /opt/VRTSvcs/bin/hauser -update (user_name)
Delete a user                           
# /opt/VRTSvcs/bin/hauser -delete (user_name)
Display all users                       
# /opt/VRTSvcs/bin/hauser -display
Start agents manually                   
# haagent -start (agent_name) -sys (system_name)
Stop agents manually                    
# haagent -stop (agent_name) -sys (system_name)
Start Cluster Manager                   
# /opt/VRTSvcs/bin/hagui
Start Cluster Manager in debug mode     
# /opt/VRTSvcs/bin/hagui -D