Operating System - HP-UX
1753675 Members
4957 Online
108799 Solutions
New Discussion

Interrogate a make_tape_recovery tape

 
SOLVED
Go to solution
Kirk Reindl
Frequent Advisor

Interrogate a make_tape_recovery tape

Hi:

Does anyone know of a way to easily interrogate a make_tape_recovery tape using a make_tape_recovery command/switch.

I'd prefer not using using tar plus if I remember tar only shows file listings. I know I can look at the /var/opt/ignite logs, but I what if I didn't have the log.
I was hoping there was something similar to the frecover command
/etc/frecover -V /tmp/index -f /dev/rmt/0m

Thanks,
Kikr

1 REPLY 1
Sundar_7
Honored Contributor
Solution

Re: Interrogate a make_tape_recovery tape

Do you have enough space in any of the filesystem ? - If yes, you can try somethign like this

# ioscan -fnkC tape

# mt -t /dev/rmt/0mn rew

# dd if=/dev/rmt/0mn of=/fs/LIF bs=1024k count=8

# dd if=/dev/rmt/0mn of=/fs/test.tar bs=1024k

This will create two files in /fs directory

LIF = is the lif volume of the boot tape

test.tar = is the tar archive of the system from the recovery tape

If both the above dd commands complete without any IO errors, you can safely assume your recovery tape is good.

Other way would be to use tar not just to list the files but also you can try and restore from tar. by default files are stored using the relative path. So you can just cd to any directory that has some free space and try restoring random files using tar.

Learn What to do ,How to do and more importantly When to do ?