logfile and partitions
f.cuseo
66 Posts
November 4, 2023, 10:19 pmQuote from f.cuseo on November 4, 2023, 10:19 pmHello.
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
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
admin
2,930 Posts
November 5, 2023, 6:29 pmQuote from admin on November 5, 2023, 6:29 pmYou 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.
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.
logfile and partitions
f.cuseo
66 Posts
Quote from f.cuseo on November 4, 2023, 10:19 pmHello.
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
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
admin
2,930 Posts
Quote from admin on November 5, 2023, 6:29 pmYou 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.
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.