Adjusting the Directory Size
The default directory size is small upon the AIX installation. You need to manually adjust the directory size based on site requirements. Otherwise, later operations may fail.
Capacities of directories such as /, /home, /tmp, and /usr need to be expanded. Expand the directories based on actual disk capacities. Usually, the directory size can be larger than 10 GB.
Perform the following steps to expand directory capacities:
- Query directory capacities.
bash-3.00# df -k Filesystem 1024-blocks Free %Used Iused %Iused Mounted on /dev/hd4 2097152 2071096 2% 2297 1% / /dev/hd2 4194304 2789996 34% 36955 6% /usr /dev/hd9var 2097152 2035544 3% 681 1% /var /dev/hd3 4194304 4174628 1% 70 1% /tmp /dev/fwdump 131072 130724 1% 4 1% /var/adm/ras/platform /dev/hd1 4194304 2881680 32% 841 1% /home /proc - - - - - /proc /dev/hd10opt 262144 940 100% 2729 76% /opt /dev/lv00 131072 121988 7% 21 1% /audit bash-3.00#
- Run the chfs -a size=capacity directory command to expand the capacity of a desired directory.
bash-3.00# chfs -a size=5G /tmp Filesystem size changed to 10485760 bash-3.00#
- Query the directory capacity again to verify that its capacity is expanded successfully.
bash-3.00# df -k Filesystem 1024-blocks Free %Used Iused %Iused Mounted on /dev/hd4 2097152 2071096 2% 2297 1% / /dev/hd2 4194304 2789996 34% 36955 6% /usr /dev/hd9var 2097152 2035544 3% 681 1% /var /dev/hd3 5242880 5223044 1% 70 1% /tmp /dev/fwdump 131072 130724 1% 4 1% /var/adm/ras/platform /dev/hd1 4194304 2881680 32% 841 1% /home /proc - - - - - /proc /dev/hd10opt 262144 940 100% 2729 76% /opt /dev/lv00 131072 121988 7% 21 1% /audit bash-3.00#