2009-03-05

InnoDB: Error: trying to declare trx to enter InnoDB, but InnoDB: it already is declared.

Bug#20090 のバグで内部ステータスの設定ミスにより、処理の多重度が上がった際、
間違ったステータスによって、エラーと判断してしまうようです。対応策としてはバージョンアップしかないんだとか・・・。対応版は5.0.48移行になります。

090227 11:17:11  InnoDB: Error: trying to declare trx to enter InnoDB, but InnoDB: it already is declared.
TRANSACTION 0 1116880420, ACTIVE 0 sec, process no 6375, OS thread id 1167493472,
thread declared inside InnoDB 0
mysql tables in use 1, locked 1
1 lock struct(s), heap size 368
MySQL thread id 48, query id 1180 192.168.1.10 yaruo_db update

| | コメント (16) | トラックバック (0)

2009-01-21

やる夫がログローテーションの時間を変更するようです。

久々の更新です。自分でも既に閉鎖してしまた感あり・・・。

やる夫がログ管理をするようです。でログローテーション方法を記載しましたが、特にローテーション時間については触れなかったので、補足します。”/etc/crontab”を修正していただければと思います。デフォルトでは朝4時にセットしてますね。

# vi /etc/crontab
-----
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
-----

特に修正しなくてもよいと思います。他のバッチ系cronとかは、朝0時だったり1時だったり・・・。するのでサーバ負荷的にも、このままの方がよいかと思います。

          ____
       / \  /\ キリッ
.     / (ー)  (ー)\
    /   ⌒(__人__)⌒ \   サーバ負荷的にも、このままの方がよいかと思います
    |      |r┬-|    |  
     \     `ー'´   /   
    ノ            \
  /´               ヽ
 |    l              \
 ヽ    -一''''''"~~``'ー--、   -一'''''''ー-、.
  ヽ ____(⌒)(⌒)⌒) )  (⌒_(⌒)⌒)⌒))

          ____
        /_ノ  ヽ、_\
 ミ ミ ミ  o゚((●)) ((●))゚o      ミ ミ ミ
/⌒)⌒)⌒. ::::::⌒(__人__)⌒:::\   /⌒)⌒)⌒)
| / / /     |r┬-|    | (⌒)/ / / //  だっておwwwwwwwwwwwwwww
| :::::::::::(⌒)    | |  |   /  ゝ  :::::::::::/
|     ノ     | |  |   \  /  )  /
ヽ    /     `ー'´      ヽ /    /     バ
 |    |   l||l 从人 l||l      l||l 从人 l||l  バ   ン
 ヽ    -一''''''"~~``'ー--、   -一'''''''ー-、    ン
  ヽ ____(⌒)(⌒)⌒) )  (⌒_(⌒)⌒)⌒))

| | コメント (0) | トラックバック (0)

2008-10-01

[shell] やる夫がmemcached起動/停止スクリプトを作ったようです。

なにかしらサービスのリリース時にmemcachedの再起動があると思いますので、ちょっと作った。

#! /bin/sh
if [ $# -ne 1 ]; then
    echo "./memcached.sh [start/stop]"
    exit 1
fi

case $1 in
    start)
        /usr/local/bin/memcached -d -m 512 -p 11211 -u nobody -l `hostname -i`
        /usr/local/bin/memcached -d -m 512 -p 22422 -u nobody -l `hostname -i`
        ps axuw | grep "/usr/local/bin/memcached" | grep -v grep
        ;;
    stop)
        pgrep -f 'memcached' | xargs kill
        ;;
    *)
        echo "./memcached.sh [start/stop]"
        exit 1
        ;;
esac

| | コメント (0) | トラックバック (1)

2008-08-05

egrep [ファイル管理コマンド]

egrep コマンド

パターンにマッチした行を表示します。grepよりも高度な検索が可能です。下記のようにパターン”neet”or”employee”にマッチする行を抽出することができます。今まで”grep |”をズラズラとつなげていたが、こっちの方がエレガントですね・・・。

# cat profile.txt
yaruo,neet,20
yaranaio,employee,24
dekiruo,employee,23
dokuo,neet,30
dady,part,25
# egrep '(neet|employee)' profile.txt
yaruo,neet,20
yaranaio,employee,24
dekiruo,employee,23
dokuo,neet,30

| | コメント (1) | トラックバック (1)

«[mysql] my.cnf設定変更