How does storage work on AIX 5.2?

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

# lsvg -L
rootvg
# 

# 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 
# 

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

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

# lspv
hdisk0          00c4f9fd6822eecf                    rootvg          active
hdisk1          00c4f9fd6822f049                    rootvg          active
# 

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):

# 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
#

Logical volumes can be inspected:

# 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                                     
# 

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

# 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 
# 

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

# chfs -a size=+128M /opt
Filesystem size changed to 786432
# 

(To enlarge by 128megs)

Share: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Twitter
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • Reddit
  • StumbleUpon

Leave a Reply

Your email address will not be published. Required fields are marked *