On Tue, 22 Jul 2003, Jeff Squyres wrote:

> Guess what?  It's a bug in RPM that shipped with RH 8.0.  :-(

I was able to verify an approved solution for the "rpm hang" problem.
I duplicated the hang behavior when building a client image, followed
the procedure, and then clicked on the "Build Image" button again and
it worked fine (i.e., rpm didn't hang).

Here's the procedure -- this should go in our docs somewhere:

(Excerpts from http://www.rpm.org/hintskinks/repairdb-2003-06/)

- If rpm hangs at any point (e.g., building the client image) -- first
  ensure that it really has hung, and just isn't taking a long, long
  time to complete.  Typical indications that it has really hung
  include:

  - disk is not running
  - load has gone down to 0.00, and stays there

- Then do a "ps" and find the pid of the rpm process:

  shell# ps -eadf | grep rpm | grep -v grep
  ...output...
  shell# kill <pid_of_rpm>

- This will probably not kill the process (it's likely to be in a
  state where it is ignoring signals), but it should be tried anyway
  -- this would allow rpm to exit cleanly.  If rpm does exit cleanly,
  jump down to the last step in this procedure.

- If rpm does not exit within a short period of time, kill -9 it.
  This guarantees that rpm will not exit cleanly, but in this case,
  it's ok.

- Do the following:

  - First, save a copy of the RPM database (just to be safe):

    shell# cd /var/lib
    shell# tar zcvf /tmp/rpmdb.tar.gz rpm

  - Now delete any existing RPM database locks

    shell# cd /var/lib/rpm
    shell# rm -f __db*

  - Now rebuild the RPM database

    shell# rpm --rebuilddb

    If you want eye candy to watch while it's rebuilding (or to verify
    that it doesn't get hung again), add "-vv" to the "rpm
    --rebuilddb" command.

- Now re-run the OSCAR step that hung.  If rpm hangs again, repeat
  these steps to un-hang it.

-- 
{+} Jeff Squyres
{+} [EMAIL PROTECTED]
{+} http://www.lam-mpi.org/


-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
Oscar-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/oscar-devel

Reply via email to