Increase lv on AIX

De Wikillano
Saltar a: navegación, buscar

I was running out of space on the "/" fs, there was nothing to delete, so I decided to increase the root filesystem, first of all I looked how much space I had on my primary VolumeGroup vg

bash-3.2# lsvg rootvg
VOLUME GROUP:       rootvg                   VG IDENTIFIER:  0005ff3a0000d40000000115ef68a91f
VG STATE:           active                   PP SIZE:        16 megabyte(s)
VG PERMISSION:      read/write               TOTAL PPs:      1278 (20448 megabytes)
MAX LVs:            256                      FREE PPs:       608 (9128 megabytes)
LVs:                9                        USED PPs:       770 (12320 megabytes)
OPEN LVs:           8                        QUORUM:         2 (Enabled)
TOTAL PVs:          2                        VG DESCRIPTORS: 3
STALE PVs:          0                        STALE PPs:      0
ACTIVE PVs:         2                        AUTO ON:        yes
MAX PPs per VG:     32512
MAX PPs per PV:     1016                     MAX PVs:        32
LTG size (Dynamic): 256 kilobyte(s)          AUTO SYNC:      no
HOT SPARE:          no                       BB POLICY:      relocatabl

looking at lsvg command I saw I had 9G of free space to increse the fs /

FREE PPs:       608 (9128 megabytes)

the fs to increase is /dev/hd4 "/"

bash-3.2# df -k
Filesystem    1024-blocks      Free %Used    Iused %Iused Mounted on
/dev/hd4          130496         0    100%     5059     3% /

for increase de lv we will use chfs, that will increase the fs and the lv automatically

chfs -a size=+1G /
bash-3.2# df -k
Filesystem    1024-blocks      Free %Used    Iused %Iused Mounted on
/dev/hd4          1130496   1048604    8%     5059     3% /

Interesting links:

http://the-welters.com/professional/aix/jfs-lvm.html [1] http://unix.ittoolbox.com/groups/technical-functional/ibm-aix-l/extendlv-command-1742319 [2]