Operating System - HP-UX
1834163 Members
2630 Online
110064 Solutions
New Discussion

Re: Problem in creating a tar on tape

 
Rui Vilao
Regular Advisor

Problem in creating a tar on tape

Greetings,

I am trying to backup some data on DLT tapes.

I already tried to rewind:
# mt -t /dev/rmt/1m rewind

When I start to archive I get:

# tar cvf /dev/rmt/1m /opt/oracledb
a /opt/oracledb/app/oracle/product/7.3.4/orainst/usrdfl.log 2 blocks
a /opt/oracledb/app/oracle/product/7.3.4/orainst/install.log 8 blocks
a /opt/oracledb/app/oracle/product/7.3.4/orainst/sql.log 2 blocks
Tar: end of tape
Tar: to continue, enter device/file name when ready or null string to quit.

Any help/suggestion is highly appreciated.

Thanks in advance for your help,

Kind Regards,

Rui.
"We should never stop learning"_________ rui.vilao@rocketmail.com
6 REPLIES 6
Clemens van Everdingen
Honored Contributor

Re: Problem in creating a tar on tape

Hi,

Is there a tape in the drive ?
Does the device file exist ? -> ll /dev/rmt
Did you try other tapes ?

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
steven Burgess_2
Honored Contributor

Re: Problem in creating a tar on tape

Rui

There are a couple of docs regarding this which relate to the tape drive and type tape being used

http://www5.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000007948704

http://www5.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062943760

If not , did you check your rewind was succesful ?

mt -t /dev/rmt/0m rew
echo $?

should be 0

HTH

Steve


take your time and think things through
Deshpande Prashant
Honored Contributor

Re: Problem in creating a tar on tape

Hi
Clean the drive and try with new tape.

Thanks.
Prashant.
Take it as it comes.
MANOJ SRIVASTAVA
Honored Contributor

Re: Problem in creating a tar on tape

Hi Rui


Incase this si the isseu I would recommend :

1. Change the media and try again.

2. Try using w/o any mt option bcoz in any case the drive will write from the start of the tape .

3. If u dotn suceed change the drive , it amy be possbielt aht the drive is errorneoulsy sensing the end of tape soon , ior amy be some signal on the coneector of the controlerr is intermittent.


Manoj Srivastava
Clemens van Everdingen
Honored Contributor

Re: Problem in creating a tar on tape

Hi,

Check also if after rewinding the drive is online !

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
Darrell Allen
Honored Contributor

Re: Problem in creating a tar on tape

Hi Rui,

If another tape works okay, try "mediainit -v /dev/rmt/0m" on the tape that fails. Be sure to rewind the tape first.

I once had the same problem on a couple of DDS tapes that my (Microsoft) Network Admin had "borrowed".

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)