Reboot investigation problem


 
Thread Tools Search this Thread
Operating Systems Linux Reboot investigation problem
# 1  
Old 06-11-2011
Reboot investigation problem

I have a linux server,in this i receive alarm as server has rebooted.
When i check uptime of the server it says that the server has rebooted but when i check output of who -b it says that the server rebooted very long back
Can some one help what is the issue here.

Quote:
[root@x root]# uname -a
Linux hstnu1.hst.oamp.sgns.net 2.4.21-52.ELsmp #1 SMP Tue Sep 25 15:13:04 EDT 20
07 i686 i686 i386 GNU/Linux
[root@x root]# uptime
08:26:09 up 34 min, 0 users, load average: 0.00, 0.00, 0.00
[root@x root]# who -b
system boot Sep 20 09:41
# 2  
Old 06-11-2011
you must check date/time settings on your host.
* check your history related date.(date or TZ set)
* check boot scripts (is there any entry related ntpdate or date or TZ in rc.local or specific other scripts )
* check your ntpd script(if enable , `chkconfig --list ntpd`)
* check ntp.conf in main ntpd server (if use vmguest then check vmhost time settings)
* check your source files for who|last command (for any corruption /var/run/utmp and/or /var/log/wtmp)

and uptime most probably does not change..
Code:
# cat /proc/uptime|awk '{ split($1/3600, a, ".") ; x=a[2]*60/10000 ; printf "%d:%0.2d\n", a[1], x}'
13:25
# uptime|sed -n 's/.*up \([^ ]*\),.*/\1/p'
13:25

regards
ygemici
This User Gave Thanks to ygemici For This Post:
# 3  
Old 06-12-2011
this is known bug in 2.4 kernel

you can check the real uptime with

Code:
-bash-3.00$ last -xf /var/run/utmp runlevel
runlevel (to lvl 3)                    Wed Jan 12 15:11 - 08:45 (150+16:33)

utmp begins Wed Jan 12 15:11:58 2011
-bash-3.00$

So this node is up 150days.

The bug report

https://bugzilla.redhat.com/show_bug.cgi?id=97373
This User Gave Thanks to click For This Post:
# 4  
Old 08-04-2011
Thnx for the help.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

solaris link aggregation problem , once i reboot it is not showing, not able to ping the default gat

Hi All, I am trying to aggregate the NIC's,(igb2 and igb3) (igb0 is used by the physical system and igb1 is used by primary-vsw0) to create the domains on that for faster data transfer, I followed the process for creating the aggregation, dladm create-aggr -d igb2 -d igb3 1 after creating the... (2 Replies)
Discussion started by: buildscm
2 Replies

2. AIX

AIX Shutdown Investigation

AIX error log (read with the errpt command) /var/adm/wtmp account file (read with the last command) /var/adm/pacct account files (read with the lastcomm command) AIX console log (read with the alog -t console -o command) su log file (read with cat /var/adm/sulog) Shell history file (read... (4 Replies)
Discussion started by: prpkrk
4 Replies

3. Emergency UNIX and Linux Support

Performance investigation, very high runq-sz %runocc

I've just been handed a hot potato from a colleague who left :(... our client has been complaining about slow performance on one of our servers. I'm not very experienced in investigating performance issues so I hoping someone will be so kind to provide some guidance Here is an overview of the... (8 Replies)
Discussion started by: Solarius
8 Replies

4. UNIX for Advanced & Expert Users

problem connecting to oracle 10g after NCR node reboot

Hi All, I am facing a connection problem with Oracle 10g on Solaris 10 when my application (started by /etc/rc3.d at node reboot) tries to establish a session after reboot of the node where my application is running (NCR UNIX (MP RAS)). I find that my application (run as a deamon process)... (1 Reply)
Discussion started by: sowjanya
1 Replies

5. UNIX for Dummies Questions & Answers

Shutdown and Reboot problem

Hi, i have sco openserver 5.0.6 but have a problem with shutdown or reboot commands. The string I use is "shutdown -g0 -y" but the system just hangs on "The sytem is down" . I used to get a "Safe to turn of" but now nothing. Same with "reboot" the sytem just freezes. Any suggestions? (1 Reply)
Discussion started by: VTechman
1 Replies

6. Solaris

different between soft reboot and hard reboot

Hi Guru's Can any want here could explain to me the different between soft reboot and hard reboot . Best Regards Seelan (3 Replies)
Discussion started by: seelan3
3 Replies

7. Solaris

Reboot problem !!! urgent plse !!!!!!!!!!!

Operatin System : Solaris 5.9 Server : Sun Fire 3800 Shutdown and reboot i receive the following messages ..... un Fire 3800 OpenFirmware version 5.15.2 (08/04/03 10:27) Copyright 2001-2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. SmartFirmware,... (8 Replies)
Discussion started by: tt155
8 Replies

8. Solaris

hme0 problem after reboot

Hi ..... My problem is that when i reboot the system i can't connect to the network because my ethernet ( hme0 ) is down , i must up it by ifconfig command after reboot : # ifconfig -a lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1 inet 127.0.0.1 netmask... (1 Reply)
Discussion started by: tt155
1 Replies

9. Post Here to Contact Site Administrators and Moderators

site down investigation

I'm rather new to web site administration so i would greatly appreciate some help. My site has been going down quite frequently and i cannot figure out why. I'm on a shared server at OLM.net and the site goes down once a day or once every 2-3 days which is quite unacceptable. We are still small... (0 Replies)
Discussion started by: skolar
0 Replies
Login or Register to Ask a Question