Re: Q on yum cleanup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Mar 22, 2005 at 04:58:06PM +0200, you [Ville Herva] wrote:
> On Fri, Mar 18, 2005 at 02:43:56PM +0100, you [Ralf Ertzinger] wrote:
> > Hi.
> > 
> > seth vidal <skvidal@xxxxxxxxxxxx> wrote:
> > 
> > > and look for duplicates, remove the older packages with:
> > > yum remove package-ver-rel.arch
> > 
> > Whenever such things happen, I use this to find duplicates:
> > 
> > rpm -aq --queryformat "%{NAME}\n" | sort | uniq -c | grep -v -E " *1 "
> 
> Hmm, I found a few.
> 
> Recently, "yum update" has often halted in the middle of updating, usually
> in the clean up phase. According to strace, it waits for a futex (sorry, I
> didn't save the strace log, will do if it happens again). I've had to kill
> -KILL it, HUP nor TERM are not enough. After this, it apparently leaves the
> other package version in place, for example:

FWIW, it hung again, this time "rpm -e", not yum. 

--8<-----------------------------------------------------------------------
>strace -p 3717
Process 3717 attached - interrupt to quit
futex(0x808c938, FUTEX_WAIT, 1, NULL <unfinished ...>
Process 3717 detached
>lsof -p 3717
COMMAND  PID USER   FD   TYPE DEVICE     SIZE    NODE NAME
rpm     3717 root  cwd    DIR    3,4     2864       2 /scratch
rpm     3717 root  rtd    DIR    3,2     4096       2 /
rpm     3717 root  txt    REG    3,2    81056 1261578 /bin/rpm
rpm     3717 root  mem    REG    3,2   126612 1130601 /lib/ld-2.3.4.so
rpm     3717 root  mem    REG    3,2  1465764 1196043 /lib/tls/libc-2.3.4.so
rpm     3717 root  mem    REG    3,2   189312 1196044 /lib/tls/libm-2.3.4.so
rpm     3717 root  mem    REG    3,2    16292 1133037 /lib/libdl-2.3.4.so
rpm     3717 root  mem    REG    3,2    69012  218351 /usr/lib/libelf-0.101.so
rpm     3717 root  mem    REG    3,2   107576  220160 /usr/lib/libneon.so.24.0.7
rpm     3717 root  mem    REG    3,2    70540  214506 /usr/lib/libz.so.1.2.2.2
rpm     3717 root  mem    REG    3,2   101952 1196045 /lib/tls/libpthread-2.3.4.so
rpm     3717 root  mem    REG    3,2   317652  220095 /usr/lib/libsqlite3.so.0.8.6
rpm     3717 root  mem    REG    3,2   125160  218470 /usr/lib/libexpat.so.0.5.0
rpm     3717 root  mem    REG    3,2   288436  213949 /usr/lib/libbeecrypt.so.6.4.0
rpm     3717 root  mem    REG    3,2    76336 1133039 /lib/libresolv-2.3.4.so
rpm     3717 root  mem    REG    3,2    49344 1196037 /lib/tls/librt-2.3.4.so
rpm     3717 root  mem    REG    3,2    60556 1133045 /lib/libselinux.so.1
rpm     3717 root  mem    REG    3,2     7072 1133040 /lib/libcom_err.so.2.1
rpm     3717 root  mem    REG    3,2     9576  214427 /usr/lib/libkrb5support.so.0.0
rpm     3717 root  mem    REG    3,2   140712  220166 /usr/lib/libk5crypto.so.3.0
rpm     3717 root  mem    REG    3,2   427096  220168 /usr/lib/libkrb5.so.3.2
rpm     3717 root  mem    REG    3,2    88944  220170 /usr/lib/libgssapi_krb5.so.2.2
rpm     3717 root  mem    REG    3,2   965996 1133041 /lib/libcrypto.so.0.9.7e
rpm     3717 root  mem    REG    3,2   213544 1133042 /lib/libssl.so.0.9.7e
rpm     3717 root  mem    REG    3,2    67628  218346 /usr/lib/libbz2.so.1.0.2
rpm     3717 root  mem    REG    3,2   450560 1081480 /var/lib/rpm/__db.003
rpm     3717 root  mem    REG    3,2  1318912 1081370 /var/lib/rpm/__db.002
rpm     3717 root  mem    REG    3,2    38628 1130610 /lib/libgcc_s-4.0.0-20050321.so.1
rpm     3717 root  mem    REG    3,2   829532  219850 /usr/lib/libstdc++.so.6.0.4
rpm     3717 root  mem    REG    3,2    27300  213344 /usr/lib/libpopt.so.0.0.0
rpm     3717 root  mem    REG    3,2   434472  220734 /usr/lib/librpmio-4.4.so
rpm     3717 root  mem    REG    3,2  1017672  220727 /usr/lib/librpmdb-4.4.so
rpm     3717 root  mem    REG    3,2   352672  220177 /usr/lib/librpm-4.4.so
rpm     3717 root  mem    REG    3,2    24576 1081369 /var/lib/rpm/__db.001
rpm     3717 root    0u   CHR  136,1                3 /dev/pts/1
rpm     3717 root    1u   CHR  136,1                3 /dev/pts/1
rpm     3717 root    2u   CHR  136,1                3 /dev/pts/1
rpm     3717 root    3u   REG    3,2 41730048 1082675 /var/lib/rpm/Packages
rpm     3717 root    4u   REG    3,2 10416128 1082677 /var/lib/rpm/Basenames
rpm     3717 root    5u   REG    3,2    45056 1082676 /var/lib/rpm/Name
rpm     3717 root    6u   REG    3,2    12288 1082690 /var/lib/rpm/Pubkeys
rpm     3717 root    7uW  REG    3,2        0 1082155 /var/lib/rpm/__db.000
rpm     3717 root    8u   REG    3,2    12288 1082688 /var/lib/rpm/Triggername
rpm     3717 root    9u   CHR  136,1                3 /dev/pts/1
--8<-----------------------------------------------------------------------

After "kill -KILL 3717" and "rm /var/lib/rpm/__db.00*" rpm -e worked.

I've already done "rm /var/lib/rpm/__db.00*" quite a few times and "rpm
--rebuild db" a few times. The hang appears to happen pretty randomly. Any
ideas?


-- v -- 

v@xxxxxx


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux