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