Tuesday, April 7, 2020

Migration issues - niminit command failed in aix?

Migration issues - niminit command failed in aix?



testlpar: # niminit -a master=testnim -a name=testlpar

0042-037 NIMkid: The state of "Hostname and Service name not provided or found" prevents this operation from succeeding.

testlpar: #



Solution:
=======

Logon to the nim server and confirmed that the lpar entry is on the NIM's /etc/hosts file, If not there, then add it., and then define the machine on the nim server, It will fix the issue.


Migration issues - Broken director common agent failure on lppchk output in aix?

Migration issues - Broken director common agent failure on lppchk output in aix?



We are planning to migrate from 7.1.4.5 to 7.1.5.2. When i checked "lppchk -vm3", I can see the below errors.


testlpar: # lppchk -vm3

lppchk: The following filesets need to be installed or corrected to bring the system to a consistent state.

DirectorcommonAgent 6.3.5.0    (usr: COMMITTED, root:BROKEN)

testlpar: #



Solution:
========

We can remove the direcotrcommonagent filesets as it is not required.

testlpar: #  installp -u DirectorCommonAgent

or

testlpar: # installp -ug DirectorCommonAgent



Migration issues - rsh issue on the nimadmvg in aix?

Migration issues - rsh issue on the nimadmvg in aix?


testnim: # nimadm -j nimadmvg -c testlpar -s aix710502_spot -l aix710502_lppsource -d hdisk1 –Y

Initializing the NIM master
Initializing the NIM client testlpar
rshd: 0826-826 The host name for your address is not known
0505-159 nimadm: warning,unexpected result from remote command to testlpar.
0505-153 nimadm: unable to execute remote client commands.
Cleaning up alt_disk_migration on the NIM master.
Done!!!
testnim: #


Troubleshoot
============

testnim: # rsh testlpar uname -a
rshd: 0826-826 The host name for your address is not known.
testnim: #



Solution
========

Check the nim servers details (hostname-IP address) are updated on the client's /etc/hosts and vice versa.

Remove the /etc/niminfo file and recreate with niminit command (If required disable the and enable the rsh again) and then try again.






Migraiton issues: Unable to restart the rsh deamon after we enable the rsh deamon in aix?

Migraiton issues: Unable to restart the rsh deamon after we enable the rsh deamon in aix?


testlpar: # chsubserver -a -v shell -p tcp6 -r inetd
testlpar: # refresh -s inetd
0513-056 Timout waiting for command response. If you specified a foreign host, see the /etc/initta file on the foreign host to verify the SRC deamon (srcmstr) was started with the -r flag to accept the remote requests.
testllpar: #


Solution:
=======

I tried all the possibilities but could not able to fix this. So I rebooted the server and the issue is fixed.

migration issue: After upgrade to AIX 7.1.5.2 - the oslevel showing as downgraded that is 7100-04-06-1806 and lppchk display rpm.rte filesets in broken state.

migration issue: After upgrade to AIX 7.1.5.2 - the oslevel showing as downgraded that is 7100-04-06-1806 and lppchk display rpm.rte filesets in broken state.


testlpar: # lppchk -v
lppchk: the following filesets need to be installed or corrected to bring the system to a consistent state.
rpm.rte 3.0.5.52    (usr: COMMITED, root:BROKEN)
testlpar: #

testlpar: # lslpp -l|grep -i rpm.rte
rpm.rte                 3.0.5.52      COMMITTED     RPM package manager
rpm.rte                 3.0.5.52      BROKEN             RPM Package manager
testlpar: #

Solution:
=======
Mount the 7.1.5.2 lppsource and perform the smitty update_all. It will fix the rpm.rte issue and we will reach to 7.1.5.2



lppchk failed with the lower level of the emc packages in aix?

lppchk failed with the lower level of the emc packages in aix?



lppchk  issue for the lower level of the emc packages.

We have received some filesets consistency issue after we migrated to 7.1.5.2

testlpar# lppchk -vm3
lppchk: The following filesets need to be installed or corrected to bring the system to a consistent state.
bos.rte v<7  (Not installed: requisite fileset)

lppchk: The following descripes  dependencies  from installed filesets on one or more of the filesets to a consistent state.
Fileset EMC.Symmetrix.aix.rte 5.3.0.9 requires bos.rte v<7
Fileset EMC.Symmetrix.fcp.MPIO.rte 5.3.0.9 requires: bos.rte v<7
testlpar#


Solution:

Such issue is related to low level fileset installed on AIX 7.1.

The fileset which is causing such issue are EMC.Symmetrix.aix.rte EMC.Symmetrix.fcp.MPIO.rte. and Fileset EMC.Symmetrix.aix.rte 5.3.0.9 requires: Bos.rte v<7


As all the disks are VSCSI (We can confirm using lsdev -Cc disk) . Hence such fileset is not required by your AIX. (It is recommended to contact EMC to check regarding removal of such fileset)

lppchk -vm3
lslpp -hac |grep bos.mp64
lslpp -hac |grep sddpcm*
lslpp -l|grep -i EMC.Symmetrix.aix.rte
lppchk -vm3
lslpp -l|grep -i emc
lsdev -Cc disk
installp -ug EMC.Symmetrix.aix.rte EMC.Symmetrix.fcp.MPIO.rte
lslpp -l|grep -i emc
lppchk -vm3
lppchk -v
instfix -i!grep -i ml
osleve1 -rI 7100-05



Friday, April 3, 2020

How to extract tar.gz in aix?

How to extract tar.gz in aix?


To extract tar.gz 
==============
gzip -d -c <file_name> | tar -xvf -


Uncompress and untar each package into a separate empty directory, using the following command.

zcat .tar.Z | tar -xf -


How to restart the IVM in aix?

How to restart the IVM in aix?


Please execute the blow commands on the VIO server to restart the IVM

/usr/ios/lpm/sbin/httpdmgr stop
/usr/ios/lpm/sbin/httpdmgr start
/usr/ios/lpm/sbin/httpdmgr status


# /usr/ios/lpm/sbin/httpdmgr status
lwistart.sh is running
Done
#

# /usr/ios/lpm/sbin/httpdmgr stop
Done
#

# /usr/ios/lpm/sbin/httpdmgr start
ready-11

^C# ^C
#exit


Note: IVM is just like the HMC which is used to manage the Blade partition


some important "for loop" script to support in your day-today life (BAU)

Some important "for loop" script to support in your day-today life (BAU) 



To identify the disk size on the server:
for s in `lspv|awk '{print $1'}`;do echo $s `bootinfo -s $s`; done

To identify the lun number of the disks in lpar
for s in `lspv|awk '{print $1'}; do echo $s `odmget CuAt|grep -wp $s|grep -i value|head -1|awk '{print $3'}|cut -c12-15`; done  

To identify the lun number of the disks in vio server.
for s in `lspv|awk '{print $1'}; do echo $s `odmget CuAt|grep -wp $s|grep -i value|head -1|awk '{print $3'}|cut -c8-11`; done

To identify the wwpn of the fcs card:
for s in `lscfg |grep fcs|awk '{print $2'}`; do echo $s `lscfg -vl $s|grep -i netowrk|awk '{print $2'}|cut -c21-37`; done 

To identify the wwpn of the fcs in vio server:
for s in `lsdev -type adapter|grep fcs|awk '{print $1'}`; do echo $s `lsdev -dev $s -vpd|grep Network`; done 

To idenfy the c-slot numer of the disk (It is useful to identify the mapping with vio server)
for s in `lspv|awk '{print $1'}`; do echo $s `lscfg -vl $s|grep -i $s|cut -c42-44`; done    

To get the vhost information of the particular disk on the vio server.
for s ‌in `lsmap -all|grep -p hdiskX|grep -i vtd|awk '{print $2'}`; do lsdev -dev $s -field parent|tail -1; done 


To identify the Ethernet card info on the server (This is useful before you do reboot)
for s in `lsdev -Cc adapter|grep -i ent|awk '{print $1'}`; do echo $s; lsattr -El $s; echo "========================"; done     
for s in `ifconfig -a|grep -i :|awk '{print $1'}|grep -i en|cut -c1-3`; do echo $s; lsattr -El $s; echo "======================"; done   
for s in `lsde v-Cc adapter|grep -i ent|awk '{print $1'}`; do echo $s; entstat -d $s; echo "==========================="; done    

To get the server name against the ip address
for s in `cat server_network`; do echo $s `nslookup $s|grep -i name|awk '{print $4'}`; done  

To get the IP address against the server-name
for s in `cat server_network`; do echo $s `nslookup $s|grep -i address`; done

To enable the failed paths on the server.
for s in `lspath|grep -i failed|awk '{print $2'}`; do chpath -l $s -p `lspath|grep -i failed|awk '{prit $3'} -s Enabled; done   

Thursday, April 2, 2020

How to move the resource group from one node to another in hacmp?

How to move the resource group from one node to another in hacmp?


Using the below steps to move the resource group from one node to another. 

# clshowres     - To get the resource attributes

# clRGinfo   - To check the resource group status like where it is online.

# clRGmove -g testRG -n nodeB -m        - move the testRG to node B

# clRGinfo   - To check the resource group status like whether the RG is moved to nodeB