Lazy Diary @ Hatena Blog

PowerShell / Java / miscellaneous things about software development, Tips & Gochas. CC BY-SA 4.0/Apache License 2.0

ヒストリ再構築完了

id:satob:20030801 の通りに作業してもヒストリの再構築ができなかった原因は、/usr/local/news/etc/storage.conf の設定だったみたい。これを直した後は以前の手順で復旧できました。

  • INN 2.3 以降では、記事の保存法として tradspool を使う場合でも、storage.conf に設定が必要。デフォルトでは storage.conf の内容は空になっている(全てコメントアウトされている)。次のような内容を書き込めばよい。
method tradspool {
        newsgroups: *
        class: 0
}
  • news/db/newsgroups は割とどうでもよかった。前サーバの news/db/newsgroups を見て確認。


障害の目立った特徴とその原因を考えてみる。

makehistory したら history ファイルのサイズが 0 になる
active ファイルは読めるけど、その記事がどこにあるか(どんな方式で保存されているか)分からないため?
mnews で全ての記事が CANCEL/LOST と表示される
同上。
mnews で表示される記事の数が変
謎。
history.hash とか history.index のサイズがきっちりした数値(4000000 bytes とか)になることがある
謎。正しい状態では次のような感じ。
-rw-r--r--  1 news  news  1450612  9 16 07:44 history
-rw-r--r--  1 news  news       44  9 16 07:57 history.dir
-rw-r--r--  1 news  news   393216  9 16 07:57 history.hash
-rw-r--r--  1 news  news   524288  9 16 07:57 history.index

後は expire の確認と、モデレータの設定……。