Operating System - Linux
1827428 Members
4364 Online
109965 Solutions
New Discussion

Message: cpio: warning: skipped 58843998 bytes of junk

 
Maricarmen Miranda
Occasional Contributor

Message: cpio: warning: skipped 58843998 bytes of junk

I have a customer that uses a bbrecover for oracle, he needs to restore the info but the system sends the following message:

BR0278E Command output of 'LANG=C cd /oracle/UBD/sapdata4/ubd_10 && LANG=C cpio -iuvcB ubd.data10 < /dev/nst0 && LANG=C mt -f /dev/nst0 fsf 1':
cpio: warning: skipped 58843998 bytes of junk
cpio: warning: skipped 80732623 bytes of junk
cpio: warning: skipped 45788561 bytes of junk
cpio: warning: skipped 3035866110 bytes of junk
838863 blocks
BR0280I BRRESTORE time stamp: 2006-02-22 19.50.25
BR0279

If i use the cpio manually we obtained the same error,

Do you know why?.
1 REPLY 1
Stuart Browne
Honored Contributor

Re: Message: cpio: warning: skipped 58843998 bytes of junk

Hrm.. Ok.

Do you konw hwat 'format' the CPIO was written to the tape with?

file: ASCII cpio archive (SVR4 with no CRC)
file: ASCII cpio archive (pre-SVR4 or odc)
file: ASCII cpio archive (SVR4 with CRC)
file: ASCII cpio archive

Using 'file -s /dev/nst0' on the rewound tape will show something like the above.

The first is 'cpio -H newc', the 3rd is 'cpio -H crc', the fourth is types 'hpodc', 'hpbin' and 'bin', whilst the 2nd is type 'odc'.

Whilst these different formats are similar, they all have uniqueness that could cause issues like what you've seen.

The other thing that could cause it is the '-B' (forcing the CPIO block size).

I suggest you try this:

dd if=/dev/nst0 bs=512 | cpio -iuvc

and see what results you get. Try changing the 'bs=' size (blocksize).
One long-haired git at your service...