1753923 Members
8531 Online
108810 Solutions
New Discussion юеВ

Re: cpio on hp-ux 10.20

 
SOLVED
Go to solution
OldSchool
Honored Contributor

Re: cpio on hp-ux 10.20

"So the bottom line is you can not setup block size for cpio when restore from the tape drive."

see Dennis' reply above. He notes -B will reset the block size to 5120.

better yet, he suggested (twice) that you use "pax" instead, which will sort out the blocking correctly.

having hit "End of Volume" and continued on using the same tape w/o rewind makes me wonder how the tape was produced in the first place.
Tammy Liang
Regular Advisor

Re: cpio on hp-ux 10.20

So I can pax to restore the file that created via cpio? If so, what's the command?

Can you provide the cpio commands that I can use with -B and dd for getting cpio file from /dev/rmt/0m?

Tks.
take easy, enjoy life
Dennis Handly
Acclaimed Contributor

Re: cpio on hp-ux 10.20

>So I can pax to restore the file that created via cpio?

Yes: pax -rv -f /dev/rmt/0m

>Can you provide the cpio commands that I can use with -B and dd for getting cpio file from /dev/rmt/0m?

-B works only if you used -B to write it.

Using dd(1) is completely separate more complicated approach.
Some threads:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1281104
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1163073
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1252713
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1229193
James R. Ferguson
Acclaimed Contributor

Re: cpio on hp-ux 10.20

Hi Tammy:

I would add, for your further information, that 'cpio' cannot archive 'largefiles' (files > 2GB).

With 'pax', when Using '-x cpio' or '-x ustar' files up to 8GB can be archived.

In 11.31 or in 11.23 with the PAX_ENH product installed, 'pax' can archive files larger than 8GB.

HP is making 'pax' a defacto standard for HP-UX and is in fact, deprecated (the extremely useful but proprietary) 'fbackup' utility.

Regards!

...JRF...
James R. Ferguson
Acclaimed Contributor

Re: cpio on hp-ux 10.20

Hi (again) Tammy:

Oh, the above is just another reason to move from the unsupported, ancient 10.20 release to at least 11.11.

I keep missing the fact that you noted your release as 10.20.

Regards!

...JRF...
Tammy Liang
Regular Advisor

Re: cpio on hp-ux 10.20

Thanks all. We moved from hp-ux to redhat linux. For this particular case, I need to restore file that was created years ago on hp-ux 10.20 with cpio command to get some oracle data out...
I will try the "pax" command.

Tks.

Tammy
take easy, enjoy life
Tammy Liang
Regular Advisor

Re: cpio on hp-ux 10.20

All, the pax does work. file was restored and
imported to database.

Tks for all reply.
take easy, enjoy life