Operating System - HP-UX
1753603 Members
6000 Online
108797 Solutions
New Discussion юеВ

Enabling Large File Sizes

 
KURT HARLESS
Advisor

Enabling Large File Sizes

Greetings,

I have a requirement to create a large export file from an oracle db and migrate the file to nt 4.0. I could do this creating a named pipe on the export and go directly to tape, but havent figured out how I would then read that on nt 4.0? So a better option would be to enable large file size support.

Please advise on the process under hp unix 11.0 .

# fstyp -v /dev/vg01/lvol1
vxfs
version: 3
f_bsize: 8192
f_frsize: 2048
f_blocks: 4608000
f_bfree: 808847
f_bavail: 808847
f_files: 40960
f_ffree: 1073792296
f_favail: 1073792296
f_fsid: 1073807361
f_basetype: vxfs
f_namemax: 254
f_magic: a501fcf5
f_featurebits: 0
f_flag: 0
f_fsindex: 5
f_size: 4608000

Any caveats or issues? Any LVM requirements?

Thanks in advance,

Kurt
"We've come too far, for too long and done too little too much..!"
4 REPLIES 4
steven Burgess_2
Honored Contributor

Re: Enabling Large File Sizes

Hi

To create a filesystem with large file support

newfs -F vxfs -o largefiles /dev/vg03/rlvol1

Using the above option will allow support of files upto 128gig

Regards

Steve
take your time and think things through
S.K. Chan
Honored Contributor

Re: Enabling Large File Sizes

Firstly, if you "f_flag=0" hence that tells me /dev/vg02/lvol1 is not setup to support largefiles.

To convert to largefiles ..
1) Umount the FS on /dev/vg01/lvol1
2) Run this ..
# fsadm -F vxfs -o largefiles /dev/vg01/rlvol1
==> take note use "raw"

If you have OnlineJFS, this can be done on the fly..

# fsadm -F vxfs -o largefiles /

Check the "f_flag" now, it should be set to 16. Or simply run ..
# fstyp /dev/vg01/lvol1
S.K. Chan
Honored Contributor

Re: Enabling Large File Sizes

Sorry .. first paragraph should say ..

Firstly, "f_flag=0" hence that tells me /dev/vg01/lvol1 is not setup to support largefiles.

I need to add one more step, after you have converted to largefiles support, remember to edit /etc/fstab file to reflect this change .. for example an existing entry might look like this ..

/dev/vg01/lvol1 /dirA vxfs rw,suid,nolargefiles,delaylog .....

Change the "nolargefiles" to "largefiles". If you don't do this the FS might not mount automatically after each reboot.
Patrick Wallek
Honored Contributor

Re: Enabling Large File Sizes

You can also try the following:

# fsadm -F vxfs -o largefiles /directory_lv_is_mounted

So if you LV is mounted to /testdir then:

# fsadm -F vxfs -o largefiles /testdir

This should work without having to unmount the LV.

As SK said, be sure you change your /etc/fstab entry so that largefiles are enabled the next time you reboot as well.