2015年8月19日水曜日

Voyage MPD 0.10.0 でtmpfsが溢れる Overflowing tmpfs on Voyage MPD 0.10.0

Voyage MPD 0.10.0 をインストールして,それ自体はちゃんと動くのだが,データベースが破壊されることが何度かおこった.ログインしてみると,tmpfsが使用率100%になっていて,データベースを置くことができなくなっている.データベースは tmpfs 上で参照・使用されるのだが,シャットダウン時に tmpfs 上から HDD 上にコピーされ,起動時に復元されるようになっている.その復元ができない模様.

I installed Voyage MPD 0.10.0.  It works but the collapse of the database repeatedly occured.
This is caused by 100% usage of tmpfs.  The database is operated on tmpfs.  When shutting down, it is copied to HDD and when booting, the copied database is again recovered to tmpfs.  The 100% usaage of tmpfs disrupts the recovery.

あれこれ原因を調べていたところ,問題は mpd のログファイル (/var/log/mpd/mpd.log) であることがわかった.これがすさまじい勢いで増えていき (毎秒10行以上のログが増える),500MBある領域を1日ほどで食いつぶしてしまう.

After some investigation, I found that the log file of mpd (/var/log/mpd/mpd.log) causes the problem.  It increases surprisingly fast and tmpfs overflows.

ということで,その対策.
Here's the solution.

2015年8月9日日曜日

Voyage MPD 0.10.0 on LOOX-U

ある日 Voyage MPD を入れた LOOX-U を起動しようとしたら,
One day, I turned on LOOX-U where Voyage MPD is installed, it showed a sad message,

Operation System not found ...

という冷たい表示が…
SSDがクラッシュしたか,MBRあたりか.
Did the SSD crash? or MBR?

5月には Voyage MPD の 0.10.0 が公開されていたのだが,旧版のままで特に不都合もなかったのでそのまま使っていたのだが,これはシステムを更新しろという天の声と思うことにした.
This might be heaven's will - you should install the latest version of Voyage MPD released May 1st.   (But... but... my system had worked very well and ...)

ということで,本家からデータを落としてきて Live CD を作った.
これで立ち上げて,まず fdisk で様子を見ると… 見事なばかりにきれいさっぱりパーティション情報が消えている.これはもうどうしようもないな,ということで,フォーマットから全部やり直すことに.
I got the Live CD data from the Voyage MPD website.
Using the Live CD, I checked the partition table of of the SSD.  fdisk reported that the table was completely lost, and full installation after complete format was required.

(こちらも参照のこと)
(Also see this article.)

2015年8月5日水曜日

mpdで演奏中の曲データをワンクリックで Windows のクリップボードに取り込む(2) Getting info. of the now-playing song on mpd into the Windows clipboard with one click (2)


以前に書いた「mpdで演奏中の曲データをワンクリックで Windows のクリップボードに取り込む」の続編というか,改良版というか.
This is the follow-up article of the previous post "Getting info. of the now-playing song on mpd into the Windows clipboard with one click".

前の記事では mpc コマンドの出力を awk とかで処理して必要な情報だけを取り出したりしていたが,mpc コマンドに --format (-f) というオプションがあったのだった.

In the previous post, the output of mpc command is handled with awk to extract desired info.  However, mpc features a very useful option --format (-f).