Operating System - HP-UX
1753301 Members
6654 Online
108792 Solutions
New Discussion юеВ

Re: unable to create a file more than 2 GB

 
Johnson Punniyalingam
Honored Contributor

Re: unable to create a file more than 2 GB

how about your bloack read size ?

newfs -F vxfs -b 8192 -o largefiles /dev//r

>>fstyp -v /dev/vgdbbacktst/lvdbback
vxfs
version: 3
f_bsize: 8192
f_frsize: 2048 --> can we make same and try agin dd?
<<<<
Problems are common to all, but attitude makes the difference
Pradep
Regular Advisor

Re: unable to create a file more than 2 GB

you mean recreate the FS with 8KB block size ?
dd read from /dev/zero is running fine till it reaches 2GB size. what can be the reason ?
Johnson Punniyalingam
Honored Contributor

Re: unable to create a file more than 2 GB

>>dd read from /dev/zero is running fine till it reaches 2GB size. what can be the reason ?<,

Than you are able to create large files, no issue

so can you try to copy large files to /mount_points and check ?
Problems are common to all, but attitude makes the difference
Pradep
Regular Advisor

Re: unable to create a file more than 2 GB

dd is runs till file size reached 2 GB..after that it aborts with I/O error on terminal display.

does ulimit play any role in filezie limit ?
how can i make it unlimited for all.

ulimit -a
time(seconds) unlimited
file(blocks) 4194303
data(kbytes) 1048576
stack(kbytes) 16384
memory(kbytes) unlimited
coredump(blocks) 4194303
nofiles(descriptors) 6144
Matti_Kurkela
Honored Contributor

Re: unable to create a file more than 2 GB

Yes, JFS 3.3 and VxFS disk layout 3 on HP-UX 11.11 supports file sizes up to 2 TB.

http://docs.hp.com/en/5992-4023/5992-4023.pdf

But the default VxFS disk layout for 11.11 is 4, so this filesystem was probably created with an earlier version of HP-UX. If so, the "largefiles" option was not the default and may need to be switched on explicitly.

NOTE: using the "largefiles" mount option alone is not enough. You must either use the "-o largefiles" option at filesystem creation time, or convert the filesystem to largefiles mode with the fsadm command.

fsadm -F vxfs -o largefiles

If the filesystem was originally created with VxFS layout version 2 or earlier and then updated to layout 3, the inode format conversion step may have been missed too:

fsadm -F vxfs -c

MK
MK
Johnson Punniyalingam
Honored Contributor

Re: unable to create a file more than 2 GB

>>does ulimit play any role in filezie limit ?<<

As per my knowledge NO,

you try fsadm has mentioned by >>MK<<
Problems are common to all, but attitude makes the difference
Pradep
Regular Advisor

Re: unable to create a file more than 2 GB

ulimit -f unlimited solved the issue for root only.

other users still get error like below:
$ ulimit -f unlimited
sh: ulimit: The specified value exceeds the user's allowable limit.

How to make it work for normal users?
which kernel parameter to change.

thanks
Dennis Handly
Acclaimed Contributor

Re: unable to create a file more than 2 GB

>does ulimit play any role in filesize limit?
file(blocks) 4194303

Ding ding! That's exactly it. This is 2 Gb.
I spent hours tracking this down, when some test automation set it to 2 Mb. Unfortunately I didn't learn my lesson and had to figure out all over.

>How can I make it unlimited for all.
>which kernel parameter to change.

You need to not set the limit, probably in /etc/profile. Or in ~/.profile.
It is set by the ulimit shell command.

>Johnson: As per my knowledge NO

Yes it does.
Pradep
Regular Advisor

Re: unable to create a file more than 2 GB

$ ulimit -f unlimited
sh: ulimit: The specified value exceeds the user's allowable limit


normal user is unable to do it.
It must be some kernel parm or Patch.
Johnson Punniyalingam
Honored Contributor

Re: unable to create a file more than 2 GB

>>>normal user is unable to do it.
It must be some kernel parm or Patch.<<<

Hi Pradeep,

Check the below thread, will help to explain

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=906322&admit=109447626+1256694391615+28353475

Rgds,
Johnson
Problems are common to all, but attitude makes the difference