Académique Documents
Professionnel Documents
Culture Documents
1 -
Alternate
Disk
Migration
from AIX
5.3
Date: 03/10/2010
Version: 1.0
Pre-Implementation:
1: Login to the target AIX5.3 server and note the machine type and firmware version using
below commands.
/usr/sbin/prtconf
/usr/sbin/lsmcode
2: Go to the below IBM website to use FLRT (Fix Level Recommendation Tool).
http://www14.software.ibm.com/webapp/set2/flrt/
Input the fields as shown in the screen shot and click submit.
Status should be green as shown in the below screen shot. If not contact IBM support and
make sure you can proceed with migration or not.
2
03/10/2010 AIX6.1 - Alternate Disk Migration from AIX 5.3
3
03/10/2010 AIX6.1 - Alternate Disk Migration from AIX 5.3
3: Check for latest frame microcode update available in IBM fix central website.
Follow: http://www-933.ibm.com/support/fixcentral/
Make the selections as shown in the below image and Click Continue:
Select: System firmware. Obtain system firmware only. The power subsystem firmware
will be included if applicable and click Continue.
4
03/10/2010 AIX6.1 - Alternate Disk Migration from AIX 5.3
Select: I know what I want. I am looking for a specific firmware level & click Continue.
From lsmcode output select the “The current temporary system firmware image” and
click Continue.
5
03/10/2010 AIX6.1 - Alternate Disk Migration from AIX 5.3
Click Continue.
6
03/10/2010 AIX6.1 - Alternate Disk Migration from AIX 5.3
7
03/10/2010 AIX6.1 - Alternate Disk Migration from AIX 5.3
Implementation:
Note: Check with Application team and make sure all applications are stopped.
1: Upgrade the Frame Firmware during the outage time using the upgrade procedure
document located at:
3: Run mksysb script on target host as user root (use sudo su – to switch user) and verify that
it completes successfully. Mksysb script can be found in the crontab. Run mksysb with same
syntax as in the crontab.
backup-files.ksh
capture_info.ksh
5: Copy the pre_migration and post_migration scripts from the NIM server to target host:
Location: qaapp01:/export/scripts/
Review both the script output and the files above for any issues.
Note: Due to a bug in the pre-migration scripts – no data in the output directory, if no data
in the /home/migration.date directory, skip and continue the tasks.
/usr/bin/lppchk –v
8
03/10/2010 AIX6.1 - Alternate Disk Migration from AIX 5.3
8: Check the AIX logs for any hardware or software issues with the server that may affect the
upgrade, for example:
/usr/bin/errpt
/usr/bin/tail /var/adm/messages
/usr/bin/alog -f /var/adm/ras/conslog –o
Note: If the Major number is not 10 on your system, contact IBM Tech Support.
lslv -m hd5
hd5:N/A
LP PP1 PV1 PP2 PV2 PP3 PV3
0001 0001 hdisk0 0001 hdisk1
The listing under the “PV1” column indicates on which disk hd5 is located. Other
entries under “PV2”... etc, represent mirrored copies.
11: Verify Server’s Boot Image can be recreated successfully using the hdisk# from above:
If any of these commands fail for any reason, please call the IBM support center for
resolution before proceeding.
This information tells us that hd5 is 1 partition, and that the partition size is XX MB.
This should be enough to contain the boot image.
Your hd5 partitions also do need to be contiguous partitions. Check this by running the
following command:
9
03/10/2010 AIX6.1 - Alternate Disk Migration from AIX 5.3
hdisk0:2 hd5:2
hdisk0:3 hd5:3
You can see in this example that the hd5 logical volume covers the first 3 partitions on
the disk and they are all contiguous. If your partitions are not contiguous, or are not
covered on the first partitions of the disk please call the software support center for
assistance with correcting this. Again, you may only have 1 partition that is large
enough to handle the boot image, or you may have multiple smaller partitions. Either is
fine.
12: Check ipldevice Minor number and make sure it matches with hdisk0 (or Primary Boot
Disk). Example:
/usr/bin/locale
/usr/bin/smitty mle_cc_cust_hdr
16: Verify that the root user has a primary authentication method of SYSTEM.
17: Verify the location of server, if it is in SESF you need to make sure the NIM server
qaapp01 will be able to communicate over maint IP. So accordingly you can change default
gateway on the target host during outage window to be able to migrate it to AIX6.1.
10
03/10/2010 AIX6.1 - Alternate Disk Migration from AIX 5.3
E: Note down the interface where maint is configured and check subnet mask with
below command
F: Delete the default route using: smitty route
Example:
Hit ENTER
G: After removing the default route of main interface, Add new default route so that
maint network is pingable from NIM master.
11
03/10/2010 AIX6.1 - Alternate Disk Migration from AIX 5.3
smitty route
Example:
Hit ENTER.
18: Login to qaapp01 and try to ping the server with <hostname-maint> DNS name and you
should be able to replies to ICMP packets.
19: Make sure and verify the maint interface was changed by CDC support to 1000/full before
proceeding to alternate disk migration. Re-Configure the Maint interface to use 1000FD.
20: On NIM server when you define machine, please specify the <hostname>–maint as
machine name.
21: All other communications from NIM master to Client will be using the <hostname-maint>.
Please use hostname-maint in this document if you are working on a SESF server.
12
03/10/2010 AIX6.1 - Alternate Disk Migration from AIX 5.3
22: Find which disks are Primary and Secondary Boot disks in the rootvg. We will be
performing ALT DISK Migration on the Second disk in the order.
Get the dumplv name that needs to be migrated onto primary disk
/etc/lspv –l hdisk1
/etc/migratepv -l <Dump LV name> hdisk1 hdisk0
/etc/reducevg rootvg hdisk1
/etc/chpv -c hdisk1
13
03/10/2010 AIX6.1 - Alternate Disk Migration from AIX 5.3
27: Enable (Uncomment) shell, login and exec services in /etc/inetd.conf file and change tcp6
to tcp like below.
29: Create .rhosts file in root’s home directory on the Client Machine.
cd /home/root/
cat .rhosts
qaapp01.card.jpmchase.net
31: Verify TCB is disabled on the Client Machine using the following command:
/usr/bin/o dmget -q attribute=TCB_STATE PdAt
32: Login to NIM server qaapp01 and verify you are able to execute remote command using
rsh
rsh <client hostname> date
33: On the NIM server, add the Client’s IP address information to /etc/hosts file.
/usr/bin/smitty nim
14
03/10/2010 AIX6.1 - Alternate Disk Migration from AIX 5.3
15
03/10/2010 AIX6.1 - Alternate Disk Migration from AIX 5.3
35: Login to target host and run the below command to configure niminfo file.
smitty niminit
36: Login into NIM server qaapp01 as root and run the below command to verify nim is able
to communicate properly.
nim –o lslpp
tail –f nohup.out
16
03/10/2010 AIX6.1 - Alternate Disk Migration from AIX 5.3
After you see the above messages in nohup.out alt disk migration is completed.
38: Reboot the client host after adding hdisk1 to the bootlist.
bootlist –m normal hdisk1
bootlist –m normal –o (Should display hdisk1)
shutdown –Fr now
39: Node should boot back up using AIX 6.1 kernel. Verify and fix filesets after node boots up
using AIX6.1
lppchk –v
40: If you get error about bos.dlc.qllc fileset, copy the fileset from qaapp01 and install it.
17
03/10/2010 AIX6.1 - Alternate Disk Migration from AIX 5.3
42: Check if there are any filesets missing to match 6100-02 oslevel. If any missing, Install
them by copying the base filesets from qaapp01:/export/lpp_source/AIX6100-02-BASE.
Back-Out Steps:
1: Mirror back hdisk1 with hdisk0 that has AIX5.3 image. No outage is required if alt disk
migration fails.
Note: Alt disk migration does not require the system to be shutdown and AIX5.3 instance will
be up and running on primary hdisk0 during the migration process and we usually do not have
to reimage using mksysb image.
Post-Migration Configuration
1: Enable TCB:
odmget -q attribute=TCB_STATE PdAt | sed 's/tcb_disabled/tcb_enabled/' |
odmchange -o PdAt -q attribute=TCB_STATE
2: If you encounter issue in adding accounts via useradd command and addUser.pl script:
useradd test
No such file or directory
getDefaultHomeDir[23]: /usr/lib/security/mkuser.default: cannot open
No default group.
Check "/usr/lib/security/mkuser.default" file.
Validate:
useradd testuser
userdel testuser
18
03/10/2010 AIX6.1 - Alternate Disk Migration from AIX 5.3
3: Fileset Validations:
lppchk –v
- Should not return anything.
/usr/sbin/instfix -i | /usr/bin/grep ML
All filesets for 6.1.0.0_AIX_ML were found.
All filesets for 6100-00_AIX_ML were found.
All filesets for 6100-01_AIX_ML were found.
All filesets for 6100-02_AIX_ML were found.
/usr/bin/errpt
/usr/bin/tail /var/adm/messages
/usr/bin/alog -f /var/adm/ras/conslog -o
/usr/lpp/bos/post_migration
This script will perform various upgrade checks, compare pre- and port-upgrade file contents,
and save the output under:
/home/post_migration.TIMESTAMP
compared_saved_configuration_files
filesets_to_be_updated
filesets_updated
software_checksum_verification
software_consistency
software_file_existence_check
software_installed_after_migration
software_link_existence_check
/usr/bin/df -k
7: Check the date and timezone. The timezone will be changed to the timezone that the NIM
server is, so, you may be required to change that back to what it was earlier on your lpar.
/usr/bin/date
/usr/bin/grep TZ /etc/environment
8: Optionally upgrade any AIX filesets & System utilities which are not part of the standard
LPP_SOURCE or ML, such as bash, xlC.*, vac.*, Java SDK, any RPM software, SSH, sudo, etc.
19
03/10/2010 AIX6.1 - Alternate Disk Migration from AIX 5.3
10: Go through the security hardening procedure to ensure that the upgraded server is
compliant. Remember to turn off rsh and rlogin and remove /.rhosts. Remove the NIM server's
entry on /etc/hosts file.
11: Check the saved files for any changes to be rolled back.
/etc/hosts, /etc/inittab, /etc/motd, ifconfig -a, df -k, netstat -rn, netstat -in, /etc/inetd.conf,
/etc/mail/sendmail.cf, /etc/ntp.conf, /etc/rc.net, /etc/rc.nfs, /etc/rc.tcpip, /etc/services,
/etc/syslog.conf etc.
12: Comment the following daemons in /etc/inetd.conf after the migration, if they were not
running on AIX 5.3.
time
daytime
cmsd
wsmserver
xmquery
ttdbserver
shell
login
exec
14: /etc/rc.nfs usually has 'nfsrgyd' enabled after the migration. Disable it if it was not
running earlier.
15: /etc/rc.tcpip is found with portmap and muxatmd enabled after the migration. Please
disable those servcies if they weren't running earlier.
17: /etc/inittab is found with nfs and piobe included as part of startup. Remove them from
/etc/inittab if they weren't enabled earlier.
18: Reboot server for a final time and Start up and test any Applications and Databases.
20: Initiate the mksysb script. Mksysb script can be found in the crontab.
20
03/10/2010 AIX6.1 - Alternate Disk Migration from AIX 5.3
22: Check for the community string on /etc/snmpd.conf and make sure the public is
commented out and vm61bo5 is enabled.
grep –i community /etc/snmpd.conf
#community public
community vm61bo5
25: Disable the tftp and bootp on the nim server once the upgrade is completed. Please make
sure no one in the team performing the migration. Comment the following lines in
/etc/inetd.conf:
refresh -s inetd
30: Login to console and verify you are able to access the server via console.
21
03/10/2010 AIX6.1 - Alternate Disk Migration from AIX 5.3
Final Tasks:
Note: Wait for few days and check with application team before mirroring rootvg.
2: If bootlist command throws an error when run using below syntax after migration.
bootlist -m normal hdisk0 hdisk1
0514-229 bootlist: Multiple boot logical volumes found on disk 'hdisk1'.
Use the 'blv' attribute to specify the one from which to boot.
Note: IBM support confirmed that this is a known issue after the alternate disk migration as
bootlist gets confused of having multiple boot logical volumes on hdisk1 and does not create
any issues to the server when you update bootlist with the below command which I
documented in AIX6.1 migration document.
3: To clear the above message we need to follow the below procedure after we mirror the
rootvg with hdisk1 which is AIX6.1 disk and hdisk0.
Verify Boot Device Flag is set to YES for both the disks under rootvg.
22