LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   AIX (https://www.linuxquestions.org/questions/aix-43/)
-   -   Maximum file size with AIX & JFS ? (https://www.linuxquestions.org/questions/aix-43/maximum-file-size-with-aix-and-jfs-197502/)

stephnane 06-25-2004 03:41 AM

Maximum file size with AIX & JFS ?
 
Hi.

What's the maximum file size with AIX (and JFS)?
How can we change this value ?


tks.

Steph

fluppi 06-25-2004 03:53 AM

No way, you can't change the limit. You can only use another Filesystem.

More Infos about this has Google:
http://www.google.com/search?q=Maxim...utf-8&oe=utf-8

Hth
Fluppi

iainr 06-25-2004 06:41 AM

With a normal jfs filesystem, the maximum size is 2GB. Sometimes users have a ulimit value set which puts a limit of 1GB on the size of files they can create (the value is in 512byte blocks so it can look like 2GB when it's really 1).

You can create a jfs filesystem to be large file enabled which allows files up to (I think) 64GB. This is fine, but large-file enabled filesystems have poorer performance if they contain lots of small files so don't create them unless you need them.

The solution, if you are using AIX 5L (5.1 or 5.2) is to use JFS2. Enable the 64 bit kernel (not required, but improved JFS2 performance). JFS2 has a maximum file size of at least 1TB; I think the theoretical limit is substantially higher. If you need an individual file to be larger than 1TB, you probably ought to have a think about whether you're doing things the right way :D

zorba4 06-25-2004 09:08 AM

iainr is right when talking about backups. Remember that tar and cpio hate large files, so if your files are bigger than 2gig you will need to find another backup method.

looseCannon 07-07-2004 02:23 PM

You can remove the max file size limit of 2GB completely by editing /etc/security/limits. In the 'default' stanza change the value of fsize to -1. This sets the max file size to unlimited. You could also change this to some other value, less than 2GB, if you want.

Here's the set up on one of my servers:

default:
fsize = 2097151

Changing this to

default:
fsize = -1

Removes the max file size limit. As previously stated, this might not be a good idea from a performance standpoint.


All times are GMT -5. The time now is 10:57 PM.