Re: OpenBSD Readonly File System

2020-12-18 Thread Kostya Berger
Hey, I read that message about Freeradius not being able to access /dev/null in a setup where /dev is mounted on an mfs -based filesystem.I'm running similar setup (for years now) - OpenBSD on a USB stick. EVERYTHING is mounted read-only, except /var, /tmp, /dev and /jails, which are mfs -

Re: OpenBSD Readonly File System

2020-07-11 Thread Strahil Nikolov
And if the FS is mounted rw, do you have the issue ? Best Regards, Strahil Nikolov На 11 юли 2020 г. 10:22:53 GMT+03:00, Vertigo Altair написа: > Hello Again, >I followed Stuart's recommendations, > >in fstab, / has read-write permissions; >also, I mounted /dev as ramdisk, ( I executed

Re: OpenBSD Readonly File System

2020-07-11 Thread Stuart Henderson
On 2020/07/11 10:22, Vertigo Altair wrote: >   Hello Again, > I followed Stuart's recommendations, > > in fstab, / has read-write permissions; > also, I mounted /dev as ramdisk,  ( I executed "MAKEDEV all" in /dev_src > directory for once) > > vertigo# cat /etc/fstab > 5e045fec2af2ab03.b none

Re: OpenBSD Readonly File System

2020-07-11 Thread Vertigo Altair
Hello Again, I followed Stuart's recommendations, in fstab, / has read-write permissions; also, I mounted /dev as ramdisk, ( I executed "MAKEDEV all" in /dev_src directory for once) vertigo# cat /etc/fstab 5e045fec2af2ab03.b none swap sw 5e045fec2af2ab03.a / ffs rw 1 1 5e045fec2af2ab03.e

Re: OpenBSD Readonly File System

2020-06-27 Thread gwes
On 6/27/20 10:57 AM, Stuart Henderson wrote: On 2020-06-26, Marko Cupać wrote: On 2020-06-24, Aaron Mason wrote: Auto filesystem repair is bad juju. On 2020-06-25 11:17, Stuart Henderson wrote: Nonsense. For many, the possible downsides of automatically running fsck -y are much less a

Re: OpenBSD Readonly File System

2020-06-27 Thread Stuart Henderson
On 2020-06-26, Marko Cupać wrote: >>> On 2020-06-24, Aaron Mason wrote: >>> Auto filesystem repair is bad juju. > >> On 2020-06-25 11:17, Stuart Henderson wrote: >> Nonsense. For many, the possible downsides of automatically running >> fsck -y are much less a problem than the downsides of *not*

Re: OpenBSD Readonly File System

2020-06-26 Thread Marko Cupać
On 2020-06-24, Aaron Mason wrote: Auto filesystem repair is bad juju. On 2020-06-25 11:17, Stuart Henderson wrote: Nonsense. For many, the possible downsides of automatically running fsck -y are much less a problem than the downsides of *not* running it. Some time ago I wrote here on misc@

Re: OpenBSD Readonly File System

2020-06-26 Thread Vertigo Altair
Hi, Thanks to Stuart's recommendations, I made progress but got stuck at another point: When i mount /dev on fstab as this: swap /dev mfs rw,async,noatime,nosuid,-s2M,-i8,-P/dev_src 0 0 Freeradius doesn't work. Here error message: Error opening /dev/null: Permission denied I've changed /dev/null

Re: OpenBSD Readonly File System

2020-06-25 Thread Stuart Henderson
> On Mon, Jun 22, 2020 at 4:24 PM Mogens Jensen > wrote: >> +# NOTE: The do_fsck() function has been patched to run 'fsck -y' if an >> +# automatic file system check fails with exit code 8. I have quite a few machines patched like this. On 2020-06-24, Aaron Mason wrote: > Auto filesystem

Re: OpenBSD Readonly File System

2020-06-25 Thread Mogens Jensen
On Wednesday, June 24, 2020 10:58 PM, Aaron Mason wrote: > Auto filesystem repair is bad juju. Indeed, but an unbootable network appliance thousands of miles away, is much much worse. Regards, Mogens Jensen

Re: OpenBSD Readonly File System

2020-06-24 Thread Aaron Mason
On Mon, Jun 22, 2020 at 4:24 PM Mogens Jensen wrote: > > Tuesday, June 9, 2020 7:59 AM, Vertigo Altair > wrote: > > > Hi Misc, > > I have a firewall device and I'm using OpenBSD on it. > > Last year I had to configure an OpenBSD 6.5 firewall for use in a > remote location, and was concerned

Re: OpenBSD Readonly File System

2020-06-22 Thread Mogens Jensen
Tuesday, June 9, 2020 7:59 AM, Vertigo Altair wrote: > Hi Misc, > I have a firewall device and I'm using OpenBSD on it. Last year I had to configure an OpenBSD 6.5 firewall for use in a remote location, and was concerned about power loss corrupting the filesystem and making the system

Re: OpenBSD Readonly File System

2020-06-15 Thread Nick Holland
On 2020-06-13 12:56, Todd C. Miller wrote: > On Sat, 13 Jun 2020 12:12:05 -0400, Nick Holland wrote: > >> On 2020-06-11 12:07, Strahil Nikolov wrote: >> > I always thought that 'sync' mount option is enough to avoid >> > corruption of the FS. Am I just "fooling" myself ? >> >> As "sync" is the

Re: OpenBSD Readonly File System

2020-06-14 Thread Strahil Nikolov
In Linux, the kernel can force flushing the disk cache (which also can be disabled ) via fsync() call . That feature is called 'write barrier'. As I'm not a developer, I never read that portion of the source of openBSD , so I got no idea if similar logic can be used in openBSD. Does

Re: OpenBSD Readonly File System

2020-06-13 Thread Marko Cupać
On 2020-06-09 09:59, Vertigo Altair wrote: Hi Misc, I have a firewall device and I'm using OpenBSD on it. There is an electricity problem where the device runs. Therefore, I have to run the "fsck -y" command regularly at startup due to the electricity problem. To overcome this, I want to use

Re: OpenBSD Readonly File System

2020-06-13 Thread Todd C . Miller
On Sat, 13 Jun 2020 12:12:05 -0400, Nick Holland wrote: > On 2020-06-11 12:07, Strahil Nikolov wrote: > > I always thought that 'sync' mount option is enough to avoid > > corruption of the FS. Am I just "fooling" myself ? > > As "sync" is the default...yes, I think you are. Actually, by

Re: OpenBSD Readonly File System

2020-06-13 Thread Nick Holland
On 2020-06-11 12:07, Strahil Nikolov wrote: > I always thought that 'sync' mount option is enough to avoid > corruption of the FS. Am I just "fooling" myself ? As "sync" is the default...yes, I think you are. File systems are complicated. Making them work robustly is even more complicated.

Re: OpenBSD Readonly File System

2020-06-12 Thread Kevin Chadwick
On 2020-06-11 23:47, Dirk Coetzee wrote: > I always thought that 'sync' mount option is enough to avoid corruption of the FS. > Am I just "fooling" myself ? > I guess it boils down to a matter of preference and business requirements. > > "slow writes" vs "no writes". It's a good point,

Re: OpenBSD Readonly File System

2020-06-11 Thread Dirk Coetzee
I guess it boils down to a matter of preference and business requirements. "slow writes" vs "no writes". -Original Message- From: Strahil Nikolov Sent: Friday, 12 June 2020 12:08 AM To: Dirk Coetzee ; Joe Barnett ; Vertigo Altair Cc: Misc Subject: Re: OpenBSD Rea

Re: OpenBSD Readonly File System

2020-06-11 Thread Strahil Nikolov
m...@openbsd.org On Behalf Of Joe >Barnett >Sent: Wednesday, 10 June 2020 8:02 AM >To: Vertigo Altair >Cc: Misc >Subject: Re: OpenBSD Readonly File System > >On 2020-06-09 00:59, Vertigo Altair wrote: >> Hi Misc, >> I have a firewall device and I'm using OpenBSD

Re: OpenBSD Readonly File System

2020-06-09 Thread Dirk Coetzee
:02 AM To: Vertigo Altair Cc: Misc Subject: Re: OpenBSD Readonly File System On 2020-06-09 00:59, Vertigo Altair wrote: > Hi Misc, > I have a firewall device and I'm using OpenBSD on it. There is an > electricity problem where the device runs. Therefore, I have to run > the "

Re: OpenBSD Readonly File System

2020-06-09 Thread Joe Barnett
On 2020-06-09 00:59, Vertigo Altair wrote: Hi Misc, I have a firewall device and I'm using OpenBSD on it. There is an electricity problem where the device runs. Therefore, I have to run the "fsck -y" command regularly at startup due to the electricity problem. To overcome this, I want to use

Re: OpenBSD Readonly File System

2020-06-09 Thread Ottavio Caruso
On Tue, 9 Jun 2020 at 08:59, Vertigo Altair wrote: > > Hi Misc, > I have a firewall device and I'm using OpenBSD on it. There is an > electricity problem where the device runs. Therefore, I have to run the > "fsck -y" command regularly at startup due to the electricity problem. Isn't it just

Re: OpenBSD Readonly File System

2020-06-09 Thread Stuart Henderson
On 2020-06-09, Vertigo Altair wrote: > Hi Misc, > I have a firewall device and I'm using OpenBSD on it. There is an > electricity problem where the device runs. Therefore, I have to run the > "fsck -y" command regularly at startup due to the electricity problem. To > overcome this, I want to use