Forums

Home / Forums

You need to log in to create posts and topics. Login · Register

logfile and partitions

Hello.

I am using petasan with S3 (and nfs); my root partition is only 15Gbyte, and goes to 100% due to nginx logfiles.

Can I move logfiles to another partition ? Or is better to rotate files every hour ?

PS: i can't enable users s3 logs because logfile (ceph.client.log) grows like access.log and used space will be double

 

root@petasan-06:~# df -h
Filesystem Size Used Avail Use% Mounted on
udev 32G 0 32G 0% /dev
tmpfs 6.3G 2.9M 6.3G 1% /run
/dev/sda3 15G 6.6G 8.1G 45% /
tmpfs 32G 0 32G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 32G 0 32G 0% /sys/fs/cgroup
/dev/sda4 30G 84K 30G 1% /var/lib/ceph
/dev/sda5 90G 1.9M 90G 1% /opt/petasan/config
/dev/sda2 127M 512 127M 1% /boot/efi

You can do either, rotate or move to another partition, for example create folder in /opt/petasan/config/log then create sym link from /var/log to it.