[hackers-jp: 202] Re: [Fwd: Re: [HACKERS] [PATCHES] O_DIRECT for WAL writes]
Hiroki Kataoka
kataoka @ interwiz.jp
2005年 8月 2日 (火) 03:50:22 JST
片岡です。
ITAGAKI Takahiro wrote:
>> ところで、このO_DIRECTパッチはLinux Kernel 2.6専用になるんでしょうか?
>> オリジナルのパッチ+Linux Kernel 2.4で試したらダメだったので。
>
> 動くはずです。2.4でも動作確認できています。
Linux Kernel 2.4.27 にて下記のようなメッセージが出てpostmasterが起動し
ないのですが、何が起きていると考えられますか? ソースは最新のcvsから
もってきてます。wal_sync_methodはopen_syncですので、O_DIRECT付きのはずで
す。ちなみにwal_sync_method=fsyncでは問題なく動きます。
> LOG: could not create IPv6 socket: Address family not supported by protocol
> LOG: database system shutdown was interrupted at 2005-08-02 02:45:58 JST
> LOG: checkpoint record is at 0/335010
> LOG: redo record is at 0/335010; undo record is at 0/0; shutdown TRUE
> LOG: next transaction ID: 562; next OID: 10790
> LOG: next MultiXactId: 1; next MultiXactOffset: 0
> LOG: database system was not properly shut down; automatic recovery in progress
> LOG: record with zero length at 0/335054
> LOG: redo is not required
> PANIC: could not write to log file 0, segment 0 at offset 3358720: Invalid argument
> LOG: startup process (PID 30409) was terminated by signal 6
> LOG: aborting startup due to startup process failure
--
Hiroki Kataoka <kataoka @ interwiz.jp>
hackers-jp メーリングリストの案内