Академический Документы
Профессиональный Документы
Культура Документы
The following steps will guide you trough the mirroring of an AIX rootvg.
This info is valid for AIX 4.3.3, AIX 5.1, AIX 5.2 and AIX 5.3.
• Make sure you have an empty disk, in this example its hdisk1
• Add the disk to the vg via "extendvg rootvg hdisk1
• Mirror the vg via: "mirrorvg rootvg"
• Adapt the bootlist to add the current disk, the system will then fail to hdisk1 is
hdisk0 fails during startup
o do bootlist -o -m normal
o this will list currently 1 disk, in this exmaple hdisk0
o do bootlist -m normal hdisk0 hdisk1
• Run a bosboot on both new disks, this will install all software needed for boot on
the disk
o bosboot -ad hdisk0
o bosboot -ad hdisk1
Nmon tools
Svmon uses frames, multiply every frame by 1024 to get the size in bytes. Also be sure to
install the packages bos.perf.tools in order to get svmon work.
[root@sys /]
you have to activate iostat counters by typing the following command:
[root@sys /] /usr/lpp/diagnostics/bin/uesensor -a
3 0 11 31 P1
9001 0 11 2100 F1
9001 1 11 2760 F2
9001 2 11 1890 F3
9001 3 11 1890 F4
9002 0 11 5129 P1
9002 1 11 3129 P1
9002 2 11 5129 P1
9002 3 11 12077 P1
9004 0 11 3 P3-V1
9004 1 11 3 P3-V2
9004 2 11 3 P3-V3
[root@sys /]
How to clean an AIX wtmp log file
(/var/adm/wtmp)
This document explains how you can reduce the size of wtmp in a GOOD way
This info is valid for AIX 4.3.3, AIX 5.1, AIX 5.2 and AIX 5.3.
Cleaning of wtmp on AIX is not done by "echo >/var/adm/wtmp". There are 2 supported
ways to clean wtmp:
• cp /dev/null /var/adm/wtmp
• format /var/adm/wtmp to ASCII text, clean the 'bogus' entrys and convert it back
to wtmp format, you can do this by using the tool fwtmp:
o be sure /tmp has enough space
o convert the wtmp to ASCII --> /tmp/dummy.file
o /usr/sbin/acct/fwtmp </var/adm/wtmp >/tmp/dummy.file
o edit the file /tmp/dummy.file via "grep -v" or just plain vi
o convert the ASCII output back -->/var/adm/wtmp
o /usr/sbin/acct/fwtmp -ic <dummy.file >/var/adm/wtmp
By default, an AIX system will not do syslog'ging. For a strange reason, the default
install on an AIX install will not place entry's in /etc/syslog.conf, leaving a totl userless
syslogd.
Even more, comparing the syslogd on AIX to another Unix, (ex: Linux), you will notice
that <facility>.* doesn't work. So make sure that your priority level is never *.
Comming from a Linux world, you most probably want the following config:
mail.debug /var/log/mail
user.debug /var/log/user
kern.debug /var/log/kern
syslog.debug /var/log/syslog
daemon.debug /var/log/daemon
auth.debug /var/log/secure
local2.debug /var/log/sudo
As AIX standard has no logrotate daemon running, you want to adapt syslogd todo the
rotating on his own, an example would be:
mksecldap command
LDAP Authentication Load Module
Make sure that if you use AIX systems <5.2, you'll need to setup an AIX schema. This
also means that systems <5.2 cannot auth. against an OpenLDAP server doing auth. for
multiple platforms, you'll need the AIX schema in the OpenLDAP server.
RFC2307 is implemented from AIX5.2 onwards.
To start with, you'll need the mklpp package from Bull. You can find the tool here. A
mirror you can find here. Install this package via the smitty interface:
• chmod +x bull.mklpp-1.2.9.0.exe
• ./bull.mklpp-1.2.9.0.exe
• inutoc .
• smitty install_all
Make a lv volume lvlpp and make a filesystems on it. Mount this filesystem under
/lppdir.
Create following directory's under /lppdir: bff, in, lpp, out, and build:
• cd /lppdir
• mkdir bff in lpp out build
• mkdir /lppdir/lpp/zlib
• mkdir /lppdir/build/zlib
• cd /lppdir/build/zlib
• wget http://www.zlib.net/zlib-1.2.2.tar.gz (can change)
• gunzip zlib-1.2.2.tar.gz
• tar -xvf zlib-1.2.2.tar
• ln -s zlib-1.2.2 zlib
Be sure to change the umask to 022, so your install directory is ok. (umask 022)
Adapt the path and add /usr/local/bin to it. (export PATH=$PATH:/usr/local/bin)
• cd /lppdir/build/zlib/zlib
• ./configure
• make
• mkdir /lppdir/lpp/zlib/usr/lpp
• mkdir /lppdir/lpp/zlib/usr/lpp/freeware.zlib
Go into the directory /lppdir/lpp/zlib and create the lpp_name file:
4 R I freeware.zlib {
freeware.zlib.rte 1.2.1.1 01 N U en_US Zlib, Data compression library
[
*prereq bos.net.tcp.client v=4 r>1
%
INSTWORK 70 70
%
%
%
%
]
}
You will have to place the version in there(1.2.1.1) the name of the package
(freeware.zlib / freeware.zlib.rte) and an explanation (Zlib, Data compression library). If
needed, you can place prereq's. All other fields will be auto generated.
• mkdir /lppdir/lpp/zlib/.info
• touch /lppdir/lpp/zlib/.info/freeware.zlib.rte.copyright (you can add whatever you
want in this file)
• cd /lppdir/lpp/zlib
• mklpp
Do note that mklpp automaticly create post and pre scripts for install and de-install in the
.info/. You can add extra commands in these scripts for your own purpose