Operating System - HP-UX
1836772 Members
2514 Online
110109 Solutions
New Discussion

cpio from system v to hpux

 
Joaquin Gil de Vergara
Respected Contributor

cpio from system v to hpux

hello friends

I'm trying to recover cpio tapes made in an SystemV system in a hp9000 server...

backups in systemv were made thus

# cpio -ocvB -O /file

or

# cpio -ocvB < /file

In hp9000 server I try to recovery in the next way

# cpio -itBvdl < /dev/rmt/0m

this result in this error

out of fase --get help

anybody can advise me?

thank you

regards
Teach is the best way to learn
5 REPLIES 5
TwoProc
Honored Contributor

Re: cpio from system v to hpux

Need to put a "c" command in there:
cpio -iBdvmc < /dev/rmt/0m

(there's no "l" command in cpio...
We are the people our parents warned us about --Jimmy Buffett
john korterman
Honored Contributor

Re: cpio from system v to hpux

Hi,
there is a bad spot onthe tape. The result is that something cannot be restored.
You can try and add the "-R" option, e.g.:
# cpio -iRitBvdl < /dev/rmt/0m
which will force cpio to skip bad spots and look for the next file (and hopefully, also next good spot), but you will under all circumstances lose data.

regards,
John K.
it would be nice if you always got a second chance
TwoProc
Honored Contributor

Re: cpio from system v to hpux

Whoops - there is an "l" (ell) command - I didn't see it in the prototype of the man page for the "-i" option (where I was looking) - but it's there in the "-p" option (dir to dir copy). But, it won't help you with reading from tape, so still - leave it out for this "-i" command.
We are the people our parents warned us about --Jimmy Buffett
Nick W
Frequent Advisor

Re: cpio from system v to hpux

As you are *not* seeing an IO error, I do not think you have bad tape.

The error means "file header is corrupt or in the wrong format." Further research may be needed, but I think there is something to do with byte-ordering when comparing SVR4 OS to HP-UX (little-endian vs big-endian...?)

If you still have access to the SVR4 system, try using cpio with different output option (-H odc I think...?) - there may even be an HP-UX format compatability option....?

Try using pax to restore the tape (man pax for the required options to read a cpio format tape)

HTH
Nick
Noel Miranda
Frequent Advisor

Re: cpio from system v to hpux

Just a thought:

Check out the default(or, if provided, then those values of) block i/o size and block i/o buffer size on the source and use the same on destination with the -B and -C options respectively.