1833875 Members
1821 Online
110063 Solutions
New Discussion

Re: Quick tape Q

 
SOLVED
Go to solution
Toby Ragsdale
Frequent Advisor

Quick tape Q

How can I get the date info from a tape? Date tape last writen to, file dates on tape etc.?

HPUX 11
A400
DDS3

Seems a simple request, I just cant find it anywhere. I tryed... Really.. not trying to waste anyones time.

Thanks
TBR
7 REPLIES 7
G. Vrijhoeven
Honored Contributor

Re: Quick tape Q

Hi,

What kind of tape is it?
If it is an ignite tape there must be a file called:
make_recovery.last somewere in /var/opt/ignite/???....
If it is a tar tape you can use the tar tvf /dev/rmt/*m command
could you provide more info please?

Regards,

Gideon
Patrick Wallek
Honored Contributor

Re: Quick tape Q

It depends entirely on what utility was used to write the tape. Was it fbackup, tar, cpio, pax (make_tape_recovery), ftio, some other backup utility?

Your question can't be answered until we know that information.
Toby Ragsdale
Frequent Advisor

Re: Quick tape Q

I am using SAM for automated backups. That would be fbackup, would it not?
Patrick Wallek
Honored Contributor
Solution

Re: Quick tape Q

Yes, that would be fbackup.

To get what you want you need to use 'frecover'. You can have frecover to recover the Index (-I option) file and/or the Volume header (-V option) from the tape. 'man frecover' for more information.
Toby Ragsdale
Frequent Advisor

Re: Quick tape Q

Patrick,

Thanks, that looks like exactley what im looking for... except...

# frecover -V /vol1/tape.tmp
frecover(5403): Unable to open or identify device at /dev/rmt/0m

frecover(5405): unable to open /dev/rmt/0m
frecover(5406): Do you wish to continue? (^[yY]/^[nN])

Thoughts?
Bill Hassell
Honored Contributor

Re: Quick tape Q

Since you did not specify -f for the device file, frecover used the default device file /dev/rmt/0m and apparently whatever was there is now gone. To find the device file for your tape:

/usr/sbin/ioscan -knfC tape

You can use any of device files listed. Then type:

frecover -V - -f /dev/rmt/WhatEver

The volume header is very short, less than one screen of data. The -I option is the complete table of contents so it may be thousands of lines long.


Bill Hassell, sysadmin
Toby Ragsdale
Frequent Advisor

Re: Quick tape Q

Perfect!

Thanks all.

TBR