1831928 Members
3732 Online
110031 Solutions
New Discussion

Max file size in HP-UX

 
SOLVED
Go to solution
Igor_31
Advisor

Max file size in HP-UX

Hello,
I've set up a new HP server rx2660 with HP-UX 11i v2.

I am faced with a problem of creating file above 2 GB size.

"ulimit -a" shows the following parameteres:

core file size (blocks, -c) 2097151
data seg size (kbytes, -d) 1048576
file size (blocks, -f) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 2048
pipe size (512 bytes, -p) 16
stack size (kbytes, -s) 131072
cpu time (seconds, -t) unlimited
max user processes (-u) 3688
virtual memory (kbytes, -v) unlimited

...Netheless I cannot create files above 2gb size.

How can i turn on the ability to create file more size?

Thank you very much!
7 REPLIES 7
Geoff Wild
Honored Contributor

Re: Max file size in HP-UX

Probably because the file system isn't set for large files:

# fsadm /app
fsadm: /etc/default/fs is used for determining the file system type
nolargefiles


Change it:

fsadm -o largefiles /dev/vgXX/lvolXX

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Geoff Wild
Honored Contributor
Solution

Re: Max file size in HP-UX

BTW - make sure you update /etc/fstab as well:

Example:

/dev/vg01/lvol2 /var/adm/crash vxfs rw,largefiles,delaylog,datainlog 0 2


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
V. Nyga
Honored Contributor

Re: Max file size in HP-UX

Hi,

your filesystem is not configured for 'largefiles'.
You can test it with:
# fstyp -v /dev/vgxx/lvolx |grep -i f_flag

insert your configuration for the x's

f_flag = 0 -> max 2 GB
f_flag = 16 -> max 8 GB

Volkmar
*** Say 'Thanks' with Kudos ***
Geoff Wild
Honored Contributor

Re: Max file size in HP-UX

Igor,

BTW, as a way to make posts relevant to the answers here, it would be great if points are assigned - that way when others search the forums and find your questions - they can usually judge that the answers with higher points solved your question.

From your profile at the moment:
I have assigned points to 0 of 29 responses to my questions.

http://forums1.itrc.hp.com/service/forums/pageList.do?userId=BR773780&listType=unassigned&forumId=1


http://forums1.itrc.hp.com/service/forums/helptips.do?#28

Thanks...Geoff


Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Steven E. Protter
Exalted Contributor

Re: Max file size in HP-UX

Shalom,

Don't forget the filesystem.

largefiles needs to be enabled there as well.

newfs or fsadm to convert the filesystem.

SEP
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
A. Clay Stephenson
Acclaimed Contributor

Re: Max file size in HP-UX

It is necessary that you run fsadm to modify a filesystem for files > 2GiB (or recreate the filesystem via newfs/mkfs and specify largefiles) but is it not necessary that you enable the largefiles mount option. The mount option in no way enables or disables large files. It certainly does no harm to add this mount option but the mount option doesn't actually make your filesystem instantly able to handle largefiles. Basically, if the mount succeeds with the largefiles argument, the filesystem is largefiles enabled. It is a test rather than an actual enabler.

Now, even if the filesystem is large files enabled, ulimit is set high, and quotas are not in play or set very large, it is still possible to hit the 2GiB barrier if the application itself was not written to take advantage of 64-bit file offsets.
If it ain't broke, I can fix that.
Igor_31
Advisor

Re: Max file size in HP-UX

Thanks to all. Your answers were very helpful! I've fulfilled your recomendations!