LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 07-04-2011, 06:18 AM   #1
chetan_linux
Member
 
Registered: Aug 2008
Posts: 61

Rep: Reputation: 1
Exclamation Wrong uptime


I am facing issue with uptime. Two of my servers are showing wrong uptime, i tried re-boot also but no effect

#uptime

11:52am up 4202 day(s), 10:13, 3 users, load average: 3.45, 3.23, 3.28

# uptime

11:53am up 4202 day(s), 9:47, 2 users, load average: 4.23, 4.16, 4.17
 
Old 07-04-2011, 06:21 AM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Why do you think the uptime shown is wrong? The second one I can see, especially if it's after a reboot, but what's wrong with the first one?
 
Old 07-04-2011, 06:29 AM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by XavierP View Post
Why do you think the uptime shown is wrong? The second one I can see, especially if it's after a reboot, but what's wrong with the first one?
Well, I don't know why it is displaying the wrong uptime, but don't you think that a server uptime of more than 11 years (4202 days) would be rather astonishing, especially after a reboot?
 
Old 07-04-2011, 09:31 AM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
That's what I meant about the second result. This is Linux, 11 years is not surprising
 
Old 07-04-2011, 09:44 AM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by XavierP View Post
That's what I meant about the second result. This is Linux, 11 years is not surprising
Nope, it is Solaris, since this is the Solaris forum.
 
Old 07-04-2011, 02:45 PM   #6
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Dagnabbit. Does that mean that long uptime is unheard of in the Solaris world? *ducks*
 
Old 07-04-2011, 06:17 PM   #7
kebabbert
Member
 
Registered: Jul 2005
Posts: 527

Rep: Reputation: 46
There are Windows NT servers with very very long uptime. What does that prove? That those WinNT servers are not doing any demanding work. They just sit there and do small things, like file server, printer server, etc. I can boot an MS-DOS computer and just let it sit there for 20 years, without connection to internet. Does that prove that MS-DOS is the most stable OS out there? No. The interesting thing is, what did those servers do? Are they doing any thing non-trivial, or just sit there and idling?

I think OpenVMS servers have the best uptime, they measure in decades. After that, Unix (AIX, Solaris, HP-UX). After that, Linux. After that, Windows. Now I am talking about non trivial server tasks. Not trivial server tasks.
 
Old 07-07-2011, 01:17 AM   #8
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by chetan_linux View Post
I am facing issue with uptime. Two of my servers are showing wrong uptime, i tried re-boot also but no effect
Unless either you last reboot them on Jan 01 2000 or your system clock has been set to Jan 4 2023, I would say the /var/adm/wtmpx file has been corrupted on both of these servers. Should you want to see its content in clear text, you can convert it to ascii with this command:
Code:
# /usr/lib/acct/fwtmp < /var/adm/wtmpx > /tmp/wtmpx.ascii
For a quick fix, I would suggest you to just clear the wtmpx file and reboot.
Code:
# > /var/adm/wtmpx
# init 6
 
Old 08-02-2011, 02:29 PM   #9
elakin
LQ Newbie
 
Registered: Aug 2011
Posts: 1

Rep: Reputation: Disabled
Could be that the system battery is shot and needs replacing. When rebooted, the system is losing it's time, reverting to 1999. Then during boot it's time is updated by NTP, jumping from 1999 to 2011.
 
  


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
uptime cmd shows 5 users but thats wrong thoron! Slackware 7 02-21-2012 02:58 PM
init uptime longer than system uptime? m4rtin Linux - Server 1 09-15-2010 07:45 AM
uptime. alex9510 Linux - Newbie 3 05-02-2008 07:35 AM
Uptime: 2.4 vs 2.6 Synesthesia Linux - General 4 10-17-2005 03:23 PM
24/7 uptime? jollyjoice General 20 01-25-2005 11:12 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

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