Re: OpenBSD Hackathons

2023-05-12 Thread Katherine Mcmillan
Hi all,

Thank you for the helpful responses, this definitely explains some things!

I'm looking at organizing an OpenBSD Hackathon in the National Capital Region 
in Canada (could potentially be on the Gatineau, Quebec side) but having never 
been to an OpenBSD Hackathon, my interpretation might be quite different from 
the other Hackathons! That's fine, and I'm going to seek inspiration from 
attending a FreeBSD Hackathon, as that project makes their upcoming Hackathons 
public:  https://wiki.freebsd.org/Hackathon/202305

Thank you very much for the help and please feel free to contact me privately 
if you're interested in attending (either as a volunteer or developer) or 
otherwise supporting an OpenBSD Hackathon in the National Capital Region in 
Canada.

Sincerely,
Katie

From: owner-m...@openbsd.org  on behalf of Peter 
Hessler 
Sent: 12 May 2023 16:11
To: Katherine Mcmillan 
Cc: Stuart Henderson ; misc@openbsd.org 

Subject: Re: OpenBSD Hackathons

Attention : courriel externe | external email

Hi Katherine,

Upcoming hackathons are shared privately among committers, and on a
case-by-case basis when it is decided to invite someone.

-peter


On 2023 May 12 (Fri) at 19:37:18 + (+), Katherine Mcmillan wrote:
:Hi Stuart,
:
:Thank you for your response.  The upcoming OpenBSD Hackathons aren't published 
anywhere?  How do new people know where/when they are?
:
:Thank you,
:Katie
:
:
:From: owner-m...@openbsd.org  on behalf of Stuart 
Henderson 
:Sent: 12 May 2023 13:54
:To: misc@openbsd.org 
:Subject: Re: OpenBSD Hackathons
:
:Attention : courriel externe | external email
:
:On 2023-05-12, Katherine Mcmillan  wrote:
:> Hello all,
:>
:> I've looked over the OpenBSD hackathons listed here: 
https://www.openbsd.org/hackathons.html
:> but I'm only seeing previous hackathons.  Where can I find upcoming 
Hackathons?
:
:You can't, they are invite only and details aren't publically available
:in advance.
:
:> Also, I'm wondering about the minimum size for an official hackathon. Does 
anyone happen to know? I'm seeing 4 as the lowest number of attendees for the 
official ones.
:
:hackathons.html gives an idea of the sprwad of hackathon sizes.
:

--
Pick another fortune cookie.



Re: What is the best way to move a VM to a bigger image?

2023-05-12 Thread Hannu Vuolasaho
Hello everyone,

And now the conclusion.

I indeed ran the installer to get partitioned disk easily and the
result was just the bsd and base file set installed system.
That system worked fine. Then I dumped and restored the partitions or
filesystem as FAQ instructs. Anyway I got sha256 identical systems
except /dev, /tmp and /etc/fstab

The comparison was interesting.
$ find / -type f >/tmp/files.txt
$ wc /tmp/files.txt
10 100572 5291532 /tmp/files.txt

That was weird. No-one should have exactly 100k files in their system.

I don't understand why during startup all programs just dumped core. I
would suspect  some library randomization.

After re-installing bsd and base fileset again the new disk booted
nicely. I believe relinking the kernel and other end of installation
steps would probably be enough to fix that kind of problem.

So that was my way of doing this operation.

Best regards,
Hannu Vuolasaho



Re: OpenBSD Hackathons

2023-05-12 Thread Peter Hessler
Hi Katherine,

Upcoming hackathons are shared privately among committers, and on a
case-by-case basis when it is decided to invite someone.

-peter


On 2023 May 12 (Fri) at 19:37:18 + (+), Katherine Mcmillan wrote:
:Hi Stuart,
:
:Thank you for your response.  The upcoming OpenBSD Hackathons aren't published 
anywhere?  How do new people know where/when they are?
:
:Thank you,
:Katie
:
:
:From: owner-m...@openbsd.org  on behalf of Stuart 
Henderson 
:Sent: 12 May 2023 13:54
:To: misc@openbsd.org 
:Subject: Re: OpenBSD Hackathons
:
:Attention : courriel externe | external email
:
:On 2023-05-12, Katherine Mcmillan  wrote:
:> Hello all,
:>
:> I've looked over the OpenBSD hackathons listed here: 
https://www.openbsd.org/hackathons.html
:> but I'm only seeing previous hackathons.  Where can I find upcoming 
Hackathons?
:
:You can't, they are invite only and details aren't publically available
:in advance.
:
:> Also, I'm wondering about the minimum size for an official hackathon. Does 
anyone happen to know? I'm seeing 4 as the lowest number of attendees for the 
official ones.
:
:hackathons.html gives an idea of the sprwad of hackathon sizes.
:

-- 
Pick another fortune cookie.



Re: OpenBSD Hackathons

2023-05-12 Thread Anders Andersson
On Fri, May 12, 2023 at 9:39 PM Katherine Mcmillan  wrote:
>
> Hi Stuart,
>
> Thank you for your response.  The upcoming OpenBSD Hackathons aren't 
> published anywhere?  How do new people know where/when they are?
>
> Thank you,
> Katie

>From the website you linked: "Hackathon attendees come by invitation
only. Some new people in the community who show promise are sometimes
invited to see if they have what it takes. However, hackathons are not
developer training events."

So presumably new people should not know where/when they are, by design.



Re: OpenBSD Hackathons

2023-05-12 Thread deich...@placebonol.com
I was invited to one many years ago, for one reason or another I declined.

So if you ever get invited I suggest you jump at the opportunity.

73
diana 

On May 12, 2023 2:07:57 PM MDT, Anders Andersson  wrote:
>On Fri, May 12, 2023 at 9:39 PM Katherine Mcmillan  wrote:
>>
>> Hi Stuart,
>>
>> Thank you for your response.  The upcoming OpenBSD Hackathons aren't 
>> published anywhere?  How do new people know where/when they are?
>>
>> Thank you,
>> Katie
>
>From the website you linked: "Hackathon attendees come by invitation
>only. Some new people in the community who show promise are sometimes
>invited to see if they have what it takes. However, hackathons are not
>developer training events."
>
>So presumably new people should not know where/when they are, by design.
>


Re: OpenBSD Hackathons

2023-05-12 Thread David
On Fri, 2023-05-12 at 22:07 +0200, Anders Andersson wrote:
> On Fri, May 12, 2023 at 9:39 PM Katherine Mcmillan
>  wrote:
> > 
> > Hi Stuart,
> > 
> > Thank you for your response.  The upcoming OpenBSD Hackathons
> > aren't published anywhere?  How do new people know where/when they
> > are?
> > 
> > Thank you,
> > Katie
> 
> From the website you linked: "Hackathon attendees come by invitation
> only. Some new people in the community who show promise are sometimes
> invited to see if they have what it takes. However, hackathons are
> not
> developer training events."



Perhaps it might be an idea to develop another tier of these to develop
exactly that.
If only 5% go on to contribute something of value, whether that be
coding or docs, it may well be worth it. It would also contribute to
aspects such as community building which, for a number of community-
based projects (and one or two quite notable ones) is an aspect which
is under-appreciated these days.
Just some thoughts, but community-based projects are only as healthy as
their communities.
Cheers!

-- 
A Kiwi in Australia,
doing my bit toward raising the national standard.



Re: OpenBSD Hackathons

2023-05-12 Thread Katherine Mcmillan
Hi Stuart,

Thank you for your response.  The upcoming OpenBSD Hackathons aren't published 
anywhere?  How do new people know where/when they are?

Thank you,
Katie


From: owner-m...@openbsd.org  on behalf of Stuart 
Henderson 
Sent: 12 May 2023 13:54
To: misc@openbsd.org 
Subject: Re: OpenBSD Hackathons

Attention : courriel externe | external email

On 2023-05-12, Katherine Mcmillan  wrote:
> Hello all,
>
> I've looked over the OpenBSD hackathons listed here: 
> https://www.openbsd.org/hackathons.html
> but I'm only seeing previous hackathons.  Where can I find upcoming 
> Hackathons?

You can't, they are invite only and details aren't publically available
in advance.

> Also, I'm wondering about the minimum size for an official hackathon. Does 
> anyone happen to know? I'm seeing 4 as the lowest number of attendees for the 
> official ones.

hackathons.html gives an idea of the sprwad of hackathon sizes.



Re: OpenBSD Hackathons

2023-05-12 Thread Justin Yates Fletcher
On Fri, 2023-05-12 at 20:18 +, Katherine Mcmillan wrote:
> Hi all,
> 
> Thank you for the helpful responses, this definitely explains some
> things!
> 
> I'm looking at organizing an OpenBSD Hackathon in the National
> Capital Region in Canada (could potentially be on the Gatineau,
> Quebec side) but having never been to an OpenBSD Hackathon, my
> interpretation might be quite different from the other Hackathons!
> That's fine, and I'm going to seek inspiration from attending a
> FreeBSD Hackathon, as that project makes their upcoming Hackathons
> public:  https://wiki.freebsd.org/Hackathon/202305
> 
> Thank you very much for the help and please feel free to contact me
> privately if you're interested in attending (either as a volunteer or
> developer) or otherwise supporting an OpenBSD Hackathon in the
> National Capital Region in Canada.
> 
> Sincerely,
> Katie


Hi Katie,

I'll make an assumption based upon what you have written and reply to
that.

I have no experience with hackathons except when working for a globally
recognized company that had no idea what a hackathon meant but tried to
do a few. When I learned that leadership set up a process to accept
what could be hacked on, and a process to determine the winning team of
the hackathons, I decided to skip the events.  :-(

Anyway, the official OpenBSD hackathons are limited to a select group.
There is no minimum size, I assume, because if these people want to
meet up then they do.

If you want to set up your own community OpenBSD hackathon then you
will need to do the advertising, signup process, and management of the
location/capacity vs signups, etc. yourself.

I do hope it goes well!


Justin



Re: carp flapping

2023-05-12 Thread Stuart Henderson
On 2023-05-12, Nick Holland  wrote:
> Here's the problem I've seen:  I have my two machines flipping state
> randomly(?).  This bothers me because that means it is breaking  people's
> downloads.  Longest period betweek flips was less than two weeks.
>
> So ... I cranked up the carp logging to 5 and then 7 to see what it had
> to say about why...and it had almost nothing to say.

Does netstat -s -p carp give any enlightenment?




Re: OpenBSD support for xattr on file systems other than UFS ?

2023-05-12 Thread Marcus MERIGHI
Hello, 

gene...@nativemethods.com (J Doe), 2023.05.12 (Fri) 04:47 (CEST):
> I was configuring Samba on my OpenBSD 7.2 server and wanted to support
> iOS/iPad OS and macOS clients.
> 
> The documentation for Samba states that the following vfs options are
> required to support these clients:
> 
> /etc/samba/smb.conf
> . . .
> vfs = catia fruit streams_xattr

I run a Samba server that does not have these options set - but
successfully serves iOS/macOS clients.

Apart from that, smb.conf(5) does not have the parameter "vfs", only
"vfs object"/"vfs objects" (which are aliases).

Marcus



Re: OpenBSD support for xattr on file systems other than UFS ?

2023-05-12 Thread Stuart Henderson
On 2023-05-12, J Doe  wrote:
> Hello,
>
> I was configuring Samba on my OpenBSD 7.2 server and wanted to support 
> iOS/iPad OS and macOS clients.
>
> The documentation for Samba states that the following vfs options are 
> required to support these clients:
>
>  /etc/samba/smb.conf
>  . . .
>  vfs = catia fruit streams_xattr
>
> ... however, my server is using UFS2 (the default), which I am aware 
> does not support extended attributes.

OpenBSD doesn't support xattr at all.

> Would it be possible to get around that by mounting an ext2 disk image 
> file on OpenBSD via: vnconfig and: mount and pointing: smb.conf to it ?

No.

You may be able to do something with
https://wiki.samba.org/index.php/Using_the_xattr_tdb_VFS_Module




vfs.nfs.iothreads - how much is safe?

2023-05-12 Thread Maksim Rodin
Hello,
I found an option while reading man mount_nfs:
"Use sysctl(8) or modify sysctl.conf(5) to adjust the vfs.nfs.iothreads value,
which is the number of kernel threads created to serve asynchronous NFS
I/O requests."
I tried to raise this value to a maximum of 20 and saw
a decent speedup in file transfer without any visible issue.

But when using dd to write a 1GB zero file to an nfs share
just for fun I saw my system become a little unresponsive
while dd was running (my mouse was moving interruptedly):
# dd if=/dev/zero of=/nfs_share/testfile bs=1000M count=1

How safe is it to raise this value to its maximum of 20?

-- 
Maksim Rodin



OpenBSD Hackathons

2023-05-12 Thread Katherine Mcmillan
Hello all,

I've looked over the OpenBSD hackathons listed here: 
https://www.openbsd.org/hackathons.html
but I'm only seeing previous hackathons.  Where can I find upcoming Hackathons?

Also, I'm wondering about the minimum size for an official hackathon. Does 
anyone happen to know? I'm seeing 4 as the lowest number of attendees for the 
official ones.

Thank you,
Katie


Re: carp flapping

2023-05-12 Thread Kapetanakis Giannis
On 12/05/2023 14:43, Nick Holland wrote:
> I had several other people suggest network problems.  I'm not going to
> say "impossible" or even "unlikely", but my understanding is that the
> two machines are both plugged into the same switch, in the same rack.
>
> Several people pointed out I was using the default advskew of 1 second,
> which means a small network glitch (or system load?  maybe I'm all wrong
> about this system never breaking a sweat, at least when it comes to
> network traffic) would flip it, so I've increased it to 10 on both
> machines (and apparently just induced a flip of my own. oops).  By the
> nature of this system, some people will be annoyed by any flip, so it
> really doesn't matter if it was a 1 second outage or a 30 second outage,
> I just want the system available again after an unhappy event (or
> routine maintenance).
>
> Nick.

Usually it's a network problem. The big delay of 3 days you had also suggests 
that.

But on the other hand, I also had a similar problem in one of my load balancers 
(routing/fw/relayd), where the MASTER was becoming BACKUP for no obvious 
reason. I believed it was a network glitch, but couldn't trace it.

The problem after all was that they where pushing the limit of max pf states 
and relayd checks where failing. Not obvious to spot at all. I believe default 
is 20K.

pfctl -sm
pfctl -si

After increasing that limit with set limit states I've never had a glitch any 
more.

G



Re: Problem to set a printer with cups and foo2zjs documentation not up to date for foo2zjs

2023-05-12 Thread BESSOT Jean-Michel

Hello

When I try to print a page test with hplip and cups, I get : filter failed.

When I try  to prind with openbsd lpd and hplip, I get from lpd-err :

On 09/05/2023 19:16, Jon Fineman wrote:h x1.lacomte.net 
/etc/foomatic/HP-LaserJet_P1005.ppd

/usr/local/bin/foo2zjs-wrapper: -w: unknown option
May 12 15:13:33 x1 lpd[50502]: restarting lp

cups also says: it needs a proprietary driver. That is why I look for 
foo2zjs. But it does not downlad a ppd file and I don't know what to do 
next.


bye

I have a HP Office Jet 6970 (ink jet) and all I did was install cups
and hplip (which is in ports).

To get lpr to work without cups is a little more adventurous. The
three scripts below should get you started. They depend on unix2dos (I
forget which tools bundle this is from) and gs (which is in
ghostscript). Printing just PS is pretty straight forward. However you
should be aware that firefox and friends are hard coded to use a cups
defined printer. At least I haven't figured out how to fool their
print dialog box. Follow the man pages for setting up lpd.


You need to create an /etc/printcap entry similar to to:
lp|hp_prt:\
 :lp=9100@hp_prt:\
 :sh:\
 :mx#0:\
 :sd=/var/spool/lpd/hp_prt:\
 :if=/usr/local/libexec/f_smart:\
 :lf=/var/log/lpd-errs:

And f_smart is:
#!/bin/sh
#
#  sfif - Print PDF or PostScript or plain text on a PCL printer
#
IFS="" read -r first_line
first_two_chars=`expr "$first_line" : '\(..\)'`

case "$first_two_chars" in
%!|\033%%|%P)
 # %! or ESC% or %P : PostScript or ? or PDF job, convert it to PCL.
 ( echo "$first_line" ; cat ) | /usr/local/libexec/f_ps2pcl && exit 0
 exit 2
 ;;
*)
 # otherwise just print it followed by a form feed to eject page
 ( echo "$first_line" ; cat ) | \
 /usr/local/bin/unix2dos && printf "\f" && exit 0
 exit 2
 ;;
esac

And f_ps2pcl:
#!/bin/sh
/usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=ljet4 -sOutputFile=- -




BESSOT Jean-Michel  writes:


Hello

I have a hp P1005 ( I know hp) and I try to install it on opennbsd. So I
installed cups and foo2zjs but foo2zjs download an img file and I don't
know what to do with it. There is no mention of img file in the INSTALL
file.

What do I need to do to make the printer work with the openbsd lpr or cups ?

Bye




Re: carp flapping

2023-05-12 Thread Stuart Henderson
On 2023-05-12, Nick Holland  wrote:
> On 5/12/23 03:28, Stuart Henderson wrote:
>> On 2023-05-12, Nick Holland  wrote:
>>> Here's the problem I've seen:  I have my two machines flipping state
>>> randomly(?).  This bothers me because that means it is breaking  people's
>>> downloads.  Longest period betweek flips was less than two weeks.
>>>
>>> So ... I cranked up the carp logging to 5 and then 7 to see what it had
>>> to say about why...and it had almost nothing to say.
>> 
>> Does netstat -s -p carp give any enlightenment?
>
>
> ok, I just skewed the stats by taking the opportunity to bring the now
> backup up to -current, so node1 does not have the most recent flap:
>
> node1 $ uptime
>   7:18AM  up  8:22, 1 user, load averages: 0.00, 0.05, 0.08
>
> node1 $ doas netstat -s -p carp
> carp:
>  29981 packets received (IPv4)
>  0 packets received (IPv6)
>  0 packets discarded for bad interface
>  0 packets discarded for wrong TTL
>  0 packets shorter than header
>  0 discarded for bad checksums
>  0 discarded packets with a bad version
>  0 discarded because packet too short
>  0 discarded for bad authentication
>  0 discarded for unknown vhid
>  0 discarded because of a bad address list
>  0 packets sent (IPv4)
>  0 packets sent (IPv6)
>  0 send failed due to mbuf memory error
>  0 transitions to master
>
>   node2 $ uptime
>   7:19AM  up 4 days, 20:58, 2 users, load averages: 0.83, 0.78, 0.73
>
> $ ] netstat -s -p carp
> carp:
>  367836 packets received (IPv4)
>  0 packets received (IPv6)
>  0 packets discarded for bad interface
>  0 packets discarded for wrong TTL
>  0 packets shorter than header
>  0 discarded for bad checksums
>  0 discarded packets with a bad version
>  0 discarded because packet too short
>  0 discarded for bad authentication
>  0 discarded for unknown vhid
>  0 discarded because of a bad address list
>  52806 packets sent (IPv4)
>  0 packets sent (IPv6)
>  0 send failed due to mbuf memory error
>  2 transitions to master
>
>
> Will monitor going forward, though.
>
>
> I had several other people suggest network problems.  I'm not going to
> say "impossible" or even "unlikely", but my understanding is that the
> two machines are both plugged into the same switch, in the same rack.

You can also look at

netstat -ni -I ixl0
netstat -ni -I ixl0 -e
kstat ixl0:::

which may give some other clues

even pfctl -si might have something relevant

> Several people pointed out I was using the default advskew of 1 second,
> which means a small network glitch (or system load?  maybe I'm all wrong
> about this system never breaking a sweat, at least when it comes to
> network traffic) would flip it, so I've increased it to 10 on both
> machines (and apparently just induced a flip of my own. oops).  By the
> nature of this system, some people will be annoyed by any flip, so it
> really doesn't matter if it was a 1 second outage or a 30 second outage,
> I just want the system available again after an unhappy event (or
> routine maintenance).

the course adjustment in seconds is advbase, advskew is a much smaller
delay meant for a config with primary/backup where the backup advertises
just slightly less frequently.





Re: carp flapping

2023-05-12 Thread Nick Holland

On 5/12/23 03:28, Stuart Henderson wrote:

On 2023-05-12, Nick Holland  wrote:

Here's the problem I've seen:  I have my two machines flipping state
randomly(?).  This bothers me because that means it is breaking  people's
downloads.  Longest period betweek flips was less than two weeks.

So ... I cranked up the carp logging to 5 and then 7 to see what it had
to say about why...and it had almost nothing to say.


Does netstat -s -p carp give any enlightenment?



ok, I just skewed the stats by taking the opportunity to bring the now
backup up to -current, so node1 does not have the most recent flap:

node1 $ uptime
 7:18AM  up  8:22, 1 user, load averages: 0.00, 0.05, 0.08

node1 $ doas netstat -s -p carp
carp:
29981 packets received (IPv4)
0 packets received (IPv6)
0 packets discarded for bad interface
0 packets discarded for wrong TTL
0 packets shorter than header
0 discarded for bad checksums
0 discarded packets with a bad version
0 discarded because packet too short
0 discarded for bad authentication
0 discarded for unknown vhid
0 discarded because of a bad address list
0 packets sent (IPv4)
0 packets sent (IPv6)
0 send failed due to mbuf memory error
0 transitions to master

 node2 $ uptime
 7:19AM  up 4 days, 20:58, 2 users, load averages: 0.83, 0.78, 0.73

$ ] netstat -s -p carp
carp:
367836 packets received (IPv4)
0 packets received (IPv6)
0 packets discarded for bad interface
0 packets discarded for wrong TTL
0 packets shorter than header
0 discarded for bad checksums
0 discarded packets with a bad version
0 discarded because packet too short
0 discarded for bad authentication
0 discarded for unknown vhid
0 discarded because of a bad address list
52806 packets sent (IPv4)
0 packets sent (IPv6)
0 send failed due to mbuf memory error
2 transitions to master


Will monitor going forward, though.


I had several other people suggest network problems.  I'm not going to
say "impossible" or even "unlikely", but my understanding is that the
two machines are both plugged into the same switch, in the same rack.

Several people pointed out I was using the default advskew of 1 second,
which means a small network glitch (or system load?  maybe I'm all wrong
about this system never breaking a sweat, at least when it comes to
network traffic) would flip it, so I've increased it to 10 on both
machines (and apparently just induced a flip of my own. oops).  By the
nature of this system, some people will be annoyed by any flip, so it
really doesn't matter if it was a 1 second outage or a 30 second outage,
I just want the system available again after an unhappy event (or
routine maintenance).

Nick.



Re: OpenBSD Hackathons

2023-05-12 Thread Stuart Henderson
On 2023-05-12, Katherine Mcmillan  wrote:
> Hello all,
>
> I've looked over the OpenBSD hackathons listed here: 
> https://www.openbsd.org/hackathons.html
> but I'm only seeing previous hackathons.  Where can I find upcoming 
> Hackathons?

You can't, they are invite only and details aren't publically available
in advance.

> Also, I'm wondering about the minimum size for an official hackathon. Does 
> anyone happen to know? I'm seeing 4 as the lowest number of attendees for the 
> official ones.

hackathons.html gives an idea of the sprwad of hackathon sizes.