Jay's Room

思ったこと、感じたこと、未来の自分に伝えたいことを記していきたい
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

これだけ。

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

2010年11月26日

皇居Run

会社にあるランニングサークル(正式に部活認定されているらしい)に参加して、初めての皇居Run。

神田の稲荷湯からスタートして、1周だけ走った。ホントは2周するつもりだったけど、全然ペースが上がらなくて2周目に入ると予定の時間を過ぎてしまうため断念。次に走るときは2周走れるように頑張ろう。

距離 5.02 km
タイム 29:39

2010年1月 1日

明けましておめでとうございます

みなさま今年も宜しくお願いいたします。

ことしは発展の年になるといいなぁ。今まで停滞してた感があるし、仕切りなおして一から出直す気分で頑張りたいです!

今年がどうなるのか、本当に楽しみ。
とってもいい年になるといいですね。

2009年12月31日

2009年も終わりですね

2009年で今までいた会社を離れることにしました。

いろいろ考えた結果、いろいろ話し合った結果のことなので後悔はしていません。会社も発展していって欲しいし、これから自分も違う道を思う方向に進んでいければと思います。

これからの自分に起こることが楽しみです。

いろいろ成長させてくれた2009年に感謝。

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.