Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Is the Nano image run from RAM or of the sd card?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Is the Nano image run from RAM or of the sd card? (Read 3166 times)
jonakarl
Newbie
Posts: 6
Karma: 0
Is the Nano image run from RAM or of the sd card?
«
on:
February 09, 2019, 06:23:31 am »
Hi,
Sorry if this is answered or explained before but I tried to search and I could not find it.
As I understood it the nano installation would run from RAM (to not wear down the sd card and be faster) but in my basic installation of opnsense 18.7 nano (using the defaults) it feels like it is running the entire OS from the CF card except /tmp and /var, is this the case ?
If this is so, I do not understand the difference between the nano and a regular install with the option set to store tmp and var on a ramdisk. Maybe I misunderstood the point of the nano installation but I thought the idea was to run in RAM to not wear down the sd card and overcome the slow read/write speeds of the sd card.
I run the installation from a old reused server but it has 8 x Intel Xeon E5606 @ 2.13GHz and 48 GB and the sd reader is a built in DELL (the server used to be a esxi host booted from sd card in the past).
The reason I ask is that the system is very slow when I would expect it to be very snappy if run from RAM. Also when looking at the installation (My FreeBSD skills is not the best) the fstab looks like this :
/etc/fstab
# Device Mountpoint FStype Options Dump Pass#
/dev/ufs/OPNsense_Nano / ufs rw 1 1 # notrim
and these are the mount points :
mount
/dev/ufs/OPNsense_Nano on / (ufs, local, soft-updates)
devfs on /dev (devfs, local, multilabel)
tmpfs on /var (tmpfs, local)
tmpfs on /tmp (tmpfs, local)
devfs on /var/unbound/dev (devfs, local, multilabel)
devfs on /var/dhcpd/dev (devfs, local, multilabel)
Unless /dev/ufs/OPNsense_Nano is a special device (it does not look like it) I would say that everything except /var/ /tmp/ is run from the sd card, please correct me if I am wrong.
If anyone wonder why I am not using a regular installation on this powerfull machine is that (atleast with 18.7) the kernel hanged when loading the modules for the raid card. Me and a colleague tried for a couple of days to force freebsd to not load any raid drivers and use the bios disk that the raid card supplied but gave up. All HW works and all disks (as configured in the HW raid card) show up in linux OOB (I used ubuntu 18.04 to test only because we are much more linux savvy than freebsd savvy).
Logged
chemlud
Hero Member
Posts: 2486
Karma: 112
Re: Is the Nano image run from RAM or of the sd card?
«
Reply #1 on:
February 09, 2019, 11:42:52 am »
If the required kernel/software is in the RAM, why should the machine "run from SD-card"? The write-intensive stuff (/tmp) is in RAM, too...
Hmm, I have some Dell Precisions here, you don't need RAID, if you go by SD-card as an alternative ;-)
Simply use a normal SATA HDD/SSD attached to your SAS ports or even the built-in SATA ports (disable RAID controller in BIOS and don't forget to activate respective ports in BIOS...). Should work, I had sense s running on such machines in the past, although I didn't try again recently.
Logged
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare
felix eichhorns premium katzenfutter mit der extraportion energie
A router is not a switch - A router is not a switch - A router is not a switch - A rou....
jonakarl
Newbie
Posts: 6
Karma: 0
Re: Is the Nano image run from RAM or of the sd card?
«
Reply #2 on:
February 11, 2019, 07:25:52 am »
Hi,
Thanks for the reply, I think I got a answer to my question although it was not what I wanted to hear ;-)
By "running from the SD Card" I mean like a normal installation that mounts root directly from the disk.
I come from a vyos installation that has run for years on crappy HW (but now needs an upgrade). That installation loads the entire OS including the root file system into RAM and only uses a USB stick/SD card for storing config changes (that are all stored in special folder that get mounted on the disk). I got the impression that the nano installation was something similar but I guess not.
Yes I am aware that I can use the SATA ports on the machine but then I lose the redundancy
/possibility to change HDDs/SSDs on the fly if one breaks that I get with the raid card (We have plenty of SDDs/HDDS laying around but I trust none to run for more than a year or so).
Logged
chemlud
Hero Member
Posts: 2486
Karma: 112
Re: Is the Nano image run from RAM or of the sd card?
«
Reply #3 on:
February 11, 2019, 03:44:29 pm »
...if you use an industrial grade CF-card your machine should be doing fine for some time. Don't know if I would run critical router on SD-card anyway ;-)
PS: Or use this little monster:
https://www.amazon.de/SanDisk-Endurance-Video-Monitoring-Speicherkarte/dp/B00V5Q1K3O/ref=sr_1_1/262-2971267-1668245?ie=UTF8&qid=1549916575&sr=8-1&keywords=sandisk+micro+sd+high+endurance
see here:
https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=142626&sid=ef4794f0a66ea3627ec88cd66fdcfa7a&start=27
fun!
«
Last Edit: February 11, 2019, 09:25:44 pm by chemlud
»
Logged
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare
felix eichhorns premium katzenfutter mit der extraportion energie
A router is not a switch - A router is not a switch - A router is not a switch - A rou....
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Is the Nano image run from RAM or of the sd card?