memo

split the output of mysqldump --all-databases

TWIMC BEGIN { file = "header" } /^-- Current Database: / { match($0, /`[^`]+`/) close(file ".sql") file = substr($0, RSTART+1, RLENGTH-2) } { print > file ".sql" }

thread id の件

とりあえずここまでできた (ちょっと飽きてきた) メモ。THD->thread_id は書いたら書きっぱなしだし、 pthread_self() が一緒に呼ばれるタイミングがうまく見つかれば行けそうだけど、 mysqld_list_processes() でもダメなんだよね。 #!/usr/sbin/dtrace -s …

InnoDB の圧縮を使うときの運用

.@nippondanji さんにブログにまとめろと言われた気がするのだけど、あんま大したネタではないです。しかも、この作業は失敗する可能性を見越していたのであまり作業ログを取ってなかった...。ので、ちょっと疑問に思った点を幾つか書いておこうかと思います…

device path が変わった pool を import

Solaris 11 EA (Early Adopter) というのが出てました。ほぼ snv_173 そのもののようです。先日、自宅のサーバ (Solaris11 Express, snv_151a) の BIOS とかを firmware してたら突然死亡して、せっかくだし EA release にしようと新規インストールしました…

ports install

ただのメモ bonniexx coreutils +with_default_names findutils git-core iperf lv mercurial nmap proctools rsync #screen stunnel subversion vim w3m wget zsh-devel +mp_completion proctools は /opt/local/bin/tsort をいったん退避して /usr/bin/tso…