1843312 Members
5153 Online
110214 Solutions
New Discussion

Re: 2GB filesize limit

 
SOLVED
Go to solution
Robin Rehberg
Occasional Contributor

2GB filesize limit

How can I allow a user (not root) to create a file > 2GB on HP-UX 11.00 ?
8 REPLIES 8
Sanjay_6
Honored Contributor
Solution

Re: 2GB filesize limit

Hi Robin,

First make sure the filesystem is set to support largefiles.

fsadm -v /dev/vg_name/rlv_name

If this shown nolargefiles. Then you have to change this to largefiles. If you have onlineJFS you can do this online, else you have to unmount the filesystem and change the nolargefiles to largefiles.

Once you have done that, your user should be able to create files greater than 2GB on this filesystem.

Hope this helps.

regds
linuxfan
Honored Contributor

Re: 2GB filesize limit

Hi Robin,

The filesystem is probably not created with the largefiles option.

you can check if the option is enabled, using fsadm

fsadm /dev/vg??/lvol??
(you can specify the -F vxfs/hfs option if you want)

if you usee nolargefiles in the output of the above command, run
fsadm -F vxfs -o largefiles /dev/vg??/lvol??

to enable the largefiles option.

Once the option is enabled, the user should be able to create files > 2GB

-HTH
Ramesh
They think they know but don't. At least I know I don't know - Socrates
Tom Danzig
Honored Contributor

Re: 2GB filesize limit

Check users ulimit to make sure it's unlimited for file size. As long as the file system supports largefiles, there should be no reason a regular user cannot create one.

You may also want to insure that quotas are not on for this users as well.
linuxfan
Honored Contributor

Re: 2GB filesize limit

oops

to check
fsadm /dev/vg??/rlvol??

to change the setting(i believe you have to unmount the filesystem, even if you have online-JFS)

fsadm -F vxfs -o largefiles /dev/vg??/rlvol??

-Ramesh
They think they know but don't. At least I know I don't know - Socrates
S.K. Chan
Honored Contributor

Re: 2GB filesize limit

The filesystem the user is writing to must support largefiles. Do this to check .. (assuming FS on lvol1 in vg01 mounted on /data)
HFS
===
# fsadm -F hfs /dev/vg01/rlvol1
JFS
===
# fsadm -F vxfs /data

If the output is "nolargefiles" you would have to convert the FS to support "largefiles".

HFS
===
o First umount /data
# fsadm -F hfs -o largefiles /dev/vg01/lvol1
o Edit /etc/fstab appropriately(for example)
/dev/vg01/lvol1 /data hfs defaults,largefiles 0 2
# mount -a

JFS (if you do not have OnlineJFS)
=================================
o First umount /data
# fsadm -F vxfs -o largefiles /dev/vg01/rlvol1
o Edit /etc/fstab (for example)
/dev/vg01/lvol1 /data vxfs delaylog,largefiles 0 2

JFS (if you have OnlineJFS)
===========================
# fsadm -F vxfs -o largefiles /data
Mike Hassell
Respected Contributor

Re: 2GB filesize limit

Robin,

As long as largefiles is enabled on the filesystem, then ulimit would be the only thing holding a user back from creating a file > 2GB. Verify using the following:

su
ulimit -a

Hope that helps.

-Mike
The network is the computer, yeah I stole it from Sun, so what?
PIYUSH D. PATEL
Honored Contributor

Re: 2GB filesize limit

Hi,

If the quotas are not set and the largefiles options are set then the user can definitely create the files > 2GB.

#fsadm /dev/vg02/lvol2
to check whther largefiles options is enabled.

If not then run
#fsadm -F vxfs -o largefiles /dev/vg02/lvol2

Check with the ulimit -a

Piyush


linuxfan
Honored Contributor

Re: 2GB filesize limit

Hi Jason,

If you have online-JFS you can enable the large file option without unmounting the filesystem.

fsadm -F vxfs -o largefiles /mountpoint_of_fs

If you don't have online JFS, then you need to unmount the filesystem and issue the fsadm on the raw logical volume.

-Ramesh
They think they know but don't. At least I know I don't know - Socrates