Nethsecurity again Disk Full

It happend again: the disk was full.

I have mounted another drive (/dev/sdc, Size: 20 GiB, Model: QEMU HARDDISK,Vendor: QEMU) it seems the logfile is not been written to this storage it fills the system drive.

  1. What can I do so the Log uses the storage
  2. how to turn off logging at all.
  3. Can I disable the debugmessages on the console and does this make sens at all?

You probably hit this issue: rsyslog: Root filesystem fills up · Issue #1746 · NethServer/nethsecurity · GitHub

Apply the workaround and let us know if the issue is fixed:

# Stop logging and unmount the external storage
/etc/init.d/rsyslog stop
umount /mnt/data/

# If there are data under /mnt/data, remove them:
rm -rf /mnt/data/*

# Restore normal operation
block mount
/etc/init.d/rsyslog start

right now the data is written in both locations. ist in /var/log/messages as well as in /mnt/data/log/messages

That’s the normal behavior.
But you must check if /mnt/data/log/messages is really going to the external storage or to the root filesystem

mount shows

/dev/sdc1 on /mnt/data type ext4 (rw,relatime)

what else do I have to check?

After these two commands, check if under /mnt/data there are still files, if they are you end up directly inside the case described by the issue.

You can then use Giacomo commands to remove the excess files and restore the functionality.

I’d advise against removing the storage entirely, you’ll lose the log persistence.