Operating System - HP-UX
1758670 Members
1912 Online
108874 Solutions
New Discussion юеВ

/var/adm/sw directory committing patches

 
SOLVED
Go to solution
Lee Robinson
New Member

/var/adm/sw directory committing patches

Hi All,

I have read all the messages here pertaining to the SW directory and followed all advice to clear the directory "Cleanup" "Swmodify" and my SW directory still has the original 798 files in it. I then followed the next instructions "swlist -l patch -a patch_state |grep applied | grep "^# PH > /tmp/list_patch" I then edited the file to conform to Pxxx_xxxxx
and ran swmodify -x patch=true -f /tmp/list_patch". I got an error "The selected software to be committed was not modified. This may be a result of none of the selected software having a patch file list to commit.

I'm running HP-UX11 I too notice I have the following /usr/adm/sw (which is a link to Var)and the standard /var/adm/sw. What could be the cause of this?

Thanks for your help in advance.
6 REPLIES 6
Rich Wright
Trusted Contributor
Solution

Re: /var/adm/sw directory committing patches

Here is the command that I use to commit patches.

swmodify -x patch_commit=true PH\*

Once this is done, you cannot uninstall any of the patches affected.

Rich
Sajid_1
Honored Contributor

Re: /var/adm/sw directory committing patches

hello,

Just found a document about the same error and the solution is to add a '*' at the end of PHSS_XXXX.*
http://support2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000028139881

Doc ID - A5401654
learn unix ..
Lee Robinson
New Member

Re: /var/adm/sw directory committing patches

Thanks Rich and Sajid

I had followed your instructions to the tee and get ERROR: The selected software to be committed was not modified. This
is probably the result of none of the selected software having
a patch fileset to commit.

Do you think at this point i can just delete the files in SW/SAVE?
James R. Ferguson
Acclaimed Contributor

Re: /var/adm/sw directory committing patches

Hi:

If you are running 11.x, use:

# cleanup -c 1

'cleanup' is a nice interface to 'swmodify'.

'cleanup' is the *only* safe way to manage the '/var/adm/sw' directory! The suggested usage above will leave one-level of prior state information so that your current version(s) of software can be backed-out. Hence, it is expected that the 'var/adm/sw/' directory *will* contain files even afterwards.

You can verify your patch state easily with:

# check_patches

See its man pages for more information.

As for the fact that '/usr/adm/sw' is a symbolic link to '/var/adm/sw', this is normal for HP-UX filesystems.

Regards!

...JRF...
Lee Robinson
New Member

Re: /var/adm/sw directory committing patches

Thanks for your help James

The only thing differant that you suggested is the check_patches. running it gives the following;
ERROR: 12 of 849 filesets had Errors.
* 837 of 849 filesets had no Errors or Warnings.
ERROR: The Analysis Phase had errors. See the above output for
details.


======= 08/14/02 15:08:15 CDT END verify AGENT SESSION (pid=1875)
(jobid=saturn-0209)

Lee Robinson
New Member

Re: /var/adm/sw directory committing patches

It's fixed!!!! The sw files size is down to 512


THANKS FOR YOUR HELP!!!