OPNsense Forum
English Forums => Zenarmor (Sensei) => Topic started by: k0ns0l3 on April 05, 2022, 04:45:01 pm
-
Does anyone know how to remove the SWAP created by Sensei?
Thank you and best regards 8)
k0ns0l3
-
Hi @k0ns0l3,
This tmpfs is meant to speed up processing writing/ingesting reporting logs; and saves a considerable amount of disk I/O in large networks.
In small networks, it might not be too important. We can make this a configurable setting.
Quick question: what is the reason you want to remove it?
-
Hi mb 8)
I tried Sensei and uninstalled again so do not need anymore swap (Two are unnecessary) ;)
Thank you and best regards 8)
k0ns0l3
-
how did you remove Sensei/ZenArmor? IIRC the pkg remove *SHOULD* delete the tmpfs.
-
how did you remove Sensei/ZenArmor? IIRC the pkg remove *SHOULD* delete the tmpfs.
Zenarmor-Sensei→Configuration→Uninstall on your OPNsense GUI —> Uninstall Zenarmor Packet Engine
I hope it's the right way :)
-
check and see if the plugin is still installed.
-
everything is uninstalled checked 8)
-
I'm out of ideas.
@franco, @mb, @sy?
-
@lrosenman thanks.
@k0ns0l3 run below command on the console, that should unmount the file system.
/sbin/umount /dev/md43
-
Followed by
mdconfig -d -u 43
What I simply don't know is, whether the RAM disk will be recreated at reboot.
-
swapinfo
Device 1K-blocks Used Avail Capacity
/dev/gpt/swapfs 8388608 0 8388608 0%
/dev/md98 2097152 0 2097152 0%
Total 10485760 0 10485760 0%
@mb
/sbin/umount /dev/md98
umount: /dev/md98: unknown file system
@pmhausen
mdconfig -d -u 98
mdconfig: ioctl(/dev/mdctl): Device busy
funny :(
-
Well, nothing in core/plugins creates memory disks so this must be an extra script left behind somewhere in /usr/local/etc/rc.syshook.d ...
# grep -nr mdconfig /usr/local/etc/rc.syshook.d
Cheers,
Franco
-
@Franco
grep -nr mdconfig /usr/local/etc/rc.syshook.d
root@OPNsense:~ #
/usr/local/etc/rc.syshook.d # ls
backup carp early monitor start stop update
I didn't notice anything unusual :-\
in my eyes this is a bug at installation and uninstall from
Zenarmor (Sensei)
-
I must admit I haven't read all of the thread but the question is: if it sticks after reboot it's a leftover script somewhere, isn't it?
Cheers,
Franco
-
at the moment I am overwhelmed myself and find no solution,in any case, this is not a clean uninstall of Zenarmor ;)
now I have two swap 8)
Greetings
-
Hi @k0ns0l3
/dev/md98 did not seem familiar to me. Zenarmor's memdisk device is /dev/md43.
Let me check with the team again.
Other than that, zenarmor's memdisk should not survive reboots unless you have the Zenarmor Packet Engine is set to be enabled at boot time. Memdisk is created by the rc service script.
-
Hi @k0ns0l3
Checked this with the team. /dev/md98 is not related to Zenarmor.
Maybe some other plugin is creating that?
Anyhow feel free to reach out to the support. Team will be happy to have a look.
-
@mb
Hi @k0ns0l3
/dev/md98 did not seem familiar to me. Zenarmor's memdisk device is /dev/md43.
Let me check with the team again.
Other than that, zenarmor's memdisk should not survive reboots unless you have the Zenarmor Packet Engine is set to be enabled at boot time. Memdisk is created by the rc service script.
mdconfig -d -u md43
mdconfig: ioctl(/dev/mdctl): No such file or directory
/sbin/umount /dev/43
umount: /dev/43: statfs: No such file or directory
umount: /dev/43: unknown file system
used this tutorial : https://www.sunnyvalley.io/docs/installing/installation#installing-on-opnsense ,nothing out of the ordinary
Greetings 8)