Chinaunix首页 | 论坛 | 博客
  • 博客访问: 915199
  • 博文数量: 189
  • 博客积分: 10041
  • 博客等级: 上将
  • 技术积分: 2321
  • 用 户 组: 普通用户
  • 注册时间: 2007-02-01 10:11
个人简介

Linux ... ...

文章分类

全部博文(189)

文章存档

2014年(3)

2013年(1)

2010年(5)

2009年(34)

2008年(41)

2007年(105)

我的朋友

分类: LINUX

2009-03-25 11:25:34

IBM 3850升级微码后,发现一个问题,系统时间变快了8小时。
date -s 更改后,clock -w和hwclock都报以下错,select() to /dev/rtc to wait for clock tick timed out。
重启机器后还是时间仍然没有更改过来。
在 /etc/sysconfig/clock里加了一条 CLOCKFLAGS=--directisa 再hwclock --directisa。


修改时间:
date MMDDhhmm
保存修改:
hwclock -w --directisa


在设置系统时间的时候遇到以下问题 :
hwclock --show
select() to /dev/rtc to wait for clock tick timed out
解决办法:
vi /etc/sysconfig/clock
HWCLOCKPARS=--directisa

或者在命令行:
hwclock --show --directisa (在hwclock命令中加上参数--directisa即可)

Functions:
--help        show this help
--show        read hardware clock and print result
--set         set the rtc to the time given with --date
--hctosys     set the system time from the hardware clock
--systohc     set the hardware clock to the current system time
--adjust      adjust the rtc to account for systematic drift since
                the clock was last set or adjusted
--getepoch    print out the kernel's hardware clock epoch value
--setepoch    set the kernel's hardware clock epoch value to the
                value given with --epoch
--version     print out the version of hwclock to stdout

Options:
--utc         the hardware clock is kept in coordinated universal time
--localtime   the hardware clock is kept in local time
--rtc=path    special /dev/... file to use instead of default
--directisa   access the ISA bus directly instead of /dev/rtc
--badyear     ignore rtc's year because the bios is broken
--date        specifies the time to which to set the hardware clock
--epoch=year specifies the year which is the beginning of the
                hardware clock's epoch value
--noadjfile   do not access /etc/adjtime. Requires the use of
                either --utc or --localtime
阅读(4630) | 评论(0) | 转发(0) |
0

上一篇:rpm命令

下一篇:关于/1问题

给主人留下些什么吧!~~