ifstated.conf advice needed

2019-11-15 Thread Rachel Roch
Hi, I'm looking for a bit of help on how to write a sensible and safe (i.e. avoid race conditions) ifstated.conf. I have a scenario where I have a LACP trunk and on top of the trunk, I have four carp interfaces. So: trunk1 => carp0–3 Now, obviously I know I can monitor up/down on trunk1. But

Re: Home NAS

2019-11-15 Thread Andrew Luke Nesbit
On 15/11/2019 10:11, gwes wrote: On 11/14/19 3:52 PM, Andrew Luke Nesbit wrote: On 15/11/2019 07:44, Raymond, David wrote: I hadn't heard about file corruption on OpenBSD.  It would be good to get to the bottom of this if it occurred. I was surprised when I read mention of it too, without

Re: Patch suggestion for sysupgrade

2019-11-15 Thread Raimo Niskanen
On Fri, Nov 15, 2019 at 07:00:05AM +0100, NilsOla Nilsson wrote: > I have upgraded a machine where /home was NFS-mounted, > like this: > - check that the / partition has space for the files > that will populate /home/_sysupgrade > - unmount /home > - comment ut the /home line in /etc/fstab > -

Re: 10Gbit network work only 1Gbit

2019-11-15 Thread Gregory Edigarov
On 13.11.19 21:18, Hrvoje Popovski wrote: On 13.11.2019. 16:37, Gregory Edigarov wrote: could you please do one more test: "forwarding over ix0 and ix1, pf enabled, 5 tcp states" with this generator i can't use tcp. generally pps with 5 or 50 states are more or less same ... problem with

Re: Patch suggestion for sysupgrade

2019-11-15 Thread Raimo Niskanen
On Thu, Nov 14, 2019 at 04:59:23PM +, gil...@poolp.org wrote: > A similar patch for this was sent to tech@ by Renaud Allard, you might want to > go review the "sysupgrade: Allow to use another directory for data sets" > thread > and comment it. Thanks for the pointer! I see in that thread

Re: pvclock stability

2019-11-15 Thread Ian Gregory
I continued to investigate this and added some debugging output to the pvclock driver to attempt to work out what was going on. In my most recent test I rebooted the client VM at 08:10 yesterday. Over the following 24h, there were 16 "clock step" events which caused the time to lag real time by a

Re: Home NAS

2019-11-15 Thread Raf Czlonka
On Fri, Nov 15, 2019 at 08:54:54AM GMT, Andrew Luke Nesbit wrote: > On 15/11/2019 10:11, gwes wrote: > > > The backup(8) program can assist this by storing deltas so that > > more frequent backups only contain deltas from the previous > > less frequent backup. > > I've not used backup(8) before,

heavy CPU consumption and laggy/stuttering video on thinkpad x230

2019-11-15 Thread Michael H
*laptop: thinkpad x230, i7 processor, 8G ram, intel hd 4000 gpu* *New OpenBSD user with a fresh install.* My user account is created from the install process and has "staff" class - though i haven't increased the datasize-cur, datasize-max for staff yet. Additionally, apmd has been set to -A as

Re: vi in ramdisk?

2019-11-15 Thread Roderick
On Fri, 15 Nov 2019, Noth wrote: ed is included in the ramdisk, but if your use case is using vi to fix a I imagine, it is there for using it in scripts. I think, for editing config files, there are sure editors that are simpler, smaller, not so powerful, but easier to use than ed. Rod.

Re: Home NAS

2019-11-15 Thread Zhi-Qiang Lei
I have a HP Gen8 Microserver running as a NAS using OpenBSD. It has been serving well for like 5 months. I choose OpenBSD over FreeBSD because: 1. FreeBSD was my first consideration because of ZFS, but as far as I know, ZFS doesn’t work well with RAID controller, and neither FreeBSD nor OpenBSD

Re: Home NAS

2019-11-15 Thread pierre1.bardou
Hello, I tried a home NAS with ZFS, then BTRFS. Those filesystems needs tons of RAM (~1 GB of RAM by TB of disk), preferably ECC. I found it very expensive for home usage, so I wouldn't recommend it. Recovy systems were also inexistent at the time (no btrfsck), I don't know if it has improved

Re: A sad raid/fsck story

2019-11-15 Thread sven falempin
On Sat, Oct 5, 2019 at 8:39 AM Nick Holland wrote: > > On 10/4/19 8:37 AM, sven falempin wrote: > ... > > How [do I] check the state of the MIRROR raid array , to detect large > > amount of failures on one of the two disk ? > > > > Best. > > > > fsck has NOTHING to do with the status of your

Re: vi in ramdisk?

2019-11-15 Thread Ian Darwin
On Fri, Nov 15, 2019 at 10:08:26AM -0700, Theo de Raadt wrote: > Christian Weisgerber wrote: > > > > I think, for editing config files, there are sure editors that > > > are simpler, smaller, not so powerful, but easier to use than ed. > > > > By all means, do not keep us in suspense and tell

Re: vi in ramdisk?

2019-11-15 Thread Roderick
On Fri, 15 Nov 2019, Theo de Raadt wrote: Christian Weisgerber wrote: How large is a C implementation of TECO? he probably means cat plus the shell's redirection capability. I think, TECO is much more powerfull that ed and vi. But perhaps DEC 10s SOS? I do not know if it runs in

Re: vi in ramdisk?

2019-11-15 Thread Raul Miller
On Fri, Nov 15, 2019 at 1:17 PM Roderick wrote: > On Fri, 15 Nov 2019, Ian Darwin wrote: > > Who needs cat when you have echo? > > Echo? Necessary?! Terrible waste of paper in a teletype terminal! > I remember editing with sos in TOPS 10 after giving the command: > tty noecho. This is starting

Re: vi in ramdisk?

2019-11-15 Thread Christian Weisgerber
On 2019-11-15, Roderick wrote: >> ed is included in the ramdisk, but if your use case is using vi to fix a > > I imagine, it is there for using it in scripts. Interestingly enough, the installer itself does not use ed, as far as I can tell. * I pretty regularly use ed to perform some

Re: Home NAS

2019-11-15 Thread Patrick Marchand
Hi, I'll be playing around with DragonflyBSD Hammer2 (and multiple offsite backups) for a home NAS over the next few weeks. I'll probably do a presentation about the experience at the Montreal BSD user group afterwards. It does not require as many ressources as ZFS or BTRFS, but offers many

Re: vi in ramdisk?

2019-11-15 Thread Theo de Raadt
Christian Weisgerber wrote: > > I think, for editing config files, there are sure editors that > > are simpler, smaller, not so powerful, but easier to use than ed. > > By all means, do not keep us in suspense and tell us the names of > these editors. > > How large is a C implementation of

Re: vi in ramdisk?

2019-11-15 Thread Roderick
On Fri, 15 Nov 2019, Ian Darwin wrote: Who needs cat when you have echo? Echo? Necessary?! Terrible waste of paper in a teletype terminal! I remember editing with sos in TOPS 10 after giving the command: tty noecho. Rod.

Re: Home NAS

2019-11-15 Thread Rafael Possamai
My experience with ZFS (FreeNAS for the most part) is that it becomes more "expensive" to expand your pool after the fact (for a couple of different reasons, see below), but if 5TB is all you're ever going to need in this specific case, I think you should be fine and can take advantage of ZFS

Re: Home NAS

2019-11-15 Thread Raymond, David
I don't know how current tape systems are, but I have been burnt by them in the past. Either the tape deteriorates or the tape writer company goes out of business. My current approach is to keep stuff I want to keep on current online storage in multiple places plus offline USB. Data get

Re: vi in ramdisk?

2019-11-15 Thread Noth
On 08/11/2019 07:06, Philip Guenther wrote: On Thu, Nov 7, 2019 at 9:57 PM Brennan Vincent wrote: I am asking this out of pure curiosity, not to criticize or start a debate. Why does the ramdisk not include /usr/bin/vi by default? To date, it is the only UNIX-like environment I have ever

Re: Home NAS

2019-11-15 Thread Jan Betlach
Hi, thank you all for comments. I am restoring backup to my new OpenBSD based home NAS as of writing this. Why I have decided to go this route and not with other option like ZFS: - FFS seems to be reliable and stable enough for my purpose. ZFS is too complicated and bloated (of course it

Re: vi in ramdisk?

2019-11-15 Thread Chris Bennett
On Fri, Nov 15, 2019 at 06:02:16PM +, Roderick wrote: > > On Fri, 15 Nov 2019, Theo de Raadt wrote: > > > Christian Weisgerber wrote: > > > > How large is a C implementation of TECO? > > > > he probably means cat plus the shell's redirection capability. > > I think, TECO is much more

Re: vi in ramdisk?

2019-11-15 Thread chohag
U'll Be King of the Stars writes: > This has gotten me thinking about whether line-based editing is really > the best abstraction for simple editors. Yes. Yes it is. You can prise ed out of my cold dead hands. I don't get where the desire for an editor in the installer comes from. If you have

Re: vi in ramdisk?

2019-11-15 Thread U'll Be King of the Stars
On 16/11/2019 06:55, Roderick wrote: On Thu, 22 Jan 1970, Chris Bennett wrote: Yes, but ed also allows one to easily work with only 1-3 lines of screen. I think with every line editor is so? I don't know of any line editors aside from ed, Vi's open mode, Sam, Edlin, and QED and its

teco, and Re: vi in ramdisk?

2019-11-15 Thread gwes
TECOC from github... For general amusement: without video (curses)   UID   PID  PPID CPU PRI  NI   VSZ   RSS WCHAN   STAT  TT TIME COMMAND  1000 29775 86827   0  28   0   540  1296 -   T p2 0:00.00 ./tecoc $ size tecoc text    data    bss dec hex 102449  13096   13424   128969 

Re: Home NAS

2019-11-15 Thread gwes
[misc intermediate comments removed] On 11/15/19 3:54 AM, Andrew Luke Nesbit wrote: In particular I'm trying to figure out a generally applicable way of taking a _consistent_ backup of a disk without resorting to single user mode. I think COW file systems might help in this regard but I

Re: vi in ramdisk?

2019-11-15 Thread Roderick
On Thu, 22 Jan 1970, Chris Bennett wrote: Yes, but ed also allows one to easily work with only 1-3 lines of screen. I think with every line editor is so? The power of ed is in the regular expressions, search and substitution. The only thing that I find more comfortable in sos and miss in

Re: teco, and Re: vi in ramdisk?

2019-11-15 Thread gwes
On 11/15/19 1:59 PM, gwes wrote: TECOC from github... For general amusement: without video (curses)   UID   PID  PPID CPU PRI  NI   VSZ   RSS WCHAN   STAT TT TIME COMMAND  1000 29775 86827   0  28   0   540  1296 -   T p2 0:00.00 ./tecoc $ size tecoc text    data    bss dec hex

Re: heavy CPU consumption and laggy/stuttering video on thinkpad x230

2019-11-15 Thread David Trudgian
On 11/15/19 9:51 AM, Michael H wrote: > *laptop: thinkpad x230, i7 processor, 8G ram, intel hd 4000 gpu* > *New OpenBSD user with a fresh install.* I have a ThinkPad T430 which I'm now typing this on. It's an i5-3320m (vs your i7-3520m) with 12GB RAM and the same HD4000 class graphics, so it's

Re: Home NAS

2019-11-15 Thread Predrag Punosevac
Jan Betlach wrote: > - FFS seems to be reliable and stable enough for my purpose. ZFS is too > complicated and bloated (of course it has its advantages), however major > factor for me has been that it is not possible to encrypt ZFS natively > on FreeBSD as of now. Illumos distro OmniOS CE

Re: Home NAS

2019-11-15 Thread Jordan Geoghegan
On 2019-11-15 20:47, Predrag Punosevac wrote: Jan Betlach wrote: [snip] 2. A HP P222 array controller works right out of the box on OpenBSD, maybe FreeBSD as well but the combination of ZFS and RAID controller seems weird to me. FreeBSD has a better support for HWRaid cards than OpenBSD.

Re: httpd redirect

2019-11-15 Thread Ted Unangst
Thomas wrote: > Hi, > > I need to do this redirect with httpd: > > from: > http://my.old.site/#info > to: > https://my.new.site/products/product.html browsers don't send #fragments to the server. so short answer: impossible.

httpd redirect

2019-11-15 Thread Thomas
Hi, I need to do this redirect with httpd: from: http://my.old.site/#info to: https://my.new.site/products/product.html Has anyone an idea to achieve this? I have tried several variations using the "location match" statement, but without success. Thanks a lot, Thomas

Re: build error on octeon, 6.6

2019-11-15 Thread Christian Groessler
Rudolf, On 2019-11-11 15:23, Rudolf Leitgeb wrote: Somewhere in his error output it says: Target: mips64-unknown-openbsd6.6 This would not work with octeon AFAIK. Maybe this is the reason the build fails ? It would at least make sense regarding the "unable to execute command" message I

Re: build error on octeon, 6.6

2019-11-15 Thread Christian Groessler
Hi, On 2019-11-11 12:18, Christian Groessler wrote: Now I'm going to rebuild again, capturing the "make" output, and try to replicate the problem manually. Interestingly, this time the build fails at a later stage. c++ -O2 -pipe  -fomit-frame-pointer -std=c++11