Operating System - HP-UX
1838291 Members
4306 Online
110125 Solutions
New Discussion

Re: dtermine the file size

 
SOLVED
Go to solution
hpuxhelp
Regular Advisor

dtermine the file size

how do i determine the max number of file that be contains within a filesystem? In addition, if it is small how do i increase it to the maximum number of file? and within a file, how do i determine the max size and how to increase it?
thanks
3 REPLIES 3
Patrick Wallek
Honored Contributor
Solution

Re: dtermine the file size

It depends on the type of filesystem you are using.

If you are using an HFS filesystem then the max number of inodes within that filesystem can be seen by 'df -i'. To increase inodes you have to recreate the filesystem (LVOL), I believe.

If you are using a VxFS (JFS) filesystem, then there is no limit on the maximum number of inodes that the file system can contain. A VxFS filesystem dynamically allocates inodes as they are needed.

As far as file size, on HP-UX 11.0, if you DO NOT have the 'largefiles' option set on your LVOLS, then you can have files up to 2GB in size. If you DO have the 'largefiles' option set, then you can have files MUCH MUCH larger than 2GB.

To see if your filesystem has largefiles enabled or not do a 'fsadm /LVOL_Mountpoint'

For example:

# fsadm /home
nolargefiles

This indicates that the largest file I can have in this file system is 2GB.
James R. Ferguson
Acclaimed Contributor

Re: dtermine the file size

Hi:

There are no limits to the number of inodes in a VxFS filesystem. The number of inodes is constrained onlyh by available disk space.

The maxiumum file size is dependent upon the filesystem type (HFS, VxFS) and filesystem version in the case of VxFS. In the case of VxFS JFS version-4 with HP-UX 11i this is 2TB:

http://docs.hp.com/hpux/onlinedocs/5971-2383/5971-2383.html

Regards!

...JRF...
Steven E. Protter
Exalted Contributor

Re: dtermine the file size

Know what happens when you copy a 6G file onto a fs with no largefiles?

The first 2G copies, the process hangs for a very long time and then gives a cryptic error message.

If you think about it, you'll understand the message. If not, you'll end up calling support.

Steve
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com