Hi all,
I have a proxmox 7 running from a USB drive 128 GB(fast) and VMs on a NVME drive. I have truenas running as VM that uses 3 spinning disk as zfs pool for NAS. As the OS is on USB, i installed log2ram to reduce the frequent read/writes. But, often, my VM's start throwing error that the /var/log is full or something similar. Is there a way to fix this or make it automatically clear the /var/log folder . the log2ram uses a 40MB that i tried to increase to larger value but i want to make this automatically handled to avoid future issues. I dont need last logs and want to limit the file size for syslog or similar file to limit this from swelling too much.
Sample of the issues is
root@vikings:~# df -h
df: /mnt/pve/vikingdata: Host is down
Filesystem Size Used Avail Use% Mounted on
udev 12G 0 12G 0% /dev
tmpfs 2.4G 235M 2.1G 10% /run
/dev/mapper/pve-root 30G 3.0G 27G 11% /
tmpfs 12G 37M 12G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
/dev/sdd1 229G 26G 191G 12% /mnt/usb-drive250
/dev/sde2 511M 336K 511M 1% /boot/efi
VMD 297G 128K 297G 1% /VMD
VMD/subvol-105-disk-0 32G 3.1G 29G 10% /VMD/subvol-105-disk-0
log2ram 40M 40M 0 100% /var/log
/dev/fuse 128M 20K 128M 1% /etc/pve
VMD/subvol-103-disk-0 32G 1.3G 31G 4% /VMD/subvol-103-disk-0
/dev/sdg 3.6T 56K 3.4T 1% /mnt/USB-4TB
tmpfs 2.4G 0 2.4G 0% /run/user/0
Please help.
I have a proxmox 7 running from a USB drive 128 GB(fast) and VMs on a NVME drive. I have truenas running as VM that uses 3 spinning disk as zfs pool for NAS. As the OS is on USB, i installed log2ram to reduce the frequent read/writes. But, often, my VM's start throwing error that the /var/log is full or something similar. Is there a way to fix this or make it automatically clear the /var/log folder . the log2ram uses a 40MB that i tried to increase to larger value but i want to make this automatically handled to avoid future issues. I dont need last logs and want to limit the file size for syslog or similar file to limit this from swelling too much.
Sample of the issues is
root@vikings:~# df -h
df: /mnt/pve/vikingdata: Host is down
Filesystem Size Used Avail Use% Mounted on
udev 12G 0 12G 0% /dev
tmpfs 2.4G 235M 2.1G 10% /run
/dev/mapper/pve-root 30G 3.0G 27G 11% /
tmpfs 12G 37M 12G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
/dev/sdd1 229G 26G 191G 12% /mnt/usb-drive250
/dev/sde2 511M 336K 511M 1% /boot/efi
VMD 297G 128K 297G 1% /VMD
VMD/subvol-105-disk-0 32G 3.1G 29G 10% /VMD/subvol-105-disk-0
log2ram 40M 40M 0 100% /var/log
/dev/fuse 128M 20K 128M 1% /etc/pve
VMD/subvol-103-disk-0 32G 1.3G 31G 4% /VMD/subvol-103-disk-0
/dev/sdg 3.6T 56K 3.4T 1% /mnt/USB-4TB
tmpfs 2.4G 0 2.4G 0% /run/user/0
Please help.