1834146 Members
3736 Online
110064 Solutions
New Discussion

limit datasize problem

 
Craig Anderson_1
Occasional Contributor

limit datasize problem

We are having a problem setting the datasize limit to 3GB which is required by one of our applications. We are running HP-UX 11.00 on an HP J9000/785 system with 4GB RAM and have installed the most current QPK1100_11.00, XSWGR1100_11.00, and XSWHWCR1100_11.00 patch bundles. These patches enable me to set the maxdsiz kernel parameter above the 1.9GB limitation to 3221225472 (0XC0000000) which it is.

When we first login (using tcsh), the limit command shows the datasize set to unlimited. If we execute the command limit datasize 2047M, it runs fine and sets the datasize limit to 2096128 kbytes. Any number higher than 2047M just returns the error "limit: No such limit."

Does anyone know hot to set the datasize limit to 3GB?
2 REPLIES 2
Bill Hassell
Honored Contributor

Re: limit datasize problem

If the filesystem has not be created with the largfiles option AND has not been mounted with the largefiles option, you can't create any files larger than 2 Gb. You can use fsadm to modify the filesystem while it is running. Then add the option to fstab.


Bill Hassell, sysadmin
Animesh Chakraborty
Honored Contributor

Re: limit datasize problem

Hi,
You need to umount the lvol (logical volume) and run the command
against the character device file of the lvol:

fsadm -F vxfs -o largefiles /dev/vgXX/rlvolXX.

Success can be verified with fsadm -F vxfs /dev/vgXX/rlvolXX.

If an application is going to be creating files greater than
2 GB, it must be compiled with _FILE_OFFSET_BITS=64 or
rewritten with the 64 Bit API. Refer to
/usr/share/doc/lg_files.txt for more information.


Best of Luck
Animesh

Did you take a backup?