Changing the File Size Limit
By default, the maximum file size is 2 GB after AIX is installed. Files larger than 2 GB cannot be created under any directory. However, files larger than 2 GB are common. To ensure normal file creation, you need to change the file size limit in the /etc/security/limits file.
To change the file size limit, perform the following steps:
- Run the vi /etc/security/limits command to edit the file.
- Change fsize in the file to -1, where -1 indicates no limits on file size.
The change takes effect immediately without the need to restart the system.
Figure 4-2 Changing fsize in /etc/security/limits - Run the following command to verify that the change takes effect:
bash-3.00# ulimit -a core file size (blocks, -c) 1048575 data seg size (kbytes, -d) 131072 file size (blocks, -f) unlimited max memory size (kbytes, -m) 32768 open files (-n) 2000 pipe size (512 bytes, -p) 64 stack size (kbytes, -s) 32768 cpu time (seconds, -t) unlimited max user processes (-u) 262144 virtual memory (kbytes, -v) unlimited bash-3.00#
In the output, file size is changed to unlimited, indicating that the change has taken effect.