1847071 Members
5972 Online
110262 Solutions
New Discussion

Re: Tar error

 
SOLVED
Go to solution
Raja_2
Advisor

Tar error

Hi all,

I have problem with my backup on HP 11.00.
I got this error message from my backup script.

----------------------------
a /opt/oradata/db0/system01.dbf 186128 blocks
Can't open /dev/tty to prompt for more media.
----------------------------

I have never seen this message and I don't know what it means.
And I found another error from tar :
----------------------------
Tar: tape error (5)
----------------------------

Does anyone know error codes for tar ?


Thanks for any help.
Radim

4 REPLIES 4
Steven Sim Kok Leong
Honored Contributor

Re: Tar error

Hi,

Exit code 5 is I/O error.

You have either a dirty tape, a faulty tape media or a corrupted tar archive in your tape.

Hope this helps. Regards.

Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com

Alexander M. Ermes
Honored Contributor

Re: Tar error

Hi there.
Your backup script is started by the cron i guess. So if there is a request for another tape, it cannot be shown on a terminal.
You should deviate the output to a mail and keep the process on hold, until you changed the tape. Be careful, that is does not timeout.
Check the attached file.
Rgds
Alexander M. Ermes
.. and all these memories are going to vanish like tears in the rain! final words from Rutger Hauer in "Blade Runner"
Steven Sim Kok Leong
Honored Contributor

Re: Tar error

Hi,

Just to add on, tar uses standard HP-UX error codes that can be referenced from /usr/include/sys/errno.h.

Hope this helps. Regards.

Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
Animesh Chakraborty
Honored Contributor
Solution

Re: Tar error

Hi,
For Unix error code see /usr/include/sys/errno.h
5 = I/O error.

In case your /dev/tty is missing or corrupted
1. rm /dev/tty
2. mknod /dev/tty c 207 0x000000
Did you take a backup?