Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Dear All
My Debian server got hung and when I tried to power cycle it , I checked its /var/log/messages & /var/log/dmesg with respect to the time of fault occurance to see what was really happened . But its 'messages' log does not show anything recorded for about 30 minutes before its recovery after power cycling . Can you please let me know where I can check to find the root cause of failure ?
Thank you
Sometimes hardware failures will occur in such a way that nothing will/can be written to the log files. Also, when you reboot, the time stamps on the log files will be updated which can make it difficult to work out what was the last thing written before the crash. One thing you can do after such a lock up is boot to a live/rescue cd, and then mount the file system read only: this should make it easier to see what was going on just before the crash.
Sometimes hardware failures will occur in such a way that nothing will/can be written to the log files. Also, when you reboot, the time stamps on the log files will be updated which can make it difficult to work out what was the last thing written before the crash. One thing you can do after such a lock up is boot to a live/rescue cd, and then mount the file system read only: this should make it easier to see what was going on just before the crash.
Cheers,
Evo2.
Thank you for your reply . Can you please provide more details on this procedure ? After booting from /rescue mode and mounting the file system read only , where I can check for what was going on before the crash ?
Start with the files in /var/log/ you may be able to find something that you would otherwise overlook if the machine had booted up again normally. Another place to look in is /tmp/, which will normally be completely deleted on a reboot.
You could try a another console while the system is still up. Meaning try to login via another console then look at the system messages or information to diagnose without re-booting. Or attempt to login via 'ssh' to console then look at the system conditions.
You could try a another console while the system is still up. Meaning try to login via another console then look at the system messages or information to diagnose without re-booting. Or attempt to login via 'ssh' to console then look at the system conditions.
Thank you . But my Red Hat server hard drive LED was continously lit and no login was possible on any console/SSH session . I want to find why this is occured .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.