there is also an option for setting fsck  to approve fixes without a prompt
..
but I cant think of it off the top of my head...  and this would be useful
to  set  on your routers also


On Tue, 4 Jun 2019 at 21:05, Tom Smyth <tom.sm...@wirelessconnect.eu> wrote:

> Hi Mogens,
>
> there are a number of threads on this if you search the misc archives on
> marc.info,
>
> but setting softdep,noatime  mount options on /etc/fstab is advisable
>
> for routers I tend to use mfs for partitions that tend to get written to
> alot
>
> the following entries (/etc/fstab) show How I use mfs on my routers...
> swap /tmp mfs
> rw,nosuid,noexec,nodev,-s=512000,-P=/directorythatcontainsfilesthatwillbecopiedtomemoryatbootup/tmp
> 0 0
> swap /var mfs rw,nosuid,noexec,nodev,-s=1024000,-P=/
> directorythatcontainsfilesthatwillbecopiedtomemoryatbootup/var 0 0
> swap /dev mfs rw,nosuid,noexec,-P=/
> directorythatcontainsfilesthatwillbecopiedtomemoryatbootup/dev,-i=2048,-s=102400
> 0 0
>
> but bear in mind that  that uses up to 1.6GB of ram ...  so  you might
> want to tweak. to what suits your needs...
>
> check out  conway's resflash and cappucios flashrd also
>
> https://www.packetmischief.ca/openbsd-compact-flash-firewall/
>
>  I hope this helps
> Tom Smyth
>
> On Tue, 4 Jun 2019 at 20:31, Mogens Jensen <mogens-jen...@protonmail.com>
> wrote:
>
>> I'm going to build a router for use in a remote location, and I have
>> chosen OpenBSD 6.5 for the task. Unfortunately, it's not possible to
>> protect the router with an UPS, so it will have to be resilient enough
>> to survive sudden power outages and still boot without manual
>> intervention.
>>
>> In the past I have built a few Linux based routers and they were
>> configured to run from RAM. I have made some research to see if this is
>> also possible on OpenBSD and found that, while there are solutions to
>> have / read-only, none of this is officially supported.
>>
>> Can anyone with experience running OpenBSD routers without UPS, tell if
>> filesystem corruption is going to be a problem after power outages, or
>> if there are any officially supported ways to make the system resilient
>> enough to not break after a power outage?
>>
>> I'm using an mSATA disk with MLC flash in the router.
>>
>> Thanks in advance.
>>
>> Mogens Jensen
>>
>
>
> --
> Kindest regards,
> Tom Smyth.
>


-- 
Kindest regards,
Tom Smyth.

Reply via email to