[완료] rpm 명령을 내리면 먹통이 되어버려요.

jellypo의 이미지

CentOS yum, rpm 등이 안되는 문제입니다.

yum, rpm 실행시

[root@Tlog ~]# yum search emacs
Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
 * base: <a href="http://ftp.daum.net" rel="nofollow">ftp.daum.net</a>
 * updates: <a href="http://ftp.daum.net" rel="nofollow">ftp.daum.net</a>
 * addons: <a href="http://ftp.daum.net" rel="nofollow">ftp.daum.net</a>
 * extras: <a href="http://ftp.daum.net" rel="nofollow">ftp.daum.net</a>
base                      100% |=========================| 1.1 kB    00:00     
updates                   100% |=========================|  951 B    00:00     
addons                    100% |=========================|  951 B    00:00     
extras                    100% |=========================| 1.1 kB    00:00     

무반응, 다른 쉘 접속해서 yum update 실행하면 아래와 같이 나옵니다.

[root@foo /]# yum update
Loading "fastestmirror" plugin
Existing lock /var/run/yum.pid: another copy is running as pid 3536.
Another app is currently holding the yum lock; waiting for it to exit...
Another app is currently holding the yum lock; waiting for it to exit...
Another app is currently holding the yum lock; waiting for it to exit...
Another app is currently holding the yum lock; waiting for it to exit...
Another app is currently holding the yum lock; waiting for it to exit...
 
Exiting on user cancel.
[root@foo /]# kill -9 3536
[root@foo /]# rpm --rebuilddb

그냥 무반응입니다; 다른 쉘에서 확인해보면

[root@foo /]$ ps aux | grep rebuild
root      7387  0.1  0.4  14088  4932 pts/1    S+   10:06   0:00 /usr/lib/rpm/rpmd --rebuilddb

CPU 쓰지도 않고요.

[root@foo log]# ps aux | grep 3536
root      3536  0.1  1.8  51324 19088 pts/0    S+   09:43   0:00 /usr/bin/python /usr/bin/yum search emacs
 
 
[root@foo log]# ls -l rpmpkgs*
-rw-r--r-- 1 root root     0 Nov 10 04:02 rpmpkgs
-rw-r--r-- 1 root root  1306 Nov  7 13:07 rpmpkgs.1
-rw-r--r-- 1 root root  1306 Oct 31 18:00 rpmpkgs.2
-rw-r--r-- 1 root root 24476 Sep 13 04:02 rpmpkgs.3
-rw-r--r-- 1 root root 24476 Sep  6 04:02 rpmpkgs.4

rpm --rebuilddb 등을 해도 무반응 상태입니다.

rpm 패키지 리스트나 DB에 손상이 가서 그런게 아닌가 싶은데요.
/var/log/rpmpkgs 가 현재 설치된 모든 rpm 목록인가요? 이게 갑자기 줄어든게 이상한데요.

에러 로그가 따로 있는거 같지도 않고, yum.log 는 설치나 업데이트 된 내용만 있습니다.
마지막으로 업데이트 된 날짜는 8월 17일이고요.

rpmdb에 손상이 간게 아닌가 싶은데요.
레드햇 계열에서 패지키 관리에 문제가 생긴 경우 어떤 해결 방법이 있을까요?

moonhyunjin의 이미지

Quote:
existing lock /var/run/yum.pid: another copy is running as pid 3536.

이 놈을 죽이세요.

<- 이거면 안 되는 게 없어~
정품 소프트웨어 사용 캠패인

<- 이거면 안 되는 게 없어~
정품 소프트웨어 사용 캠패인

jellypo의 이미지

아 물론 죽여 보기도 했습니다 ^^;;;

죽이고 다시 실행해봐도 저런 문제가 생깁니다.
처리 과정 중에 문제가 생기는 부분이 있어서 그 부분을 못 넘어가고 뭔가 기다리는거 같은데요, CPU도 안 쓰고 마냥 기다리고 있거든요...

jellypo의 이미지

정확히는 yum 문제가 아니라 rpm 이 먹통이 되는 문제인데,
에러메시지도 없고 로그도 없고 어디서 손을 대야할지 모르겠네요.
회사 서버라서 재설치를 할 수도 없고요;
서비스 자체는 돌아가긴 하는데..

rpm -qa 해보니 도중에 멈추는군요.

[root@foo tmp]# rpm -qa
libSM-1.0.1-3.1
libgcrypt-1.2.3-1
libcap-1.10-26
libmng-1.0.9-5.1
libIDL-0.8.7-1.fc6
libsysfs-2.0.0-6
~ 중략 ~
avahi-glib-0.6.16-1.el5
notify-python-0.1.0-3.fc6
gnome-doc-utils-0.8.0-2.fc6
xsri-2.1.0-10.fc6
at-3.1.8-82.fc6
python-ldap-2.2.0-2.1
mtools-3.9.10-2.fc6
wget-1.10.2-7.el5
cracklib-2.8.9-3.3
wvdial-1.54.0-5.2.2.1
 
Killed
[root@Tlog tmp]# 

sangu의 이미지

$ rm -f /var/lib/rpm/__db.00?
$ rpm --rebuilddb      

jellypo의 이미지

해결했습니다.
답변 고맙습니다. 꾸벅(배꼽인사)

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.