27 August 2009

AIX Instalation pre-req (5.3 and 6.1)

Just some pre-req that I do in my AIX installations (I use some necessary Oracle reqs, just in case):
Ok.. just a warning, use at your own risk (all tunings are oracle and ibm based, so I'm not responsible if you mess the things up). After that, ask your customer for some different tunings, if needed.

1) Verifications

Gather all necessary information, such network configuration and partition configuration (if any specified) to accelerate the process.
Verify connections, cables, plug everything and take a look if display some error codes.
Verify if will be necessary some activation after the start-up process.

2) Install options

    ON Trusted Computing Base
    OFF CAPP e EAL4+ Technology
    ON 64-bit Kernel
    ON JFS2 File Systems
    ON Graphics Software
    OFF System backups to install in any device.

3) Packages

* Bundles: Server, App-Dev and Perfstat
* Extras: Openssh server and client
* Extra-packages:  bos.adt.base, bos.adt.lib, bos.adt.libm, bos.cifs_fs.rte, bos.perf.libperfstat, bos.perf.perfstat, bos.perf.proctools

4) Filesystem options

* Mirror rootvg:

# bosboot -B hdisk1
# extendvg rootvg hdisk1
# mirrorvg -m rootvg hdisk1
# bosboot -a
# bootlist -m normal hdisk0 hdisk1

* Resize all filesystems like table below

/ 1Gb
/usr 2Gb
/var 1Gb
/tmp 1Gb
/home 500Mb
swap 12Gb

5) OS Parameters

min=10 and max=30



* Change limits for default users file = -1
cpu = -1
data = -1
stack = -1
nofile = 65536
data = 256k stack = 256k
memory = 256k

* Change the limit for usernames
chdev −l sys0 −a max_logname=18

* Set ISNO for network cards
no -b -o use_isno=1

* Large Page size
vmo -r -o lgpg_regions=256 -o lgpg_size=16777216
vmo -r -o lru_file_repage=0

* Maxuproc
chdev -lsys0 -a maxuproc='4096'

* Jumbo frames
smit chgenet


Partitions requisites for IVM

The LUN reserve_policy must be set to “no_reserve” on the hdisks (on both JS22s) before the logical partition is created. Open a virtual terminal for the VIOS Partition (Partition 1) from the IVM GUI and type the following:

# chdev –dev hdisk<number> -attr reserve_policy=no_reserve

To verify this attribute has been changed type the following:

# lsattr –dev hdisk<number> -attr