Yes, I cocked up and had a situation last week where it used all my RAM.
Sensei then created a swap.
Now that everything is normal again, how do I remove it?
(https://i.imgur.com/hlOyo3m.png)
Should I remove these files, or the whole folder?
(https://i.imgur.com/W8qh6XW.png?1)
I'm not sure, but it likely involves some coffin nails...! ;D
I'm not sure what that means, should I be afraid? ;D
It's probably just a matter of unmounting and exposing the original directory.
The problem will likely be with the persistence of the mount. I'm not familiar enough with the plugin to know where / how the mount is performed.
As for "coffin nails", it's a colloquialism for cigarettes; a play on your handle. I hope you don't smoke, but if you do, I hope you don't go through a pack fixing this issue. ;)
Yeah, I checked and /mnt is empty.
Also /etc/fstab lists this:
# Device Mountpoint FStype Options Dump Pass#
/dev/gpt/rootfs / ufs rw,noatime 1 1
fdesc /dev/fd fdescfs rw 0 0
proc /proc procfs rw 0 0
Could you please verify which line you don't have?
PS: I don't smoke ;)
I've only got the rootfs device, but it's a bit meaningless to compare methinks. The others are just the floppy and the process filesystem.
Maybe try df -h to see what is mounted...
And grep -lr --include "*.conf" 'temp' /usr/local/sensei to get a list of conf files with the word "temp" in them.
You will likely need to change some of those options... ;)
Right, I just read in the hardenedbsd handbook (https://hardenedbsd.org/~shawn/hbsd_handbook/book.html#mount-unmount) that these are mounted during boot if they are in /etc/fstab.
root@opnsense:~ # df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/gpt/rootfs 13G 6.9G 5.5G 56% /
devfs 1.0K 1.0K 0B 100% /dev
fdescfs 1.0K 1.0K 0B 100% /dev/fd
procfs 4.0K 4.0K 0B 100% /proc
devfs 1.0K 1.0K 0B 100% /var/dhcpd/dev
devfs 1.0K 1.0K 0B 100% /var/unbound/dev
/dev/md43 48M 56K 44M 0% /usr/local/sensei/output/active/temp
grep -lr --include "*.conf" 'temp' /usr/local/sensei didn't give anything.
A malloc device. Fun.
You will need to find the config file which contains the path "/usr/local/sensei/output/active/temp" to drop it (/dev/md43) methinks. Then just a reboot should do it...
You will need to alter the grep command. You might need to include all files instead of just "*.conf" files and search for an expression with the above path (or maybe use grep options "-Flr" and try the straight string), e.g.:
grep -Flr '/usr/local/sensei/output/active/temp' /
Better check my syntax. It could take a while too.
It might also be worthwhile dropping a post on the OPNsense Sensei Board (https://forum.opnsense.org/index.php?board=38.0) to see if you get any takers...
Maybe just a link to this one...?
Oh I didn't know that existed. I will post it there as well.
So I did, and got some answers here: https://forum.opnsense.org/index.php?topic=25424