Operating System - HP-UX
1840638 Members
4852 Online
110166 Solutions
New Discussion

Re: Customized installation media not working

 
SOLVED
Go to solution
Ladislav Kostal
Advisor

Customized installation media not working

Hello all,

I woul like to ask you to help me with following problem:

We can not use Ignite server and don't want to backup on tapes regurarly. So we want to create just LIF and IMAGE files and when necessary, write them to tape. So I have created LIF and IMAGE (tar) files and wrote them to the tape.

When I boot from tape, I go through Advanced installation and choose "Go!". After creating and extending filesystems I get:

* Positioning tape (/dev/rmt/1mn).
* Archive extraction from tape is beginning. Please wait.

/: write failed, file system full
/: file system full
pax_iux: /etc/vx/type/gen/vxmake_static : No such file or directory

/: write failed, file system full
/: file system full
pax_iux: /etc/vx/type/gen/vxmend : No space left on device

... and so on until I press Ctrl+C.

When I jump to debugging shell, only "/" is mounted with size of 11MB. But in configuration it has 256MB. So why it is created so small?

Ignite is in version C.6.1.44.

Thanks for any ideas,

Ladislav Kostal
11 REPLIES 11
harry d brown jr
Honored Contributor

Re: Customized installation media not working

Why are you not using make_tape_recovery ??

live free or die
harry d brown jr
Live Free or Die
Ladislav Kostal
Advisor

Re: Customized installation media not working

We want to have a possibility to extract some files from tar archive on system itself. And we don't want to use tapes for storing backups; only in case of recovery tape should be created from those LIF and IMAGE.
harry d brown jr
Honored Contributor

Re: Customized installation media not working


YOU CAN:

man make_tape_recovery

YIELDS:

Extracting files from tape
After the system recovery tape has been created, a single file or
files can be extracted from tape by seeking to the tape position where
the archive is located. The mt command can be used to seek to the
appropriate location, and pax or tar can be used to extract files from
the archive.

To extract a single file from the recovery archive:

- 7 - Formatted: June 8, 2005

make_tape_recovery(1M) make_tape_recovery(1M)

mt -t /dev/rmt/0mn fsf 1
tar -xvf /dev/rmt/0m filename

Extracting files from tape can take a long time, especially when
archives are large.


live free or die
harry d brown jr
Live Free or Die
RAC_1
Honored Contributor

Re: Customized installation media not working

If remember correctly, the lif has to be written in certain block size and tar in 10k. The lif has to be in 2k (don't rember it is correct or not)

But not sure if this related to your problem or not.

Anil
There is no substitute to HARDWORK
Ladislav Kostal
Advisor

Re: Customized installation media not working

1) We don't want to store backup on tapes.
2) We create LIF and IMAGE and copy them to second system.
3) When we need one file, we just extract it easily from .tar file on that second system.
4) When we need to recover first system, we create tape from those files on second system.

These are requirements. And now I need to get it work... Tape boots, installation starts, but I can not extract archive...

I removed "impacts" section from config file and add also "ignore impacts" flag, but with same result.
harry d brown jr
Honored Contributor
Solution

Re: Customized installation media not working


OK, then:

(1) find a disk big enough

(2) create a directory on that disk (i created using "mkdir -p /opt/tapebackupdir")

(3) chown bin:bin /opt/tapebackupdir

(4) add export entries (see below) to /etc/exports and then "exportfs -av":
/var/opt/ignite/clients -root=vpart1
/opt/tapebackupdir -root=vpart1
(my system name is vpart1 - replace as necessary)

(5) use make_net_recovery to the localhost:
make_net_recovery -s vpart1 -a vpart1:/opt/tapebackupdir -x exclude=/opt/tapebackupdir

(6) to extract single files use gzcat:
gzcat 2005-06-08,10:17 | tar -tvf -
(-tvf list the contents of the archive not restore)
I got this from Patrick Wallek in this thread: http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=404306



live free or die
harry d brown jr
Live Free or Die
harry d brown jr
Honored Contributor

Re: Customized installation media not working

Follow this http://docs.hp.com/en/B2355-90872/ch09s04.html to create a tape from the archive.

live free or die
harry d brown jr
Live Free or Die
Bernhard Mueller
Honored Contributor

Re: Customized installation media not working

Ladislav,

with these error messages this looks like the problem is somehow related to your using VXVM boot disks.

I would suggest you try this again, without changing the size of any volume, just give it a GO an see if it works as expected. I do have recovered and cloned VXVM rootdisk systems from recovery tapes with C.6.1.44 so it seems not to be related to that ignite version.

Also check the config files you use for make_medialif. I take it you did not change the name rootdg to something else...

Regards
Bernhard
Ladislav Kostal
Advisor

Re: Customized installation media not working

Hello Harry,

I tried your solution and it worked! (except that not all was backuped, but this could be solved)

I tried same lif with my previous complete image and got same errors again.

Isn't this image just plain tar.gz of whole system? Or has something special in it?

Problem is, that we can not use NFS on system nor make_sys_image (level 1 can not exclude and level 2 removes symbolic links temporarily). So I have separated one command line for make_sys_image and created image by myself. But it isn't working :(

Thanks for your advices,

Ladislav Kostal
Ladislav Kostal
Advisor

Re: Customized installation media not working

So this is the final solution:

#!/usr/bin/sh

DATE=`/usr/bin/date +%Y%m%d_%H%M`
COMMON_NAME=`hostname`.$DATE
WORK_DIR=/backup
CONFIG_DIR=/var/opt/ignite/recovery/latest
RELEASE=`uname -r`

cd $WORK_DIR

/opt/ignite/bin/make_tape_recovery -v -p -f content_file

sed -e "/archive_type/s/tar/gzip tar/" $CONFIG_DIR/archive_cfg > archive_cfg

/opt/ignite/bin/make_medialif -f $CONFIG_DIR/system_cfg -f $CONFIG_DIR/control_cfg -f archive_cfg -C "$COMMON_NAME Recovery Image" -l $COMMON_NAME.lif -r $RELEASE

/opt/ignite/data/scripts/make_sys_image -d $WORK_DIR -t n -s local -n $COMMON_NAME.tgz -m t -c g -l 1 -w recovery.log -u -R -g $CONFIG_DIR/flist


Where "content_file" contains e.g.:

inc_entire vg00
exclude /test
exclude /var/adm/crash/depot


And for writing to a tape:

#!/usr/bin/sh

DEVICE="/dev/rmt/0mn"
WORK_DIR="/backup"
LAST_LIF=`ls -rt $WORK_DIR/*.lif | tail -1`
LAST_IMG=`ls -rt $WORK_DIR/*.tgz | tail -1`

echo $LAST_LIF
echo $LAST_IMG

mt -t $DEVICE rew
dd if=$LAST_LIF of=$DEVICE obs=2k
dd if=$LAST_IMG of=$DEVICE obs=10k
mt -t $DEVICE rew


Thanks all for help.
Ladislav Kostal
Advisor

Re: Customized installation media not working

See my last post.