1753859 Members
7514 Online
108809 Solutions
New Discussion юеВ

Files > 2GB in size

 
teri moore
New Member

Files > 2GB in size

We are considering converting from HP-UX 10.20 to HP-UX 11. Are files greater
than 2GB in size allowed automatically in HP-UX 11? Do tar, cpio, etc. work
with files this size?
4 REPLIES 4
John Bean_3
New Member

Re: Files > 2GB in size

To enable files larger than 2GB, you just have to include the "largefiles"
option in the /etc/fstab file:

/dev/vg00/lvol4 /home vxfs delaylog,largefiles 0 2

I do not think that HP's tar that comes standard with HP-UX supports files >
2GB. You can download and install the gnu tar and it will support files larger
than 2GB.

I enabled large files, but we had problems with Veritas Netbackup being able to
restore them, so I turned it back off.

If you do decided to use them, I would recommended thoroughly testing your
backup solution.
Nancy Hubert_1
Advisor

Re: Files > 2GB in size

Hi,

to see if the largefiles option is turned on for a logical volume, you can use
the fsadm command and here is an example:

I want to know for /tmp:
look for the type (hfs or vxfs)
#more /etc/fstab
...
/dev/vg00/lvol4 /tmp vxfs delaylog 0 2

#fsadm -F vxfs /dev/vg00/rlvol4
nomultifsets
nolargefiles

To enable the largefiles you first need to unmount it:

#fsadm -F vxfs -o largefiles /dev/vg00/rlvol4

mount it back

#fsadm -F vxfs /dev/vg00/rlvol4
nomultifsets
largefiles

You need to do it on the rlvol, there is a mystake in the man page for fsadm.

And I suggest you to look on your system for largefiles
documentation:

/usr/share/doc/lg_files.txt or
/usr/share/doc/lg_files.ps

Nancy
Jason Luginbuhl_1
Frequent Advisor

Re: Files > 2GB in size

Terri,

Rather than asking for an explanation of how to convert a filesystem to allow
largefiles, you seemed to be asking is the large files will cause any problems
with tar, cpio, and various backup utilities. The answer is that they should
not. Keep in mind that tar, cpio, etc., are primarily designed to be written to
a tape device which operates in stream or "raw" format. As such the file size
"block" format limitation of 2 GB should not be a factor at all. Hope this
helps.
Pedro Rodrigues_5
New Member

Re: Files > 2GB in size

You can set your HP-UX 10.20 to be a Journaled file system, in this way you
will be able to manage files larger than 2Gb with no problem and I have this
here using fbackup to copy these files into tape without any problem.
I hope it can help you.