 |
 |
 |
 |
| Guides & Solutions (No Questions) Post your guides here (No links to Blogs accepted). You can also append your comments/questions to a guide, but don't start a new thread to ask a question. Use another forum for that. |

23rd May 2010, 02:48 PM
|
|
Registered User
|
|
Join Date: Oct 2005
Location: Sheffield, UK
Age: 65
Posts: 28

|
|
|
Tip: save "good" log files in case of trouble
A few weeks ago I had a kerneloops and X would no longer run on my main box. I looked at /var/log/messages and /var/log/Xorg.0.log etc but the problem was I didn't know which errors were serious or which were new. I spent hours searching for info about ACPI conflicts and other things flagged up in /var/log/messages. I hoped that an update to something or other would restore my GUI but it didn't. I got by using my laptop to connect to the main box.
Recently, I happened to notice error messages about invalid ELF headers in /var/log/gdm/:0-greeter.log. I did a 'yum reinstall atk' and I was back in business.
It would all have been so easy if I had had "good" versions of the log files to compare against. I now have several files like Xorg.0.log.OK and messages.OK to refer to if anything so nasty happens again. Creating some on your boxes might save you the time I wasted!
Peter
Last edited by cmsps; 23rd May 2010 at 05:00 PM.
Reason: Reader's suggestion
|

23rd May 2010, 04:56 PM
|
|
Registered User
|
|
Join Date: Feb 2009
Posts: 2,535

|
|
|
Re: A good idea
Your ideas are indeed good, but you should change the thread title to something more meaningful. That is certainly not meant as an offence, I just had problems to imagine what the content of this thread could be.
|

23rd May 2010, 05:37 PM
|
|
Registered User
|
|
Join Date: Oct 2005
Location: Sheffield, UK
Age: 65
Posts: 28

|
|
|
Re: A good idea
Thanks CSchwangler. I've edited the title of my original post but don't know how to rename the thread. Perhaps a moderator can do that and delete this post
Peter
|

23rd May 2010, 05:48 PM
|
 |
Un-Retired Administrator
|
|
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,922

|
|
|
Re: A good idea
I can edit it. What do you want it to say?
__________________
Glenn
The Bassinator © ®
Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
|

23rd May 2010, 06:32 PM
|
 |
Administrator (yeah, back again)
|
|
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 67
Posts: 21,200

|
|
|
Re: Tip: save "good" log files in case of trouble
I think I got it.
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651
Don't use any of my solutions on working computers or near small children.
|

23rd May 2010, 07:17 PM
|
 |
Un-Retired Administrator
|
|
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,922

|
|
|
Re: Tip: save "good" log files in case of trouble
What is the solution to the problem? What changes did you make so that files were saved?
__________________
Glenn
The Bassinator © ®
Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
|

23rd May 2010, 08:47 PM
|
 |
Administrator (yeah, back again)
|
|
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 67
Posts: 21,200

|
|
|
Re: Tip: save "good" log files in case of trouble
Well, the OP had changed the title of his post, which I assumed was what he wanted the Thread title to be. So, since we can edit thread titles, copy/paste and done!
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651
Don't use any of my solutions on working computers or near small children.
|

23rd May 2010, 10:00 PM
|
 |
Un-Retired Administrator
|
|
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,922

|
|
|
Re: Tip: save "good" log files in case of trouble
Quote:
Originally Posted by bob
Well, the OP had changed the title of his post, which I assumed was what he wanted the Thread title to be. So, since we can edit thread titles, copy/paste and done! 
|
No. That's not what I meant. How did he solve it his issue?
__________________
Glenn
The Bassinator © ®
Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
|

25th May 2010, 12:00 PM
|
|
Registered User
|
|
Join Date: Oct 2005
Location: Sheffield, UK
Age: 65
Posts: 28

|
|
|
Re: Tip: save "good" log files in case of trouble
Quote:
Originally Posted by glennzo
No. That's not what I meant. How did he solve it his issue?
|
The issue was that there was so much stuff in the log files that I didn't know what was new or serious. It would have been easier if I had had some "good" log files to compare the "bad" ones with.
So, when everything is working well:
Code:
# cd /var/log
# cp messages messages.OK
# cp Xorg.0.log Xorg.0.log.OK
# cd gdm
# cp ...
etc
Then, you are ready when big problems. arise.
|

24th May 2010, 01:55 AM
|
 |
Administrator (yeah, back again)
|
|
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 67
Posts: 21,200

|
|
|
Re: Tip: save "good" log files in case of trouble
Ah! That...not a frikkin' idea. I just move 'em, not test 'em.
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651
Don't use any of my solutions on working computers or near small children.
|

25th May 2010, 01:01 PM
|
 |
"Fixed" by (vague) request
|
|
Join Date: Oct 2005
Location: GMT+ 1
Posts: 2,950

|
|
|
Re: Tip: save "good" log files in case of trouble
I prefer
Code:
su -c "tar zcf goodlogs.tgz /var/log"
It's easier...
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 06:50 (Saturday, 18-05-2013)
|
|
 |
 |
 |
 |
|
|