colinuxの時間が狂う
date すると、13時間前に時間がずれている
どうしたらいいのだろう?
- タイムゾーンとは
- http://www.linux.or.jp/JF/JFdocs/TimePrecision-HOWTO/tz.html
- ゾーン情報ファイルを /etc/localtime ファイルからリンク (あるいはコピー) するだけで OK です
$sudo cp /usr/share/zoneinfo/Japan /etc/localtime
- 変更前:2007年 10月 3日 水曜日 22:04:49 EDT
- 変更後:2007年 10月 4日 木曜日 11:07:39 JST
- Linux マシンを正しく設定する
- http://www.linux.or.jp/JF/JFdocs/TimePrecision-HOWTO/set.html
- hwclock はハードウェアクロック (HC) を読み書きするコマンド
$ cat /etc/sysconfig/clock # The ZONE parameter is only evaluated by system-config-date. # The timezone of the system is defined by the contents of /etc/localtime. ZONE="America/New_York" UTC=true ARC=false $ sudo system-config-date Password: テキストモードのインターフェースは廃止になる予定です $ cat /etc/sysconfig/clock # The ZONE parameter is only evaluated by system-config-date. # The timezone of the system is defined by the contents of /etc/localtime. ZONE="Asia/Tokyo" UTC=false ARC=false
$ sudo /sbin/hwclock Password: hwclock は I/O ポートアクセスができません: iopl(3) コールに失敗。
う〜ん
結局、coLinuxでは hwclockを無効にするしかないのかあなぁ・・
- Syncing hardware clock to system time hwclock is unable to get I/O port access: the iopl(3) call failed.
- hwclockコマンドが使えない -> コメントアウトして対処
- kernel の RTC (Real Time Clock) が、ハードウエアの時刻を参照するときにうまくいかない -> --directisa オプションをつける