Sophos UTMでDisk full

ご家庭用のUTMとして
Sophos UTMを入れてみたのですが、

> df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda6       5.2G  2.7G  2.3G  55% /
udev            2.0G   72K  2.0G   1% /dev
tmpfs           2.0G     0  2.0G   0% /dev/shm
/dev/sda1       331M   16M  295M   5% /boot
/dev/sda5       1.9G  1.9G  0M  100% /var/storage
/dev/sda7       2.5G   47M  2.3G   2% /var/log
/dev/sda8       556M   13M  503M   3% /tmp
tmpfs           2.0G     0  2.0G   0% /var/sec/chroot-httpd/dev/shm
tmpfs           2.0G     0  2.0G   0% /var/storage/chroot-reverseproxy/dev/shm
tmpfs           2.0G  151M  1.8G   8% /var/storage/chroot-http/tmp
tmpfs           2.0G  112K  2.0G   1% /var/storage/chroot-smtp/tmp/ram

使っているうちにこんな感じに
/var/storage以下が0%。。。
Proxy cacheかなとも思ったのですが
そうでもないようで、、、

デフォルトで
Reporting Settings 3months
になってるので、どうやらレポート用のログがあふれるっぽい?

とりあえず、どうしようもなかったので。。。

> sudo /etc/init.d/postgresql92 rebuild
/etc/sysconfig/kernel: line 13: vmxnet3: command not found
Rebuilding PostgreSQL database, all reporting data will be lost!
Enter "yes" to continue...
yes
/etc/sysconfig/kernel: line 13: vmxnet3: command not found
:: Stopping PostgreSQL                                               done
/etc/sysconfig/kernel: line 13: vmxnet3: command not found
:: Initializing the PostgreSQL database                              done
:: Starting PostgreSQL                                               done
:: Restarting SMTP Proxy
:: Stopping SMTP Proxy
[ ok ]
:: Starting SMTP Proxy
[ ok ]
[ ok ]

でログを全部削除。
(ESXiに入れているのでvmxnet3でエラーこいてますが気にしない)

Reporting SettingsをとりあえずDisableにしておきました。
再発しなければ、適当な保存期間にしてあげましょう。

ちなみに
コンフィグは以下のものを読んでいるようです。

> sudo ls -lha /var/storage/pgsql92/cfg
total 24K
drwxr-xr-x 2 root     root     4.0K Aug 16 01:10 .
drwxr-x--- 7 postgres postgres 4.0K Aug  9 01:29 ..
-rw-r--r-- 1 root     root     2.5K Apr 29 03:16 postgresql.conf.large
-rw-r--r-- 1 root     root     2.5K Apr 29 03:16 postgresql.conf.medium
-rw-r--r-- 1 root     root     2.5K Apr 29 03:16 postgresql.conf.minimal
lrwxrwxrwx 1 root     root       46 Aug 16 01:10 postgresql.conf.running -> /var/storage/pgsql92/cfg/postgresql.conf.small
-rw-r--r-- 1 root     root     2.5K Apr 29 03:16 postgresql.conf.small

ここを最適化してあげればもう少しはパフォーマンスが伸びるかもしれません。

[tegaki]postgresql分かんない。。。[/tegaki]

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

Enter code * Time limit is exhausted. Please reload CAPTCHA.

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください