HDD圧迫
自宅サーバのHDDの空き容量が予想していたより減りが激しい。調べてみると、mysqlのデータフォルダ /var/lib/mysql/ が大きくなっている。debianのデフォルト設定ではmysqlのログが消されないようだ。と、いうことで、/etc/mysql/my.cnf に expire_logs_days = 7 を追加してmysqlを再起動。スッキリ。
ちなみに、
HDDの容量を確認するには df
フォルダの容量を確認するには du -ks /フォルダ名/
ダヨ。
This entry was posted
on 水曜日, 5月 7th, 2008 at 20:58:25 and is filed under コンピュータ, サイト運営.
You can follow any responses to this entry through the RSS 2.0 feed.
Both comments and pings are currently closed.