1754366 Members
3693 Online
108813 Solutions
New Discussion юеВ

cpio error

 
Fernando Jose P de Souz
Regular Advisor

cpio error

I have two servers with hp-ux 11.11 (one have a ultrium and the other don't have a tape).

when i make a backup by remote shell using cpio:
# find . -print | cpio -ovdumBc | remsh HP02PR "cat > /dev/rmt/0mn"
obs.: the server without tape for server with tape

The backup is ok, but when i list, appears the following message:
out of phase
and request to use an option R

When i restore a file, appears the following message:
errno:25 , can't read input

Wait.
Fernando.
10 REPLIES 10
harry d brown jr
Honored Contributor

Re: cpio error

Try this:

ON HP01PR:

mknod /tmp/somepipename p
echo "+ +" >.rhosts
find . -print | cpio -ovdumBc > /tmp/somepipename

ON HP02PR

remsh HP01PR -l root dd if=/tmp/somepipename | dd of=/dev/rmt/0mn

live free or die
harry
Live Free or Die
Fernando Jose P de Souz
Regular Advisor

Re: cpio error

Don't work.
MarkSyder
Honored Contributor

Re: cpio error

According to /usr/include/sys/errno.h, error 25 means "not a typewriter", which suggests it's looking for input from the keyboard rather than a tape drive.

What command are you using to restore?

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Fernando Jose P de Souz
Regular Advisor

Re: cpio error

When i list the tape.
#cpio -iBtcR < /dev/rmt/0m

View the output in atach.
Fernando Jose P de Souz
Regular Advisor

Re: cpio error

Mark,

i'm using the following command:
# remsh hp03pr "cat < /dev/rmt/0m" | cpio -ivdumBc
MarkSyder
Honored Contributor

Re: cpio error

You're doing the backup by remsh, but it doesn't look like you're doing the restore by remsh. Is that right?

Mark
The triumph of evil requires only that good men do nothing
Steve Post
Trusted Contributor

Re: cpio error

I normally get "out of phase" when I backup with the "B" option. Try removing it.

If that doesn't work, try removing the "c" option, and keeping the B.

cpio -ovdumc
cpio -ovdumB

If it still doesn't work, I'll start guessing....

The "v" option gives you lots of text on the screen. But you're running this with remsh? Maybe that's the problem?

Hope one of these is it.
Steve
Cheryl Griffin
Honored Contributor

Re: cpio error

Try a new tape to see if you get the same error. It could be a bad tape:

http://www.docs.hp.com/hpux/onlinedocs/B2355-90689/00/00/55-con.html See:
DIAGNOSTICS
Out of phase--get help

"Downtime is a Crime."
Fernando Jose P de Souz
Regular Advisor

Re: cpio error

when i make a backup by remote shell using cpio is ok, and when i list or recover by remote shell, it's ok too.

Commands:
backup:
# find . -print | cpio -ocvBdxum | remsh mastermm "cat > /dev/rmt/0m"
restore:
# remsh mastermm "cat < /dev/rmt/0m" | cpio -icvBdxum

obs.: But, When i list or restore in other server, give me an error: "out of phase" and use the -R option

Presume my system crash and i would like to restore in other server. what should i do?

Wait.