Re: 5.3 Installer Hangs After Entering Netmask (Broadcom NIC)

2013-09-02 Thread Loïc BLOT
Hmm, this problem has similar issues like i got on bge (BCM5720) with
OpenBSD 5.3. I hope the many bge fixes on 5.4 -current will fix it.
--
Best regards,
Loïc BLOT,
UNIX systems, security and network expert
http://www.unix-experience.fr


Le lundi 02 septembre 2013 à 07:59 -0400, Kenneth R Westerback a écrit :
> On Sun, Sep 01, 2013 at 10:45:50PM -0700, andrew fabbro wrote:
> > I have a Shuttle SD11G5, which is a small Celeron-based PC (1.5Ghz
Celeron,
> > 2GB RAM, a couple SATA drives).
> >
> > The OpenBSD 5.3 installer consistently hangs after I enter the Netmask
for
> > the onboard NIC.
> >
> > I'm booting the 32-bit x86 install53.iso.  I start configuring bge0
(which
> > is a BCM5789) and after "IPv4 address for bge0", the installer asks for
> > Netmask and after I enter it (255.255.255.0), the installer sits there
> > forever.
> >
> > Same thing if I DHCP - after "Issuing hostname-associated DHCP request
for
> > bge0" the installer hangs.
> >
> > I also have an Intel Pro/1000 gig-E card (82574L) in the PCI Express
slot,
> > which shows up on em0.  Unfortunately dmesg says "couldn't map interrupt"
> > and I'm not offered the chance to configure it.  I haven't found anything
> > useful via searching for fixing this.
> >
> > This box previously ran Debian Linux with no problems, so I'm skeptical
> > it's a hardware problem.  The BMC578x series is listed as supported on
the
> > bge(4) man page.
> >
> > Any advice?
> >
>
> Read http://openbsd.org/report.html.
>
> Try 5.4 snapshot or -current.
>
>  Ken

[demime 1.01d removed an attachment of type application/pgp-signature which had 
a name of signature.asc]



Re: AuthenticationMethods skey, passwd: howto syntax?

2013-09-02 Thread Didier Wiroth
Yes I did.
Skey and password currently work (as standalone authentication) with sshd and 
of course on the console (via username:skey syntax).
But If I try to use skey & password authentication together (via the 
AuthenticationMethods) in sshd it doesn't work.
May be I forgot something that is obvious for an expert?

-Original Message-
From: Johan Mellberg [mailto:johan.mellb...@gmail.com] 
Sent: Tuesday, September 3, 2013 06:25
To: misc@openbsd.org
Subject: Re: AuthenticationMethods skey, passwd: howto syntax?

2 sep 2013 kl. 22:53 skrev Didier Wiroth :

> Hello,
> (I'm running  5.4-current)
> I would like to use multiple authentication in sshd :
> 2) skey
> 2) and passwd (as further authentication)
>
> I tried many different settings but I can't find the correct syntax 
> for the AuthenticationMethod parameter.
>
> How does AuthenticationMethod have to be configured in sshd_config to 
> authenticate a user with skey and passwd (as further authentication)?
> (f.ex: abviously this doesn't work: AuthenticationMethods 
> skey,password) The following message is logged in authlog: "error: 
> Unknown authentication
method "skey" in list"
>
> Many thanks!!!
> Didier

Did you even try to read the FAQ? http://www.openbsd.org/faq/faq8.html#SKey

Good luck.



Re: 5.3 Installer Hangs After Entering Netmask (Broadcom NIC)

2013-09-02 Thread Theo de Raadt
> On Mon, Sep 2, 2013 at 11:06 AM, Alexey E. Suslikov <
> alexey.susli...@gmail.com> wrote:
> 
> > andrew fabbro  fabbro.org> writes:
> >
> > > apm0 at bios0: Power Management spec V1.2
> > > acpi at bios0 function 0x0 not configured
> >
> > try acpi on this machine (boot -c and disable apm).
> >
> 
> Wow, that was the magic wand - after that, everything worked perfectly.
>  Thank you very much.
> 
> For future archive searchers - next step is to config the kernel to do that
> automatically: http://openbsd.org/faq/faq5.html#config

It is a bit sad for me.

I have a diff pending to demote apm far below acpi, but I have been
encountering resistance.  That is because there are some other bugs
"on the other side", but perhaps I am supposed to wait until those
magically get fixed.



Re: 5.3 Installer Hangs After Entering Netmask (Broadcom NIC)

2013-09-02 Thread Tomas Bodzar
On Mon, Sep 2, 2013 at 10:10 PM, andrew fabbro  wrote:

> On Mon, Sep 2, 2013 at 11:06 AM, Alexey E. Suslikov <
> alexey.susli...@gmail.com> wrote:
>
> > andrew fabbro  fabbro.org> writes:
> >
> > > apm0 at bios0: Power Management spec V1.2
> > > acpi at bios0 function 0x0 not configured
> >
> > try acpi on this machine (boot -c and disable apm).
> >
>
> Wow, that was the magic wand - after that, everything worked perfectly.
>  Thank you very much.
>
> For future archive searchers - next step is to config the kernel to do that
> automatically: http://openbsd.org/faq/faq5.html#config
>

For your future don't forget that you need acpi on modern computers else
your computer is hardly useful.



Re: AuthenticationMethods skey, passwd: howto syntax?

2013-09-02 Thread Johan Mellberg
2 sep 2013 kl. 22:53 skrev Didier Wiroth :

> Hello,
> (I'm running  5.4-current)
> I would like to use multiple authentication in sshd :
> 2) skey
> 2) and passwd (as further authentication)
>
> I tried many different settings but I can't find the correct syntax
> for the AuthenticationMethod parameter.
>
> How does AuthenticationMethod have to be configured in sshd_config to
> authenticate a user with skey and passwd (as further authentication)?
> (f.ex: abviously this doesn't work: AuthenticationMethods skey,password)
> The following message is logged in authlog: "error: Unknown authentication
method "skey" in list"
>
> Many thanks!!!
> Didier

Did you even try to read the FAQ? http://www.openbsd.org/faq/faq8.html#SKey

Good luck.



Re: php sending mail via sendmail

2013-09-02 Thread Tony Berth
well the script does talk to google mail correctly so somehow it should
work. I think all these open source php based solutions use the same way to
send e-mails. The question is how!? Where should I look inside the php
script?

I was trying the oxwall s/w and this is generating this error. But others
like statusnet are doing the same too. I have to say that vtiger crm is
working fine though!

Thanks


On Tue, Sep 3, 2013 at 1:22 AM, Stefan Sperling  wrote:

> On Tue, Sep 03, 2013 at 12:19:14AM +0200, Tony Berth wrote:
> > I already have these settings implemented but I still get the same error!
> > Please note that /var/www/bin and /var/www/usr belong to the daemon
> group.
> > I don't know if that should be changed to the www one?
> >
> > Where should I check in the PHP application in order to find the reason
> of
> > the problem? Also, what about the pear-Mail package? Is there something I
> > should adapt?
> >
>
> The log message you showed earlier seems to be from sendmail
> complaining that someone trying to relay mail is not doing smtp
> correctly. It comes from the function smtp() in sendmail, see
> /usr/src/gnu/usr.sbin/sendmail/sendmail/srvrsmtp.c but aaah my eyes!
>
> Perhaps the scripts are not even using the sendmail binaries?
> Perhaps a script is trying to shove mail into an smtp server
> without actually talking smtp?



Re: php sending mail via sendmail

2013-09-02 Thread Stefan Sperling
On Tue, Sep 03, 2013 at 12:19:14AM +0200, Tony Berth wrote:
> I already have these settings implemented but I still get the same error!
> Please note that /var/www/bin and /var/www/usr belong to the daemon group.
> I don't know if that should be changed to the www one?
> 
> Where should I check in the PHP application in order to find the reason of
> the problem? Also, what about the pear-Mail package? Is there something I
> should adapt?
> 

The log message you showed earlier seems to be from sendmail
complaining that someone trying to relay mail is not doing smtp
correctly. It comes from the function smtp() in sendmail, see
/usr/src/gnu/usr.sbin/sendmail/sendmail/srvrsmtp.c but aaah my eyes!

Perhaps the scripts are not even using the sendmail binaries?
Perhaps a script is trying to shove mail into an smtp server
without actually talking smtp?



Re: php sending mail via sendmail

2013-09-02 Thread Tony Berth
I already have these settings implemented but I still get the same error!
Please note that /var/www/bin and /var/www/usr belong to the daemon group.
I don't know if that should be changed to the www one?

Where should I check in the PHP application in order to find the reason of
the problem? Also, what about the pear-Mail package? Is there something I
should adapt?

Thanks for your help

On Mon, Sep 2, 2013 at 11:58 PM, Stefan Sperling  wrote:

> On Mon, Sep 02, 2013 at 09:23:46PM +0200, Tony Berth wrote:
> > did install both. Now, what are the settings in order to make them work?
>
> Depends on your php application. It will probably try to run
> /usr/sbin/sendmail, in which case you should ensure that exists
> in the chroot. In my case I had to copy /var/www/bin/femail
> to /var/www/usr/sbin/sendmail, and copy /bin/sh to /var/www/bin/sh
> to make PHPmailer happy.
>
> You'll also need /var/www/usr/libexec/ld.so, copied from
> /usr/libexec/ld.so.



Re: php sending mail via sendmail

2013-09-02 Thread Stefan Sperling
On Mon, Sep 02, 2013 at 09:23:46PM +0200, Tony Berth wrote:
> did install both. Now, what are the settings in order to make them work?

Depends on your php application. It will probably try to run
/usr/sbin/sendmail, in which case you should ensure that exists
in the chroot. In my case I had to copy /var/www/bin/femail
to /var/www/usr/sbin/sendmail, and copy /bin/sh to /var/www/bin/sh
to make PHPmailer happy.

You'll also need /var/www/usr/libexec/ld.so, copied from
/usr/libexec/ld.so.



Re: Hard Freeze with Snapshots After Aug 19 on ThinkPad X1 Carbon

2013-09-02 Thread Bryan Vyhmeister
On Sep 2, 2013, at 9:13, Gabriel Guzman  wrote:

> I'm seeing the same thing on my desktop (dmesg below).  Random freezes,
> no debug output that I've seen in any logs, first time I noticed was
> after updating to aug24 snapshot, behavior is the same with aug29th.  

I think this must be the same issue because the behavior surfaced at exactly 
the same time.

> Don't have much more data at the moment, still can't reliably get the
> freeze to happen, sometimes it's when I launch tmux (tmux attach -t0)
> sometimes it's when I have a lot of xterms open... last night it was
> when I was playing warzone2100 (hey, I just got good video support with
> my radeon card!!!) always happens in X
> though, I can use the machine all day long via ssh from work w/out
> an issue.  

It's never reliable for me either. It's only happened in X but I always run X 
so that isn't much help.

> I'll try and track down more data, and run through the disable apmd, etc
> process laster this afternoon.  And if it's useful, I can backtrack
> through snapshots to see where this started happening.

I am also running apmd with either -A or -C. It's interesting that this happens 
on an AMD system which seems to indicate that it's not Intel graphics related 
or something like that.

Bryan




Re: Hard Freeze with Snapshots After Aug 19 on ThinkPad X1 Carbon

2013-09-02 Thread Bryan Vyhmeister
On Sep 2, 2013, at 3:13, Stefan Sperling  wrote:

> If your system locks up over night without being used (which I've seen
> happen once, too, but it's hard to reproduce), or you don't have
> wsmoused running in the first place, then it's probably some other issue.

I'm not running xdm or wsmoused and it happens overnight. It runs perfectly 
with no issues with the Aug 19 snapshot but the following two (Aug 24 and Aug 
29) have the freeze. Must not be that issue then. Thank you.

Bryan



Focusrite Scarlett 2i2 and uaudio error 4 "audio descriptors make no sense"

2013-09-02 Thread gjones
The Focusrite Scarlett 2i2 gives me an uaudio error=4 "audio descriptors make no 
sense"


Googling, there was a patch made to Freebsd's uaudio last April,

"http://freebsd.1045724.n5.nabble.com/snd-uaudio-2-0-class-support-for-24-bit-samples-with-bSubslotSize-4-td5806141.html";

but I am unable to figure out how to translate this into a patch for OpenBSD's 
uaudio.c.


Can anyone point me in the right direction?

Greg
__

$ usbdevs -a 3 -d -v
Controller /dev/usb0:
addr 3: high speed, power 500 mA, config 1, Scarlett 2i2 USB(0x8006), 
Focusrite(0x1235), rev 0.cc

  uaudio0
  ugen0
_

from dmesg:

ehci0 at pci0 dev 26 function 0 "Intel 7 Series USB" rev 0x04: apic 2 int 16
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
.
.
.
.
uhub2 at uhub0 port 1 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2
uaudio0 at uhub2 port 1 configuration 1 interface 0 "Focusrite Scarlett 2i2 USB" 
rev 2.00/0.cc addr 3

uaudio0: audio descriptors make no sense, error=4
ugen0 at uhub2 port 1 configuration 1 "Focusrite Scarlett 2i2 USB" rev 2.00/0.cc 
addr 3




AuthenticationMethods skey, passwd: howto syntax?

2013-09-02 Thread Didier Wiroth
Hello,
(I'm running  5.4-current)
I would like to use multiple authentication in sshd :
2) skey
2) and passwd (as further authentication)

I tried many different settings but I can't find the correct syntax
for the AuthenticationMethod parameter.

How does AuthenticationMethod have to be configured in sshd_config to
authenticate a user with skey and passwd (as further authentication)?
(f.ex: abviously this doesn't work: AuthenticationMethods skey,password)
The following message is logged in authlog: "error: Unknown authentication 
method "skey" in list"

Many thanks!!!
Didier



Re: 5.3 Installer Hangs After Entering Netmask (Broadcom NIC)

2013-09-02 Thread andrew fabbro
On Mon, Sep 2, 2013 at 11:06 AM, Alexey E. Suslikov <
alexey.susli...@gmail.com> wrote:

> andrew fabbro  fabbro.org> writes:
>
> > apm0 at bios0: Power Management spec V1.2
> > acpi at bios0 function 0x0 not configured
>
> try acpi on this machine (boot -c and disable apm).
>

Wow, that was the magic wand - after that, everything worked perfectly.
 Thank you very much.

For future archive searchers - next step is to config the kernel to do that
automatically: http://openbsd.org/faq/faq5.html#config



Re: php sending mail via sendmail

2013-09-02 Thread Tony Berth
did install both. Now, what are the settings in order to make them work?

Found following for femail:

http://rilk.com/en/doc/node/48

but these changes didn't have any effect. I still get the same error.

Thanks

On Mon, Sep 2, 2013 at 9:11 PM, Stefan Sperling  wrote:

> On Mon, Sep 02, 2013 at 02:53:09PM -0400, Scott McEachern wrote:
> > The problem there is that femail-chroot requires putting a shell
> > into that chroot, which is something I personally avoid.
>
> Well, whether you need a shell depends on how scripts run external
> programs. E.g. PHPMailer uses popen(), which requires a shell.
>
> I would argue that if you already have php in there, a shell
> doesn't really make things much worse :)



Re: Premature end of script headers error with CGI

2013-09-02 Thread Beto
Hi, attached a little example

#!/bin/sh
echo "Content-type: text/html\n\n"

echo '
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
http://www.w3.org/1999/xhtml";>


.:: fugu firewall ::.
'




2013/9/2 obsd, cgi 

> http://unix.stackexchange.com/questions/88062/how-to-enable-cgi-in-openbsd
>
> How could someone use a CGI (with a shell script) on OpenBSD? What could
> the problem be?
>
> The CGI is this:
>
> # cat /var/www/htdocs/cgi-bin/SEARCH.cgi
> printf "Content-type: text/html\n\n";
> printf hi
>
> but it keeps saying:
>
>
> # cat /var/www/logs/error_log
> [Mon Aug 26 10:09:13 2013] [error] [client 10.0.2.2] Premature end of
> script headers: /htdocs/cgi-bin/SEARCH.cgi
> #
>
>
> yes, I tried many things..(permissions looks good, printf binary copied to
> chroot, httpd.conf looks ok..) several hours of pain.. can someone post a
> howto/URL?
>
> Thanks, have a better day :)



Re: php sending mail via sendmail

2013-09-02 Thread Stefan Sperling
On Mon, Sep 02, 2013 at 02:53:09PM -0400, Scott McEachern wrote:
> The problem there is that femail-chroot requires putting a shell
> into that chroot, which is something I personally avoid.

Well, whether you need a shell depends on how scripts run external
programs. E.g. PHPMailer uses popen(), which requires a shell.

I would argue that if you already have php in there, a shell
doesn't really make things much worse :)



Re: Premature end of script headers error with CGI

2013-09-02 Thread Ville Valkonen
On 2 September 2013 21:42, obsd, cgi  wrote:
> http://unix.stackexchange.com/questions/88062/how-to-enable-cgi-in-openbsd
>
> How could someone use a CGI (with a shell script) on OpenBSD? What could
> the problem be?
>
> The CGI is this:
>
> # cat /var/www/htdocs/cgi-bin/SEARCH.cgi
> printf "Content-type: text/html\n\n";
> printf hi
>
> but it keeps saying:
>
>
> # cat /var/www/logs/error_log
> [Mon Aug 26 10:09:13 2013] [error] [client 10.0.2.2] Premature end of
> script headers: /htdocs/cgi-bin/SEARCH.cgi
> #
>
>
> yes, I tried many things..(permissions looks good, printf binary copied to
> chroot, httpd.conf looks ok..) several hours of pain.. can someone post a
> howto/URL?
>
> Thanks, have a better day :)

Hi,

I spotted that you are not using #! at the beginning of the file. Try
#!/bin/sh for example. Patrick also mentioned the line that should
help with premature end of script headers errors.

--
Sincerely,
Ville



Re: Premature end of script headers error with CGI

2013-09-02 Thread patrick keshishian
On 9/2/13, obsd, cgi  wrote:
> http://unix.stackexchange.com/questions/88062/how-to-enable-cgi-in-openbsd
>
> How could someone use a CGI (with a shell script) on OpenBSD? What could
> the problem be?
>
> The CGI is this:
>
> # cat /var/www/htdocs/cgi-bin/SEARCH.cgi
> printf "Content-type: text/html\n\n";

tried with printf "Content-type:text/html\r\n\r\n"?


> printf hi
>
> but it keeps saying:
>
>
> # cat /var/www/logs/error_log
> [Mon Aug 26 10:09:13 2013] [error] [client 10.0.2.2] Premature end of
> script headers: /htdocs/cgi-bin/SEARCH.cgi
> #
>
>
> yes, I tried many things..(permissions looks good, printf binary copied to
> chroot, httpd.conf looks ok..) several hours of pain.. can someone post a
> howto/URL?
>
> Thanks, have a better day :)



Re: php sending mail via sendmail

2013-09-02 Thread Scott McEachern

On 09/02/13 14:46, Stefan Sperling wrote:

On Mon, Sep 02, 2013 at 08:38:37PM +0200, Tony Berth wrote:

Dear group,

when trying different php based open source packages on a chrooted 5.2 box,
I was faced with the problem not being able to send email from their php
script. All the times I get following entry in the maillog:

  w...@example.com [x.x.x.x] did not issue MAIL/EXPN/VRFY/ETRN during
connection to MTA

Any help is much appreciated.

Try the femail-chroot package.



The problem there is that femail-chroot requires putting a shell into 
that chroot, which is something I personally avoid.  (Or am I being too 
paranoid?)


Tony, you might want to try using the pear-Mail package.  It makes 
things more complicated, but it doesn't require a shell in the chroot.


--
Scott McEachern

https://www.blackstaff.ca

"Those who would give up essential liberty to purchase a little temporary safety 
deserve neither liberty nor safety." -- Benjamin Franklin



Re: php sending mail via sendmail

2013-09-02 Thread Stefan Sperling
On Mon, Sep 02, 2013 at 08:38:37PM +0200, Tony Berth wrote:
> Dear group,
> 
> when trying different php based open source packages on a chrooted 5.2 box,
> I was faced with the problem not being able to send email from their php
> script. All the times I get following entry in the maillog:
> 
>  w...@example.com [x.x.x.x] did not issue MAIL/EXPN/VRFY/ETRN during
> connection to MTA
> 
> Any help is much appreciated.

Try the femail-chroot package.



Premature end of script headers error with CGI

2013-09-02 Thread obsd, cgi
http://unix.stackexchange.com/questions/88062/how-to-enable-cgi-in-openbsd

How could someone use a CGI (with a shell script) on OpenBSD? What could
the problem be?

The CGI is this:

# cat /var/www/htdocs/cgi-bin/SEARCH.cgi
printf "Content-type: text/html\n\n";
printf hi

but it keeps saying:


# cat /var/www/logs/error_log
[Mon Aug 26 10:09:13 2013] [error] [client 10.0.2.2] Premature end of
script headers: /htdocs/cgi-bin/SEARCH.cgi
#


yes, I tried many things..(permissions looks good, printf binary copied to
chroot, httpd.conf looks ok..) several hours of pain.. can someone post a
howto/URL?

Thanks, have a better day :)



php sending mail via sendmail

2013-09-02 Thread Tony Berth
Dear group,

when trying different php based open source packages on a chrooted 5.2 box,
I was faced with the problem not being able to send email from their php
script. All the times I get following entry in the maillog:

 w...@example.com [x.x.x.x] did not issue MAIL/EXPN/VRFY/ETRN during
connection to MTA

Any help is much appreciated.

Thanks



Re: 5.3 Installer Hangs After Entering Netmask (Broadcom NIC)

2013-09-02 Thread Alexey E. Suslikov
andrew fabbro  fabbro.org> writes:

> apm0 at bios0: Power Management spec V1.2
> acpi at bios0 function 0x0 not configured

try acpi on this machine (boot -c and disable apm).



Re: bioctl & replacing a failed mirror

2013-09-02 Thread Erling Westenvik
On Mon, Sep 02, 2013 at 01:19:47PM -0400, John Hynes wrote:
> I posted a dmesg earlier in the thread, that showed all three drives had
> the same number of sectors as far as the kernel is concerned.  After
> replacing the drive with the one I "assumed" to be identical (a new sd2),
> here's what the kernel thought:
> 
> sd2: 476940MB, 512 bytes/sector, 976773168 sectors
> 
> For reference, here's what I posted in the other message from dmesg:
> 
> sd0: 476940MB, 512 bytes/sector, 976773168 sectors
> sd1: 476940MB, 512 bytes/sector, 976773168 sectors

Ok. Maybe you should post the complete output of fdisk and disklabel for
all three disks, as well.

Cheers,

Erling



Re: bioctl & replacing a failed mirror

2013-09-02 Thread John Hynes
On Mon, Sep 2, 2013 at 12:36 PM, Nick Holland
wrote:

> On 09/02/13 08:19, John Hynes wrote:
> ...
> > The "new" sd2 is identical to the old, which is identical to the other
> > disks.
>
> you provide ZERO proof of this, which makes me guess that you buy disks
> of the same maker and same model number and assume the rest.
>
> This is very often wrong.
>
> Proof of that is hanging out of my hw raid box on this computer right
> now -- two "identical" drives, purchased on the same date from the same
> store.  one is a few sectors larger than the other.  Smaller drive can
> be mirrored to larger, larger can not be mirrored to smaller.
>
> Nick.
>
>
I posted a dmesg earlier in the thread, that showed all three drives had
the same number of sectors as far as the kernel is concerned.  After
replacing the drive with the one I "assumed" to be identical (a new sd2),
here's what the kernel thought:


sd2: 476940MB, 512 bytes/sector, 976773168 sectors

For reference, here's what I posted in the other message from dmesg:


sd0: 476940MB, 512 bytes/sector, 976773168 sectors
sd1: 476940MB, 512 bytes/sector, 976773168 sectors



Re: bioctl & replacing a failed mirror

2013-09-02 Thread Nick Holland
On 09/02/13 08:19, John Hynes wrote:
...
> The "new" sd2 is identical to the old, which is identical to the other
> disks.

you provide ZERO proof of this, which makes me guess that you buy disks
of the same maker and same model number and assume the rest.

This is very often wrong.

Proof of that is hanging out of my hw raid box on this computer right
now -- two "identical" drives, purchased on the same date from the same
store.  one is a few sectors larger than the other.  Smaller drive can
be mirrored to larger, larger can not be mirrored to smaller.

Nick.



Re: Hard Freeze with Snapshots After Aug 19 on ThinkPad X1 Carbon

2013-09-02 Thread Gabriel Guzman
On 08/30, Bryan Vyhmeister wrote:
> I'm running OpenBSD/amd64 5.4-current with GENERIC.MP from 2013/08/19
> downloaded from the mirrors on a Levovo ThinkPad X1 Carbon. Both
> snapshots I have tried (2013/08/25 and 2013/08/29) after the 19th have
> resulted in hard system freezes every few hours. I don't have any logs
> or anything else that indicate a hard freeze but everything just hard
> freezes. I first noticed because I left the ThinkPad running overnight
> on my desk and when I came back to the system the next morning it was
> hard frozen. Several times during the day while I'm working I have also
> experienced the same thing. Anyone else seeing something similar?
> 
> Bryan

I'm seeing the same thing on my desktop (dmesg below).  Random freezes,
no debug output that I've seen in any logs, first time I noticed was
after updating to aug24 snapshot, behavior is the same with aug29th.  

I followed instructions in current for upgrading, perhaps I'll try a
fresh install (non upgrade) w/the latest snap to see if that helps.  

Don't have much more data at the moment, still can't reliably get the
freeze to happen, sometimes it's when I launch tmux (tmux attach -t0)
sometimes it's when I have a lot of xterms open... last night it was
when I was playing warzone2100 (hey, I just got good video support with
my radeon card!!!) always happens in X
though, I can use the machine all day long via ssh from work w/out
an issue.  

I'll try and track down more data, and run through the disable apmd, etc
process laster this afternoon.  And if it's useful, I can backtrack
through snapshots to see where this started happening.

gabe. 


OpenBSD 5.4-current (GENERIC.MP) #48: Thu Aug 29 11:22:15 MDT 2013
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8031686656 (7659MB)
avail mem = 7809785856 (7447MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xeb2c0 (50 entries)
bios0: vendor AMI version "P01-B2" date 08/03/2011
bios0: Acer Aspire X1430
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC MCFG SLIC HPET SSDT SSDT
acpi0: wakeup devices SBAZ(S4) PS2K(S3) PS2M(S3) P0PC(S4) GEC_(S4) PE20(S4) 
PE21(S4) PE22(S4) PE23(S4) UHC1(S3) UHC2(S3) USB3(S3) UHC4(S3) USB5(S3) 
UHC7(S3) UHC6(S3) [...]
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD E-450 APU with Radeon(tm) HD Graphics, 1647.32 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT,ITSC
cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line 
16-way L2 cache
cpu0: 8 4MB entries fully associative
cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu0: smt 0, core 0, package 0
cpu0: apic clock running at 199MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD E-450 APU with Radeon(tm) HD Graphics, 1646.49 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT,ITSC
cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line 
16-way L2 cache
cpu1: 8 4MB entries fully associative
cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 0 pa 0xfec0, version 21, 24 pins
ioapic0: misconfigured as apic 3, remapped to apid 0
acpimcfg0 at acpi0 addr 0xe000, bus 0-255
acpihpet0 at acpi0: 14318180 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 3 (PE20)
acpiprt2 at acpi0: bus -1 (PE21)
acpiprt3 at acpi0: bus 6 (PE22)
acpiprt4 at acpi0: bus -1 (PE23)
acpiprt5 at acpi0: bus -1 (BR15)
acpiprt6 at acpi0: bus -1 (PCE6)
acpiprt7 at acpi0: bus -1 (PCE7)
acpiprt8 at acpi0: bus -1 (PCE8)
acpiprt9 at acpi0: bus 1 (BR14)
acpicpu0 at acpi0: C2, PSS
acpicpu1 at acpi0: C2, PSS
acpibtn0 at acpi0: PWRB
cpu0: 1647 MHz: speeds: 1650 1320 825 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "AMD AMD64 14h Host" rev 0x00
radeondrm0 at pci0 dev 1 function 0 "ATI Radeon HD 6320" rev 0x00: apic 0 int 18
drm0 at radeondrm0
azalia0 at pci0 dev 1 function 1 "ATI Radeon HD 6310 HD Audio" rev 0x00: msi
azalia0: no supported codecs
ppb0 at pci0 dev 4 function 0 "AMD AMD64 14h PCIE" rev 0x00: msi
pci1 at ppb0 bus 1
ahci0 at pci0 dev 17 function 0 "ATI SBx00 SATA" rev 0x40: apic 0 int 19, AHCI 
1.2
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0:  SCSI3 0/direct 
fixed naa.5001517959405bba
sd0: 76319MB, 512 bytes/sector, 156301488 sectors, thin
sd1 at scsibus0 targ 1 lun 0:  SCSI3 0/direct fixed 
naa.5000c500359a829f
sd1: 476940MB, 512 bytes/sector, 976773168 sectors
ohci0 at pci0 dev 18 function 0 "ATI SB700 USB" rev 0x00:

Re: 5.3 Installer Hangs After Entering Netmask (Broadcom NIC)

2013-09-02 Thread andrew fabbro
I apologize - it hadn't occurred to me that I could use a thumb drive to
transport a dmesg.  Bad hacker!  Lose 10 hacker points!

I tried installing without configuring network, which was successful,
however once I tried to ifconfig bge0 ("ifconfig bge0 192.168.x.x. netmask
255.255.255.0 broadcast 192.168.x.255") the console session hung.

Here is the dmesg...had to hunt for a USB port that didn't "device problem,
disabling" but found one:


OpenBSD 5.3 (RAMDISK_CD) #49: Tue Mar 12 18:50:37 MDT 2013
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/RAMDISK_CD
cpu0: Intel(R) Celeron(R) M processor 1.50GHz ("GenuineIntel" 686-class)
1.51 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,PBE,NXE,PERF
real mem  = 2138566656 (2039MB)
avail mem = 2095865856 (1998MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 03/24/06, BIOS32 rev. 0 @ 0xfa410,
SMBIOS rev. 2.2 @ 0xf (39 entries)
bios0: vendor Phoenix Technologies, LTD version "6.00 PG" date 03/24/2006
bios0: Shuttle Inc SD11V10
apm0 at bios0: Power Management spec V1.2
acpi at bios0 function 0x0 not configured
pcibios0 at bios0: rev 3.0 @ 0xf/0xd1b4
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfd0d0/176 (9 entries)
pcibios0: bad IRQ table checksum
pcibios0: PCI BIOS has 12 Interrupt Routing table entries
pcibios0: PCI Exclusive IRQs: 3 4 5 7 10 11
pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82801FBM LPC" rev 0x00)
pcibios0: PCI bus #3 is the last bus
bios0: ROM list: 0xc/0xe800! 0xd/0x8000! 0xd8000/0x1000
cpu0 at mainbus0: (uniprocessor)
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82915GM Host" rev 0x04
vga1 at pci0 dev 2 function 0 "Intel 82915GM Video" rev 0x04
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
ppb0 at pci0 dev 28 function 0 "Intel 82801FB PCIE" rev 0x04: irq 5
pci1 at ppb0 bus 1
bge0 at pci1 dev 0 function 0 "Broadcom BCM5789" rev 0x11, BCM5750 B1
(0x4101): irq 10, address 00:30:1b:ba:c5:c0
brgphy0 at bge0 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0
ppb1 at pci0 dev 28 function 2 "Intel 82801FB PCIE" rev 0x04: irq 7
pci2 at ppb1 bus 2
em0 at pci2 dev 0 function 0 "Intel PRO/1000 MT (82574L)" rev 0x00:
couldn't map interrupt
uhci0 at pci0 dev 29 function 0 "Intel 82801FB USB" rev 0x04: irq 4
uhci1 at pci0 dev 29 function 1 "Intel 82801FB USB" rev 0x04: irq 11
uhci2 at pci0 dev 29 function 2 "Intel 82801FB USB" rev 0x04: irq 7
uhci3 at pci0 dev 29 function 3 "Intel 82801FB USB" rev 0x04: irq 5
ehci0 at pci0 dev 29 function 7 "Intel 82801FB USB" rev 0x04: irq 4
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb2 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xd4
pci3 at ppb2 bus 3
"Creative Labs SoundBlaster Audigy LS" rev 0x00 at pci3 dev 9 function 0
not configured
"VIA VT6306 FireWire" rev 0x80 at pci3 dev 10 function 0 not configured
pcib0 at pci0 dev 31 function 0 "Intel 82801FBM LPC" rev 0x04
pciide0 at pci0 dev 31 function 2 "Intel 82801FBM SATA" rev 0x04: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: 
wd0: 16-sector PIO, LBA48, 305245MB, 625142448 sectors
wd1 at pciide0 channel 0 drive 1: 
wd1: 16-sector PIO, LBA48, 305245MB, 625142448 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 6
wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 6
"Intel 82801FB SMBus" rev 0x04 at pci0 dev 31 function 3 not configured
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
umass0 at uhub0 port 4 configuration 1 interface 0 "USB2.0 External Mass
Storage Device" rev 2.00/1.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, initiator 0
cd0 at scsibus0 targ 1 lun 0:  SCSI0 5/cdrom
removable serial.1c6ba22244F7
uhidev0 at uhub2 port 1 configuration 1 interface 0 "Logitech USB-PS/2
Trackball" rev 1.00/2.10 addr 2
uhidev0: iclass 3/1
uhid at uhidev0 not configured
softraid0 at root
scsibus1 at softraid0: 256 targets
root on rd0a swap on rd0b dump on rd0b
uhub0: device problem, disabling port 8
uhub0: port 7, set config at addr 3 failed
uhub0: device problem, disabling port 7
uhidev0 detached
umass1 at uhub0 port 3 configuration 1 interface 0 "Kingston DataTraveler
2.0" rev 2.00/1.00 addr 3
umass1: using SCSI over Bulk-Only
scsibus2 at umass1: 2 targets, initiator 0
sd0 at scsibus2 targ 1 lun 0:  SCSI2
0/direct removable s

Re: bioctl & replacing a failed mirror

2013-09-02 Thread Kenneth R Westerback
On Mon, Sep 02, 2013 at 08:20:11AM -0400, John Hynes wrote:
> On Mon, Sep 2, 2013 at 8:07 AM, Kenneth R Westerback  > wrote:
> 
> > On Mon, Sep 02, 2013 at 07:50:41AM -0400, John Hynes wrote:
> > > Greetings All,
> > >
> > > I have a softraid device, sd3, which was created as follows:
> > >
> > > bioctl -c 1 -l /dev/sd0a,/dev/sd1a,/dev/sd2a softraid0
> > >
> > > The chunk sd2a failed.  bioctl shows the RAID1 as degraded, and chunk
> > sd2a
> > > as OFFLINE.
> > >
> > > In order to rebuild, I'd need to set up the new sd2.  After replacing and
> > > zeroing the drive, I replaced the MBR with fdisk -yi /dev/sd2, which
> > worked
> > > fine.  Next, I copied the disklabel from sd0 to sd2, but disklabel
> > refused
> > > to write the new label, saying:
> > >
> > > disklabel: ioctl DIOCWDINFO: Open partition would move or shrink
> > > disklabel: unable to write label
> >
> > How exactly are you copying the disklabel? Is sd2 the same size as sd0?
> >
> 
> disklabel sd0 > disklabel.sd2; disklabel -R sd2 disklabel.sd0
> 
> The "new" sd2 is identical to the old, which is identical to the other
> disks.

Then the output from 'disklabel sd0', 'disklabel sd2', 'fdisk sd0' and
'fdisk sd2' would be useful. I suspect the 'c' partition location/size
is the cause of the confusion. I thought 'c' was ignored by '-R', but
a quick glance at the code does not support that. :-)

 Ken

> 
> 
> >
> > As always a dmesg would help. In this case by answering the latter. :-)
> >
> 
> Here's the dmesg from earlier, before the drive croaked:
> 
> OpenBSD 5.3 (GENERIC.MP) #0: Thu Aug 15 09:24:05 EDT 2013
> r...@flotsam.primebuchholz.com:/usr/src/sys/arch/amd64/compile/
> GENERIC.MP
> real mem = 17160536064 (16365MB)
> avail mem = 16681234432 (15908MB)
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.6 @ 0x9f000 (40 entries)
> bios0: vendor American Megatrends Inc. version "3.0a" date 05/07/2013
> bios0: Supermicro H8SGL
> acpi0 at bios0: rev 2
> acpi0: sleep states S0 S1 S4 S5
> acpi0: tables DSDT FACP APIC MCFG OEMB HPET SRAT SSDT EINJ BERT ERST HEST
> acpi0: wakeup devices PC02(S4) PC03(S4) PC04(S4) PC05(S4) PC06(S4) PC07(S4)
> PC09(S4) PC0A(S4) PC0B(S4) PC0C(S4) SBAZ(S4) PSKE(S4) PSMS(S4) ECIR(S4)
> P0PC(S4) UHC1(S4) UHC2(S4) UHC3(S4) USB4(S4) UHC5(S4) UHC6(S4) UHC7(S4)
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
> cpu0 at mainbus0: apid 32 (boot processor)
> cpu0: AMD Opteron(tm) Processor 6344 , 2600.38 MHz
> cpu0:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,NODEID,TBM,TOPEXT,ITSC,BMI1
> cpu0: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB
> 64b/line 16-way L2 cache, 12MB 64b/line 128-way L3 cache
> cpu0: ITLB 48 4KB entries fully associative, 24 4MB entries fully
> associative
> cpu0: DTLB 64 4KB entries fully associative, 64 4MB entries fully
> associative
> cpu0: apic clock running at 199MHz
> cpu1 at mainbus0: apid 33 (application processor)
> cpu1: AMD Opteron(tm) Processor 6344 , 249.48 MHz
> cpu1:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,NODEID,TBM,TOPEXT,ITSC,BMI1
> cpu1: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB
> 64b/line 16-way L2 cache, 12MB 64b/line 128-way L3 cache
> cpu1: ITLB 48 4KB entries fully associative, 24 4MB entries fully
> associative
> cpu1: DTLB 64 4KB entries fully associative, 64 4MB entries fully
> associative
> cpu2 at mainbus0: apid 34 (application processor)
> cpu2: AMD Opteron(tm) Processor 6344 , 249.45 MHz
> cpu2:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,NODEID,TBM,TOPEXT,ITSC,BMI1
> cpu2: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB
> 64b/line 16-way L2 cache, 12MB 64b/line 128-way L3 cache
> cpu2: ITLB 48 4KB entries fully associative, 24 4MB entries fully
> associative
> cpu2: DTLB 64 4KB entries fully associative, 64 4MB entries fully
> associative
> cpu3 at mainbus0: apid 35 (application processor)
> cpu3: AMD Opteron(tm) Processor 6344 , 249.47 MHz
> cpu3:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,NODEID,TBM,TOPEXT,ITSC,BMI1
> cpu3: 64KB 64b/line 2-wa

Re: 10GBit OpenBSD Firewall

2013-09-02 Thread John Jasen
Please forgive the top posting.

If you have enough systems, can you hit the performance goals with carp
and active load balancing?


On 09/02/2013 09:53 AM, Andy wrote:
> If only you could 'buy' more time or make days longer.. ;)
> 
> Because I know the OpenBSD developers are working hard on this and take
> it very seriously, we have decided that we are going to continue to use
> OpenBSD for these new 10G firewalls because the initial load is only
> going to be around 500-600kpps. We are currently getting ~450kpps using
> HP DL160's, and this hardware should be much more powerful than those.
> 
> And I have faith ;) that by the time our load increases MP networking
> will be available.
> 
> Also I'm very willing to beta test the new ALTQ code? I was chatting to
> Theo briefly a few weeks back and he said I should ask for the code but
> I cannot remember who in the team he said I should message for this?
> I'm not a coder but I'm happy to contribute as and where I can :)
> 
> Andy.
> 
> 
> On Mon 02 Sep 2013 13:02:42 BST, Kenneth R Westerback wrote:
>> On Mon, Sep 02, 2013 at 01:41:58PM +0200, Denis Fondras wrote:
>>> Hi Mike,
>>>
>>> Le 02/09/2013 13:21, Mike Belopuhov a ?crit :
 We are trying to address problems with MP networking right now,
 but due to the lack of manpower the progress is slow.

>>>
>>> What would you need to accelerate ? Developpers, testers, time, money,
>>> hardware, something else ?
>>>
>>> Denis
>>
>> All of the above. If you can provide time especially I'm sure Mike would
>> be very interested in having more of it. :-)
>>
>>  Ken
> 


-- 
-- John Jasen (jja...@realityfailure.org)
-- No one will sorrow for me when I die, because those who would
-- are dead already. -- Lan Mandragoran, The Wheel of Time, New Spring



Re: 10GBit OpenBSD Firewall

2013-09-02 Thread Andy

If only you could 'buy' more time or make days longer.. ;)

Because I know the OpenBSD developers are working hard on this and take 
it very seriously, we have decided that we are going to continue to use 
OpenBSD for these new 10G firewalls because the initial load is only 
going to be around 500-600kpps. We are currently getting ~450kpps using 
HP DL160's, and this hardware should be much more powerful than those.


And I have faith ;) that by the time our load increases MP networking 
will be available.


Also I'm very willing to beta test the new ALTQ code? I was chatting to 
Theo briefly a few weeks back and he said I should ask for the code but 
I cannot remember who in the team he said I should message for this?

I'm not a coder but I'm happy to contribute as and where I can :)

Andy.


On Mon 02 Sep 2013 13:02:42 BST, Kenneth R Westerback wrote:

On Mon, Sep 02, 2013 at 01:41:58PM +0200, Denis Fondras wrote:

Hi Mike,

Le 02/09/2013 13:21, Mike Belopuhov a ?crit :

We are trying to address problems with MP networking right now,
but due to the lack of manpower the progress is slow.



What would you need to accelerate ? Developpers, testers, time, money,
hardware, something else ?

Denis


All of the above. If you can provide time especially I'm sure Mike would
be very interested in having more of it. :-)

 Ken




Re: bioctl & replacing a failed mirror

2013-09-02 Thread Kenneth R Westerback
On Mon, Sep 02, 2013 at 08:20:11AM -0400, John Hynes wrote:
> On Mon, Sep 2, 2013 at 8:07 AM, Kenneth R Westerback  > wrote:
> 
> > On Mon, Sep 02, 2013 at 07:50:41AM -0400, John Hynes wrote:
> > > Greetings All,
> > >
> > > I have a softraid device, sd3, which was created as follows:
> > >
> > > bioctl -c 1 -l /dev/sd0a,/dev/sd1a,/dev/sd2a softraid0
> > >
> > > The chunk sd2a failed.  bioctl shows the RAID1 as degraded, and chunk
> > sd2a
> > > as OFFLINE.
> > >
> > > In order to rebuild, I'd need to set up the new sd2.  After replacing and
> > > zeroing the drive, I replaced the MBR with fdisk -yi /dev/sd2, which
> > worked
> > > fine.  Next, I copied the disklabel from sd0 to sd2, but disklabel
> > refused
> > > to write the new label, saying:
> > >
> > > disklabel: ioctl DIOCWDINFO: Open partition would move or shrink
> > > disklabel: unable to write label
> >
> > How exactly are you copying the disklabel? Is sd2 the same size as sd0?
> >
> 
> disklabel sd0 > disklabel.sd2; disklabel -R sd2 disklabel.sd0
> 
> The "new" sd2 is identical to the old, which is identical to the other
> disks.

Further information should be elicited by running a kernel with the diff
below. Which should at least tell us the (first) partition being rejected,
and whether it is the size or location that is problematic.

Coincidentally I'm working in this exact code, so there are some bonus
fixes in there.

 Ken


Index: subr_disk.c
===
RCS file: /cvs/src/sys/kern/subr_disk.c,v
retrieving revision 1.151
diff -u -p -r1.151 subr_disk.c
--- subr_disk.c 8 Aug 2013 23:25:06 -   1.151
+++ subr_disk.c 2 Sep 2013 13:40:03 -
@@ -645,22 +645,30 @@ setdisklabel(struct disklabel *olp, stru
 
/* XXX missing check if other dos partitions will be overwritten */
 
-   while (openmask != 0) {
-   i = ffs(openmask) - 1;
-   openmask &= ~(1 << i);
-   if (nlp->d_npartitions <= i)
-   return (EBUSY);
+   for (i = 0; i < MAXPARTITIONS; i++) {
opp = &olp->d_partitions[i];
npp = &nlp->d_partitions[i];
-   if (DL_GETPOFFSET(npp) != DL_GETPOFFSET(opp) ||
-   DL_GETPSIZE(npp) < DL_GETPSIZE(opp))
-   return (EBUSY);
+   if (openmask & (1 << i)) {
+   if (DL_GETPOFFSET(npp) != DL_GETPOFFSET(opp)) {
+   printf("Can't move open partition '%c'"
+   " from offset %lld to offset %lld\n",
+   'a' + i, DL_GETPOFFSET(opp),
+   DL_GETPOFFSET(npp));
+   return (EBUSY); 
+   }
+   if (DL_GETPSIZE(npp) < DL_GETPSIZE(opp)) {
+   printf("Can't shrink open partition '%c'"
+   "from %lld sectors to %lld sectors\n",
+   'a' + i, DL_GETPSIZE(opp),
+   DL_GETPSIZE(npp));
+   return (EBUSY);
+   }
+   }
/*
 * Copy internally-set partition information
 * if new label doesn't include it. XXX
 */
if (npp->p_fstype == FS_UNUSED && opp->p_fstype != FS_UNUSED) {
-   npp->p_fstype = opp->p_fstype;
npp->p_fragblock = opp->p_fragblock;
npp->p_cpg = opp->p_cpg;
}



Re: bioctl & replacing a failed mirror

2013-09-02 Thread John Hynes
On Mon, Sep 2, 2013 at 8:51 AM, Bret Lambert  wrote:

> On Mon, Sep 02, 2013 at 02:30:23PM +0200, Stefan Sperling wrote:
> > On Mon, Sep 02, 2013 at 08:17:27AM -0400, John Hynes wrote:
> > > On Mon, Sep 2, 2013 at 8:10 AM, Stefan Sperling 
> wrote:
> > > > What commands did you run to "copy" the disklabel?
> > > Oh - I did a "disklabel sd0 > disklabel.sd2; disklabel -R sd2
> disklabel.sd2"
> >
> > Did that change the duid of sd2?
> >
>
> If it didn't, it's a bug; from revision 1.163 of disklabel.c:
>
> When restoring a disklabel do not restore the uid. Let the kernel
> allocate
> a new uid instead.
>

I just confirmed on the box in question as well - DUIDs are all different,
as expected.

-John



On Mon, Sep 2, 2013 at 8:51 AM, Bret Lambert  wrote:

> On Mon, Sep 02, 2013 at 02:30:23PM +0200, Stefan Sperling wrote:
> > On Mon, Sep 02, 2013 at 08:17:27AM -0400, John Hynes wrote:
> > > On Mon, Sep 2, 2013 at 8:10 AM, Stefan Sperling 
> wrote:
> > > > What commands did you run to "copy" the disklabel?
> > > Oh - I did a "disklabel sd0 > disklabel.sd2; disklabel -R sd2
> disklabel.sd2"
> >
> > Did that change the duid of sd2?
> >
>
> If it didn't, it's a bug; from revision 1.163 of disklabel.c:
>
> When restoring a disklabel do not restore the uid. Let the kernel
> allocate
> a new uid instead.



Re: bioctl & replacing a failed mirror

2013-09-02 Thread Kenneth R Westerback
On Mon, Sep 02, 2013 at 07:50:41AM -0400, John Hynes wrote:
> Greetings All,
> 
> I have a softraid device, sd3, which was created as follows:
> 
> bioctl -c 1 -l /dev/sd0a,/dev/sd1a,/dev/sd2a softraid0
> 
> The chunk sd2a failed.  bioctl shows the RAID1 as degraded, and chunk sd2a
> as OFFLINE.
> 
> In order to rebuild, I'd need to set up the new sd2.  After replacing and
> zeroing the drive, I replaced the MBR with fdisk -yi /dev/sd2, which worked
> fine.  Next, I copied the disklabel from sd0 to sd2, but disklabel refused
> to write the new label, saying:
> 
> disklabel: ioctl DIOCWDINFO: Open partition would move or shrink
> disklabel: unable to write label

How exactly are you copying the disklabel? Is sd2 the same size as sd0?

As always a dmesg would help. In this case by answering the latter. :-)

 Ken

> 
> I could use another slot I suppose, but is there a way to label the chunk
> in the same slot and rebuild onto it that I'm missing?
> 
> Thanks,
> 
> -John



Re: 10GBit OpenBSD Firewall

2013-09-02 Thread Kenneth R Westerback
On Mon, Sep 02, 2013 at 01:41:58PM +0200, Denis Fondras wrote:
> Hi Mike,
> 
> Le 02/09/2013 13:21, Mike Belopuhov a ?crit :
> > We are trying to address problems with MP networking right now,
> > but due to the lack of manpower the progress is slow.
> > 
> 
> What would you need to accelerate ? Developpers, testers, time, money,
> hardware, something else ?
> 
> Denis

All of the above. If you can provide time especially I'm sure Mike would
be very interested in having more of it. :-)

 Ken



Re: 5.3 Installer Hangs After Entering Netmask (Broadcom NIC)

2013-09-02 Thread Kenneth R Westerback
On Sun, Sep 01, 2013 at 10:45:50PM -0700, andrew fabbro wrote:
> I have a Shuttle SD11G5, which is a small Celeron-based PC (1.5Ghz Celeron,
> 2GB RAM, a couple SATA drives).
> 
> The OpenBSD 5.3 installer consistently hangs after I enter the Netmask for
> the onboard NIC.
> 
> I'm booting the 32-bit x86 install53.iso.  I start configuring bge0 (which
> is a BCM5789) and after "IPv4 address for bge0", the installer asks for
> Netmask and after I enter it (255.255.255.0), the installer sits there
> forever.
> 
> Same thing if I DHCP - after "Issuing hostname-associated DHCP request for
> bge0" the installer hangs.
> 
> I also have an Intel Pro/1000 gig-E card (82574L) in the PCI Express slot,
> which shows up on em0.  Unfortunately dmesg says "couldn't map interrupt"
> and I'm not offered the chance to configure it.  I haven't found anything
> useful via searching for fixing this.
> 
> This box previously ran Debian Linux with no problems, so I'm skeptical
> it's a hardware problem.  The BMC578x series is listed as supported on the
> bge(4) man page.
> 
> Any advice?
> 

Read http://openbsd.org/report.html.

Try 5.4 snapshot or -current.

 Ken



Re: bioctl & replacing a failed mirror

2013-09-02 Thread Bret Lambert
On Mon, Sep 02, 2013 at 02:30:23PM +0200, Stefan Sperling wrote:
> On Mon, Sep 02, 2013 at 08:17:27AM -0400, John Hynes wrote:
> > On Mon, Sep 2, 2013 at 8:10 AM, Stefan Sperling  wrote:
> > > What commands did you run to "copy" the disklabel?
> > Oh - I did a "disklabel sd0 > disklabel.sd2; disklabel -R sd2 disklabel.sd2"
> 
> Did that change the duid of sd2?
> 

If it didn't, it's a bug; from revision 1.163 of disklabel.c:

When restoring a disklabel do not restore the uid. Let the kernel allocate
a new uid instead.



Re: bioctl & replacing a failed mirror

2013-09-02 Thread John Hynes
On Mon, Sep 2, 2013 at 8:30 AM, Stefan Sperling  wrote:

> On Mon, Sep 02, 2013 at 08:17:27AM -0400, John Hynes wrote:
> > On Mon, Sep 2, 2013 at 8:10 AM, Stefan Sperling 
> wrote:
> > > What commands did you run to "copy" the disklabel?
> > Oh - I did a "disklabel sd0 > disklabel.sd2; disklabel -R sd2
> disklabel.sd2"
>
> Did that change the duid of sd2?
>

I'll go check - but on the box I'm logged into right now, which is
identically set up, yes the DUIDs are all different on sd0 sd1 and sd2,
even though I created the disklabels for sd1 and sd2 in the same way as
above.

-John



On Mon, Sep 2, 2013 at 8:30 AM, Stefan Sperling  wrote:

> On Mon, Sep 02, 2013 at 08:17:27AM -0400, John Hynes wrote:
> > On Mon, Sep 2, 2013 at 8:10 AM, Stefan Sperling 
> wrote:
> > > What commands did you run to "copy" the disklabel?
> > Oh - I did a "disklabel sd0 > disklabel.sd2; disklabel -R sd2
> disklabel.sd2"
>
> Did that change the duid of sd2?



Re: bioctl & replacing a failed mirror

2013-09-02 Thread Stefan Sperling
On Mon, Sep 02, 2013 at 08:17:27AM -0400, John Hynes wrote:
> On Mon, Sep 2, 2013 at 8:10 AM, Stefan Sperling  wrote:
> > What commands did you run to "copy" the disklabel?
> Oh - I did a "disklabel sd0 > disklabel.sd2; disklabel -R sd2 disklabel.sd2"

Did that change the duid of sd2?



Re: bioctl & replacing a failed mirror

2013-09-02 Thread John Hynes
On Mon, Sep 2, 2013 at 8:07 AM, Kenneth R Westerback  wrote:

> On Mon, Sep 02, 2013 at 07:50:41AM -0400, John Hynes wrote:
> > Greetings All,
> >
> > I have a softraid device, sd3, which was created as follows:
> >
> > bioctl -c 1 -l /dev/sd0a,/dev/sd1a,/dev/sd2a softraid0
> >
> > The chunk sd2a failed.  bioctl shows the RAID1 as degraded, and chunk
> sd2a
> > as OFFLINE.
> >
> > In order to rebuild, I'd need to set up the new sd2.  After replacing and
> > zeroing the drive, I replaced the MBR with fdisk -yi /dev/sd2, which
> worked
> > fine.  Next, I copied the disklabel from sd0 to sd2, but disklabel
> refused
> > to write the new label, saying:
> >
> > disklabel: ioctl DIOCWDINFO: Open partition would move or shrink
> > disklabel: unable to write label
>
> How exactly are you copying the disklabel? Is sd2 the same size as sd0?
>

disklabel sd0 > disklabel.sd2; disklabel -R sd2 disklabel.sd0

The "new" sd2 is identical to the old, which is identical to the other
disks.


>
> As always a dmesg would help. In this case by answering the latter. :-)
>

Here's the dmesg from earlier, before the drive croaked:

OpenBSD 5.3 (GENERIC.MP) #0: Thu Aug 15 09:24:05 EDT 2013
r...@flotsam.primebuchholz.com:/usr/src/sys/arch/amd64/compile/
GENERIC.MP
real mem = 17160536064 (16365MB)
avail mem = 16681234432 (15908MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0x9f000 (40 entries)
bios0: vendor American Megatrends Inc. version "3.0a" date 05/07/2013
bios0: Supermicro H8SGL
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S4 S5
acpi0: tables DSDT FACP APIC MCFG OEMB HPET SRAT SSDT EINJ BERT ERST HEST
acpi0: wakeup devices PC02(S4) PC03(S4) PC04(S4) PC05(S4) PC06(S4) PC07(S4)
PC09(S4) PC0A(S4) PC0B(S4) PC0C(S4) SBAZ(S4) PSKE(S4) PSMS(S4) ECIR(S4)
P0PC(S4) UHC1(S4) UHC2(S4) UHC3(S4) USB4(S4) UHC5(S4) UHC6(S4) UHC7(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 32 (boot processor)
cpu0: AMD Opteron(tm) Processor 6344 , 2600.38 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCN
T,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SS
E4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,NODEID,TBM,TOPEXT,ITSC,BMI1
cpu0: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB
64b/line 16-way L2 cache, 12MB 64b/line 128-way L3 cache
cpu0: ITLB 48 4KB entries fully associative, 24 4MB entries fully
associative
cpu0: DTLB 64 4KB entries fully associative, 64 4MB entries fully
associative
cpu0: apic clock running at 199MHz
cpu1 at mainbus0: apid 33 (application processor)
cpu1: AMD Opteron(tm) Processor 6344 , 249.48 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCN
T,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SS
E4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,NODEID,TBM,TOPEXT,ITSC,BMI1
cpu1: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB
64b/line 16-way L2 cache, 12MB 64b/line 128-way L3 cache
cpu1: ITLB 48 4KB entries fully associative, 24 4MB entries fully
associative
cpu1: DTLB 64 4KB entries fully associative, 64 4MB entries fully
associative
cpu2 at mainbus0: apid 34 (application processor)
cpu2: AMD Opteron(tm) Processor 6344 , 249.45 MHz
cpu2:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCN
T,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SS
E4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,NODEID,TBM,TOPEXT,ITSC,BMI1
cpu2: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB
64b/line 16-way L2 cache, 12MB 64b/line 128-way L3 cache
cpu2: ITLB 48 4KB entries fully associative, 24 4MB entries fully
associative
cpu2: DTLB 64 4KB entries fully associative, 64 4MB entries fully
associative
cpu3 at mainbus0: apid 35 (application processor)
cpu3: AMD Opteron(tm) Processor 6344 , 249.47 MHz
cpu3:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,POPCN
T,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SS
E4A,MASSE,3DNOWP,OSVW,IBS,XOP,SKINIT,WDT,FMA4,NODEID,TBM,TOPEXT,ITSC,BMI1
cpu3: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB
64b/line 16-way L2 cache, 12MB 64b/line 128-way L3 cache
cpu3: ITLB 48 4KB entries fully associative, 24 4MB entries fully
associative
cpu3: DTLB 64 4KB entries fully associative, 64 4MB entries fully
associative
cpu4 at mainbus0: apid 36 (application processor)
cpu4: AMD Opteron(tm) Processor 6344 , 249.45 MHz
cpu4:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4

Re: bioctl & replacing a failed mirror

2013-09-02 Thread John Hynes
On Mon, Sep 2, 2013 at 8:10 AM, Stefan Sperling  wrote:

> On Mon, Sep 02, 2013 at 07:50:41AM -0400, John Hynes wrote:
> > Greetings All,
> >
> > I have a softraid device, sd3, which was created as follows:
> >
> > bioctl -c 1 -l /dev/sd0a,/dev/sd1a,/dev/sd2a softraid0
> >
> > The chunk sd2a failed.  bioctl shows the RAID1 as degraded, and chunk
> sd2a
> > as OFFLINE.
> >
> > In order to rebuild, I'd need to set up the new sd2.  After replacing and
> > zeroing the drive, I replaced the MBR with fdisk -yi /dev/sd2, which
> worked
> > fine.  Next, I copied the disklabel from sd0 to sd2, but disklabel
> refused
> > to write the new label, saying:
> >
>
> I'm not sure what you were doing here.
> What commands did you run to "copy" the disklabel?
>

Oh - I did a "disklabel sd0 > disklabel.sd2; disklabel -R sd2 disklabel.sd2"


>
> > disklabel: ioctl DIOCWDINFO: Open partition would move or shrink
> > disklabel: unable to write label
> >
> > I could use another slot I suppose, but is there a way to label the chunk
> > in the same slot and rebuild onto it that I'm missing?
> >
> > Thanks,
> >
> > -John
>
> I would create a fresh disklabel on sd2, using disklable -E sd2,
> with a partition of type RAID that matches the size of the existing
> chunks in the volume. It can be any partition on sd2. You seem to
> be using 'a' which should be fine (though usually 'a' is used for
> root partitions of type 4.2BSD).
>
> Then start the rebuild (assuming /dev/sd2a is the new partition
> and sd3 is the softraid disk):
>
> # bioctl -R /dev/sd2a sd3
>

I tried just running disklabel -E sd2.  I gives the same error as above
when attempting to write the label.

Thanks,

-John




On Mon, Sep 2, 2013 at 8:10 AM, Stefan Sperling  wrote:

> On Mon, Sep 02, 2013 at 07:50:41AM -0400, John Hynes wrote:
> > Greetings All,
> >
> > I have a softraid device, sd3, which was created as follows:
> >
> > bioctl -c 1 -l /dev/sd0a,/dev/sd1a,/dev/sd2a softraid0
> >
> > The chunk sd2a failed.  bioctl shows the RAID1 as degraded, and chunk
> sd2a
> > as OFFLINE.
> >
> > In order to rebuild, I'd need to set up the new sd2.  After replacing and
> > zeroing the drive, I replaced the MBR with fdisk -yi /dev/sd2, which
> worked
> > fine.  Next, I copied the disklabel from sd0 to sd2, but disklabel
> refused
> > to write the new label, saying:
> >
>
> I'm not sure what you were doing here.
> What commands did you run to "copy" the disklabel?
>
> > disklabel: ioctl DIOCWDINFO: Open partition would move or shrink
> > disklabel: unable to write label
> >
> > I could use another slot I suppose, but is there a way to label the chunk
> > in the same slot and rebuild onto it that I'm missing?
> >
> > Thanks,
> >
> > -John
>
> I would create a fresh disklabel on sd2, using disklable -E sd2,
> with a partition of type RAID that matches the size of the existing
> chunks in the volume. It can be any partition on sd2. You seem to
> be using 'a' which should be fine (though usually 'a' is used for
> root partitions of type 4.2BSD).
>
> Then start the rebuild (assuming /dev/sd2a is the new partition
> and sd3 is the softraid disk):
>
> # bioctl -R /dev/sd2a sd3



Re: bioctl & replacing a failed mirror

2013-09-02 Thread Erling Westenvik
On Mon, Sep 02, 2013 at 07:50:41AM -0400, John Hynes wrote:
> In order to rebuild, I'd need to set up the new sd2.  After replacing
> and zeroing the drive, I replaced the MBR with fdisk -yi /dev/sd2,
> which worked fine.  Next, I copied the disklabel from sd0 to sd2, but
> disklabel refused to write the new label, saying:

You mean you tried to restore the label by running something like:
disklabel -R sd2 /protofile_from_sd0?

In that case, what happens if you try to build the new label manually
with: disklabel -E sd2?

Cheers,

Erling



Re: bioctl & replacing a failed mirror

2013-09-02 Thread Stefan Sperling
On Mon, Sep 02, 2013 at 07:50:41AM -0400, John Hynes wrote:
> Greetings All,
> 
> I have a softraid device, sd3, which was created as follows:
> 
> bioctl -c 1 -l /dev/sd0a,/dev/sd1a,/dev/sd2a softraid0
> 
> The chunk sd2a failed.  bioctl shows the RAID1 as degraded, and chunk sd2a
> as OFFLINE.
> 
> In order to rebuild, I'd need to set up the new sd2.  After replacing and
> zeroing the drive, I replaced the MBR with fdisk -yi /dev/sd2, which worked
> fine.  Next, I copied the disklabel from sd0 to sd2, but disklabel refused
> to write the new label, saying:
> 

I'm not sure what you were doing here.
What commands did you run to "copy" the disklabel?

> disklabel: ioctl DIOCWDINFO: Open partition would move or shrink
> disklabel: unable to write label
> 
> I could use another slot I suppose, but is there a way to label the chunk
> in the same slot and rebuild onto it that I'm missing?
> 
> Thanks,
> 
> -John

I would create a fresh disklabel on sd2, using disklable -E sd2,
with a partition of type RAID that matches the size of the existing
chunks in the volume. It can be any partition on sd2. You seem to
be using 'a' which should be fine (though usually 'a' is used for
root partitions of type 4.2BSD).

Then start the rebuild (assuming /dev/sd2a is the new partition
and sd3 is the softraid disk):

# bioctl -R /dev/sd2a sd3



Re: Hard Freeze with Snapshots After Aug 19 on ThinkPad X1 Carbon

2013-09-02 Thread Daniel Bolgheroni
On Fri, Aug 30, 2013 at 08:00:50AM -0700, Bryan Vyhmeister wrote:
> I'm running OpenBSD/amd64 5.4-current with GENERIC.MP from 2013/08/19
> downloaded from the mirrors on a Levovo ThinkPad X1 Carbon. Both
> snapshots I have tried (2013/08/25 and 2013/08/29) after the 19th have
> resulted in hard system freezes every few hours. I don't have any logs
> or anything else that indicate a hard freeze but everything just hard
> freezes. I first noticed because I left the ThinkPad running overnight
> on my desk and when I came back to the system the next morning it was
> hard frozen. Several times during the day while I'm working I have also
> experienced the same thing. Anyone else seeing something similar?

The machine I have here freezes after a few minutes, every time I boot up
after keeping it turned off for a hour or so. However, it began to
happen after DRM changes as I reported here:

http://marc.info/?l=openbsd-bugs&m=137270813308946&w=2

After reboot, no problem with random freezes, so I don't think it's the
same cause as yours.



bioctl & replacing a failed mirror

2013-09-02 Thread John Hynes
Greetings All,

I have a softraid device, sd3, which was created as follows:

bioctl -c 1 -l /dev/sd0a,/dev/sd1a,/dev/sd2a softraid0

The chunk sd2a failed.  bioctl shows the RAID1 as degraded, and chunk sd2a
as OFFLINE.

In order to rebuild, I'd need to set up the new sd2.  After replacing and
zeroing the drive, I replaced the MBR with fdisk -yi /dev/sd2, which worked
fine.  Next, I copied the disklabel from sd0 to sd2, but disklabel refused
to write the new label, saying:

disklabel: ioctl DIOCWDINFO: Open partition would move or shrink
disklabel: unable to write label

I could use another slot I suppose, but is there a way to label the chunk
in the same slot and rebuild onto it that I'm missing?

Thanks,

-John



Dropped echo ping brings interface down for 20 min

2013-09-02 Thread Iulian Prodan
Hi everyone,
 
I have a strange situation on three 5.3 machines for few
days
now. After dropping what appears to be a malformed echo request, interface
goes down for 20 min. PF block policy is set to drop. Interface is connected
to
a Cisco switch, sorry no other details from our collo provider.
 
Re-initializing interface solved the problem. Any clue how
to avoid the
problem in the first place? Here is the log capture on echo request.

Best
regards,
Julian


No. Time   Source   
Destination   Protocol port   Info
  54735 2013-09-02 00:27:24.524180
4.53.128.211  68.68.3.87    ICMP    [dropped em0/18]
Echo (ping) request

Frame 54735 (148 bytes on wire, 148 bytes captured)
   
Arrival Time: Sep  2, 2013 00:27:24.52418
    [Time delta from previous
captured frame: 0.640103000 seconds]
    [Time delta from previous displayed
frame: 24.016554000 seconds]
    [Time since reference or first frame:
16042.18611 seconds]
    Frame Number: 54735
    Frame Length: 148 bytes
    Capture Length: 148 bytes
    [Frame is marked: True]
    [Protocols in
frame: pflog:ip:icmp:data]
    [Coloring Rule Name: ICMP]
    [Coloring Rule
String: icmp || icmpv6]
PF Log IPv4 dropped on em0 by rule 18
    Header
Length: 100
    Address Family: IPv4 (2)
    Action: dropped (1)
    Reason:
match (0)
    Interface: em0
    Ruleset: 
    Rule Number: 18
    Sub Rule
Number: -1
    Direction: Unknown (255)
Internet Protocol, Src: 4.53.128.211
(4.53.128.211), Dst: 68.68.3.87 (68.68.3.87)
    Version: 4
    Header length:
20 bytes
    Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN:
0x00)
     00.. = Differentiated Services Codepoint: Default (0x00)
     ..0. = ECN-Capable Transport (ECT): 0
     ...0 = ECN-CE:
0
    Total Length: 48
    Identification: 0x (0)
    Flags: 0x02 (Don't
Fragment)
    0.. = Reserved bit: Not Set
    .1. = Don't fragment:
Set
    ..0 = More fragments: Not Set
    Fragment offset: 0
    Time to
live: 47
    Protocol: ICMP (0x01)
    Header checksum: 0x7f2a [correct]
    [Good: True]
    [Bad : False]
    Source: 4.53.128.211
(4.53.128.211)
    Destination: 68.68.3.87 (68.68.3.87)
Internet Control
Message Protocol
    Type: 8 (Echo (ping) request)
    Code: 0 ()
   
Checksum: 0xba7d [correct]
    Identifier: 0x3d82
    Sequence number: 0
(0x)
    Data (20 bytes)

  00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00   
0010  00 00 00
00   
    Data:

    [Length: 20]



Re: 10GBit OpenBSD Firewall

2013-09-02 Thread Denis Fondras
Hi Mike,

Le 02/09/2013 13:21, Mike Belopuhov a écrit :
> We are trying to address problems with MP networking right now,
> but due to the lack of manpower the progress is slow.
> 

What would you need to accelerate ? Developpers, testers, time, money,
hardware, something else ?

Denis



Re: 10GBit OpenBSD Firewall

2013-09-02 Thread Mike Belopuhov
On 2 September 2013 12:26, Andy  wrote:
> Hi everyone,
>
> I know this gets discussed a lot and I don't want to re-tread old
> ground, but I am in the process of specifying firewall hardware for
> 10Gbit and would like to check the rules-of-thumb I am using..
>
> We would like to reach 1 Million pps, and would like to forward at least
> up-to the current ALTQ limit (~4Gbit) (we have to use queuing).
>
> We should be looking for ?;
> Single fastest CPU speed possible
> Hyper-threading disabled
> Turbo mode enabled (2 cores only, one for the kernel and one for user-land)
> Big L3 cache
> Unbuffered memory (buffering slower)
> Sandy Bridge or Sand Bridge EP (2011 socket has quad channel memory access)
> 1600MHz memory
> Intel X520-SR2 NIC
>
> I am currently looking at the Supermicro X10SLM-F mainboard (
> http://shop.transtec.co.uk/GB/E/products/server/infrastructure_server.html?mod=prod&name=SI1180A304R).
>
> This is only Sandy Bridge (1155 socket, so dual channel memory access),
> but has fully unbuffered memory access (larger boards support 520GB RAM
> and so are buffered etc).
> Getting an E3-1280 v3 CPU (cannot afford the 1290 v3).
> And 1600MHz unbuffered ECC RAM
>
> Am I missing anything important, or is there some hardware combination
> that anyone has had some great success with for a reasonable price
> (~2,000 GBP)?
>
> Thanks for your time and I'm sorry for bringing this question up again,
> but hardware changes regularly and I greatly value the opinions of
> others on this list.
> Regards, Andy.
>

Hi Andy,

While your thinking is right with the current state of affairs
you won't be able to reach 1Mpps even w/o pf due to the inability
to utilize more than one CPU for network processing.  With Pf and
ALTQ performance is plummeting and you can only hope for half of
the forwarding rate.

We are trying to address problems with MP networking right now,
but due to the lack of manpower the progress is slow.

With best regards,
Mike



Re: Hard Freeze with Snapshots After Aug 19 on ThinkPad X1 Carbon

2013-09-02 Thread Pascal Stumpf
On Mon, 2 Sep 2013 12:13:22 +0200, Stefan Sperling wrote:
> On Sun, Sep 01, 2013 at 12:52:32PM -0700, Bryan Vyhmeister wrote:
> > Yes, I have a Synaptics touchpad and the freeze has only happened under
> > X as far as I know but I am pretty much always running X. Thank you.
> 
> > pckbc0: using irq 12 for aux slot
> > wsmouse0 at pms0 mux 0
> > wsmouse1 at pms0 mux 0
> > pms0: Synaptics clickpad, firmware 8.1
> 
> One way I found to reliably hard lock my system (which has the same
> device with firmware version 8.0) is to have both wsmoused and xdm
> running, and run this command as root:
> while sleep 3; do wsconsctl display.focus=0; sleep 3; wsconsctl 
> display.focus=4; done
> The hangs appear during or shortly after switching virtual consoles from
> text to X. So far I could figure out that there seems to be some race
> with closing the mouse device when wsmoused(8) tries to relinquish it to X.
> The hang also happens when I disable the special synaptics code,
> forcing the driver to treat the pad as a normal PS/2 mouse.

I can confirm that disabling wsmoused(8) makes switching to and from
virtual consoles/X work for me.  But it probably doesn't help for the
random hangs I'm seeing once in a while (yes, jsg@ knows about it).

> If your system locks up over night without being used (which I've seen
> happen once, too, but it's hard to reproduce), or you don't have
> wsmoused running in the first place, then it's probably some other issue.
> 
> OpenBSD 5.4-current (GENERIC.MP) #108: Mon Sep  2 11:17:35 CEST 2013
> s...@noel.stsp.name:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 3849388032 (3671MB)
> avail mem = 3738832896 (3565MB)
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xf9d00 (58 entries)
> bios0: vendor LENOVO version "8RET52WW (1.15 )" date 11/15/2011
> bios0: LENOVO 0627A41
> acpi0 at bios0: rev 4
> acpi0: sleep states S0 S3 S4 S5
> acpi0: tables DSDT FACP HPET APIC MCFG UEFI UEFI SSDT SSDT UEFI
> acpi0: wakeup devices PB4_(S4) PB5_(S4) PB6_(S4) PB7_(S4) OHC1(S3) EHC1(S3) 
> OHC2(S3) SBAZ(S4) GEC_(S4) P2P_(S5) SPB0(S4) SPB1(S4) SPB2(S4) SPB3(S4) 
> LID_(S4)
> acpitimer0 at acpi0: 3579545 Hz, 32 bits
> acpihpet0 at acpi0: 14318180 Hz
> acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: AMD E-450 APU with Radeon(tm) HD Graphics, 1646.71 MHz
> cpu0: 
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT,ITSC
> cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 
> 64b/line 16-way L2 cache
> cpu0: 8 4MB entries fully associative
> cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
> cpu0: smt 0, core 0, package 0
> cpu0: apic clock running at 271MHz
> cpu1 at mainbus0: apid 1 (application processor)
> cpu1: AMD E-450 APU with Radeon(tm) HD Graphics, 2239.23 MHz
> cpu1: 
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT,ITSC
> cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 
> 64b/line 16-way L2 cache
> cpu1: 8 4MB entries fully associative
> cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
> cpu1: smt 0, core 1, package 0
> ioapic0 at mainbus0: apid 2 pa 0xfec0, version 21, 24 pins
> ioapic0: misconfigured as apic 0, remapped to apid 2
> acpimcfg0 at acpi0 addr 0xf800, bus 0-31
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus 1 (PB4_)
> acpiprt2 at acpi0: bus 2 (PB5_)
> acpiprt3 at acpi0: bus 3 (PB6_)
> acpiprt4 at acpi0: bus 4 (PB7_)
> acpiprt5 at acpi0: bus 5 (P2P_)
> acpiprt6 at acpi0: bus -1 (SPB0)
> acpiprt7 at acpi0: bus -1 (SPB1)
> acpiprt8 at acpi0: bus -1 (SPB2)
> acpiprt9 at acpi0: bus -1 (SPB3)
> acpiec0 at acpi0
> acpicpu0 at acpi0: C2, PSS
> acpicpu1 at acpi0: C2, PSS
> acpitz0 at acpi0: critical temperature is 100 degC
> acpibtn0 at acpi0: PWRB
> acpibtn1 at acpi0: SLPB
> acpithinkpad0 at acpi0
> acpiac0 at acpi0: AC unit online
> acpibat0 at acpi0: BAT1 model "42T4957" serial  1495 type LION oem "SANYO"
> acpibtn2 at acpi0: LID_
> cpu0: 1646 MHz: speeds: 1650 1320 825 MHz
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 "AMD AMD64 14h Host" rev 0x00
> radeondrm0 at pci0 dev 1 function 0 "ATI Radeon HD 6320" rev 0x00: apic 2 int 
> 18
> drm0 at radeondrm0
> azalia0 at pci0 dev 1 function 1 "ATI Radeon HD 6310 HD Audio" rev 0x00: msi
> azalia0: no supported codecs
> ppb0 at pci0 dev 4 function 0 "AMD AMD64 14h PCIE" rev 0x00: msi
> pci1 at ppb0 bus 1
> "Atheros AR9485" rev 0x01 at pci1 dev 0 function 0 not configured
> ppb1 at pci0 dev 5 function 0 "AMD AMD64 14h PCIE" rev 0x00: msi
> pci2 at ppb1 bus 2
> "Realtek 8188CE" rev 0x01 at pci2 dev 0 function 0 not configure

10GBit OpenBSD Firewall

2013-09-02 Thread Andy
Hi everyone,

I know this gets discussed a lot and I don't want to re-tread old 
ground, but I am in the process of specifying firewall hardware for 
10Gbit and would like to check the rules-of-thumb I am using..

We would like to reach 1 Million pps, and would like to forward at least 
up-to the current ALTQ limit (~4Gbit) (we have to use queuing).

We should be looking for ?;
Single fastest CPU speed possible
Hyper-threading disabled
Turbo mode enabled (2 cores only, one for the kernel and one for user-land)
Big L3 cache
Unbuffered memory (buffering slower)
Sandy Bridge or Sand Bridge EP (2011 socket has quad channel memory access)
1600MHz memory
Intel X520-SR2 NIC

I am currently looking at the Supermicro X10SLM-F mainboard ( 
http://shop.transtec.co.uk/GB/E/products/server/infrastructure_server.html?mod=prod&name=SI1180A304R).

This is only Sandy Bridge (1155 socket, so dual channel memory access), 
but has fully unbuffered memory access (larger boards support 520GB RAM 
and so are buffered etc).
Getting an E3-1280 v3 CPU (cannot afford the 1290 v3).
And 1600MHz unbuffered ECC RAM

Am I missing anything important, or is there some hardware combination 
that anyone has had some great success with for a reasonable price 
(~2,000 GBP)?

Thanks for your time and I'm sorry for bringing this question up again, 
but hardware changes regularly and I greatly value the opinions of 
others on this list.
Regards, Andy.



Re: Hard Freeze with Snapshots After Aug 19 on ThinkPad X1 Carbon

2013-09-02 Thread Stefan Sperling
On Sun, Sep 01, 2013 at 12:52:32PM -0700, Bryan Vyhmeister wrote:
> Yes, I have a Synaptics touchpad and the freeze has only happened under
> X as far as I know but I am pretty much always running X. Thank you.

> pckbc0: using irq 12 for aux slot
> wsmouse0 at pms0 mux 0
> wsmouse1 at pms0 mux 0
> pms0: Synaptics clickpad, firmware 8.1

One way I found to reliably hard lock my system (which has the same
device with firmware version 8.0) is to have both wsmoused and xdm
running, and run this command as root:
while sleep 3; do wsconsctl display.focus=0; sleep 3; wsconsctl 
display.focus=4; done
The hangs appear during or shortly after switching virtual consoles from
text to X. So far I could figure out that there seems to be some race
with closing the mouse device when wsmoused(8) tries to relinquish it to X.
The hang also happens when I disable the special synaptics code,
forcing the driver to treat the pad as a normal PS/2 mouse.

If your system locks up over night without being used (which I've seen
happen once, too, but it's hard to reproduce), or you don't have
wsmoused running in the first place, then it's probably some other issue.

OpenBSD 5.4-current (GENERIC.MP) #108: Mon Sep  2 11:17:35 CEST 2013
s...@noel.stsp.name:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 3849388032 (3671MB)
avail mem = 3738832896 (3565MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xf9d00 (58 entries)
bios0: vendor LENOVO version "8RET52WW (1.15 )" date 11/15/2011
bios0: LENOVO 0627A41
acpi0 at bios0: rev 4
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP HPET APIC MCFG UEFI UEFI SSDT SSDT UEFI
acpi0: wakeup devices PB4_(S4) PB5_(S4) PB6_(S4) PB7_(S4) OHC1(S3) EHC1(S3) 
OHC2(S3) SBAZ(S4) GEC_(S4) P2P_(S5) SPB0(S4) SPB1(S4) SPB2(S4) SPB3(S4) LID_(S4)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpihpet0 at acpi0: 14318180 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD E-450 APU with Radeon(tm) HD Graphics, 1646.71 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT,ITSC
cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line 
16-way L2 cache
cpu0: 8 4MB entries fully associative
cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu0: smt 0, core 0, package 0
cpu0: apic clock running at 271MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD E-450 APU with Radeon(tm) HD Graphics, 2239.23 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT,ITSC
cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line 
16-way L2 cache
cpu1: 8 4MB entries fully associative
cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 21, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
acpimcfg0 at acpi0 addr 0xf800, bus 0-31
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (PB4_)
acpiprt2 at acpi0: bus 2 (PB5_)
acpiprt3 at acpi0: bus 3 (PB6_)
acpiprt4 at acpi0: bus 4 (PB7_)
acpiprt5 at acpi0: bus 5 (P2P_)
acpiprt6 at acpi0: bus -1 (SPB0)
acpiprt7 at acpi0: bus -1 (SPB1)
acpiprt8 at acpi0: bus -1 (SPB2)
acpiprt9 at acpi0: bus -1 (SPB3)
acpiec0 at acpi0
acpicpu0 at acpi0: C2, PSS
acpicpu1 at acpi0: C2, PSS
acpitz0 at acpi0: critical temperature is 100 degC
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: SLPB
acpithinkpad0 at acpi0
acpiac0 at acpi0: AC unit online
acpibat0 at acpi0: BAT1 model "42T4957" serial  1495 type LION oem "SANYO"
acpibtn2 at acpi0: LID_
cpu0: 1646 MHz: speeds: 1650 1320 825 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "AMD AMD64 14h Host" rev 0x00
radeondrm0 at pci0 dev 1 function 0 "ATI Radeon HD 6320" rev 0x00: apic 2 int 18
drm0 at radeondrm0
azalia0 at pci0 dev 1 function 1 "ATI Radeon HD 6310 HD Audio" rev 0x00: msi
azalia0: no supported codecs
ppb0 at pci0 dev 4 function 0 "AMD AMD64 14h PCIE" rev 0x00: msi
pci1 at ppb0 bus 1
"Atheros AR9485" rev 0x01 at pci1 dev 0 function 0 not configured
ppb1 at pci0 dev 5 function 0 "AMD AMD64 14h PCIE" rev 0x00: msi
pci2 at ppb1 bus 2
"Realtek 8188CE" rev 0x01 at pci2 dev 0 function 0 not configured
ppb2 at pci0 dev 6 function 0 "AMD AMD64 14h PCIE" rev 0x00: msi
pci3 at ppb2 bus 3
alc0 at pci3 dev 0 function 0 "Attansic Technology L1D" rev 0xc0: msi, address 
04:7d:7b:30:dd:f2
atphy0 at alc0 phy 0: F1 10/100/1000 PHY, rev. 0
ppb3 at pci0 dev 7 function 0 "AMD AMD64 14h PCIE" rev 0x00: msi
pci4 at ppb3 bus 4
rtsx0 at pci4 dev 0 function 0 "Realtek RTS5209 Card Reader" rev 0x01: msi
sdmmc0 at rtsx0
ahci0 at pci0 dev 17 function 0 "ATI SBx00 SATA" rev

Re: 5.3 Installer Hangs After Entering Netmask (Broadcom NIC)

2013-09-02 Thread Rod Whitworth
On Sun, 1 Sep 2013 22:45:50 -0700, andrew fabbro wrote:

>I have a Shuttle SD11G5, which is a small Celeron-based PC (1.5Ghz Celeron,
>2GB RAM, a couple SATA drives).
>
>The OpenBSD 5.3 installer consistently hangs after I enter the Netmask for
>the onboard NIC.
>
>I'm booting the 32-bit x86 install53.iso.  I start configuring bge0 (which
>is a BCM5789) and after "IPv4 address for bge0", the installer asks for
>Netmask and after I enter it (255.255.255.0), the installer sits there
>forever.
>
>Same thing if I DHCP - after "Issuing hostname-associated DHCP request for
>bge0" the installer hangs.
>
>I also have an Intel Pro/1000 gig-E card (82574L) in the PCI Express slot,
>which shows up on em0.  Unfortunately dmesg says "couldn't map interrupt"
>and I'm not offered the chance to configure it.  I haven't found anything
>useful via searching for fixing this.
>
>This box previously ran Debian Linux with no problems, so I'm skeptical
>it's a hardware problem.  The BMC578x series is listed as supported on the
>bge(4) man page.
>
>Any advice?
>

Yes.
Provide a dmesg before expecting anything from one of the wise men.



*** NOTE *** Please DO NOT CC me. I  subscribed to the list.
Mail to the sender address that does not originate at the list server is 
tarpitted. The reply-to: address is provided for those who feel compelled to 
reply off list. Thankyou.

Rod/
---
This life is not the real thing.
It is not even in Beta.
If it was, then OpenBSD would already have a man page for it.