IBM AIX 5.2 Notes


Freeware available at BullFreeware.com, but to make certain
programs compile (like MySQL), it's better to get ncurses from IBM's AIX
Toolbox for Linux Page (per this bug).

(Some packages require that you make a "freeware" user first, in a group
called "frec")

For executable (binary) file distributions, change the file's permissions to
make the file executable, then run it to extract the .bff file:

[root@aixserver:/opt/bullfreeware/5.2]# chmod 755 gcc-3.3.2.0.exe 
[root@aixserver:/opt/bullfreeware/5.2]# ./gcc-3.3.2.0.exe 
UnZipSFX 5.41 of 16 April 2000, by Info-ZIP (Zip-Bugs@lists.wku.edu).
  inflating: gcc-3.3.2.0.bff         

Storage on AIX is organized into volume groups (VG's):

[root@aixserver:/opt/bullfreeware/5.2]# lsvg -L
rootvg
[root@aixserver:/opt/bullfreeware/5.2]# 

[root@aixserver:/opt/bullfreeware/5.2]# lsvg rootvg
VOLUME GROUP:   rootvg                   VG IDENTIFIER:  00c4f9fd00004c000000010f7db4f5fa
VG STATE:       active                   PP SIZE:        128 megabyte(s)
VG PERMISSION:  read/write               TOTAL PPs:      1092 (139776 megabytes)
MAX LVs:        256                      FREE PPs:       680 (87040 megabytes)
LVs:            13                       USED PPs:       412 (52736 megabytes)
OPEN LVs:       12                       QUORUM:         2
TOTAL PVs:      2                        VG DESCRIPTORS: 3
STALE PVs:      0                        STALE PPs:      0
ACTIVE PVs:     2                        AUTO ON:        yes
MAX PPs per PV: 1016                     MAX PVs:        32
LTG size:       128 kilobyte(s)          AUTO SYNC:      no
HOT SPARE:      no                       BB POLICY:      relocatable 
[root@aixserver:/opt/bullfreeware/5.2]# 

Note the free physical partitions (PP's) above.

A volume group is composed of physical volumes (PV's):

[root@aixserver:/opt/bullfreeware/5.2]# lspv
hdisk0          00c4f9fd6822eecf                    rootvg          active
hdisk1          00c4f9fd6822f049                    rootvg          active
[root@aixserver:/opt/bullfreeware/5.2]# 

Each physical volume is divided into logical volumes (LV's), which use up
storage space divided into logical partitions (LP's) and physical partitions
(PP's):

[root@aixserver:/opt/bullfreeware/5.2]# lspv -l hdisk0
hdisk0:
LV NAME               LPs   PPs   DISTRIBUTION          MOUNT POINT
hd5                   1     1     01..00..00..00..00    N/A
hd6                   4     4     00..04..00..00..00    N/A
hd1                   5     5     00..04..01..00..00    /home
hd9var                2     2     00..01..01..00..00    /var
hd4                   4     4     00..03..01..00..00    /
hd10opt               2     2     00..01..01..00..00    /opt
hd2                   9     9     00..01..08..00..00    /usr
hd8                   1     1     00..00..01..00..00    N/A
hd3                   1     1     00..00..01..00..00    /tmp
pblv01                282   282   00..00..95..109..78   /pblog
[root@aixserver:/opt/bullfreeware/5.2]#

Logical volumes can be inspected:

[root@aixserver:/opt/bullfreeware/5.2]# lslv hd10opt
LOGICAL VOLUME:     hd10opt                VOLUME GROUP:   rootvg
LV IDENTIFIER:      00c4f9fd00004c000000010f7db4f5fa.9 PERMISSION: read/write
VG STATE:           active/complete        LV STATE:       opened/syncd
TYPE:               jfs2                   WRITE VERIFY:   off
MAX LPs:            512                    PP SIZE:        128 megabyte(s)
COPIES:             1                      SCHED POLICY:   parallel
LPs:                2                      PPs:            2
STALE PPs:          0                      BB POLICY:      relocatable
INTER-POLICY:       minimum                RELOCATABLE:    yes
INTRA-POLICY:       center                 UPPER BOUND:    32
MOUNT POINT:        /opt                   LABEL:          /opt
MIRROR WRITE CONSISTENCY: on/ACTIVE                              
EACH LP COPY ON A SEPARATE PV ?: yes                                    
Serialize IO ?:     NO                                     
[root@aixserver:/opt/bullfreeware/5.2]# 

The filesystems on the logical volumes can be viewed with lsfs:

[root@aixserver:/opt/bullfreeware/5.2]# lsfs
Name            Nodename   Mount Pt               VFS   Size    Options    Auto Accounting
/dev/hd4        --         /                      jfs2  1572864 --         yes  no 
/dev/hd1        --         /home                  jfs2  1310720 --         yes  no 
/dev/hd2        --         /usr                   jfs2  2883584 --         yes  no 
/dev/hd9var     --         /var                   jfs2  524288  --         yes  no 
/dev/hd3        --         /tmp                   jfs2  262144  --         yes  no 
/proc           --         /proc                  procfs --      --         yes  no 
/dev/hd10opt    --         /opt                   jfs2  524288  --         yes  no 
/dev/pblv01     --         /pblog                 jfs   73924608 rw         yes  no 
[root@aixserver:/opt/bullfreeware/5.2]# 

The JFS filesystem on a logical volume can be enlarged (and the logical volume
with it) with chfs:

[root@aixserver:/opt/bullfreeware/5.2]# chfs -a size=+128M /opt
Filesystem size changed to 786432
[root@aixserver:/opt/bullfreeware/5.2]# 

(To enlarge by 100megs)


To install a .bff file, first view the filesets within it:

[root@aixserver:/opt/bullfreeware/5.2]# installp -l -d gcc-3.3.2.0.bff 
  Fileset Name                Level                     I/U Q Content 
  ====================================================================
  freeware.gcc.rte            3.3.2.0                    I  N usr     
#   gcc version 3.3.2                                   

[root@aixserver:/opt/bullfreeware/5.2]# 

Then install the desired filesets. If you'd like installp to automatically
grow filesystems, as needed to install the package(s), use the -X option.

[root@aixserver:/opt/bullfreeware/5.2]# installp -X -d gcc-3.3.2.0.bff freeware.gcc.rte

Terminal-based system administration tool:
smitty

Find an error or omission? Sorry about that! Please e-mail Eric at eric@ericshalov.com and let him know!

All of Eric's Tech Notes are provided on an as-is basis, and may contain errors or omissions. No statement is made as to thier suitability for any particular purpose, and no warranty is given. Use at your own risk! All trademarks are the property of their respective owners.
No duplication of the above information is permitted without prior written permission of the author(s).
©Copyright 2007 Eric Shalov. All Rights Reserved.