Operating System - HP-UX
1833744 Members
2696 Online
110063 Solutions
New Discussion

Setting the hard limit for users filesize

 
SOLVED
Go to solution
Randy Gibson
Occasional Contributor

Setting the hard limit for users filesize

I have a 8BG partition and a user wants to create a 4BG file. It stops at 2GB. ulimit shows unlimited. How do I raise the limit on HP-UX B11.11?

~Randy
4 REPLIES 4
Patrick Wallek
Honored Contributor
Solution

Re: Setting the hard limit for users filesize

I bet you don't have the 'largefiles' option set for that filesystem.

Do a:

# fsadm /mount_point_name

If it returns 'nolargefiles' then that is your problem.

To fix it, if you have Online-JFS do,

# fsadm -o largefiles /mount_point_name

Also be sure to check you /etc/fstab and if the option 'nolargefiles' is on the line for this file system then delete the 'no' part so it is 'largefiles'.
Sridhar Bhaskarla
Honored Contributor

Re: Setting the hard limit for users filesize

Hi Randy,

2 GB limit tells me that the filesystems is not enabled for largefiles.

Make sure largefiles are enabled on this filesystem. You an use mkfs with -m option to find it out.

mkfs -m /dev/vgxx/lvolx

If you have onlineJFS, you can enable largefiles using fsadm command.

fsadm -o largefiles /mount_point.


-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Michael Tully
Honored Contributor

Re: Setting the hard limit for users filesize

Hi,

You need to change the operating parameters for the filesystem to include the 'largefiles' capability.
If you have the online JFS product this can be done without unmounting the filesystem using 'fsadm'. If you don't have the online JFS license you will need to unmount the filesystem.

Using online JFS
# fsadm -F vxfs -o largefiles /dev/myvg/mylvol

Don't forget to update your /etc/fstab file.

To check if you have online JFS, run this:
# swlist -l product | grep -i online

HTH
Michael


Anyone for a Mutiny ?
Randy Gibson
Occasional Contributor

Re: Setting the hard limit for users filesize

Thanks Patrick, Sridhar and Michael that fixed it.

You guys are fast too!

~Randy