Quantcast
Channel: UNIX and Linux Forums - AIX
Viewing all 373 articles
Browse latest View live

Use of /etc/hosts files in resolving the dns name

$
0
0
Hello,

For what purpose /etc/hosts file is used.I mean how any request coming to a DNS server or a switch would know that which name and ip are configured in /etc/hosts files of a server?


Best regards,
Vishal

"Please mount volume 2 on /dev/rmt0.1" message during mksysb restore

$
0
0
Dear all

First of all, my English not so good.

We have p52a (production server) and p52a (test server). Tape drives are VXA2.

When both servers were AIX 5.3, mksysb on production server and restoring to test server was OK.

The production server was AIX 5.3 and recently upgraded to AIX 6.1 TL06 sp05 by migration install.

when I did mksysb on production server and then restored to test server, the following message appeared and got stuck:

"Please mount volume 2 on /dev/rmt0.1"
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Of course only one tape media was used and successful when I did mksysb. There was no error log.

I tried different tape medias and changing tape device "block size" also but results were same.

Moreover, I tried mkdvd backup on production server and restored it to test server, but it also didn't work.

When I tried lsmksysb, it shows the content of os backup for a while, but got stuck at following:

Code:

1828485 ./var/adm/messages.1.gz
0 ./var/adm/ml
102 ./var/adm/ml/rc.ml.log
102 ./var/adm/ml/rc.ml.log.previous
0 ./var/adm/nim
Please mount volume 2 on /dev/rmt0.1
... and press Enter to continue Out of memory, malloc() failed.
23288448 ./var/adm/pacct

So, I assume that os backup itself has problem.


I installed AIX 6.1 (new & completed install) and mksysb on test server, then restored it to test server itself was OK.

Please find an attached file for your reference.

Actually, I did mksysb and restoring over 10 years but didn't see this kind of problem.

Anyone can help me?

Thanks in advance!

Moderator's Comments:
edit by bakunin: please use CODE-tags for terminal output too. Thank you.

Attached Images
File Type: jpg restore error.jpg (2.74 MB)

RMstartr.log showing multiple restarts per hour

$
0
0
Hi all,

Google's not helping on this one...

In investigating why /var was filling up I discovered that /var/ct/RMstart.log and RMstop.log were HUGE. On further investigation I discovered that IBM.MgmtDomainRM was restarting several times per hour...

Given that I am Ux Adm for a small IT Co., this is beyond my skills...

Can anyone point me in the right direction to start to understand why this happening and how to resolve this?

The machine in question is a AIX 7.1 VM on Power6

Thanks in advance.

KevB

Below is a sample from each log

Code:

{root} /var/ct> more RMstop.log
RMstop invoked on Thu Oct 16 10:47:47 UTC 2014
Subsys = IBM.MgmtDomainRM
0513-044 The IBM.MgmtDomainRM Subsystem was requested to stop.
RMstop invoked on Thu Oct 16 10:51:47 UTC 2014
Subsys = IBM.MgmtDomainRM
0513-044 The IBM.MgmtDomainRM Subsystem was requested to stop.
RMstop invoked on Thu Oct 16 10:55:47 UTC 2014
Subsys = IBM.MgmtDomainRM
0513-044 The IBM.MgmtDomainRM Subsystem was requested to stop.
RMstop invoked on Thu Oct 16 10:59:47 UTC 2014
Subsys = IBM.MgmtDomainRM
0513-044 The IBM.MgmtDomainRM Subsystem was requested to stop.
RMstop invoked on Thu Oct 16 11:03:47 UTC 2014
Subsys = IBM.MgmtDomainRM
0513-044 The IBM.MgmtDomainRM Subsystem was requested to stop.
RMstop invoked on Thu Oct 16 11:07:47 UTC 2014
Subsys = IBM.MgmtDomainRM
0513-044 The IBM.MgmtDomainRM Subsystem was requested to stop.
RMstop invoked on Thu Oct 16 11:11:47 UTC 2014


.... etc etc



{root} /var/ct> more RMstart.log
RMstart invoked on Thu Oct 16 10:46:15 UTC 2014
RMstart - removing subsystem IBM.MgmtDomainRM

0513-083 Subsystem has been Deleted.
RMstart - creating subsystem with the following parameters:

    -s IBM.MgmtDomainRM -p /usr/sbin/rsct/bin/IBM.MgmtDomainRMd -G rsct_rm -u 0 -R -Q -e /var/ct/IBM.MgmtDomainRM.stderr -o /var/ct/IBM.MgmtDomainRM.stdout

0513-071 The IBM.MgmtDomainRM Subsystem has been added.
RMstart - Subsystem IBM.MgmtDomainRM has been defined.

0513-059 The IBM.MgmtDomainRM Subsystem has been started. Subsystem PID is 13893652.
RMstart invoked on Thu Oct 16 10:50:15 UTC 2014
RMstart - removing subsystem IBM.MgmtDomainRM

0513-083 Subsystem has been Deleted.
RMstart - creating subsystem with the following parameters:

    -s IBM.MgmtDomainRM -p /usr/sbin/rsct/bin/IBM.MgmtDomainRMd -G rsct_rm -u 0 -R -Q -e /var/ct/IBM.MgmtDomainRM.stderr -o /var/ct/IBM.MgmtDomainRM.stdout

0513-071 The IBM.MgmtDomainRM Subsystem has been added.
RMstart - Subsystem IBM.MgmtDomainRM has been defined.

0513-059 The IBM.MgmtDomainRM Subsystem has been started. Subsystem PID is 13893670.
RMstart invoked on Thu Oct 16 10:54:15 UTC 2014
RMstart - removing subsystem IBM.MgmtDomainRM

0513-083 Subsystem has been Deleted.
RMstart - creating subsystem with the following parameters:

    -s IBM.MgmtDomainRM -p /usr/sbin/rsct/bin/IBM.MgmtDomainRMd -G rsct_rm -u 0 -R -Q -e /var/ct/IBM.MgmtDomainRM.stderr -o /var/ct/IBM.MgmtDomainRM.stdout

0513-071 The IBM.MgmtDomainRM Subsystem has been added.
RMstart - Subsystem IBM.MgmtDomainRM has been defined.

0513-059 The IBM.MgmtDomainRM Subsystem has been started. Subsystem PID is 7340144.
RMstart invoked on Thu Oct 16 10:58:15 UTC 2014

... ... etc etc

How to create all files generated in a directory with 644 permissions?

$
0
0
Hi,

We are using AIX machines. How to create all files generated in a directory with 644 permissions automatically.


Regards,
Suresh

First time AIX: question about updates

$
0
0
On HP_UX i download the patches and then install with swinstall
On AIX,i found "service packs" but there are many,i have to install all service packs,or the latest is ok?
Thanks

Please help,how to get serial login?

$
0
0
On other unix system i use enable ttya1 or vi inittab
and add getty line with port and serial.
Here i try
first serials
Code:

lsdev -Cc adapter | grep -i serial
vsa0      Disponibile      Adattatore seriale virtuale LPAR
vsa1      Disponibile      Adattatore seriale virtuale LPAR
penable vty0
init q

But no serial login appears.
Why?

---------- Post updated at 01:18 PM ---------- Previous update was at 11:26 AM ----------

Solution found on net
Code:

chdev -l vty0 -a runmodes='hupcl,cread,brkint,icrnl,opost,tab3,onlcr,isig,icanon,echo,echoe,echok,echoctl,echoke,imaxbel,iexten,clocal' -a logmodes='hupcl,cread,echoe,cs8,clocal' -P
and enable login
Code:

chdev -l vty0 -a login=enable
and enable vty0
Code:

penable vty0
and edit inittab and set
Code:

vty0:2:respawn:/usr/sbin/getty /dev/vty0
in inittab
Works fine

How do I upgrade AIX 7.1.0.3 to 7.1.3.3 without using NIMserver??

$
0
0
Hello Everyone.

I am trying to upgrade one of my servers which is AIX 7.1.0.3 to AIX 7.1.3.3. I have downloaded the fix packs and stored in /tmp/TL3SP3 directory.
I ran inutoc .; bffcreate -ad; inutoc .
then smitty installp
I get an error like this

Code:

Verifying requisites...
                                              COMMAND STATUS

Command: failed        stdout: yes          stderr: no

Before command completion, additional instructions may appear below.

[MORE...736]
    infocenter.man.EN_US.commands 7.1.3.0    # AIX manual commands - U.S. E...
    bos.help.msg.en_US.smit 7.1.3.0          # SMIT Context Helps - U.S. En...

  << End of Warning Section >>

Verifying requisites...done
Results...

FAILURES
--------
  Filesets listed in this section failed pre-installation verification
  and will not be installed.

  Requisite Failures
  ------------------
  SELECTED FILESETS:  The following is a list of filesets that you asked to
  install.  They cannot be installed until all of their requisite filesets
  are also installed.  See subsequent lists for details of requisites.

    bos.loc.com.utf 7.1.3.0                  # Common Locale Support - UTF-8
    bos.loc.utf.EN_US 7.1.3.0                # Base System Locale UTF Code ...

  MISSING REQUISITES:  The following filesets are required by one or more
  of the selected filesets listed above.  They are not currently installed
  and could not be found on the installation media.

    bos.loc.com.utf 7.1.0.0                  # Base Level Fileset
    bos.loc.utf.EN_US 7.1.0.0                # Base Level Fileset

  << End of Failure Section >>


Code:

#instfix -i|grep AIX
    All filesets for 7.1.0.0_AIX_ML were found.
    All filesets for 7100-00_AIX_ML were found.
    Not all filesets for 7100-01_AIX_ML were found.
    Not all filesets for 7100-02_AIX_ML were found.

Code:

#instfix -vick 7100-02_AIX_ML|grep ":-:"
7100-02_AIX_ML:bos.loc.com.utf:7.1.2.0:6.1.8.0:-:AIX 7100-02 Update
7100-02_AIX_ML:bos.loc.utf.EN_US:7.1.2.0:6.1.7.15:-:AIX 7100-02 Update
7100-02_AIX_ML:printers.hplj-4250.rte:7.1.1.0:6.1.7.0:-:AIX 7100-02 Update
7100-02_AIX_ML:printers.hplj-8060.rte:7.1.1.0:6.1.7.0:-:AIX 7100-02 Update
7100-02_AIX_ML:printers.msg.en_US.rte:7.1.1.0:6.1.4.0:-:AIX 7100-02 Update
root@epictrain:/mnt/IBM7tl02sp03_lpp_source>lslpp -L bos.loc.com.utf
  Fileset                      Level  State  Type  Description (Uninstaller)
  ----------------------------------------------------------------------------
  bos.loc.com.utf            6.1.8.0    C    F    Common Locale Support - UTF-8
                              yes

State codes:
 A -- Applied.
#---------------------------------------------------------------------
# No filesets on the media could be used to update the currently
# installed software.
#O -- Obsolete.  (partially migrated to newer version)
# Either the software is already at the same level as on the media, or
# the media contains only filesets which are not currently installed.
#---------------------------------------------------------------------
 F -- Installp Fileset
 P -- Product
 C -- Component
 T -- Feature
 R -- RPM Package
E -- Interim Fix

or is there a better or easier way to upgrade a serevr??

Problem with TL and mp64

$
0
0
Code:

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

  bos.mp64 7.1.2.1                        (BROKEN)

I have the fileset bos.mp64 in a directory
but if try to reinstall give me this error.

Code:

installp -ac -Y  -d . bos.mp64.7.1.2.1.U
+-----------------------------------------------------------------------------+
            Pre-installation Verification...
+-----------------------------------------------------------------------------+
Verifying selections...done
Verifying requisites...done
Results...

FAILURES
--------
  Filesets listed in this section failed pre-installation verification
  and will not be installed.

  Missing Filesets
  ----------------
  The following filesets could not be found on the installation media.
  If you feel these filesets really are on the media, check for typographical
  errors in the name specified or, if installing from directory, check for
  discrepancies between the Table of Contents file (.toc) and the images that
  reside in the directory.

    bos.mp64.7.1.2.1.U                     

  << End of Failure Section >>

+-----------------------------------------------------------------------------+
          BUILDDATE Verification ...
+-----------------------------------------------------------------------------+
Verifying build dates...done
FILESET STATISTICS
------------------
    1  Selected to be installed, of which:
        1  FAILED pre-installation verification
  ----
    0  Total to be installed


Pre-installation Failure/Warning Summary
----------------------------------------
Name                      Level          Pre-installation Failure/Warning
-------------------------------------------------------------------------------
bos.mp64.7.1.2.1.U                        Not found on the installation media

How to solve?Thanks

---------- Post updated at 05:32 PM ---------- Previous update was at 04:54 PM ----------

If i rename bos.mp64 and reinstall with
Code:

installp -acgN -d  . bos.mp64
give this error

Code:

Unpack: file size error..
File ./usr/sbin/kdb_64 original size 8249482,  restored size 8251416
Unpack: internal unpacking error: decode failure

Probably is broken

GPFS NodeData File problem

$
0
0
Hi Everyone

I have configured two node GPFS cluster and it is running fine. But today when I have rebooted one of the node and after starting GPFS one node shows down. on investigating I have checked that mmfsNodeData file is missing from location /var/mmfs/gen/ on one node. I am receiving the following error. Please let me know how to recover it.

Code:

bash-4.2# mmgetstate -a

 Node number  Node name        GPFS state
------------------------------------------
      1      GP1              unknown
      2      GP2              active

bash-4.2# mmrefresh -f
mmrefresh: 6027-1271 Unexpected error from getLocalNodeData: Missing /var/mmfs/gen/mmfsNodeData.  Return code: 1
mmrefresh: 6027-1639 Command failed.  Examine previous error messages to determine cause.

Rlogin=false suggestions to change

$
0
0
Hi,

I have a few user id's that have the need to restrict direct login request so we have rlogin set to false. The only way to login is with su - <user>

is there anyway that I can enable this to accept connections with ssh keys from the system?

basically I want to login as a user on the localhost, then I want to execute:
Code:

ssh <host> -l <user>
If possible I want to only allow 1 user the ability to ssh into the account, and still allow su for everyone else.

Which IP label is used for HeartBeating?

$
0
0
Hi,

In HACMP, which IP label ( Service/ Boot/ Persisten) is used for send/receive Heartbeat packets in IP based Heartbeating?

CDE: why no icons?

$
0
0
Why my cde show no icons?
I have installed

Code:

X11.Dt.ToolTalk          7.1.3.15    C    F    AIX CDE ToolTalk Support
  X11.Dt.adt                7.1.3.0    C    F    AIX CDE Application
  X11.Dt.bitmaps            7.1.0.0    C    F    AIX CDE Bitmaps
  X11.Dt.compat              7.1.0.0    C    F    AIX CDE Compatibility
  X11.Dt.helpinfo            7.1.1.0    C    F    AIX CDE Help Files and Volumes
  X11.Dt.helpmin            7.1.0.0    C    F    AIX CDE Minimum Help Files
  X11.Dt.helprun            7.1.0.15    C    F    AIX CDE Runtime Help
  X11.Dt.lib                7.1.3.15    C    F    AIX CDE Runtime Libraries
                                                  (CDE) 1.0
  X11.Dt.xdt2cde            7.1.0.0    C    F    AIX CDE Migration Tool
  X11.loc.en_US.Dt.rte      7.1.0.0    C    F    CDE Locale Configuration -
  X11.loc.it_IT.Dt.rte      7.1.1.0    C    F    CDE Locale Configuration -
  X11.msg.en_US.Dt.helpmin  7.1.3.0    C    F    AIX CDE Minimum Help Files -
  X11.msg.en_US.Dt.rte      7.1.3.0    C    F    AIX CDE Messages - U.S.
  X11.msg.it_IT.Dt.helpmin  7.1.3.0    C    F    AIX CDE Minimum Help Files -
  X11.msg.it_IT.Dt.rte      7.1.3.0    C    F    AIX CDE Messages - Italian


Attached Images
File Type: png schermata5.png (5.2 KB)

Restore AIX

$
0
0
Suppose this situation.
Old AIX 7.1:i have full backups made with cpio,one for usr,one for var,one for etc,one for home,etc
New AIX 7.1:i have new disks(larger) is possible to restore
cpio archives without problems?
Or i will have problem with odm,lv information stored,etc?

How to check that rpcbind/portmap on AIX allowes updates from non privileged ports?

$
0
0
Hi,

I am trying to implement a service on AIX based on ONCRPC protocal and I want to use a RPC library called oncrpc4j because it is a non-blocked i/o library. I found it works fine on my work machine (WIndows 7) but failed on my AIX work station. The author of oncrpc4j told me that check that rpcbind/portmap on AIX allowes updates from non privileged ports. But I just can find out how to do this, is anybody could provide help? Thank you.

AIX 6.1 error out of memory

$
0
0
i am facing issue in AIX 6.1 when i was running below command i face issued as show attached screenshot

Code:

cat /audit/bin1 /audit/bin2 /audit/trail | auditpr -t 0 -v -h l,r,R,t,c,p,P |\
awk '/\s*audit object write event detected/ {print ll $6} { ll = $0}'


Moderator's Comments:
Please use code tags next time for your code and data. Thanks

Attached Images
File Type: png aix208.39.PNG (24.7 KB)

Trigger executable on HMC on occurence of an event

$
0
0
Hi all,

sadly I currently don't have any access to a HMC and I am interessted if anybody knows if there is any way to trigger an executable/script in case of incomming hardware errors etc.. I don't remember there was any such option but then my last HMC was v7.x more than 2 years ago I saw.
I saw an article about to configure syslogd on a HMC to forward such events to another syslogd. In the official documentation/Redbook there was only mentioned to trigger a message via SMTP but that's not sufficient for my environment.
Our event management system is not an IBM product so I don't have options via Systems Director or Tivoli Monitoring/OMNIbus.

Any experience/hints on your side?

Jvm.dll failed to load error

$
0
0
In my AIX 7.1 , jre is not working. I have attempted reinstalling but not succeeded to get rid of the error. Following error I am getting (jvm.dll failed to load: global entrypoints not found)
Code:


bash-4.2# cd /usr/java6/jre/bin/
bash-4.2# java -version
jvm.dll failed to load: global entrypoints not found
Failed to find VM - aborting
bash-4.2#

Can someone suggest the root cause of the problem?

Regards,
George
Moderator's Comments:
Please use code tags next time for your code and data. Thanks

System monitoring with RMC/RSCT

$
0
0
Hi all,

is any of you using RMC for monitoring your LPARs? Is it viable?
I know the IBM Magazine article and the Redbooks about it but I would like to hear from first hand.

Thanks in advance for sharing your experience!

Chdev hostname change is not permanent

$
0
0
Dear Gurus,

I have an AIX 7.1 box whose hostname is set to turtle.domain.com (FQDN) and I'm trying to change it to turtle. I'm using the below command for this:

Code:

chdev -l inet0 -a hostname=turtle
On running this, the hostname changes to turtle but once i reboot the machine, FQDN is back.

I looked for other files that may be sending this hostname but nothing showed up.

Help, please..

Broadcast on AIX

$
0
0
hello

how to disable brodcast from AIX 5.3 ?
user get on workstation massage from root
thx
Viewing all 373 articles
Browse latest View live