Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

2 GB File Limitation 1

Status
Not open for further replies.

jocasio

IS-IT--Management
Oct 11, 2002
88
US
Hey all:

I am having a problem dumping a database because it's over two Gigs. Tech support said I have to make sure " have to amke sure the "Large_Files" setting was turned on in my OS (HP UX 11.0) Can any one tell me what he means and what parameter I need to change. I'm not even sure it's a Kernel Parameter.

many thanks for your help

jocasio
 
when you create a filesystem you do it seting an attribute "largefiles", example:

mkfs -F hfs -o largefiles /vg10/rlvol1

man mkfs_hfs for more info.


Cheers.
 
Chacalinc:

Thanks so much for the speedy reply. How can I do this now that the filesystem is created? Also I created the original file system using sam. Is there a switch for it there? One last thing: You mentioned I have to set the largefile for the file system. Does it matter that the file I am creating within a filesystem is over 2 gigs? In other words, if my file system is set for largefiles, will that automatically make my files support over 2 gigs?

Thanks again!

jocasio
 
1. How can I do this now that the filesystem is created?

use SAM, select the filesystem and modify it, it should have a "large files" or something like that option.

2. Also I created the original file system using sam. Is there a switch for it there?

yes, it should have a large file option.

3. Does it matter that the file I am creating within a filesystem is over 2 gigs? In other words, if my file system is set for largefiles, will that automatically make my files support over 2 gigs?

Yes, it matters. If "largefiles" option is not set, filesyste, has the 2 Gig limit. with largefiles enabled, you can create files larger than 2 GB.

Cheers. [peace]
 
Chacalinc:

Again, Thanks so much for your replies. I just made the change and it worked! Interestingly, the file that was created was only 1.4 Gigs. When it failed on my dump, however, the file creat4ed was over 2 gigs.

Thanks again for your help!!!

jocasio
 
could any of you tell me where is that option "large file" in the sam options?
i'm using hp-ux 11.0.
I have searched a lot but didn't found. maybe i've missed it.
thanks
 
vascobrito:

When you start sam, select File System. Then highlight the file system you're interested in. Select Action/Modify...
and one of the options is "Allow Large Files" X the selection and apply.

jocasio
 
Large files can also be enabled by typing:

fsadm -F vxfs -o largefiles /<mountpoint>
 
jocasio - simple is good :)

Mike

Want to get great answers to your Tek-Tips questions? Have a look at faq219-2884

It's like this; even samurai have teddy bears, and even teddy bears get drunk.
 
What overhead does the largefile option cause, any reason why I would just specify it?


Ed

Ed Skolnik
 
As I know, none.. if you are talking about specify "largefiles", the only reason is to support files bigger than 2 GB. Actually, I don't know why the "largefiles" option is not set by default.

Cheers.
 
nolargefiles is the default because there is an overhead to the inode structure with indirect references. Although any performance impact should be negligible. I always default to largefiles if I need the flexibility.

The onlineJFS product allows you to modify largefiles setting without needing to unmount the filesystem aswell.

SAM is for wimps (and kernel changes)! Any system administrator should know exactly what's being done to their system, so they can fix it when it breaks.

--
Jack
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top