Operating System - HP-UX
1835865 Members
3561 Online
110085 Solutions
New Discussion

CPIO - copy Software to file - errno: 25, Can't write output

 
SOLVED
Go to solution
Millicent Howze-Simmons
Frequent Advisor

CPIO - copy Software to file - errno: 25, Can't write output

I am trying to copy my Oracle software.
I am using CPIO to copy the directory and file structure. but my filesystem keeps complaining that it is too large.

I have 13G og memory and 68G of hard Disk space. The creation of the file always stops at 2147483647.

Do I have enough resources to do this?

Is this file reporting 2 terabytes, if so I assume this is a problem because I can not accomodate resources ?

4 REPLIES 4
James R. Ferguson
Acclaimed Contributor

Re: CPIO - copy Software to file - errno: 25, Can't write output

Hi:

The 'cpio' utility does not support largefiles; i.e. those larger than 2GB. With patches, the standard HP-UX 'tar' or 'pax' utility handles files up to 8GB in size. Largefiles are intrinsicly supported by 'fbackup'.

Regards!

...JRF...
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: CPIO - copy Software to file - errno: 25, Can't write output

There are 2 things at play here. You may be hitting the 2GiB filesize limit of the cpio archive if the destination filesystem is not largefiles enabled. The cure for this is to make the filesystem largefiles enabled. Man fsadm_vxfs for details. However, no individual file for a cpio image can exceed 2GiB so if you need to back up files > 2GiB then you need to use a different tool. The Gnu version of tar or the patched version of HP-UX's tar can handle individual files up to 8GiB. If you need to backup files larger than that then fbackup is your only free choice. The downside is that fbackup is not portable across different OS flavors.

Because you say you are backing up your Oracle software, I rather doubt that any single file is larger than 2GiB so all you really need to do is enable largefiles on the filesystem that you are writing your cpio image to.
If it ain't broke, I can fix that.
James R. Ferguson
Acclaimed Contributor

Re: CPIO - copy Software to file - errno: 25, Can't write output

Hi (again):

As Clay noted, if your destination filesystem doesn't have 'largefiles' enabled you can't create files larger than ~2GB.

Verify your destintation filesystesm:

# mkfs -F vxfs -m /dev/vgNN/lvolX

...you will see either "nolargefiles" or largefiles" depending on the state of the largefiles bit.

To enable 'largefiles' if necessary:

# fsadm -F vxfs -o largefiles /dev/vgNN/rlvolX

...note the use of the raw device.

OR:

# fsadm -F vxfs -o largefiles /mountpoint

Regards!

...JRF...
Millicent Howze-Simmons
Frequent Advisor

Re: CPIO - copy Software to file - errno: 25, Can't write output

Clay, James!

Thanks a bunch. 10 points for you both!!

Millicent