Operating System - HP-UX
1832918 Members
2710 Online
110048 Solutions
New Discussion

Reading tar archive from Ignite tape fails with checksum error

 
SOLVED
Go to solution
Paul F. Bennett
Advisor

Reading tar archive from Ignite tape fails with checksum error

I’m attempting to create an Ignite make_recovery_tape from an Ignite Network Archive. I follow the exact step outlined by several docs I have found, in which they all pretty much give the same steps. Everything appears to run find until I try to read the tar’d archive.

I create the LIF header on the tape:
# /usr/bin/dd if=/var/tmp/my_lif of=/dev/rmt/c4t1d0DDS1n obs=2k

I tar the archive to the tape:
# /usr/bin/dd if=/var/opt/ignite/recovery/archives/ftuxtest/2009-02-27,02:13 of=/dev/rmt/c4t1d0DDS1n obs=10k

But when I attempt the read the tar archive is get the following error:
# /usr/bin/mt -t /dev/rmt/0mn fsf 1
# /usr/bin/tar tvf /dev/rmt/0m
directory checksum error

Base on the time it takes for the dd to complete it appears the archive is being copied but I cant read it. Below are the steps I take to create the LIF and tar archive before I write to the tape.

I know this is a lot but any thought?

CREATE A BOOTABLE TAPE WITH make_net_recovery:

1. Use make_medialif to build the LIF file:

a. cd /var/opt/ignite/clients/sys1/recovery/1999-03-12,09:00

b. /opt/ignite/bin/make_medialif \
-f system_cfg -f control_cfg -f archive_cfg \
-C "1999-03-12,09:00 sys1 recovery image" \
-l /var/tmp/my_lif \
<-r and -o options>

2. Modify the LIF file to set it up for use on the tape:

/opt/ignite/bin/instl_adm -d -F /var/tmp/my_lif > /var/tmp/cfg

3. Edit the /var/tmp/cfg file and add the following lines to the
end of the file:

control_from_server=FALSE
run_ui=FALSE
env_vars += "INST_ALLOW_WARNINGS=10"

4. Issue this command:

/opt/ignite/bin/instl_adm -F /var/tmp/my_lif -f /var/tmp/cfg
9 REPLIES 9
Steven E. Protter
Exalted Contributor

Re: Reading tar archive from Ignite tape fails with checksum error

Shalom,

Interesting idea.

It might work better to do a network recovery to a system with a tape drive and then make the ignite tape.

As far as I know make_net_recovery archives are suitable for network recovery and make_tape_recovery archives are suitable for tape recoveries.

I don't think they can be cross matched.

Its like putting AB blood in an O positive patient.

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
Tingli
Esteemed Contributor

Re: Reading tar archive from Ignite tape fails with checksum error

I don't see you tar file from /recovery/1999-03-12,09:00 to tape. You just dd there, therefore this is a file of gz over tar. For this, you need to gunzip it first, the tar -x it.
OldSchool
Honored Contributor

Re: Reading tar archive from Ignite tape fails with checksum error

"You just dd there, therefore this is a file of gz over tar. "

where / how did gzip get in this????
Tingli
Esteemed Contributor
Solution

Re: Reading tar archive from Ignite tape fails with checksum error

The way to read a ignite file is:

gunzip < /var/opt/ignite/clients/sys1/recovery/1999-03-12,09:00 | tar -tf .

as actually it is a gz file.
Avinash20
Honored Contributor

Re: Reading tar archive from Ignite tape fails with checksum error

shivaji@root/>tar -cvf /tmp/avinash.tar avinash
a avinash/var/adm/sw/swagent.log 1 blocks

shivaji@root/>tar -tvf /tmp/avinash.tar
rwxrwxrwx 0/3 0 Feb 16 13:05 2009 avinash/
rwxr-xr-x 0/3 0 Feb 16 13:05 2009 avinash/var/
rwxr-xr-x 0/3 0 Feb 16 13:05 2009 avinash/var/adm/
rwxr-xr-x 0/3 0 Feb 16 13:05 2009 avinash/var/adm/sw/
rw-r--r-- 0/3 234 Feb 16 13:05 2009 avinash/var/adm/sw/swagent.log

shivaji@root/>dd if=/tmp/avinash.tar of=/tmp/avinash_back
20+0 records in
20+0 records out

shivaji@root/>ll /tmp/avinash_back
-rw-rw-rw- 1 root sys 10240 Mar 3 11:02 /tmp/avinash_back

shivaji@root/>file /tmp/avinash_back
/tmp/avinash_back: tar file

shivaji@root/>tar -tvf /tmp/avinash_back
rwxrwxrwx 0/3 0 Feb 16 13:05 2009 avinash/
rwxr-xr-x 0/3 0 Feb 16 13:05 2009 avinash/var/
rwxr-xr-x 0/3 0 Feb 16 13:05 2009 avinash/var/adm/
rwxr-xr-x 0/3 0 Feb 16 13:05 2009 avinash/var/adm/sw/
rw-r--r-- 0/3 234 Feb 16 13:05 2009 avinash/var/adm/sw/swagent.log

### Hence if the format is tar this should be working but for Ignite am not sure.

Check
# file /var/opt/ignite/recovery/archives/ftuxtest/2009-02-27,02:13

## Try achieving small file on the tape and check if you are able to view the file
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
OldSchool
Honored Contributor

Re: Reading tar archive from Ignite tape fails with checksum error

hmmm...the following post:
http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1236099914384+28353475&threadId=1009153

seems to indicate that network ignites are gzipped, while the tape versions aren't...

if that is correct, you would need to unzip the archive prior to copying it to tape. failure to do so would result in just the error you got.....
Avinash20
Honored Contributor

Re: Reading tar archive from Ignite tape fails with checksum error

Check
# file /var/opt/ignite/recovery/archives/ftuxtest/2009-02-27,02:13
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Paul F. Bennett
Advisor

Re: Reading tar archive from Ignite tape fails with checksum error

The file is gzip'd...
Paul F. Bennett
Advisor

Re: Reading tar archive from Ignite tape fails with checksum error

let me try unzipping the archive prior to copying to tape, thanks all!