Remove Sensei swap

Started by Nikotine, November 01, 2021, 12:42:14 PM

Previous topic - Next topic
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?



Should I remove these files, or the whole folder?


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 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.

November 02, 2021, 04:22:05 PM #7 Last Edit: November 02, 2021, 04:28:38 PM by benyamin
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 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.