OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Zenarmor (Sensei) »
  • SWAP
« previous next »
  • Print
Pages: [1] 2

Author Topic: SWAP  (Read 2554 times)

k0ns0l3

  • Full Member
  • ***
  • Posts: 153
  • Karma: 2
  • ..:: Think different, think Linux ::..
    • View Profile
SWAP
« 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
Logged
"The quieter you become, the more you are able to hear...."

- OS:Debian GNU/Linux sid
- IPU662 System

mb

  • Hero Member
  • *****
  • Posts: 924
  • Karma: 97
    • View Profile
    • Sunny Valley Networks
Re: SWAP
« Reply #1 on: April 05, 2022, 05:38:50 pm »
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?
Logged

k0ns0l3

  • Full Member
  • ***
  • Posts: 153
  • Karma: 2
  • ..:: Think different, think Linux ::..
    • View Profile
Re: SWAP
« Reply #2 on: April 05, 2022, 05:55:39 pm »
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
Logged
"The quieter you become, the more you are able to hear...."

- OS:Debian GNU/Linux sid
- IPU662 System

lrosenman

  • Full Member
  • ***
  • Posts: 189
  • Karma: 7
    • View Profile
Re: SWAP
« Reply #3 on: April 05, 2022, 11:06:44 pm »
how did you remove Sensei/ZenArmor?  IIRC the pkg remove *SHOULD* delete the tmpfs.
Logged

k0ns0l3

  • Full Member
  • ***
  • Posts: 153
  • Karma: 2
  • ..:: Think different, think Linux ::..
    • View Profile
Re: SWAP
« Reply #4 on: April 06, 2022, 01:08:30 am »
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  :)
Logged
"The quieter you become, the more you are able to hear...."

- OS:Debian GNU/Linux sid
- IPU662 System

lrosenman

  • Full Member
  • ***
  • Posts: 189
  • Karma: 7
    • View Profile
Re: SWAP
« Reply #5 on: April 06, 2022, 01:27:03 am »
check and see if the plugin is still installed.
Logged

k0ns0l3

  • Full Member
  • ***
  • Posts: 153
  • Karma: 2
  • ..:: Think different, think Linux ::..
    • View Profile
Re: SWAP
« Reply #6 on: April 06, 2022, 10:03:06 pm »
everything is uninstalled checked  8)
Logged
"The quieter you become, the more you are able to hear...."

- OS:Debian GNU/Linux sid
- IPU662 System

lrosenman

  • Full Member
  • ***
  • Posts: 189
  • Karma: 7
    • View Profile
Re: SWAP
« Reply #7 on: April 06, 2022, 10:42:40 pm »
I'm out of ideas.

@franco, @mb, @sy?
Logged

mb

  • Hero Member
  • *****
  • Posts: 924
  • Karma: 97
    • View Profile
    • Sunny Valley Networks
Re: SWAP
« Reply #8 on: April 06, 2022, 10:53:52 pm »
@lrosenman thanks.

@k0ns0l3 run below command on the console, that should unmount the file system.

Code: [Select]
/sbin/umount /dev/md43
Logged

pmhausen

  • Hero Member
  • *****
  • Posts: 3081
  • Karma: 268
    • View Profile
Re: SWAP
« Reply #9 on: April 06, 2022, 11:02:50 pm »
Followed by
Code: [Select]
mdconfig -d -u 43
What I simply don't know is, whether the RAM disk will be recreated at reboot.
Logged
Supermicro A2SDi-4C-HLN4F mainboard and SC101F chassis
16 GB ECC memory
Crucial MX300 275 GB SATA 2.5" plus
Crucial MX300 275 GB SATA M.2 (ZFS mirror)
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

k0ns0l3

  • Full Member
  • ***
  • Posts: 153
  • Karma: 2
  • ..:: Think different, think Linux ::..
    • View Profile
Re: SWAP
« Reply #10 on: April 07, 2022, 05:54:25 am »
Code: [Select]
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
Code: [Select]
/sbin/umount /dev/md98
umount: /dev/md98: unknown file system

@pmhausen
Code: [Select]
mdconfig -d -u 98
mdconfig: ioctl(/dev/mdctl): Device busy

funny  :(
Logged
"The quieter you become, the more you are able to hear...."

- OS:Debian GNU/Linux sid
- IPU662 System

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 14336
  • Karma: 1242
    • View Profile
Re: SWAP
« Reply #11 on: April 07, 2022, 10:37:37 am »
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
Logged

k0ns0l3

  • Full Member
  • ***
  • Posts: 153
  • Karma: 2
  • ..:: Think different, think Linux ::..
    • View Profile
Re: SWAP
« Reply #12 on: April 07, 2022, 01:01:35 pm »
@Franco

Code: [Select]
grep -nr mdconfig /usr/local/etc/rc.syshook.d
root@OPNsense:~ #

Code: [Select]
/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)
« Last Edit: April 07, 2022, 01:07:05 pm by k0ns0l3 »
Logged
"The quieter you become, the more you are able to hear...."

- OS:Debian GNU/Linux sid
- IPU662 System

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 14336
  • Karma: 1242
    • View Profile
Re: SWAP
« Reply #13 on: April 07, 2022, 01:34:19 pm »
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
Logged

k0ns0l3

  • Full Member
  • ***
  • Posts: 153
  • Karma: 2
  • ..:: Think different, think Linux ::..
    • View Profile
Re: SWAP
« Reply #14 on: April 07, 2022, 02:28:22 pm »
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
Logged
"The quieter you become, the more you are able to hear...."

- OS:Debian GNU/Linux sid
- IPU662 System

  • Print
Pages: [1] 2
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Zenarmor (Sensei) »
  • SWAP
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2