[pca] regenerate patchdiag.xref?

Don Jackson pca at clark-communications.com
Fri Dec 10 18:28:27 CET 2010


On Dec 10, 2010, at 6:54 AM, David Lew wrote:

> We plan to patch quarterly and for the current quarter want to use the latest Oracle patch set from 11/30/10. We don't have the patchdiag.xref file for the date. Is there a way to regenerate the file or have pca only use 11/30? There are newer patches since then which show up doing -l ms.


If you were able to obtain the appropriate xref file, you can use

--xrefurl=URL
If set, pca tries to download the patchdiag.xref file from this URL first. Any URL starting with file:/, ftp://, http:// or https:// can be used. See LOCAL PATCH SERVER for more information.

to access it from a web server you control.

Anybody who is using pca to install patches on more than one machine, and/or on a repeatable basis, really ought to be stashing and storing xref files
on a regular basis, and by that I mean "set up a cron job and do it every day".

Here is a basic xref fetcher I use, feel free to modify for your own use:

export SOLARISDIR=/some/path
export FETCHDATE=`date "+%Y.%m.%d"`
mkdir -p ${SOLARISDIR}/patches/${FETCHDATE}
${SOLARISDIR}/bin/pca.sh --xrefdir  ${SOLARISDIR}/patches/${FETCHDATE} --getxref

Perhaps someone on the list will send you the xref you desire.

I find it important to "QA" the xref/patchlist I intent to use across all my machines.

I also believe it is prudent to then use pca to download all the patches necessary to upgrade your machines to the designed patch level. One can store these patches on the aforementioned web server you control.  Once you do so, use

--patchurl=URL
If set, pca tries to download patches and READMEs from this URL first. Any URL starting with file:/, ftp://, http:// or https:// can be used. See LOCAL PATCH SERVER for more information.

To access these patches.  What would you do if the patches you want are no longer available from the official server?

Lastly, Solaris LiveUpgrade is your friend.  Check out the archives of this list for previous threads on this.  LU + ZFS root pools are fantastic.

Finally, I would once again like to thank Martin Paul for PCA.  It is an amazing tool!


-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.univie.ac.at/mailman/private/pca/attachments/20101210/ce321ba3/attachment.html 


More information about the pca mailing list