1834935 Members
2228 Online
110071 Solutions
New Discussion

cp problem

 
Achilles_2
Regular Advisor

cp problem

Hello there,

I face a problem if the file size is too large, e.g, 3Gig, I can't use rcp, cp and mv command because it returns the error:
cp: xxx.tar: File too large

So do any expert have any suggestion to copy such kinds of file?

Thanks
6 REPLIES 6
Steven Schweda
Honored Contributor

Re: cp problem

To what are you trying to copy it? (To a
file system which doesn't support large
(>2GB) files?)

Why not show the actual commands and their
actual output?
Asif Sharif
Honored Contributor
Bill Hassell
Honored Contributor

Re: cp problem

Display the options setup for your destination filesystem:

fsadm /dev/vg00/rlvol1

or whatever filesystem you are using. You will see something like this:

fsadm /dev/vg00/rlvol1
file system : /dev/vg00/rlvol1
magic number : 95014
feature bits : 1
file system supports : nolargefiles, longfilenames

In this example, lvol1 does *NOT* allow any files larger than 2Gb. Use fsadm to change the capabilities of a filesystem (man fsadm_vxfs)


Bill Hassell, sysadmin
gstonian
Trusted Contributor

Re: cp problem

eg.

mkfs -F vxfs -o largefiles /
gstonian
Trusted Contributor

Re: cp problem

Oops should be fsadm not mkfs
tsf_1
Frequent Advisor

Re: cp problem

Yes, the destination that you are copying the file too must be enable with large files.

For example you trying to move file to /misc(the lvol1 is mounted to /misc):
Check if it is largefilesystem
#fsadm -F vxfs /dev/vg01/rlvol1
nolargefiles

To Enable Largefilesystem
#umount /misc
#fsadm -F vxfs -o largefiles /dev/vg01/rlvol1
#fsadm -F vxfs /dev/vg01/rlvol1
largefiles

To Disable Largefilesystem
#umount /misc
#fsadm -F vxfs -o nolargefiles /dev/vg01/rlvol1
#fsadm -F vxfs /dev/vg01/rlvol1
nolargefiles

Related backup command supporting 2GB filesystem: http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c01005706-1
be willing to do, be happy to bear