0

Recently, in an Oracle Linux (either 6 or 7) based virtual machine, I faced any issue where system uptime was apparently wrong.

# who -b system boot 2019-07-24 13:21 # last reboot reboot system boot 3.8.13-44.1.4.el Wed Jul 24 13:21 - 23:24 (10:03) wtmp begins Wed Aug 22 11:09:06 2018 # hwclock --show Wed 24 Jul 2019 11:26:11 PM CEST -0.956063 seconds # uptime 23:24:36 up 10:03, 3 users, load average: 0.63, 0.51, 0.68 # cat /proc/uptime 36320.87 267407.58 

The system was indeed rebooted at 13:21 which is correctly listed in "who -b" but somehow "last reboot" and "uptime" is only showing "10:03". Hardware clock value is correct and uptime value is updating with time with every minute as expected. I didn't got the chance to re-look at the issue in detail but may soon have to work on it.

Any suggestions why this might have happened and how to rectify it? Thanks.

1 Answer 1

1

last reboot correctly shows the machine was rebooted at 13:21.

What is in brackets is just time epleased since the action.

Same as uptime, shows system was up for 10 hours and 3 minutes.

1
  • 2
    Seems I misjudged the uptime value in minutes. Anyways thanks for clarification. Commented Jul 29, 2019 at 14:37

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.