1832869 Members
3516 Online
110048 Solutions
New Discussion

Re: swpackage to tape

 
SOLVED
Go to solution
Chris Fadrowski
Super Advisor

swpackage to tape

how do i take a group of unshar'd patches from one server, put them on a DDS3 tape so i can install them on another server?

can someone help me with this procedure? or best practice?
8 REPLIES 8
Mel Burslan
Honored Contributor
Solution

Re: swpackage to tape

Assuming all those patches are in the same directory:

patchdir=/some/directory/name

cd $patchdir
DEPOT=$PWD/depot
for PATCH in *.depot
do
swcopy -x enforce_dependencies=FALSE \
-x mount_all_filesystems=FALSE \
-x reinstall=TRUE \
-x write_remote_files=TRUE \
-x layout_version=1.0 \
-d -s $PWD/$PATCH.depot \* @ $DEPOT

swpackage -s $PSF \
-x write_remote_files=TRUE \
-x layout_version=1.0 \
@ $DEPOT

swverify -d -x mount_all_filesystems=FALSE \
-x enforce_dependencies=FALSE \
\* @ $DEPOT

if [ $? -ne 0 ]; then
{
echo "ERROR: swverify of depot failed."
ERRORS=1
}
fi

if [ $ERRORS -eq 1 ]; then
echo "ERROR: Errors were found while building depot."
fi

tar -cvf /dev/rmt/0m depot

---------------------

on the other system


patchdir=/some/directory/name
cd $patchdir
tar -xvf /dev/rmt/0m

swreg -l depot $PWD/depot

swinstall -s $PWD/depot


----------------------------

This may not be what you are looking for. You may want the tape to be used as a depot but, if you do not have severe space problems on either servers, I would suggest using the tape just a s a transport container nothing more. Installing software from a disk depot is much faster than doing it via tape.

HTH

________________________________
UNIX because I majored in cryptology...
Marvin Strong
Honored Contributor

Re: swpackage to tape


never tried to to tape this might work.

swcopy -s {list} {of} {patches} @ {tapedevice}

Michael Roberts_3
Honored Contributor

Re: swpackage to tape

To create a tape from directory depots you use swpackage:

swpackage -s /patch/depot -x media_type=tape @ /dev/rmt/0m
etouq ot hguone revelc ton m'i
Chris Fadrowski
Super Advisor

Re: swpackage to tape

okay, that's what i thought, i tried this and i keep getting this

* Writing the tape "/dev/rmt/0m" (tape 1 of 1).
* Writing the fileset "PHKL_31500.100BT-KRN" (1 of 159)
ERROR: Cannot open file
"/h07/patches/depot/PHKL_31500/100BT-KRN/usr/conf/lib/libbtlan.a".
No such file or directory (2).
ERROR: Failed to write the software object: "fileset contents" to the
output tape file.

* Removing the temporary depot.


now, PHKL_31500 is not in the depot but it is a dependency of one of the patches that i want on the tape. PHKL_31500 is however installed on the system. any ideas?
Greg Vaidman
Respected Contributor

Re: swpackage to tape

Chris,
Add '-x autoselect_dependencies=false' to your swcopy/swpackage command line...
--Greg
Chris Fadrowski
Super Advisor

Re: swpackage to tape

I am still getting the same thing on this patch PHKL_31500
Greg Vaidman
Respected Contributor

Re: swpackage to tape

Chris,

Not sure why you'd still be getting this error with the new parameter, but please provide the exact command that's generating the error.

Have you tried to package all these patches into a bundle using 'make_bundles'?

Also, are you using a tape because you don't have network access from the systems you want to install the patches to the server where your patches are located? Don't know if you knew that if you put all the patches into a depot, you can pull them across the network to your target servers.

--Greg
Raj D.
Honored Contributor

Re: swpackage to tape

Hi Chris ,

PHKL_31500 is a 100MB patch "s700_800 11.23 Sept04 base patch"

If you have good internet speed , it can be downloaded from itrc site in 10 min.

and the tar file can be extracted and , it will create the depo file , and can be installed easily , with
# swinstall -s /depotdir/filename.depot

Cheers.
Raj.
" If u think u can , If u think u cannot , - You are always Right . "