1754071 Members
3481 Online
108811 Solutions
New Discussion юеВ

backup tape device

 
Jeff Hagstrom
Regular Advisor

backup tape device

I'm doing a restore of a progress database and I'm getting this error on my K460/9000 running unix 11.i. It is being backed up from an RP7410 also running unix 11.i. The progress command to restore is below and the error comes back in a split second.

prorest liveappl /dev/rmt/1mb
SYSTEM ERROR: Read of /dev/rmt/1mb failed, errno = 5 (1052)
SYSTEM ERROR: Error reading backup header (1057)
!!! ERROR - Database restore utility FAILED !!! (8564)
9 REPLIES 9
OldSchool
Honored Contributor

Re: backup tape device

what kind of tape devices are used (both servers) ?
Jim Purtell
Frequent Advisor

Re: backup tape device

Jeff,
Can you run the following at the command prompt?

ioscan -fnC tape

Check to see you're useing the correct tape device '/dev/rmt/1mb'. Also, check to make sure it's still 'ClAIMED'.

Jim
Jeff Hagstrom
Regular Advisor

Re: backup tape device

HP C1537A DDS3
Jim Purtell
Frequent Advisor

Re: backup tape device

Great, now does it have any devices assigned to it. Past the entire line, like so. It'll help if we can see everything.
----------------------------------------------------------------------
# ioscan -fnC tape
Class I H/W Path Driver S/W State H/W Type Description
=======================================================================
tape 21 0/6/2/0.3.26.255.0.0.1 stape CLAIMED DEVICE HP Ultrium 1-SCSI
/dev/rmt/21m /dev/rmt/21mnb /dev/rmt/c20t0d1BESTn
/dev/rmt/21mb /dev/rmt/c20t0d1BEST /dev/rmt/c20t0d1BESTnb
/dev/rmt/21mn /dev/rmt/c20t0d1BESTb
tape 44 0/6/2/0.3.26.255.0.0.2 stape CLAIMED DEVICE HP Ultrium 1-SCSI
/dev/rmt/44m /dev/rmt/44mnb /dev/rmt/c20t0d2BESTn
/dev/rmt/44mb /dev/rmt/c20t0d2BEST /dev/rmt/c20t0d2BESTnb
/dev/rmt/44mn /dev/rmt/c20t0d2BESTb

----------------------------------------------------------------------
Let me ask another stupid question. It's not a cleaning tape you have in the drive is it?




Jeff Hagstrom
Regular Advisor

Re: backup tape device

tape 1 10/12/5.0.0 stape CLAIMED DEVICE HP C1537A
/dev/rmt/1m /dev/rmt/c4t0d0BESTn
/dev/rmt/1mb /dev/rmt/c4t0d0BESTnb
/dev/rmt/1mn /dev/rmt/c4t0d0DDS
/dev/rmt/1mnb /dev/rmt/c4t0d0DDSb
/dev/rmt/c4t0d0BEST /dev/rmt/c4t0d0DDSn
/dev/rmt/c4t0d0BESTb /dev/rmt/c4t0d0DDSnb
Jim Purtell
Frequent Advisor

Re: backup tape device

Jeff,
Have you tried to dd or tar anything to drive 1.
Try . .

tar -cvf /dev/rmt/1m /etc/hosts
Jeff Hagstrom
Regular Advisor

Re: backup tape device

I'm able to tar to a tape, but I tried to dd and I must have the command wrong, I couldn't get it to work.
Jim Purtell
Frequent Advisor

Re: backup tape device

Well, it appears it's not a system error if you can tar to the tape drive. I'd have a look at the 'prorest' routine. Is this a script, binary , program? I'm not familar with Progress databases, sorry to say. But at least we know it's not the drive.

Can you 'vi' the 'prorest'? Tell us what you see. Look for dd, tar, cpio or any thing that looks like its accessing the drive.
Bill Hassell
Honored Contributor

Re: backup tape device

errno 5 is the answer to your question. errno 5 means the tape drive cannot read the data -- an I/O error has occurred. This would be exactly what you would see if a blank tape was put into the drive. It would also be the case if you tried to read a newer DDS tape on an older DDS drive. Tapes are only forward compatible so a DDS3 cannot be read on a DDS2 drive as an example.


Bill Hassell, sysadmin