LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-20-2009, 12:32 PM   #1
lema
LQ Newbie
 
Registered: Jul 2006
Posts: 5

Rep: Reputation: 0
Linux server goes to shutdown each night


Hi All,

I have HP Prolant320 server running with SUSE10 SP1. This is 3 years old server. It ran perfectly until last week. It started to shutdown each night. Is there any way to find out why its happening?

Thanks,
Vladimir
 
Old 10-20-2009, 01:03 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by lema View Post
Hi All,

I have HP Prolant320 server running with SUSE10 SP1. This is 3 years old server. It ran perfectly until last week. It started to shutdown each night. Is there any way to find out why its happening?

Thanks,
Vladimir
Look in the system logs (usually /var/log/messages), and see if you see anything. Other things to check are:

- Does it happen same time each night?
- Any software/scripts/cron-jobs get updated recently?
- Any hardware-error/info lights on?
- Any new users that don't have a clue get hired recently?
 
Old 10-20-2009, 01:19 PM   #3
lema
LQ Newbie
 
Registered: Jul 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TB0ne View Post
Look in the system logs (usually /var/log/messages), and see if you see anything. Other things to check are:
TB0ne, thanks for reply! I checked the /var/log/messages. Here are last messages before shutdown

Oct 20 07:32:38 chicago syslog-ng[2494]: STATS: dropped 0
Oct 20 07:52:13 chicago su: (to root) root on none
Oct 20 07:52:13 chicago su: (to root) root on none
Oct 20 07:52:13 chicago shutdown[8128]: shutting down for system halt
Oct 20 07:52:13 chicago init: Switching to runlevel: 0
Oct 20 07:52:14 chicago auditd[3221]: The audit daemon is exiting.
Oct 20 07:52:14 chicago kernel: audit(1256050334.959:8): audit_pid=0 old=3221 by auid=4294967295
Oct 20 07:52:15 chicago xinetd[3694]: Exiting...
Oct 20 07:52:15 chicago sshd[3592]: Received signal 15; terminating.
Oct 20 07:52:15 chicago nmbd[3362]: [2009/10/20 07:52:15, 0] nmbd/nmbd.c:terminate(58)
Oct 20 07:52:15 chicago nmbd[3362]: Got SIGTERM: going down...
Oct 20 07:52:20 chicago kernel: nfsd: last server has exited
Oct 20 07:52:20 chicago kernel: nfsd: unexporting all filesystems
Oct 20 07:52:20 chicago rpc.mountd: Caught signal 15, un-registering and exiting.
Oct 20 07:52:32 chicago kernel: Kernel logging (proc) stopped.
Oct 20 07:52:32 chicago kernel: Kernel log daemon terminating.
Oct 20 07:52:33 chicago syslog-ng[2494]: syslog-ng version 1.6.8 going down

Is this indicating that somebody did it manually using root password?
 
Old 10-20-2009, 03:39 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by lema View Post
TB0ne, thanks for reply! I checked the /var/log/messages. Here are last messages before shutdown

Oct 20 07:32:38 chicago syslog-ng[2494]: STATS: dropped 0
Oct 20 07:52:13 chicago su: (to root) root on none
Oct 20 07:52:13 chicago su: (to root) root on none
Oct 20 07:52:13 chicago shutdown[8128]: shutting down for system halt
Oct 20 07:52:13 chicago init: Switching to runlevel: 0
Oct 20 07:52:14 chicago auditd[3221]: The audit daemon is exiting.
Oct 20 07:52:14 chicago kernel: audit(1256050334.959:8): audit_pid=0 old=3221 by auid=4294967295
Oct 20 07:52:15 chicago xinetd[3694]: Exiting...
Oct 20 07:52:15 chicago sshd[3592]: Received signal 15; terminating.
Oct 20 07:52:15 chicago nmbd[3362]: [2009/10/20 07:52:15, 0] nmbd/nmbd.c:terminate(58)
Oct 20 07:52:15 chicago nmbd[3362]: Got SIGTERM: going down...
Oct 20 07:52:20 chicago kernel: nfsd: last server has exited
Oct 20 07:52:20 chicago kernel: nfsd: unexporting all filesystems
Oct 20 07:52:20 chicago rpc.mountd: Caught signal 15, un-registering and exiting.
Oct 20 07:52:32 chicago kernel: Kernel logging (proc) stopped.
Oct 20 07:52:32 chicago kernel: Kernel log daemon terminating.
Oct 20 07:52:33 chicago syslog-ng[2494]: syslog-ng version 1.6.8 going down

Is this indicating that somebody did it manually using root password?
It looks that way, but it could also be coming from a CRON job, too, or from some other scheduled process.

Another thing to consider, is if it's plugged into a UPS. If you're running a UPS daemon, the UPS could be sending out bogus data, causing the server to shut down that way.
 
Old 10-21-2009, 06:16 AM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by TB0ne View Post
It looks that way, but it could also be coming from a CRON job, too, or from some other scheduled process.

Another thing to consider, is if it's plugged into a UPS. If you're running a UPS daemon, the UPS could be sending out bogus data, causing the server to shut down that way.
My hunch, for two reasons, is it is automated. Firstly there is no controlling terminal for the su [The log shows su: (to root) root on none] and secondly the shutdown command was entered less that one second after authentication -- just about long enough to see a command prompt come up, type the command and press Enter but doesn't allow for any hesitation or fumble factor (few sysadmins are great typists). Scheduled or UPS are good contenders for "automated". Does it shut down the same time each night? Is the time in the logs local time? Sun-up?
 
Old 10-22-2009, 11:32 AM   #6
lema
LQ Newbie
 
Registered: Jul 2006
Posts: 5

Original Poster
Rep: Reputation: 0
no its shuts down in different time but always between 5-7 AM.
could it be some hardware failure which forces server to shut down?

Thanks,
Vladimir
 
Old 10-22-2009, 12:17 PM   #7
thegeek
Member
 
Registered: Oct 2009
Location: Amsterdam
Distribution: CentOS,Fedora,Puppy
Posts: 62

Rep: Reputation: 20
Look for a crontab with the number seven in it

grep 7 /var/spool/cron/*
 
Old 10-22-2009, 08:45 PM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by lema View Post
no its shuts down in different time but always between 5-7 AM.
could it be some hardware failure which forces server to shut down?

Thanks,
Vladimir
Since it's between the same hours each day, but with such a wide window, I'd bet someone put something at the end of another script. Since that script processes, and doesn't finish the same time every day, you have a variable shutdown. Check ALL your cron entries, and not just for root either. Any user that has SUDO rights could shut down the box, so check user CRON's too.

And another thought...do you have automatic updates turned on? If so, the server may be trying to apply a patch that needs a reboot, and is taking a 'default' value from somewhere....
 
Old 10-23-2009, 01:35 AM   #9
thegeek
Member
 
Registered: Oct 2009
Location: Amsterdam
Distribution: CentOS,Fedora,Puppy
Posts: 62

Rep: Reputation: 20
In fact just look at /var/log/cron and see what gets run ...
 
Old 10-23-2009, 09:58 AM   #10
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,094

Rep: Reputation: 198Reputation: 198
Quote:
Originally Posted by TB0ne View Post
And another thought...do you have automatic updates turned on?

If "SUSE10 SP1" means, as I suspect, SUSE Linux Enterprise Server 10 with Service Pack 1 then I'm thinking then Novell stopped issuing updates for it about a year ago after telling everyone they needed to update to Service Pack 2 (which has was obsoleted last week by Service Pack 3).
 
Old 10-23-2009, 01:31 PM   #11
lema
LQ Newbie
 
Registered: Jul 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Thank you for replies!
Unfortunately the problem is still exists

I checked the /var/spool/cron/tabs and I could see only my scheduled job for ClearCase backup. BTW, that's why I cannot upgrade to SP2. Its not supported by IBM.

I'll change the root password and see how it goes.

Best Regards,
Vladimir
 
Old 10-23-2009, 01:38 PM   #12
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by lema View Post
Thank you for replies!
Unfortunately the problem is still exists

I checked the /var/spool/cron/tabs and I could see only my scheduled job for ClearCase backup. BTW, that's why I cannot upgrade to SP2. Its not supported by IBM.

I'll change the root password and see how it goes.

Best Regards,
Vladimir
I'd also change the SUDO'ers file, too, to remove everyone from it but you for a night or two. But given the log evidence, I'd agree and say it's a scheduled job. Changing the password won't help...you've got to identify the job, and remove the entry.
 
  


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
X server dying at night, freezing during the day roastedmnm SUSE / openSUSE 1 02-28-2007 09:58 AM
httpd -USR1 causes server to hang every night Avatar Linux - Newbie 3 01-16-2007 11:10 AM
Funny: MS server failed last night musicman_ace General 0 05-29-2005 05:08 AM
A little goblin disables my linux server during the night...freezes... help! crazyswede Linux - General 6 07-28-2004 04:12 AM
how can I remote shutdown other WinNT server from Linux Server? adelel Linux - Networking 2 01-06-2002 12:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:08 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