LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-21-2016, 09:24 AM   #1
tipsluo
LQ Newbie
 
Registered: Dec 2016
Posts: 3

Rep: Reputation: Disabled
Sosreport issues on Redhat


I have a couple of questions about sosreport on rhel 6.

1.How to stop sosreport? If I kill the process, it will just run a new one.


2.I cannot exclude any plugin, it will hang whatever I run like "sosreport -n rpm" . Since I cannot stop sosreport, how can I resolve the problem?


3.My "yum clean all" command hangs. I can sosreport open some files in /var/lib/rpm. This is the reason I am looking into sosreport. Is there any way to

work around without resolving the sosreport problems?


Thanks so much in advance.
 
Old 12-21-2016, 09:36 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by tipsluo View Post
I have a couple of questions about sosreport on rhel 6.

1.How to stop sosreport? If I kill the process, it will just run a new one.
Nope...it runs once. Read the man page on the sosreport command.
Quote:
2.I cannot exclude any plugin, it will hang whatever I run like "sosreport -n rpm" . Since I cannot stop sosreport, how can I resolve the problem?
Again, sosreport runs ONCE and that's it. And the -n option doesn't do what you think it does, based on what you posted...again, read the man page.
Quote:
3.My "yum clean all" command hangs.
'Hangs' how? For how long? You DO know it takes a bit, right???? Solutions are covered here: https://access.redhat.com/solutions/1989973
Quote:
I can sosreport open some files in /var/lib/rpm. This is the reason I am looking into sosreport. Is there any way to work around without resolving the sosreport problems?
No idea what you're saying here; an sosreport has little to do with /var/lib/rpm, unless you tell it to put the report file there. Did you read the RHEL documentation? https://access.redhat.com/solutions/3592

And the best way for you to get these problems resolved is to CALL RED HAT SUPPORT...you are PAYING FOR RHEL 6 right???? Because the sosreport is made to be sent to RHEL for analysis, and yum will only work if you pay for RHN access.
 
Old 12-21-2016, 09:53 AM   #3
tipsluo
LQ Newbie
 
Registered: Dec 2016
Posts: 3

Original Poster
Rep: Reputation: Disabled
Sorry, I missed one word in the last statement. This is what I was going to say: "3.My "yum clean all" command hangs. I can see that sosreport open some files in /var/lib/rpm. This is the reason I am looking into sosreport. Is there any way to work around without resolving the sosreport problems?

Ths sosreport process is running for ever. It won't stop.
 
Old 12-21-2016, 09:55 AM   #4
tipsluo
LQ Newbie
 
Registered: Dec 2016
Posts: 3

Original Poster
Rep: Reputation: Disabled
"Yum clean all" ran more than 5 minutes. I think it has hung.

I checked on other servers, there is no sosreport running. I guess it can be disable but don't know how to do i.t
 
Old 12-21-2016, 10:08 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by tipsluo View Post
Sorry, I missed one word in the last statement. This is what I was going to say: "3.My "yum clean all" command hangs. I can see that sosreport open some files in /var/lib/rpm. This is the reason I am looking into sosreport. Is there any way to work around without resolving the sosreport problems?

Ths sosreport process is running for ever. It won't stop.
When did you START the sosreport? And you can just go to another terminal, type in "ps -ef | grep -i sosreport", and then kill the associated process(es), just like any other program
Quote:
Originally Posted by tipsluo
"Yum clean all" ran more than 5 minutes. I think it has hung. I checked on other servers, there is no sosreport running. I guess it can be disable but don't know how to do i.t
AGAIN, you do not 'disable' an sosreport...it's a program. If it's not responding correctly, kill it. AGAIN, "yum clean all" MAY run for a while.

And AGAIN, since you didn't acknowledge this before, HAVE YOU CALLED RED HAT SUPPORT FOR RHEL 6??? If not, why? Again, SOSreports are by and FOR RHEL support...they will tell you nothing. Likewise, yum won't work correctly, unless you're paying for RHN access.
 
1 members found this post helpful.
Old 12-27-2016, 02:10 PM   #6
Coffee!!!
LQ Newbie
 
Registered: Dec 2016
Distribution: RHEL
Posts: 18

Rep: Reputation: Disabled
TB0ne is right; SOS reports have nothing to do with RPM. However, to solve any issues regarding a corrupted RPM DB, I've used this:

rm –f /var/lib/rpm/__*

rpm –rebuilddb –v –v

yum clean all

Removes and rebuilds the RPM DB and then you clean up any remnants of the previous YUM cache.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] sosreport and rescue mode linuxmantra Linux - Newbie 2 10-19-2015 02:30 PM
[SOLVED] Error message from sosreport phspy Linux - Software 4 10-25-2013 09:34 AM
[SOLVED] Understanding Sosreport jnreddy Linux - Server 2 04-20-2012 10:58 PM
Tools for comparing sosreport in rhel5 JATA01 Linux - Server 5 09-06-2011 04:03 AM
How to read data from the Sosreport wmasry Linux - Newbie 1 02-18-2010 08:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration