Configuring fsize for Large File Support
Contents
About this document
View soft limits
Create a file over 2 gigabytes
Verify the creation of 1, 2 and 3 gigabyte files
About this document
This document addresses the file size limitations and configuration changes that are necessary for writing, uncompressing
or creating a file over 2 gigabytes (GB).
The information in this document applies to AIX versions 4.2.1 through 4.3.3.
View soft limits
To view soft limits, enter:
ulimit -a
Information similar to the following should be displayed.
time(seconds) unlimited
file(blocks) 2097151
data(kbytes) 131072
stack(kbytes) 32768
Create a file over 2GB
Two requirements exist for creating a file over 2GB.
- The file system must be large file enabled.
- Enter smit fs.
- Select Add/Change/Show/Delete File Systems.
- Choose Journaled File Systems.
- Select Change/Show Characteristics of a Journaled File System.
- Choose the file system that you are using.
- Scroll down until you get to Large File Enabled.
NOTE: If the file system is large file enabled, you may use it as it is. If it is not large file enabled, you
cannot use this file system. Choose one of the options below to correct the problem.
- Use a file system that is large file enabled or create one that is large
file enabled.
Or
- Back up, remove and recreate large file enabled and then restore from
backup the filesystem that you intend to use.
- The fsize for root and the user must be -1.
- Using your favorite editor, open the following file:
/etc/security/limits
- Scroll down and view the fsize under defaults.
Commonly the fsize will be 2097151 in 512k bytes, just over 1GB. If you have a file system that is not large file enabled, then the largest
recognized fsize value is 4194302 (or 2GB). After 2GB, the fsize is not scalable and must be set to -1, which equals unlimited. -1
actually allows for the creation of a 64GB file.
Once both the above criteria are met, the user or root user should be
able to create a file above 2GB in the specified file system.
Verify the creation of 1, 2 and 3 gigabyte files
Enter the following commands to list the creation of 1, 2 and 3 GB files.
- Create a 1GB file:
- /usr/sbin/lmktemp filename1 10737418424
- Create a second 1GB file:
- cp filename1 filename2
- To create a 2GB file, append the first file to the second file:
- cat filename1 >> filename2
- To create a 3GB file, append the first file to the second file again:
- cat filename1 >> filename2
Configuring fsize for Large File Support: ITEM: FAX
Dated: 2000/08/21~00:00 Category: cmd
This HTML file was generated 2001/03/08~16:06:25
Comments or suggestions?
Contact us