Professional Documents
Culture Documents
Aix Tips Troubleshoots PDF
Aix Tips Troubleshoots PDF
Command to boot from network (provided maint boot enabled in the boot server)
or
restore -Tvf /dev/rmt0.1 -s4
To display BOS installation status information while the installation is progressing, run the following
command on the master:
lsnim -a info -a Cstate ClientName
or
lsnim -l ClientName
To perform a base system installaion on a machine venus (if you don't want
any bosinst_data, script, fbscript. image data then just don't use them in the command line) from the NIM
Server then run this
Or this script will resync all the Logical Volume of all Volume Groups
Modify this as per your requirement. This one I created for our test environment and so far seems to be
working in test environment.
Please test it in a test box before you use
lsvg|while read VG
do
lsvg l $VG|awk '{print $1}'
done|sed -e '/LV/d' -e '/\:/d'|while read LV
do
lslv $LV|grep 'LV IDENT'|awk '{print $3}'
done|while read LVIDENT
do
lresynclv -l $LVIDENT
done
To add all the filesets from a directory /utility/aixml to NIM lpp source 530TL5lpp
nim -o update -a package=all -a source=/utility/aixml 530ML5lpp
Booting a Client from NIM Server in diagnostics mode from the command line
Follow this procedure for performing the diag operation from the master and client.
To perform the diag operation from the client, enter:
nimclient -o diag -a spot=SPOTName
To perform the diag operation from the master, enter:
nim -o diag -a spot=SPOTName MachineObjectName
All these informations might not be necessary. We normally use in our environment
to allocate the mksysb and necessary lppsource & spots. In our NIM definition our bosinst.data is called
No_Prompt, our Script is called as FTPSCR and FB Script is called Install_Drivers. These are just names but
does lot more than then their names say.
If NFS Mount failes to mount with following error message RPC: 1832-019 Program not registered
Then -> Run on the client. And if both the server & client is new then run on both uncomment portmap in
/etc/rc.tcpip if not already done
make sure rc.nfs is not commented out in /etc/inittab
stopsrc -g nfs
startsrc -s portmap
/etc/rc.nfs
Now it should mount.
The system will then reboot, and you will be able to boot from tape, assuming that you have an valid boot
image on your tape media.
Etherchannel problem after loading the server from Customer mksysb tape
You must remove the ODM entries first before you configure etherchannel
run this on the correct network interface. Ex. en0
odmdelete -q name=en0 -o CuAt
odmdelete -q name=inet0 -o CuAt
If you have been working with a PVID value rather than with an hdisk name,
ensure that the PVID is removed from the ODM with the following command. The
32-digit value supplied consists of the PVID plus 16 zeros. For example:
odmdelete -q value=0073659c2c6d26f10000000000000000 -o CuAt ( add 16 zeros)
To get the PVID run
lsvg -p vgname
Then run
rmlvcopy 1 0073659c2c6d26f1 (16 Digit PVID)
A tar backup created using absolute path names can only be restored to the directory from which it was
created. One way to restore it to a different directory is by using the pax command.
For example, suppose you receive a tar tape created using absolute path names:
tar -cvf /dev/rmt0 /work/*
but want to restore it to the /test directory. The pax command would be:
pax -rf /dev/rmt0 -s/work/test/p
The -s/work/test/p does the directory change.
Determine the path to your system's error log file by running the following command:
/usr/lib/errdemon -l
To change the maximum size of the error log file enter:
/usr/lib/errdemon -s LogSize
To change the size of the error log device driver's internal buffer, enter:
/usr/lib/errdemon -B BufferSize
To list all events for which logging is currently disabled, enter:
errpt -t -F Log=0
To list all events for which reporting is currently disabled, enter:
errpt -t -F Report=0
IBM 3494 Library testing commands
mtlib -l /dev/lmcp0 -D -E
mtlib -l /dev/lmcp0 -qM
look man mtlib for more options
Vpaths not created for all hdisks of an AIX host or missing vpaths for some hdisks.
In some cases a customer may notice that some hdisks are not associated with any vpaths. Or a customer
may not see the expected number of vpaths for the number of hdisks that they have on their AIX host.
In either case the problem could be caused by the fact that the hdisks with no vpath association are listed in a
file called /etc/vpexclude. If this file exists a customer can remove the file and run cfgmgr and the hdisks will
now be associated with vpaths.
The only way that the vpexclude file can be created is if a customer runs a querysn command on the AIX
host or if the customer manually edits the /etc/vpexclude file to include the hdisks.
To list all duplicate and conflicting updates in the /myimages image source directory
/usr/lib/instl/lppmgr -d /myimages -u
To remove all duplicate and conflicting updates in the /myimages image source directory, type:
/usr/lib/instl/lppmgr -d /myimages -u -r
Now run smitty console and change the device from /dev/lft0 to /dev/tty0
To attempt to boot through a gateway using Ethernet with Duplex & speed Auto, and then try other devices,
enter: Bserver=Boot Server, may be your NIM Server too. Even if you don't have a gateway you need to
mention it. In that case use 0.0.0.0 as gateway. And client is ther Server you want to load from NIM
bootlist -m normal ent0 speed=auto duplex=auto gateway=192.168.0.1 bserver=192.168.0.10
client=192.168.0.45 hdisk0 rmt0
or you want to add some more space like 2GB with existing size
chfs -a size=+2G /usr
You can extend the root file system same way. Suppose the new size you want is 2GB
then
chfs -a size=2G /
or
chfs -a size=2000M /
Sendmail Warning: .cf file is out of date: sendmail AIX5.3/8.13.4 supports version 10, .cf file is version 9
Solution : vi /etc/mail/sendmail.cf and change V9 to V10
How to erase complete data from a disk on aix 5.2 TL6 and 5.3TL4
diag -d hdiskX -T format
How to check the inode status of a file or inode or to check last accessed time etc
/sbin/helpers/jfs2/istat /etc/passwd
or
/sbin/helpers/jfs2/istat 40 /dev/hd4 ( to check inode 40 of /dev/hd4)
How to change login prompt from telnet session like it will display the words in quote
chsec -f /etc/security/login.cfg -s default -a herald="Enter your user ID now:
How to preview information about a savevg backup with block size 4MB
listvgbackup -l -f'/dev/rmt0' -b'4096' -a''
How to display all Read Write Optical Device List ( Optical Jukebox)
lsdev -Cc rwoptical
or
/usr/sbin/geninv -l
How to search for and correct physical partitions that are stale or unable to
perform I/O operations on rootvg. ( Look manual for more options for this command)
mirscan -v rootvg
Backup by Name
To remotely create a backup archive by name, use the following command:
find pathname -print | backup -ivqf- | rsh remotehost "dd of=/dev/rmt0 bs=blocksize conv=sync"
To remotely create a backup archive by inode, first unmount your file system then use the backup command. For example:
umount /myfs backup -0 -uf- /myfs | rsh remotehost "dd of=/dev/rmt0 bs=blocksize conv=sync"
Create and Copy an Archive to Remote Tape
To create and copy an archive to the remote tape device, use the following command:
find pathname -print | cpio -ovcB | rsh remotehost "dd ibs=5120 obs=blocksize of=/dev/rmt0"
Create a tar Archive remotely :
tar -cvdf - pathname | rsh remotehost "dd of=/dev/rmt0 bs=blocksize conv=sync"
Create a Remote Dump remotely. To create a remote dump of the /myfs file system,
use the following command:
rdump -u -0 -f remotehost:/dev/rmt0 /myfs
How to displays the names of the files added to the system during installation of the specified fileset. for Ex. openssh
lslpp -f openssh.base.server
How to list all the softwares in a cdrom ( To display directory use the path)
installp -L -d /dev/cd0
How to configure STK L700 Library with AIX for Veritas Netbackup 6
You need to know two things first
1. Which fcs card you zoned the Fiber Robotic device
For Example fcs0 or fcs1
2. FCID of the robot. Which you will find from the Fiber switch in the Zone
it will look like 0x242DB1
Now you need to run
1) /usr/openv/volmgr/bin/driver/install_ovpass
2) mkdev -c media_changer -t ovpass -s fcp -p fscsi0 -w 0x0242DB1,0
(fcsi0 if connected to fcs0, fscsi1 if fcs1 , FCID from Fiber Switch, add ,0 after that)
3)/usr/openv/volmgr/bin/scsi_command -d /dev/ovpass0 -inquiry (will show the robot)
3)/usr/openv/volmgr/scan will give you details of the robot if added correctly
Then run the netbackup Admin GUI
#jnbSA&
And discover everything from the main menu wizard. Don't go to device robot.
Most of the types veritas discover devices including robots correctly
If you want to learn how to Install AIX 5L. Here is the link from IBM. I think this is one of the best document which covered
almost everything of AIX installation.
http://www-128.ibm.com/developerworks/aix/library/au-install-aix.html