SWAP

Started by k0ns0l3, April 05, 2022, 04:45:01 PM

Previous topic - Next topic
Does anyone know how to remove the SWAP created by Sensei?
Thank you and best regards 8)



k0ns0l3
"The quieter you become, the more you are able to hear...."

- OS:Debian GNU/Linux sid
- IPU662 System

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
"The quieter you become, the more you are able to hear...."

- OS:Debian GNU/Linux sid
- IPU662 System

how did you remove Sensei/ZenArmor?  IIRC the pkg remove *SHOULD* delete the tmpfs.

Quote from: lrosenman on April 05, 2022, 11:06:44 PM
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  :)
"The quieter you become, the more you are able to hear...."

- OS:Debian GNU/Linux sid
- IPU662 System

check and see if the plugin is still installed.

everything is uninstalled checked  8)
"The quieter you become, the more you are able to hear...."

- OS:Debian GNU/Linux sid
- IPU662 System

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.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

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  :(
"The quieter you become, the more you are able to hear...."

- OS:Debian GNU/Linux sid
- IPU662 System

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

April 07, 2022, 01:01:35 PM #12 Last Edit: April 07, 2022, 01:07:05 PM by k0ns0l3
@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)
"The quieter you become, the more you are able to hear...."

- OS:Debian GNU/Linux sid
- IPU662 System

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
"The quieter you become, the more you are able to hear...."

- OS:Debian GNU/Linux sid
- IPU662 System