General Page
To begin, make sure you are either logged in as either root or any accounts with admin privileges like cecuser with sudo.
- To become root, run sudo -i
- With cecuser, run sudo in front of any command
Start with the command lsvg rootvg
- Included below is an example output:
cecadmin@p125:/home/cecadmin $ lsvg rootvg
VOLUME GROUP: rootvg VG IDENTIFIER: 00c3545000004b00000001945fc059be
VG STATE: active PP SIZE: 64 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 799 (51136 megabytes)
MAX LVs: 256 FREE PPs: 380 (24320 megabytes)
LVs: 12 USED PPs: 419 (26816 megabytes)
OPEN LVs: 11 QUORUM: 2 (Enabled)
TOTAL PVs: 1 VG DESCRIPTORS: 2
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 1 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: relocatable
PV RESTRICTION: none INFINITE RETRY: no
DISK BLOCK SIZE: 512 CRITICAL VG: no
FS SYNC OPTION: no CRITICAL PVs: no
ENCRYPTION: yes
Find the section FREE PPs. In the output above, you can see that there are 24 GB free highlighted in yellow.
From there, run df -g and you can see the size of “/” that is currently full (but this can be used to expand any filesystem, not only /)
- In the output below, you can see that 100% of filesystem /dev/hd4 is being used.
cecadmin@p125:/home/cecadmin $ df -g
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 0.12 0.00 100% 2843 88% /
/dev/hd2 2.56 0.23 92% 50203 48% /usr
/dev/hd9var 1.00 0.91 9% 1022 1% /var
/dev/hd3 4.00 4.00 1% 40 1% /tmp
/dev/hd1 8.00 3.14 61% 2018 1% /home
/dev/hd11admin 0.12 0.12 1% 5 1% /admin
/proc - - - - - /proc
/dev/hd10opt 4.00 3.02 25% 11851 2% /opt
/dev/livedump 0.25 0.25 1% 4 1% /var/adm/ras/livedump
/ahafs - - - 35 1% /aha
This can be extended with the command chfs -a size=2G /
You can replace / with the filesystem you want to extend like /opt or /usr
- Example output below:
cecadmin@p125:/home/cecadmin $ sudo chfs -a size=2G /
Filesystem size changed to 4194304
From there, run df -g again.
- In the below output, you can now see that only 7% of /dev/hd4 is being used.
cecadmin@p125:/home/cecadmin $ df -g
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 2.00 1.87 7% 2843 1% /
/dev/hd2 2.56 0.23 92% 50203 48% /usr
/dev/hd9var 1.00 0.91 9% 1022 1% /var
/dev/hd3 4.00 4.00 1% 40 1% /tmp
/dev/hd1 8.00 3.14 61% 2018 1% /home
/dev/hd11admin 0.12 0.12 1% 5 1% /admin
/proc - - - - - /proc
/dev/hd10opt 4.00 3.02 25% 11851 2% /opt
/dev/livedump 0.25 0.25 1% 4 1% /var/adm/ras/livedump
/ahafs - - - 35 1% /aha
You have now expanded space for your AIX filesystem!
To summarize, the two commands being used are:
lsvg rootvg | grep FREE
chfs -a size=xxG / # or any other filesystem /opt /usr (chfs -a size=xxG /opt)
Was this topic helpful?
Document Information
Modified date:
15 July 2025
UID
ibm17239762