Operating System - HP-UX
1847164 Members
6060 Online
110263 Solutions
New Discussion

Copy patches to one depot to limit reboots

 
Joe Profaizer
Super Advisor

Copy patches to one depot to limit reboots

I'm trying to copy a couple patches to one depot, so that I only have one reboot, but I'm having troubles. Can you please assist.
I have two patch sets named:
PHSS_23797.depot
PHKL_24015.depot

I've tried:
swcopy -s /tmp/PHSS_23797.depot -d @ /tmp/patches

But I receive an error that says (in SAM):
Cannot establish a lock on this target because of an external error (for example, the lock file could not be created);

Please consult!!!

Thanks,

..Joe
4 REPLIES 4
James R. Ferguson
Acclaimed Contributor

Re: Copy patches to one depot to limit reboots

Hi Joe:

Use this (without the '-d'):

cd /tmp
for X in PH*
do
sh $X
done
mkdir /tmp/patches
for X in /tmp/PH*.depot
do
swcopy -s /tmp/${X} \* @ /tmp/patches
done

...JRF...
Gadura Praveen
Frequent Advisor

Re: Copy patches to one depot to limit reboots

Hello Joe,

The following command should work :-
swcopy -d -v -x compress_files=false -x enforce_dependencies=false -s /tmp/"PATCHNAME.depot" \* @ /tmp/patches

Good luck !

Joe Profaizer
Super Advisor

Re: Copy patches to one depot to limit reboots

Still getting error messages on both solutions:

Cannot lock depot/root/PSF at "/tmp/patches". Bad file number
(9).
ERROR: The target "/tmp/patches" could not be opened. pid=181
05/10/01 14:27:45 CDT
James R. Ferguson
Acclaimed Contributor

Re: Copy patches to one depot to limit reboots

Hi Joe:

First, as root, try creating a lock file for the depot as follows:

# touch /tmp/patches/catalog/swlock

...JRF...