Jay's Room

思ったこと、感じたこと、未来の自分に伝えたいことを記していきたい
Computer
2010年12月19日

qmailanalogでログが正常に集計されない

昨日になって急に気付いたのだが、日時でログを集計しているのqmailanalogが正常に動いていないみたい。

こんな感じで一件集計されているように見えるけど、
deferralのメッセージがあるのにzdeferralsのデータがなかったり、
zrhosts・zfailures・zsuids・zdeferralsが動いていない模様。

-----------Result of zoverall------------

Basic statistics

qtime is the time spent by a message in the queue.

ddelay is the latency for a successful delivery to one recipient---the
end of successful delivery, minus the time when the message was queued.

xdelay is the latency for a delivery attempt---the time when the attempt
finished, minus the time when it started. The average concurrency is the
total xdelay for all deliveries divided by the time span; this is a good
measure of how busy the mailer is.

Completed messages: 153
Recipients for completed messages: 153
Total delivery attempts for completed messages: 153
Average delivery attempts per completed message: 1
Bytes in completed messages: 1501110
Bytes weighted by success: 1501110
Average message qtime (s): 1.12839

Total delivery attempts: 153
success: 153
failure: 0
deferral: 0
Total ddelay (s): 165.507989
Average ddelay per success (s): 1.081752
Total xdelay (s): 122.277667
Average xdelay per delivery attempt (s): 0.799200
Time span (days): 0.945623
Average concurrency: 0.00149663

-----------Result of zddist------------
Distribution of ddelays for successful deliveries

Meaning of each line: The first pct% of successful deliveries
all happened within doneby seconds. The average ddelay was avg.

doneby avg pct
0.27 0.17 10
...
4.24 1.08 100

-----------Result of zdeferrals------------
Reasons for deferral

One line per reason for deferral. Information on each line:
* del is the number of deliveries that ended for this reason.
* xdelay is the total xdelay on those deliveries.

del xdelay reason

-----------Result of zfailures------------
Reasons for failure

One line per reason for delivery failure. Information on each line:
* del is the number of deliveries that ended for this reason.
* xdelay is the total xdelay on those deliveries.

del xdelay reason

-----------Result of zrhosts------------
Recipient hosts

One line per recipient host. Information on each line:
* sbytes is the number of bytes successfully delivered to this host.
* mess is the number of messages sent to this host (success plus failure).
* tries is the number of delivery attempts (success, failure, deferral).
* xdelay is the total xdelay incurred by this host.

sbytes mess tries xdelay host

-----------Result of zsuids------------
Sender uids

One line per sender uid. Information on each line:
* mess is the number of messages sent by this uid.
* bytes is the number of bytes sent by this uid.
* sbytes is the number of bytes successfully received from this uid.
* rbytes is the number of bytes from this uid, weighted by recipient.
* recips is the number of recipients (success plus failure).
* tries is the number of delivery attempts (success, failure, deferral).
* xdelay is the total xdelay incurred by this uid.

mess bytes sbytes rbytes recips tries xdelay uid

-----------Result of zrxdelay------------
Recipients in the best order for mailing lists

One line per recipient, sorted by avg. Information on each line:
* avg is the _average_ xdelay for the recipient.
* tries is the number of deliveries that avg is based on.

avg tries recipient
0.10 36 local.soph.jp-xxxxxxxx@soph.jp
0.38 15 remote.xxxxxxxxxx@i.softbank.jp
0.42 28 local.soph.jp-xxxxxxxxx@soph.jp
0.63 2 remote.xxxxxxxx@xxx.ocn.ne.jp
2.63 28 remote.xxxxx@gmail.com
...

» 続きを読む
2010年11月27日

Movable Type 5.031にアップグレード

久しぶりにサーバのアップデート。

まず最初にMovableTypeから、
5.0から5.031にアップグレードだから、いつもの通りダウンロード→解凍→バックアップ→インストール→アップグレードという流れでやったら、なぜかアップグレードが進まない。

こんな画面のまま進みませんでした。
mtupgrade.png

仕方がないので一旦全部ファイルを削除してやり直すとアップグレードが出来た。

そこでそのまま前の環境を戻すとダッシュボードさえ開かない状態に。

プラグインが原因だろうと思い、いろいろ外したりしながら調べてみると、nofollowのプラグインと、MTTagInvokeの2つが原因だった模様。何で5.0で動いてたのか分からないけど、取りあえず解決までに3時間ぐらいかかってしまった。

まぁしかたないね。

Movable Type 5.031 の提供を開始 | MovableType.jp

VMware Converter

サーバーの音や電力消費が気になってきて、Dell PowerEdge1800からFujitsuTX100 S1に換えることにしました。

これを機に物理サーバから仮想サーバに移行することにしたので、VMwareConverterを使って移行してみました。

手順通り進めてるとエラーで終了してしまって、何度試しても同じ現象。

いろいろ調べてみたら、なぜか/var/log/lastlogのサイズが1TB以上ある。
ハードディスクのサイズは420GBぐらいしかないから、明らかにおかしい。
削除してから再度VMwareConverterを実行すると移行完了。

ここにも同様の現象があるとの報告があった。
VMware Communities: P2V RedHat Linux failed ...

Linux強制リブート

今日はmysqlとかphpとかコンパイルしているうちにファイルシステムにエラーが見つかってReadOnlyになってしまった。
それからというものreboot とか shutdown -r now とか全く効かなくて、再起動できなくて本当に困った。

探してみるとこんな方法もあるんだ。

ぴょぴょぴょ? - Linuxとかプログラミングの覚え書き linux を強制リブートする方法

linux を強制的に遠隔から再起動する方法。

# echo b > /proc/sysrq-trigger

これだけ。

無事に再起動して復旧。超助かりました。

2009年12月 7日

Cyberduckの動作が重い

サーバにSPAMを学習させるときとか、ソースやパッケージをサーバに上げるときなんかは、いつもCyberduckを使ってるんだけど、最近やたら重い。

そんでなんか解決方法はないかなと思ってググってみたら、いきなり解決方法が見つかりました!

「Cyberduck」の動作が突然遅くなったときの対処法。 | btmup Blog

アップロードやダウンロードをすると、その経過や結果が「転送」ウィンドウに表示されます。
その履歴は何もしなければ消えることなく、どんどんたまっていきます。

で、どうやらこの「転送」ウィンドウに履歴がたまったことが、動作を重くしていた原因のようなのです。

理由は分かりません。
それだけ余分なリソースを喰ってたってことなんでしょうか。

とにかく、「転送」ウィンドウの古い情報を適当に選択して「削除」ボタン(竹ぼうきみたいなヤツ)を押したら、それだけで動作が一気に軽くなりました。

これやってみたら、本当にめちゃくちゃ軽くなりました!

履歴は必要ないので全部削除したら、今までサーバのログインにも10秒以上かかっていたのが、2秒くらいで済むようになったりと、全ての作業が軽くなりました。

このウィンドウで全部選択して削除。
Cyberduck転送ウィンドウ

いやー。ホント助かりました。

2009年12月 3日

Google日本語入力

Googleからフリーの日本語入力ソフトが出た。

Google日本語入力

その名も「Google日本語入力」
もうちょっとましな前つけれくれないかなー。なんてことはさておき、
早速使ってみた。

最初の印象は、動作が軽い!

「かわせみ」も使ってみたけど、それもりもずっと軽い印象。
ATOKみたいに多機能じゃないけど、
基本的な設定は一通りあるし、変換も自分の望む候補がすぐに出てきてすごく使いやすい。
設定画面が英語だったりで粗削りな印象もあるけど、
少しずつでも良くなっていってくれたらいいな。

とりあえずATOKから乗り換えてみます。

» 続きを読む
2009年8月25日

Mac OS X Snow Leopard 発売日決定!

ついにMac OS X Snow Leopardの発売日が決定したみたい。

噂どおり8月28日の発売。って今週の金曜だよね。

AppleStoreでは予約も開始したみたいだけど、Amazonとか他のお店ではまだなのかな?

どこで買おうかなー。

2009年7月10日

MovableType 5 発表

MovableType 5が発表になった。
Six Apart - Movable Type News: ウェブサイト管理の新標準、「Movable Type 5 」を発表しました

Movable Type 5 は、ブログから企業サイト、ソーシャルメディアの構築まで、ウェブサイト運営の『テーマ(目的)』を最短距離で実現するソーシャル・パブリッシング・プラットフォームとして進化します。

これまでのバージョンで熟成した、安定したコア・アーキテクチャ、強力なテンプレート言語、安全なユーザー管理、柔軟なプラグイン拡張をベースに、ウェブサイト全体のコンテンツやデザイン、ユーザー管理を目的にあわせて柔軟にカスタマイズできるようになり、さらに更新しやすく、効果の高いウェブサイト構築・運営・管理が可能となります。

さらに更新しやすくっていうのが非常に気になる。今でも十分更新しやすいけど(それでも全然更新してない)どういうふうに変わっていくのだろう。

気になるリリース時期は、

Movable Type 5 のベータ版は8月上旬、正式出荷は10月を予定しています。

ということでちょっと先になりそうですね。

Made with dreamweaverMade with fireworksPowered by Movable Type 5.12Powered by Wandering Windbeta_tester.gif
Copyright : [Articles] (C) Jay's Room All Rights Reserved.
[Comments/Trackbacks] ... Authors of those have rights.