Operating System - HP-UX
1753336 Members
4930 Online
108792 Solutions
New Discussion юеВ

backup with cpio or tar largefiles

 
SOLVED
Go to solution
Jairo Campana
Trusted Contributor

backup with cpio or tar largefiles

Hello I need backup with cpio or tar , but when use cpio I obtain the following messages:
use GNUCPIO for large files
#find . | cpio-2.5-pa2.0 -ocBv > /dev/rmt/0m
cpio-2.5-pa2.0: ./ts001050_db_200306101920.BAK: Value too large to be stored in data type
cpio-2.5-pa2.0: ./ts001050_db_200306101920.BAK: Value too large to be stored in data type
41855 blocks

nms1 # du -ks ts001050_db_200306101920.BAK
4485836 ts001050_db_200306101920.BAK
(4 GB)

thanks
legionx
14 REPLIES 14
Dario_1
Trusted Contributor

Re: backup with cpio or tar largefiles

Sridhar Bhaskarla
Honored Contributor

Re: backup with cpio or tar largefiles

Hi Jairo,

I don't hink GNU's cpio will support large files. But GNU tar does.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Steven E. Protter
Exalted Contributor

Re: backup with cpio or tar largefiles

There is a tar patch for 11 and 11.11 that lets you go up to 8 GB on filesize.

Though on an HP-UX system, I would opt for fbackup. Then it will work on any standard system no matter how its patched.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
James R. Ferguson
Acclaimed Contributor

Re: backup with cpio or tar largefiles

Hi Jario:

If you are running 11.11, PHCO_28992 for 'tar' and PHCO_28414 for 'pax' enable largefile support.

Regards!

...JRF...
Elena Leontieva
Esteemed Contributor

Re: backup with cpio or tar largefiles

According to /usr/share/doc/lg_files.txt:
"4.2.1 tar, cpio, pax, ftio

Some of the backup commands, specifically tar, cpio, pax (tar & cpio
formats), and ftio (because it creates cpio format archives) are
restricted from supporting large files due to standards defined
headers in the archives. Although the headers allow archival of files
upto 8GB, there is no guarantee that there will be no attempt to
restore these files on a system that does not support large
files. These commands will therefore support files up to 2GB
only. Attempts to archive any files >2GB will fail, and the files will
not be added to the archive."

The fbackup command does support largefiles as well as the GNU backup
utils like GNUtar. GNUtar can be found at:
http://hpux.asknet.de/hppd/hpux/Gnu/tar-1.13.18
Caesar_3
Esteemed Contributor

Re: backup with cpio or tar largefiles

Hello!

You need to install the new version of
tar that suport large files you can download from: http://hpux.connect.org.uk/

Caesar
Jairo Campana
Trusted Contributor

Re: backup with cpio or tar largefiles

HI, installed: tar-1.13.25-sd-11.00.depot.gz
obtain the following error:


nms1 # /usr/local/bin/tar -cvf /dev/rmt/0m *
/usr/lib/dld.sl: Can't find path for shared library: libiconv.sl
/usr/lib/dld.sl: No such file or directory
Abort(coredump)
nms1 #

legionx
A. Clay Stephenson
Acclaimed Contributor

Re: backup with cpio or tar largefiles

The Gnu version of tar has two dependencies: gettext and libiconv. Download them from the same source and install them. Sometimes it really does help to read the documentation.
If it ain't broke, I can fix that.
Jairo Campana
Trusted Contributor

Re: backup with cpio or tar largefiles

I installed gettex and libicon-1.9 result with errors libiconv-1.8 too in analisys:

* Agent session started for user "root@nms1". (pid=4894)

* Beginning Analysis Phase.
* Source: nms1:/tmp/libiconv-1.8-sd-11.00.depot
* Target: nms1:/
* Target logfile: nms1:/var/adm/sw/swagent.log
* Reading source for product information.
* A version of the fileset exists:
"libiconv.libiconv-RUN,l=/opt/libiconv,r=1.6.1".
This fileset version is already configured.
ERROR: A version of fileset "libiconv.libiconv-RUN,r=1.8" is already
installed in another location (see previous lines).
Installing this version will create multiple installed
versions.
You must either remove that fileset or change the
"allow_multiple_versions" option to "true".
WARNING: No filesets in the product "libiconv,r=1.8" will be configured
as part of the install, because there is another version with
a same fileset already configured. If you want multiple
configured versions you must run "swconfig" with the
"allow_multiple_versions" option set to "true".
* Reading source for file information.
* Executing preDSA command.

* Summary of Analysis Phase:
ERROR: Exclude libiconv.libiconv-RUN,r=1.8
ERROR: 1 of 1 filesets had Errors.
ERROR: The Analysis Phase had errors and warnings. See the above
output for details.
legionx