swmodify -x patch_commit=true problem (654 Views)
Reply
Advisor
Paul Coffey_1
Posts: 20
Registered: ‎05-18-2005
Message 1 of 12 (654 Views)

swmodify -x patch_commit=true problem

After running swmodify -x patch_commit=true \* we receive this error. 

 

ERROR:   Could not select the software

         "sys-files,l=/,r=1.2.01,a=HP-UX_B.11.00_32/64,v=".  This

         software is in a corrupt state and is not available for

         selection.  Corrupt software can be removed with the swremove

         command, or replaced with the swcopy command.

ERROR:   Failed to select all the software which exists in the target.

 

Swlist -l fileset -a state | grep corrupt shows:

 

sys-files.sys-files                   corrupt

 

If this was just a patch I would remove it, or at least try to remove it, and reapply it.  Sys-files sounds like some serious trouble though.

 

Is there a safe way to correct this problem?  If we ignore it would this create patching problems down the road? 

 

Any suggestions are greatly appreciated.

Please use plain text.
Acclaimed Contributor
James R. Ferguson
Posts: 21,184
Registered: ‎07-06-2000
Message 2 of 12 (651 Views)

Re: swmodify -x patch_commit=true problem


Paul Coffey_1 wrote:

... If this was just a patch I would remove it, or at least try to remove it, and reapply it.


Hi Paul:

 

It is most likely a patch that needs to be removed and/or reapplied as the message states.  To see what *patch* delivered the fileset try doing:

 

# swlist -l file | grep PH

 

Regards!

 

...JRF...

Please use plain text.
Exalted Contributor
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 3 of 12 (649 Views)

Re: swmodify -x patch_commit=true problem

Shalom,

You may need to swremove the software.

swconfig might work for you as well, just the corrupt patch.

swverify \* or swverify <patch name>

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 25,000
Registered: ‎03-06-2006
Message 4 of 12 (643 Views)

Re: swmodify -x patch_commit=true problem

>swlist -l fileset -a state | grep corrupt shows:

 sys-files.sys-files                   corrupt

 

I would have thought if this was HP's product, it would have some caps in the name.

What's in it: swlist -l file sys-files

 

>Is there a safe way to correct this problem?  If we ignore it would this create patching problems down the road? 

 

swremove might do it but how important is it?

Do you have an ignite backup?

Please use plain text.
Exalted Contributor
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 5 of 12 (640 Views)

Re: swmodify -x patch_commit=true problem

Shalom,

 

Yes there might be problems patching the system down the road.

 

This may have been broken for some time. To pick the ignite backup to restore you would need a time line as to when it got broken.

 

There are likely dependencies, but swremove followed by re-install is a good first step.

 

SEP

Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 25,000
Registered: ‎03-06-2006
Message 6 of 12 (634 Views)

Re: swmodify -x patch_commit=true problem

>sys-files.sys-files                   corrupt

 

I suppose you could look into the IPD:

cd /var/adm/sw/products/sys-files/sys-files/INDEX

What do you see for "state"?

Please use plain text.
Advisor
Paul Coffey_1
Posts: 20
Registered: ‎05-18-2005
Message 7 of 12 (615 Views)

Re: swmodify -x patch_commit=true problem

This doesn't appear to be a patch.  When I run swlist for PH none of the patches list sys-files.  When I pull a complete swlist from the system the items that are sys-files are things like /etc/mail, /etc/nsswitch.conf, /sbin.

 

If I run swlist grepping for PH and corrupt I find two items listed:

 

# PHKL_24026    1.0            JFS Filesystem swap corruption
# PHKL_29911    1.0            Improper core file mesg, corrupt core file

 


I've attached a text file with the swlist output that shows the sys-files items.  I'm going to get that index file and check it.

 

I don't believe this is something I can just fix.

Please use plain text.
Advisor
Paul Coffey_1
Posts: 20
Registered: ‎05-18-2005
Message 8 of 12 (612 Views)

Re: swmodify -x patch_commit=true problem

The index file shows corrupt as well.  Is there a way to fix this?

 

 

fileset
tag sys-files
data_model_revision 2.40
instance_id 1
control_directory sys-files
size 309532
revision A1.2.0
title "Systems Files"
mod_time 1271353053
create_time 1271353052
install_date 201004151337.33
state corrupt

Please use plain text.
Honored Contributor
Robert_Jewell
Posts: 1,238
Registered: ‎06-26-2001
Message 9 of 12 (603 Views)

Re: swmodify -x patch_commit=true problem

What of the state of other INDEX files within the IPD?  What of the master INDEX (/var/adm/sw/products/INDEX)?

 

You could try the following to try and rebuild the Master INDEX file....though if only this product is the problem, then I dont think this will help.

 

The following will install a "void" fileset and then remove it.  Doing so without having an INDEX file to reference will cause the system to scan the /var/adm/products directory tree and build a new INDEX file and update the IPD in whole

 

Run the following commands to rebuild the IDP:

  # cd /var/adm/sw/products

  # mv INDEX INDEX.bad     (save the original so you can restore if it this goes bad)

  # cd /tmp

  # vi void.psf  (create a file called void.psf with the following contents)

      product

      tag void

      fileset

      tag void

    :wq!  (Save and quit out of the VI session)

  # swpackage -s /tmp/void.psf

  # swinstall void  This may take several minutes to complete.

  # swremove void

  # rm void.psf

  # swremove -d void

 

If for some reason other parts of the IPD are corrupt, then the entire directory structure may need restoring from backup.



-Bob

Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 25,000
Registered: ‎03-06-2006
Message 10 of 12 (601 Views)

Re: swmodify -x patch_commit=true problem

[ Edited ]

>I've attached a text file with the swlist output that shows the sys-files items.

 

This appears to be a site specific sysadmin SD product.

I would suggest you swremove it but all of your configuration values may be lost?

 

First make sure you have an ignite backup or tar of this part of the IPD.

You might just change that state to: state configured

Then try: swverify sys-files

Please use plain text.
Advisor
Paul Coffey_1
Posts: 20
Registered: ‎05-18-2005
Message 11 of 12 (597 Views)

Re: swmodify -x patch_commit=true problem

The only non hp software on this box is a DB.  I'll try your suggestions tomorrow but I think I'm out of luck.  I'm going to proceed with patches and see what happens and just know it might be a problem down the road.

Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 25,000
Registered: ‎03-06-2006
Message 12 of 12 (592 Views)

Re: swmodify -x patch_commit=true problem

>The only non hp software on this box is a DB.

 

What does this show: swlist -a readme sys-files

And if nothing useful: swlist -v sys-files

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation