Tag Archives: AIX

AIX: Nim Server Commands

To list all the mksysb resources

# lsnim -t mksysb

# lsnim -t spot

To list all the machines

# lsnim -t standalone

OR

# lsnim -c machines

To reset the NIM status of system host-10

# nim -o reset -a force=yes host-10

or

# nim -Fo reset host10

To Force Deallocate all the resources from system host-01

# nim -Fo deallocate -a subclass=all host-01

To rebuild the /etc/niminfo file in the master

# nimconfig -r

To rebuild the /etc/niminof file in the NIM client

# niminit -a master= -a name=

To remove a machine from the NIM environment

# nim -o remove

To define a mksysb resource

# nim -o define -t mksysb -a server=master -a location=file>

To enable Base OS install in a client using mksysb resource

# nim -o bos_inst -a source=mksysb -a spot=spot_53ML4 -a accept_licenses=yes

-a mksysb=file>

 

To add additional software to lppsource1

# nim -o update -a packages=all source=/dev/cd0 lppsource1

To update the spot and lppsource to the latest level

# nim_update_all -l -s -d -u -B

Some useful NIM SMIT Fast paths

smit nim_mkmac # Adding new machines

smit nim_bosinst # For doing BOS install operation on a machine

 

Common NIM Error codes

608 – tftp retrieve of client info file failure

Action If a 608 hang is encountered, verify that the ClientName.info file exists in the /tftpboot directory. If it does not exist, retry the NIM operation to create it. If it does exist, verify that tftp access to the /tftpboot directory is not restricted in the /etc/tftpaccess.ctl file. is also possible that the network adapter was not configured properly in the boot environment

611 – Remote mount of NFS file system failure

Action 611 hangs occur when the client machine is unable to mount a resource from a server. Ensure that NFS is running on the resource server. Verify that the resources specified for the operation are exported properly by checking the /etc/exports and /etc/xtab files on the server. Also, confirm that the resources have permissions set correctly for reading.

613 – Failure setting up route tables

Action 613 hangs usually occur because a route is incorrectly defined for a network in the NIM database. Verify that the correct gateways are specified between networks, and all gateways are functional. Use debug-enabled network boot images to determine which routes could not be defined.

Cheers, 馃檪

Oracle RAC 11g R2 on AIX 7.1 installation issue on irman relink

If you are installing聽Oracle RAC 11g R2 on AIX 7.1, you may have the following error:

You press retry and the installation finish without any more errors. This error will occour on both CRS installation and Database installation.

After that I had a ORA-03113: end-of-file on communication channel聽on dbca database creation.

Checking installation log I found the following error:

0711-780 SEVERE ERROR: Symbol .ksmpfpva

It can happen during installation, re-linking or patching

If the relink error is ignored, the following error is reported when shutting down database:

ORA-03113: end-of-file on communication channel

In instance alert.log:

ORA-07445 [ksmpclrpga()+23248]

Call stack from trace file:

skdstdst ksedst1 ksedst dbkedDefDump ksedmp ssexhd 47dc opidcl opidrv sou2o opimai_real ssthrdmain main start

This problem is also known to generate large core files at the time of hitting ORA-7445 [ksmpclrpga]:
A core file is likely generated in $ORACLE_HOME/dbs

Cause

AIX OS issue.

Solution

The following AIX fix needs to be applied:

For AIX 7.1 apply IFIX IV09541: https://www-304.ibm.com/support/docview.wss?uid=isg1IV09541

At the time of this writing, IBM has pre-built the iFixes and uploaded to:

ftp://public.dhe.ibm.com/aix/efixes/

where the APAR numbers are:

5.3 TL11 – iv10538
5.3 TL12 – iv11158
6.1 TL4 – iv11167
6.1 TL5 – iv10576
6.1 TL6 – iv10539
6.1 TL7 – iv09580
7.1 TL0 – unaffected
7.1 TL1 – iv09541

Once the OS patch is applied, relink oracle binary so it will be effective.

in Oracle Support

This worked for me…

I hope it was useful!!!
Cheers

VIO: Virtual Media Library

Steps:

$ mkrep -sp rootvg -size 8G
Virtual Media Repository Created
Repository created within "VMLibrary" logical volume

We鈥檝e now created an empty VML repository which backs onto the /var/vio/VMLibrary filesystem. You can view the VML repository by running the lsrep command.

Check the VML repository to see the new image available for use.

$ lsrep
Size(mb) Free(mb) Parent Pool         Parent Size      Parent Free
   8158     4865 rootvg                   279552           182272

Name                                    File Size Optical         Access
AIX71base.7100-01-00.1of2.iso                 4040 None            ro

Increase repository:

$ chrep -size 5G +5GB

Command Description:

mkrep Creates a virtual media repository
chrep Changes the characteristics of a virtual media repository
rmrep Removes the virtual media repository
lsrep Displays information about the virtual media repository

mkvopt Creates file-backed virtual optical media
lsvopt Displays information about file-backed virtual optical devices
chvopt Changes the characteristics of a virtual optical media
rmvopt Removes file-backed virtual optical media

mkvdev Creates file-backed virtual optical devices
unloadopt Unloads file-backed virtual optical media from a file-backed virtual optical device
loadopt Loads file-backed virtual optical media from a file-backed virtual optical device

Example to mount an ISO:

$ mkvdev -fbo -vadapter vhost1
vtopt0 Available

Now let鈥檚 load the image from the VML into vtopt0.

$ loadopt -vtd vtopt0 -disk AIX71base.7100-01-00.1of2.iso
$ lsmap -vadapter vhost1
SVSA            Physloc                                      Client Partition ID
--------------- -------------------------------------------- ------------------
vhost1          U9133.55A.066EB4H-V1-C34                     0x00000000

VTD                   vtopt0
Status                Available
LUN                   0x8200000000000000
Backing device        /var/vio/VMLibrary/AIX71base.7100-01-00.1of2.iso
Physloc
Mirrored              N/A

To unload the image.

$ unloadopt -vtd vtopt0

If you鈥檙e prompted for another disk (for example, disc 2 during the AIX install).

$ loadopt -f -vtd vtopt0 -disk AIX7100-01-00.2of2.iso
聽Cheers 馃檪

Configure NTP on AIX 7.1 for Oracle RAC

  1. Verify that you have a server suitable for synchronization. Enter:
  1. # ntpdate -d ip.address.of.server

    The offset must be less than 1000 seconds for聽xntpd聽to synch. If the offset is greater than 1000 seconds, change the time manually on the client and run the聽ntpdate -d聽again.

    If you get the message,聽"no server suitable for synchronization found", verify聽xntpd聽is running on the server (see above) and that no firewalls are blocking port 123.

  2. Specify your聽xntp聽server in聽/etc/ntp.conf, enter:
  1. # vi /etc/ntp.conf

    (Comment out the “broadcastclient” line and add聽server ip.address.of.server prefer.)Leave the聽driftfile聽and聽tracefile聽at their defaults.

  2. Start the聽xntpd聽daemon:
  1. # startsrc -s xntpd

    (Use the聽-x聽flag if it is appropriate for your environment.)

  1. Uncomment聽xntpd聽from聽/etc/rc.tcpip聽so it will start on a reboot.
  1. # vi /etc/rc.tcpip

    Uncomment the following line:

    start /usr/sbin/xntpd "$src_running" "-x"

    NOTE:聽Use the聽-x聽flag to prevent the clock from changing in a negative direction.

  2. Verify that the client is synched.
  1. # lssrc -ls xntpd

    NOTE:聽Sys peer聽should display the IP address or name of your聽xntp聽server. This process may take up to 6 minutes.

in IBM Support

ATENTION!!!

Check your Time Zone settings. We had to change to our Time Zone (Lisbon).

The default value is CST6DST. Run the commad:

smit chtz_user

and change the values to GMT0WET.

Here’s a list of the values you can use:聽http://pic.dhe.ibm.com/infocenter/aix/v6r1/index.jsp?topic=%2Fcom.ibm.aix.files%2Fdoc%2Faixfiles%2Fenvironment.htm

I hope it was useful!!!
Cheers

vmount: Not owner error on Linux NFS Export

While mounting NFS filesystem from AIX node named AIX_LPAR onto Linux NFS server Linux_NFS_server, got the error:

vmount: Not owner

root [AIX_LPAR] /tmp: mount Linux_NFS_Server:/local/home/app/media /mnt
mount: giving up on:
 Linux_NFS_Server:/local/home/app/media
vmount: Not owner

Solution:

Set parameter聽nfs_use_reserved_ports聽to 1 on client AIX_LPAR

root [AIX_LPAR] /tmp: nfso -o nfs_use_reserved_ports=1
Setting nfs_use_reserved_ports to 1
root [AIX_LPAR] /tmp: mount Linux_NFS_Server:/local/home/app/media /mnt

I hope it was useful!!!
Cheers

Optimization WordPress Plugins & Solutions by W3 EDGE