1834604 Members
3974 Online
110069 Solutions
New Discussion

File size > 2GB

 
sid_22
Advisor

File size > 2GB

Hi

We have HP-UX 11i we can’t save a file with size greater than 2GB
How we can do to allow the OS to save file size more than 2 GB.

Thank you
15 REPLIES 15
Devender Khatana
Honored Contributor

Re: File size > 2GB

Hi,

You can enable the largefile option for the file systems by putting entires in /etc/fstab, so that by default it will be enabed while mounting the file systems.

#fsadm -F vxfs -o largefiles /dev/vgxx/lvol?

This command will change it for once. and entry in /etc/fstab will enable it at every mount nowon.

HTH,
Devender
Impossible itself mentions "I m possible"
RAC_1
Honored Contributor

Re: File size > 2GB

The file system needs to be mounted with largefiles support. Check it. mount -v or mount -p

If not, and if you have onlineJFS, you can enable largefiles option online with fsadm command. fsadm -o largefiles /mount_point.
Else, unmount and fsadm and mount again.

How are you trying to save files?? tar?? pax ?? what are you using??
There is no substitute to HARDWORK
Victor Fridyev
Honored Contributor

Re: File size > 2GB

Hi,

A small elaboration:
fsadm -F vxfs -o largefiles /dev/vgxx/rlvolyy

And before running the command the file system must bu unmounted.

HTH
Entities are not to be multiplied beyond necessity - RTFM
sid_22
Advisor

Re: File size > 2GB

Thank you for your responses, we are using Oracle to exporte files ans save them.
If I understand we must :
- unmount the file system
- Execute the following command : #fsadm -F vxfs -o largefiles /dev/vgxx/rlvolyy
- mount the file system

What represent /dev/vgxx/rlvolyy

Thank you
Devender Khatana
Honored Contributor

Re: File size > 2GB

Hi,

It represent the deive file of the LVOl which holds your file system. Change it with actual file and use it without r. i.e. /dev/vgxx/lvol?

Where vgxx is your VG & lvol? is your file system in that VG.

HTH,
Devender
Impossible itself mentions "I m possible"
V. Nyga
Honored Contributor

Re: File size > 2GB

Hi,

check your /etc/fstab, then you'll see your vg and your lvol.
As Devender said, you have to change /etc/fstab anyway for this directory.
So you can look there, which filesystem it is.

HTH
Volkmar
*** Say 'Thanks' with Kudos ***
Sยภเl Kย๓คг
Respected Contributor

Re: File size > 2GB

Hi,

No you don't have to umount the FS for this purpose. fsadm doesn't use the lvol name, but the mount point. You need to identify the mount point where this fs is mounted. Then use #fsadm -F vxfs -o largefiles

For use this facility u need to have online JFS installed in your system.

All the bests !

regards,
Sunil
Your imagination is the preview of your life's coming attractions
sid_22
Advisor

Re: File size > 2GB

Hi

Thank you all for your responses.
We have execute the following command on our system

#fsadm â F vxfs â o largefiles /dev/vgDELTA/lvolDELTA3

After this we have the following message :

Vxfs fsadm : /dev/vgDELTA/lvolDELTA3 in not the root inode of a vxfs file system

We must have HP Online JFS installed ?

Thanks
Robert-Jan Goossens
Honored Contributor

Re: File size > 2GB

SID,

You will need OnlinJFS if you would like to do this online! Otherwise you will need to umount your filesystem.

Close the application

# umount /dev/vgDELTA/lvolDELTA3
# fsadm -o largefiles /dev/vgDELTA/rlvolDELTA3
# mount /dev/vgDELTA/lvolDELTA3
# fsadm /dev/vgDELTA/rlvolDELTA3
to check.

Regards,
Robert-Jan
V. Nyga
Honored Contributor

Re: File size > 2GB

Hi,

the option -F vxfs seems to be wrong.
Either run the command without this option or check your /et/fstab.

V.
*** Say 'Thanks' with Kudos ***
Jayasuntar
Valued Contributor

Re: File size > 2GB

Dear Sid,

Your error mesg says, u didnt use the raw lv name ( Used only lvol nale), to enable the largefile option.

# umount /
#fsadm -F vxfs -o largefiles /dev/vgxx/rlvolx
#mount /dsv/vgxx/lvolXX /

All the best

Jay
Sivakumar TS
Honored Contributor

Re: File size > 2GB


Dear sid,

Please let us know which is the filesystem that you are using.

If it is vxfs then,

#fsadm -F vxfs -o largefiles /dev/vgxy/lvolx

This should work !

With Regards,

Siva.
Nothing is Impossible !
R.KrishnaKumar
Frequent Advisor

Re: File size > 2GB

Hi Sid,

The command for enabling the largefiles for vxfs filesystems is

#fsadm -F vxfs -o largefiles /dev/vgxx/lvolx

u can try this !!!

regards,
Krishna
YoungHwan, Ko
Valued Contributor

Re: File size > 2GB

1.check your file system is set to largefiles or not
# fstyp -v /dev/vgDELTA/rlvolDELTA3
vxfs
version: 4
f_bsize: 8192
f_frsize: 1024
f_blocks: 1048576
f_bfree: 1012763
f_bavail: 949722
f_files: 252964
f_ffree: 253188
f_favail: 253188
f_fsid: 1073807361
f_basetype: vxfs
f_namemax: 254
f_magic: a501fcf5
f_featurebits: 0
f_flag: 0 ===> this is not largefiles, largefiles is 16
f_fsindex: 7
f_size: 1048576

2. Create lvolDELTA3 to largefiles

# umount /dev/vgDELTA/lvolDELTA3
# fsadm -F vxfs -o largefiles /dev/vgDELTA/rlvolDELTA3
# mount /dev/vgDELTA/lvolDELTA3

Ted Buis
Honored Contributor

Re: File size > 2GB

You can use "sam" to set the file system to handle large files and avoid all the commands if you wish.
Mom 6