1833811 Members
3635 Online
110063 Solutions
New Discussion

Re: make_tape_recovery

 
Randy_9
Regular Advisor

make_tape_recovery

I trying to restore assorted directories using backups from "make_tape_recovery" tapes.
I am able to see and extract from the first tape using the commands:
==> mt -t /dev/rmt/0mn rew
==> mt -t /dev/rmt/0mn fsf 1
==> tar xvf /dev/rmt/0mn

But when I use the same commands on the 2nd tape I get:

# tar tvf /dev/rmt/0mn
Tar: blocksize = 0; broken pipe?

This is the 2nd set of tapes I've tried, first tape works, 2nd I get the problems. I cleaned the heads, kicked the tires... what am I doing wrong?

Thanks,

Randy
8 REPLIES 8
James R. Ferguson
Acclaimed Contributor

Re: make_tape_recovery

Hi Randy:

For the first (and normally only) tape you are skipping the bootable LIF (written by Ignite). The next file is the actual 'pax' ('tar') archive.

Thus, for the second tape, merely use 'tar -tvf /dev/rmt/0m'.

I sould urge you to confine you vg00 and your 'make_tape_recovery' to *only* the standard logical volumes for HP-UX. Having done this, I use:

# make_tape_recovery -x inc_entire=vg00 -I -v -a /dev/rmt/0mn

This easily fits a standard vg00 configuration on a single tape.

Regards!

...JRF...
Steven E. Protter
Exalted Contributor

Re: make_tape_recovery

Shalom Randy,

If one tape works and another does not, surely its not the commands you use.

If this is part of a multi tape make_tape_reocvery the first two mt -t commands may not be needed, as tape 2 may be done with a different head format.

This is one of the problems in using a tool meant to restore whole systems to do partial backups. Definitely posssible, I've done it, but its much easier to have two tapes, one for core OS and a second, written with fbackup or DP 5.

The best sysadmins I know are lazy, like me. They don't want to work hard at stuff like this.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Randy_9
Regular Advisor

Re: make_tape_recovery

This is a 4 tape set, for the 2nd tape, I get:

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

When the set was made, it requested the extra tapes. I know better now then to use this to backup the whole VG00.

Will assign points, thanks everyone!

Randy
Randy_9
Regular Advisor

Re: make_tape_recovery

I lost many filesystems due to a lost drive. Even though 1 am having problems reading the 2nd tape using "tar", would I be better off just restoring everything from single-user mode? Do you think the tapes be unreadable would be readable using them in this fashion?
Tiziano Contorno _
Valued Contributor

Re: make_tape_recovery

Randy, try not to "fsf 1" the second tape.
Then if it still fails, you may consider to reload the whole backup (tape 1 in the tape drive, reboot, sea ipl, some drinks).

Regards.
Torsten.
Acclaimed Contributor

Re: make_tape_recovery

If you lost data in vg00 due to a disk failure, just restore your whole ignite tape. Thats what it made for.

Insert the tape and boot from it. No interaction necessary. This will restore your boot disk (I assume you have no mirror).

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Randy_9
Regular Advisor

Re: make_tape_recovery

restore in progress, I was just trying to avoid taking the system down completely. Oh well.... Points assigned.

Thanks everyone!

Randy
Randy_9
Regular Advisor

Re: make_tape_recovery

using advice from the A-team,