LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 08-27-2017, 12:53 AM   #1
packets
Member
 
Registered: Oct 2005
Posts: 328

Rep: Reputation: 32
Why is my server reboot


I'm trying to investigate why the server rebooted automatically. First thing I check is the last command. I notice the logs below.

Code:
reboot   system boot  3.10.0-514.26.2. Fri Aug 25 08:49 - 13:46 (2+04:56)  
reboot   system boot  3.10.0-514.26.2. Tue Aug 22 11:02 - 13:46 (5+02:43)
Checking the above shows the server was not rebooted by anyone because on the third column the source location is the kernel. Is this correct?
 
Old 08-27-2017, 10:24 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,910

Rep: Reputation: 7014Reputation: 7014Reputation: 7014Reputation: 7014Reputation: 7014Reputation: 7014Reputation: 7014Reputation: 7014Reputation: 7014Reputation: 7014Reputation: 7014
Quote:
Originally Posted by packets View Post
I'm trying to investigate why the server rebooted automatically. First thing I check is the last command. I notice the logs below.
Code:
reboot   system boot  3.10.0-514.26.2. Fri Aug 25 08:49 - 13:46 (2+04:56)  
reboot   system boot  3.10.0-514.26.2. Tue Aug 22 11:02 - 13:46 (5+02:43)
Checking the above shows the server was not rebooted by anyone because on the third column the source location is the kernel. Is this correct?
Read the "Question Guidelines" link in my posting signature. You don't tell us what version/distro of Linux, and that certainly isn't the entire output of the last command. Read the man page on last.

All that shows is the system boot...there are most certainly OTHER entries there that can tell you more. Since you tell us nothing about what you've looked at, we can't help.
 
1 members found this post helpful.
Old 08-27-2017, 10:47 AM   #3
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,869

Rep: Reputation: 2051Reputation: 2051Reputation: 2051Reputation: 2051Reputation: 2051Reputation: 2051Reputation: 2051Reputation: 2051Reputation: 2051Reputation: 2051Reputation: 2051
Question

Quote:
Originally Posted by packets View Post
I'm trying to investigate why the server rebooted automatically. First thing I check is the last command. I notice the logs below.

Code:
reboot   system boot  3.10.0-514.26.2. Fri Aug 25 08:49 - 13:46 (2+04:56)  
reboot   system boot  3.10.0-514.26.2. Tue Aug 22 11:02 - 13:46 (5+02:43)
Checking the above shows the server was not rebooted by anyone because on the third column the source location is the kernel. Is this correct?
While I totally agree with TB0ne, are your using CentOS?
 
Old 08-29-2017, 09:00 PM   #4
packets
Member
 
Registered: Oct 2005
Posts: 328

Original Poster
Rep: Reputation: 32
Sorry for the incomplete details. OS is CentOS Linux release 7.3.

Nothing found in the /var/log/messages prior on the reboot.

Code:
Aug 25 00:40:02 test systemd: Removed slice user-0.slice.
Aug 25 00:40:02 test systemd: Stopping user-0.slice.
Aug 25 08:49:25 test rsyslogd: [origin software="rsyslogd" swVersion="7.4.7" x-pid="777" x-info="http://www.rsyslog.com"] start
Aug 25 08:49:25 test rsyslogd-2307: warning: ~ action is deprecated, consider using the 'stop' statement instead [try http://www.rsyslog.com/e/2307 ]
Aug 25 08:49:08 test kernel: Initializing cgroup subsys cpuset
Aug 25 08:49:08 test kernel: Initializing cgroup subsys cpu
Aug 25 08:49:08 test kernel: Initializing cgroup subsys cpuacct
Aug 25 08:49:08 test kernel: Linux version 3.10.0-514.26.2.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC) ) #1 SMP Tue 
Jul 4 15:04:05 UTC 2017
Aug 25 08:49:08 test kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-3.10.0-514.26.2.el7.x86_64 root=UUID=ef6ba050-6cdc-416a-9380-c14304d0d206 ro console=tty0 console=ttyS0,115200n8 crashkernel=auto console=ttyS0,115200 LANG=en_US.UTF-8
Aug 25 08:49:08 test kernel: e820: BIOS-provided physical RAM map:
 
Old 08-30-2017, 04:19 AM   #5
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 1,765

Rep: Reputation: 797Reputation: 797Reputation: 797Reputation: 797Reputation: 797Reputation: 797Reputation: 797
Maybe a hardware problem?
Is it a server hardware? Then there might be a HW fault log in the server management console (ILO board or similar).
 
Old 08-30-2017, 07:17 AM   #6
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040
Mystery reboots are often caused by hardware problems.

Reboots occurring at exactly the same time can be induced by a cron job. The running process can either cause a higher processor load (thermal stresses) or uses a part of the physical memory not normally used.

It can takes days if not weeks before the hardware finally fails to a greater extent making it easier to diagnose.

If it occurs at the same time and therefor one of the cron jobs is suspected, the job can be run manually to if that triggers the reboot.

Unfortunately it still doesn't tell if the process is responsible for the reboot or the hardware. However, reboot without any message from the running process is an indication for a hardware failure. The only way to know for sure is to migrate to new hardware.

jlinkels
 
Old 08-30-2017, 07:39 AM   #7
businesscat
Member
 
Registered: Jun 2017
Location: Spain
Distribution: RedHat 6.9 /Centos 8
Posts: 42

Rep: Reputation: Disabled
could you show us a cron job?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
After reboot the Red hat enterprises linux server 6.0 OS server not loading fully. ssp12 Linux - Newbie 3 10-02-2015 12:40 PM
Automatically server goes in a hang mode and every time i need to reboot the server. vjjaaii Linux - Server 6 01-04-2014 11:34 AM
Server reboot, why ? saavik Linux - Server 6 06-19-2010 06:31 AM
Fedora i686/2.4.27-0.3um - Server hostname reverts to original upon server reboot foxhosting Linux - Newbie 2 02-25-2006 03:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:33 PM.

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