Re: a port of mullender.c to OpenBSD/vax/i386

2009-03-03 Thread x
  'h','e','l','l','o',' ','v','a','x','\n',

That wasn't quite right.  Amazingly, mullender.c works unmodified
on 4.3/vax.  Using simh-pdp11 and
www.tuhs.org/Archive/PDP-11/Boot_Images/{2.9BSD_rl02_1145.gz,README}
confirms that the output was the same on both machines.

Recipe for running 4.4/landisk:
gavare.se/gxemul/gxemul-stable/doc/guestoses.html

- - -

/*
 * A remake of www.ioccc.org/1984/mullender.c for
 * OpenBSD/i386/landisk/vax.  Public domain.
 */

char blob[] = {
  0,200,49,200,0,200,235,32,
  1,228,18,199,3,101,9,230,4,224,128,195,13,199,3,100,0,229,120,224,
  0,64,128,195,242,175,9,0,0,0,0,0,
  144,144,235,27,91,106,9,141,75,8,81,106,1,83,106,4,88,205,128,49,
  192,80,83,83,176,240,205,128,131,196,28,232,224,255,255,255,
  0,0,0,0, 0,225,245,5, 32,32,58,45,41,8,8,8,8,
  221,9,159,175,242,221,1,251,3,175,11,221,0,159,175,223,251,2,175,7,
  17,234,0,0,188,4,4,0,0,188,143,240,0,4,
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
  0,0,0,0,0,0,0,0,0,0,0,0,17,142
};

#include sys/types.h
#include sys/mman.h
int main(void) {
  mprotect(blob, sizeof blob, PROT_READ|PROT_EXEC);
  ((void (*)(void))blob)();
  return 1;
}



Re: Upgrade on non-live disk

2009-03-03 Thread Jan Stary
On Mar 03 11:01:18, Damon McMahon wrote:
 Is it possible/wise to follow the upgrade instructions on a non-live
 OpenBSD disk mounted on /altroot? I have a second drive I use as a
 non-live mirror with dd(1); can I use the Upgrading without install
 kernel instructions to upgrade this disk by mounting its file systems
 in /altroot and then substituting /altroot for / in the Upgrading
 without install kernel instructions?

If the second drive is a mirror, I assume that when you upgrade
the installation on the second disk, you also upgrade the first
disk in the first place (otherwise the second disk would no longer
be a mirror).

So if you have the first disk upgraded, why don't you just let
dd do its work as usual?

Jan



Sun Fire X2100 M2 Server

2009-03-03 Thread mufurcz

Greetings,

I've been asked to build a ftp server.  Searching the Sun site, I come
across this server.  I am sure, that some people already tested thoroughly
these boxes.  So, any advise, good/bad experiences with these entry level
servers?

Below is (one of) the available configuration::

A84-GGZ1-H-2GA-JL8 Sun Fire X2100 M2 Server, 1 Dual-Core AMD Opteron 
Model 1218, 2.6 GHz, 1 MB,
Processor, 2 GB (2 x 1 GB DIMMs) Unbuffered ECC Single-Rank DDR2-667 
Memory, No Disk Drive,
No DVD, 1 Power Supply Unit, Service Processor, 4 10/100/1000 Ethernet 
Ports, 6 USB 2.0 Ports,

1 I/O Riser Card with 2 PCIe x8 Slots, RoHS-5 Compliant

Full technical  details (and propaganda) is here:

http://catalogs.sun.com/is-bin/INTERSHOP.enfinity/WFS/Sun_Catalogue-Sun_Catalogue_AU-Site/en_GB/-/AUD/ViewCatalog-Browse?CatalogCategoryID=UGpIBe.d2HcAAAEUw0s5G_c2activetab=TechSpecs


mufurcz



Re: Upgrade on non-live disk

2009-03-03 Thread Steve Shockley

On 3/2/2009 7:31 PM, Damon McMahon wrote:

Is it possible/wise to follow the upgrade instructions on a non-live
OpenBSD disk mounted on /altroot? I have a second drive I use as a
non-live mirror with dd(1); can I use the Upgrading without install
kernel instructions to upgrade this disk by mounting its file systems
in /altroot and then substituting /altroot for / in the Upgrading
without install kernel instructions?


Why not just continue to use your existing mirror process, and update 
the mirror once your prod drive is upgraded?




Re: Pre-Order Prizes

2009-03-03 Thread Janne Johansson

Ted Unangst wrote:


Take a dozen posters to hackaton ($10/each)
Take 10 minutes off to have devs sign them (= fun morale booster)
Sell each poster for $500/each: Profit!


you can do this yourself, and yet at the many bsd events I've
attended, I've never once seen anyone ask a developer to sign a
poster, even though the posters are ofter given away for free at such
events.  (I think I did sign a PF book once.)  I'd sign damn near
anything if somebody offered to pay me $10 a shot.  I'll be at
eurobsdcon in september, we'll see just how little changes


Actually we auctioned off a signed-by-some-10-devs Slackathon t-shirt in 
2008 for something like $80 or so (by todays currency), but the buyer 
was a frequent slackathon visitor so he might have donated the same 
amount anyhow, just that he got a signed T-shirt for his troubles this time.


(Thanks to all three of you who bought t-shirts at the auctions, those 
donations count as much as all the others)




Worrying things in dmesg

2009-03-03 Thread Louis Opter
Hello,

I'm running OpenBSD 4.4 release on an i386 machine.

I use a Compact Flash card as hdd. Without manual configuration the bios
recognizes it as removable and refuses to boot OpenBSD.

The machine is used for nat/filtering + dns server, and do it very well.

But, I have noticed something strange with the compact flash. Sometimes,
I get this in dmesg :

Feb 24 08:12:10 gw-pri-eaubonne /bsd: wd0(pciide0:0:0): timeout
Feb 24 08:12:10 gw-pri-eaubonne /bsd:   type: ata
Feb 24 08:12:11 gw-pri-eaubonne /bsd:   c_bcount: 16384
Feb 24 08:12:11 gw-pri-eaubonne /bsd:   c_skip: 0
Feb 24 08:12:11 gw-pri-eaubonne /bsd: pciide0:0:0: bus-master DMA error: 
missing interrupt, status=0x20
Feb 24 08:12:11 gw-pri-eaubonne /bsd: wd0d: device timeout reading fsbn 209760 
of 209760-209791 (wd0 bn 604896; cn 75 tn 1 sn 33), retrying
Feb 24 08:12:11 gw-pri-eaubonne /bsd: wd0: soft error (corrected)
Feb 24 08:12:11 gw-pri-eaubonne savecore: no core dump
Feb 24 08:12:12 gw-pri-eaubonne /bsd: wd0: transfer error, downgrading to 
Ultra-DMA mode 1
Feb 24 08:12:13 gw-pri-eaubonne /bsd: wd0(pciide0:0:0): using PIO mode 4, 
Ultra-DMA mode 1
Feb 24 08:12:13 gw-pri-eaubonne /bsd: wd0e: aborted command, interface CRC 
error reading fsbn 466560 of 466560-466591 (wd0 bn 1272960; cn 157 tn 109 sn 
45), retrying
Feb 24 08:12:13 gw-pri-eaubonne /bsd: wd0: soft error (corrected)

However the machine works normally. (And, I have checked the card is
correctly plugged in)

But, yesterday I have also noticed that I can't use setuid programs :

Mar  2 15:02:14 gw-pri-eaubonne su: cannot stat /usr/libexec/auth/login_passwd: 
Permission denied
Mar  2 15:02:14 gw-pri-eaubonne su: /usr/libexec/auth/login_passwd: path not 
secure

After I bit of searching I have seen this mail received from daily
insecurity output.

Checking setuid/setgid files and devices:
Setuid additions:
-r-sr-xr-x  1  root  bin   157440  Aug  13  00:56:44  2008  /sbin/ping
-r-sr-xr-x  1  root  bin   182208  Aug  13  00:56:46  2008  /sbin/ping6
[...]
==
/etc/fstab diffs (-OLD  +NEW)
==
--- /dev/null   Wed Feb 25 01:30:08 2009
+++ /etc/fstab  Mon Feb 16 15:32:45 2009
@@ -0,0 +1,5 @@
+/dev/wd0a / ffs rw 1 1
+/dev/wd0f /tmp ffs rw,nodev,nosuid 1 2
+/dev/wd0e /usr/ ffs rw,nodev,nosuid 1 2
+/dev/wd0d /var ffs rw,nodev,nosuid 1 2
+/dev/wd0g /var/tmp ffs rw,nodev,nosuid 1 2
[...]

So the system replaced my configuration files and put nosuid on /usr.
The modifications that I have done on other configurations files (I
haven't touched the fstab since the install) were kept.

I have corrected the fstab and it works. But now I have three
questions :
 - Why this happened ?
 - From where my configuration was restored ? (I don't use altroot)
 - These warnings in dmesg can be considered harmless ?

Thanks for your help.
-- 
Louis Opter - COSE



Re: Pre-Order Prizes

2009-03-03 Thread Andres Genovez
2009/3/2 new_guy byte8b...@gmail.com

 I mentioned this when I pre-ordered 4.4... I think folks thought that I was
 joking. Do prizes for pre-orders. Nothing fancy just something like this:

 1. First 50 pre-orders win a T-Shirt and Theo signs the CD case.
 2. The 100th pre-order wins a coffee mug.
 3. 200th 
 4. 300th 
 5. Do something special for the 1000th.
 6. etc.

 Those are just suggestions. The prizes could be anything. Just an idea to
 juice things up and hopefully sell more CDs. I find OpenBSD extremely
 useful
 and I want to see it grow and prosper... even in hard economic times.
 That's
 why I bring this up again.


Nice sugest, but be proud to use a Quality and Secure software as it is, and
for people like us whom like trophies. The must great Trophy, I had is to
had the 4.3 Cds, sopport for free to friends, on my country were normal
people don't know it even exists!!!

Take a look :)

http://www.crice.org/?q=node/170

carpe noctem

:)



 --
 View this message in context:
 http://www.nabble.com/Pre-Order-Prizes-tp22298403p22298403.html
 Sent from the openbsd user - misc mailing list archive at Nabble.com.




--
Atentamente

Andris Genovez Tobar / Sistemas
COMERCIAL SALVADOR PACHECO MORA S.A. / DESDE 1945
Tecnologmas
Cuenca, Luis Cordero 9-70 y Gran Colombia

Telifono. 593-7-2842388 ext 408
Fax. 593-7-2842388 ext 120
Celular 593-97670874
Mail:ageno...@cspmsa.com
Personal: andresgeno...@gmail.com
www.cspmsa.com
www.crice.org



Re: Sun Fire X2100 M2 Server

2009-03-03 Thread Bryan Allen
They're fine. I've had 7 for the last two years; no issues with
them (unlike the X2100 M1s, which were pieces of junk). Just keep
in mind they are entry-level systems.

I have two running OpenBSD 4.4 happily.
-- 
bda
Cyberpunk is dead.  Long live cyberpunk.
http://mirrorshades.org



Re: Pre-Order Prizes

2009-03-03 Thread Daniel Bolgheroni
On Mon, 2 Mar 2009, patrick keshishian wrote:

 Don't you guys get together few times a year for a marathon coding
 session? Sign a dozen posters then and hold'em off 'til the next
 release. Put a sticker price of $500 each (or more).
 
 
 Take a dozen posters to hackaton ($10/each)
 Take 10 minutes off to have devs sign them (= fun morale booster)
 Sell each poster for $500/each: Profit!

Nice. In the past, people who know about computers were freak, ugly, 
with big glasses who don't get a girlfriend in a life. Now, they sign 
posters as any rock star.

Really, I can't realize why would anyone want a signature from an 
OpenBSD dev, A. Einstein, Leonardo da Vinci, Bono Vox, whoever.

--
Daniel Bolgheroni m...@dbolgheroni.eng.br
FEI - Faculdade de Engenharia Industrial
http://www.dbolgheroni.eng.br/mykey

ASCII ribbon campaign ( )
 against HTML e-mail   X
  / \



Re: Pre-Order Prizes

2009-03-03 Thread Gilles Chehade
On Tue, Mar 03, 2009 at 03:23:38PM -0300, Daniel Bolgheroni wrote:
 On Mon, 2 Mar 2009, patrick keshishian wrote:
 
  Don't you guys get together few times a year for a marathon coding
  session? Sign a dozen posters then and hold'em off 'til the next
  release. Put a sticker price of $500 each (or more).
  
  
  Take a dozen posters to hackaton ($10/each)
  Take 10 minutes off to have devs sign them (= fun morale booster)
  Sell each poster for $500/each: Profit!
 
 Nice. In the past, people who know about computers were freak, ugly, 
 with big glasses who don't get a girlfriend in a life. Now, they sign 
 posters as any rock star.
 
 Really, I can't realize why would anyone want a signature from an 
 OpenBSD dev, A. Einstein, Leonardo da Vinci, Bono Vox, whoever.
 

maybe it sells on ebay ?

Gilles

-- 
Gilles Chehade
http://www.poolp.org/~gilles/



Re: softraid 1 with a failed device

2009-03-03 Thread Nick Nauwelaerts
On Mon, 02 Mar 2009 15:39:43 -0600
Aaron Poffenberger a...@hypernote.com wrote:

 You can't rebuild a softraid(4) right now (manually or
 automatically). You have to recreate it. The process is to make a new
 softraid and restore(8) the data from a recent dump(8).
 
 If you don't have a dump you can create the original device with the 
 remaining disk(s) by forcing it:
 
 # bioctl -C force -c 1 -l /dev/sd1d softraid0
 
 Then you can dump, recreate and restore the device.
 
 I do believe there is work being done to add manual and maybe later
 auto rebuild. For now this is the process as I understand it.

It seems that one slipped through the cracks, regretfully I did try it
before and it did not work. Tried it again just to be sure:

# bioctl -C force -c 1 -l /dev/sd1d softraid0
bioctl: not enough disks

Any clues? I'm looking for a way to use it with just one disk while the
other gets replaced.

// nick



Re: softraid 1 with a failed device

2009-03-03 Thread Ted Unangst
On Tue, Mar 3, 2009 at 2:02 PM, Nick Nauwelaerts n...@nauwelaerts.net wrote:
 # bioctl -C force -c 1 -l /dev/sd1d softraid0
 bioctl: not enough disks

 Any clues? I'm looking for a way to use it with just one disk while the
 other gets replaced.

Since there's no special format for raid1, as a last resort you can
adjust the disklabel location and change the type to ffs, then mount
it normally without going through softraid.  scanffs can probably make
this easier.



Re: Worrying things in dmesg

2009-03-03 Thread Jan Stary
On Mar 03 16:10:45, Louis Opter wrote:
 Hello,
 
 I'm running OpenBSD 4.4 release on an i386 machine.
 I use a Compact Flash card as hdd. Without manual configuration the bios
 recognizes it as removable and refuses to boot OpenBSD.

What machine is that?

 The machine is used for nat/filtering + dns server, and do it very well.
 
 But, I have noticed something strange with the compact flash. Sometimes,
 I get this in dmesg :
 
 Feb 24 08:12:10 gw-pri-eaubonne /bsd: wd0(pciide0:0:0): timeout
 Feb 24 08:12:10 gw-pri-eaubonne /bsd:   type: ata
 Feb 24 08:12:11 gw-pri-eaubonne /bsd:   c_bcount: 16384
 Feb 24 08:12:11 gw-pri-eaubonne /bsd:   c_skip: 0
 Feb 24 08:12:11 gw-pri-eaubonne /bsd: pciide0:0:0: bus-master DMA error: 
 missing interrupt, status=0x20
 Feb 24 08:12:11 gw-pri-eaubonne /bsd: wd0d: device timeout reading fsbn 
 209760 of 209760-209791 (wd0 bn 604896; cn 75 tn 1 sn 33), retrying
 Feb 24 08:12:11 gw-pri-eaubonne /bsd: wd0: soft error (corrected)
 Feb 24 08:12:11 gw-pri-eaubonne savecore: no core dump
 Feb 24 08:12:12 gw-pri-eaubonne /bsd: wd0: transfer error, downgrading to 
 Ultra-DMA mode 1
 Feb 24 08:12:13 gw-pri-eaubonne /bsd: wd0(pciide0:0:0): using PIO mode 4, 
 Ultra-DMA mode 1
 Feb 24 08:12:13 gw-pri-eaubonne /bsd: wd0e: aborted command, interface CRC 
 error reading fsbn 466560 of 466560-466591 (wd0 bn 1272960; cn 157 tn 109 sn 
 45), retrying
 Feb 24 08:12:13 gw-pri-eaubonne /bsd: wd0: soft error (corrected)

(You should always provide a full dmesg with hardware issues.)

If you are sure all other hardware is OK, then the card
is faulty. Throw it away and buy a new one, they are very cheap now.

 However the machine works normally. (And, I have checked the card is
 correctly plugged in)
 
 But, yesterday I have also noticed that I can't use setuid programs :
 
 Mar  2 15:02:14 gw-pri-eaubonne su: cannot stat 
 /usr/libexec/auth/login_passwd: Permission denied
 Mar  2 15:02:14 gw-pri-eaubonne su: /usr/libexec/auth/login_passwd: path not 
 secure

Not sure what this means. Who is trying the su?

 After I bit of searching I have seen this mail received from daily
 insecurity output.
 
 Checking setuid/setgid files and devices:
 Setuid additions:
 -r-sr-xr-x  1  root  bin   157440  Aug  13  00:56:44  2008  /sbin/ping
 -r-sr-xr-x  1  root  bin   182208  Aug  13  00:56:46  2008  /sbin/ping6
 [...]
 ==
 /etc/fstab diffs (-OLD  +NEW)
 ==
 --- /dev/null   Wed Feb 25 01:30:08 2009
 +++ /etc/fstab  Mon Feb 16 15:32:45 2009
 @@ -0,0 +1,5 @@
 +/dev/wd0a / ffs rw 1 1
 +/dev/wd0f /tmp ffs rw,nodev,nosuid 1 2
 +/dev/wd0e /usr/ ffs rw,nodev,nosuid 1 2
 +/dev/wd0d /var ffs rw,nodev,nosuid 1 2
 +/dev/wd0g /var/tmp ffs rw,nodev,nosuid 1 2
 [...]

This looks to me like the first insecurity report after a fresh install
- note that it's a diff between /dev/null (as of Feb 25 = OLD) and /etc/fstab
(as of Feb 16 = NEW). Strange.

 So the system replaced my configuration files and put nosuid on /usr.

Why would the system change your mount flags?

 The modifications that I have done on other configurations files (I
 haven't touched the fstab since the install) were kept.

When did you install?

 I have corrected the fstab and it works. But now I have three
 questions :
  - Why this happened ?
  - From where my configuration was restored ? (I don't use altroot)

The system doesn't restore your configs (whatever that means),
but keeps daily backups in /var/backups. It might be interesting to see
the stat(1) of the files there.

  - These warnings in dmesg can be considered harmless ?

No.

Jan



3Qs, including How insane to have /var mount with softraid discipline raid 1 ?

2009-03-03 Thread ppruett

#1
In a real world for small non-profits,
in many cases, its what was left over or donated, so
question one, does the softraid, bioctl, have to much
heartburn if the drives are not the same geometry...
I've always used matching drives for raid of anytype,
but even $60*2 for two drives is a stretch for some nonprofits these days


#2
And the next question in the subject, thinking
about which mounted partition changes the most frequently
through the day that would be /var
The others, /usr for example don't change as much and
could be rsync or tgz nightly...or weekly
however... perhaps /home and /tmp, but definitely /var.
could change significantly during the day.
For example the log files, /var/mail, /var/mysql
and so on are active.  I wander about /var/mysql
and ldap being on a softraid.?

How insane would it be to use the new softraid features
for all of /var  
to make a mirror raid 1 of say 3 drives and then dump
and restore the orig. /var to that softraid and change /etc/fstab
for /var to use it?


#3
Of note, as I understand (might not documented in man yet)
if one or two of the three raid1 partitions making the volume fails,
it will keep running but cannot be rebuilt...
To 'rebuild' means dumping the volume, in this case /var with
say 'dump' may be best over pax/tar and then making
anew a softraid and restoring the dump.

But what happens if the computer reboots with say the third
drive missing the power cable? and it runs for a day or so,
then tech reboots with molex plug put back it? does the
softraid catch the third drive up?  This is something
I guess I could test myself, just asking.


tia.



Re: aue0 can't send packets

2009-03-03 Thread Fred Crowson
On 3/3/09, Nenhum_de_Nos math...@eternamente.info wrote:

 On Mon, March 2, 2009 21:04, Fred Crowson wrote:
 What's the output of: ifconfig -a ?

 # ifconfig -a
 lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 33204
 groups: lo
 inet 127.0.0.1 netmask 0xff00
 inet6 ::1 prefixlen 128
 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
 vr0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
 lladdr 00:11:85:e3:2a:17
 groups: egress
 media: Ethernet autoselect (100baseTX full-duplex)
 status: active
 inet6 fe80::211:85ff:fee3:2a17%vr0 prefixlen 64 scopeid 0x1
 inet 10.1.1.90 netmask 0xff00 broadcast 10.1.1.255
 enc0: flags=0 mtu 1536
 aue0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
 lladdr 00:60:6e:00:18:c0
 media: Ethernet autoselect (none)
 status: no carrier
^^
If the status is no carrier then that usually implies a cabling issue.

Not sure if this is your problem.

HTH

Fred



Re: aue0 can't send packets

2009-03-03 Thread Nenhum_de_Nos
On Tue, March 3, 2009 18:30, Fred Crowson wrote:
 On 3/3/09, Nenhum_de_Nos math...@eternamente.info wrote:

 On Mon, March 2, 2009 21:04, Fred Crowson wrote:
 What's the output of: ifconfig -a ?

 # ifconfig -a
 lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 33204
 groups: lo
 inet 127.0.0.1 netmask 0xff00
 inet6 ::1 prefixlen 128
 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
 vr0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
 lladdr 00:11:85:e3:2a:17
 groups: egress
 media: Ethernet autoselect (100baseTX full-duplex)
 status: active
 inet6 fe80::211:85ff:fee3:2a17%vr0 prefixlen 64 scopeid 0x1
 inet 10.1.1.90 netmask 0xff00 broadcast 10.1.1.255
 enc0: flags=0 mtu 1536
 aue0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
 lladdr 00:60:6e:00:18:c0
 media: Ethernet autoselect (none)
 status: no carrier
 ^^
 If the status is no carrier then that usually implies a cabling issue.

 Not sure if this is your problem.

 HTH

 Fred

thanks for asnwering, but it is not. this ifconfig was taken when I put
the cable on the other nic to access and send you what you wanted :)
I'd be really glad if that was my problem :)

thanks,

matheus

-- 
We will call you cygnus,
The God of balance you shall be



disk perfomance issues with Symbios Logic MegaRAID SAS 1064R and mfi driver

2009-03-03 Thread Denis Hainsworth
Hello,

Some what of a novice openbsd user and hope I didnt miss something obvious.  I
have a box running openbsd 4.2 which I cannot upgrade for various
reasons.  The machine has the  Symbios Logic MegaRAID SAS 1064R
controller and currently has a 4 disk Raid5 set up in bios with Seagate
ST9146802SS disks.   We also run the same machines with Linux and
openbsd 4.2 with older hardware using an Ultra Scsi controller.

Anyway we have some basic tests we run and noticed that a basic Bonnie++
test on all 3 machines gave the following performance numbers.

Openbsd 4.2 and Symbios SAS
6073  K/sec Block Seq Output  and  83086 K/sec Block Seq Input 
Linux RH 7 and Symbios SAS
65096 K/sec Block Seq Output  and  165194 K/sec Block Seq Input
Openbsd 4.2 and Adaptec SCSI
30849 K/sec Block Seq Output  and  36291 K/sec Block Seq Input

Now I wouldnt expect the numbers to match exactly given a number
parameters but the 6073  K/sec Block Seq Output is somewhat of a
concern.  Since it doesnt seem to affect Linux using the exact same
hardware I think its most likly a driver and or configuration issue.
So does anyone know if there are issues with the mfi driver or any
configuration bits within openbsd I might be missing with regaurds to
disk performance?

Here's the exact line from syslog if thats of any help:
Feb 18 19:45:33 /bsd: mfi0 at pci4 dev 14 function 0 Symbios Logic
MegaRAID SAS 1064R rev 0x00: apic 8 int 18 (irq 5)
Feb 18 19:45:33 /bsd: mfi0: logical drives 1, version 5.1.1-0038, 128MB
RAM

I will note that we needed to apply a driver patch to recognise this
card in 4.2 but that was simply to add the pci device type to the list
of other supported types.  I am unaware of any other changes.

thank you for your time
-denis

-- 
__
Denis Alan Hainsworth 
de...@alumni.brandeis.edu 



Re: Vlan Tag on Vlan Tag (l2tunneling)

2009-03-03 Thread Sam Fourman Jr.
On Thu, Aug 21, 2008 at 3:58 PM, Paul de Weerd we...@weirdnet.nl wrote:
 Works for me.

 (haven't tested this very extensively yet, and only OpenBSD -
 OpenBSD ... nor did I try the tcpdump patches .. will do so later)

 Thanks Reyk, cool stuff ;)

 Paul 'WEiRD' de Weerd
 - Show quoted text -
 On Thu, Aug 21, 2008 at 09:34:12PM +0200, Reyk Floeter wrote:
 | On Thu, Aug 21, 2008 at 04:05:50PM +0200, Claudio Jeker wrote:
 |   no point in just doing that.
 |  
 |   a button to change the ether type would make sense.
 |  
 | 
 |
 | this is not trivial because it would require a change in the Rx path
 | where it is currently matching the ethertype in ether_input() before
 | calling vlan_input().  do you want to call vlan_input() for every
 | other packet or do a configured type lookup all the time?  and what if
 | the user specifies an ethernet type that is conflicting with something
 | else?  i think it should really only be 0x8100 or 0x88a8.
 |
 |  If we stack vlan interfaces I don't see a real need for such a button.
 |  This could be figured out either at configuration time or on runtime.
 |  E.g. just check if the ethertype is 0x8100 and add the next vlan tag as
 |  0x88a8. This would also allow to use a bridge for qinq setups. Because of
 |  this I think doing it on runtime is the best.
 | 
 |
 | here is another approach defining QinQ-compliant interfaces as a new
 | cloner type; so you can stack 0x88a8 devices as you wish and it
 | doesn't need a new button in ifconfig.  it also uses a dedicated vlan
 | tag hash for Service VLANs to avoid tag/Id conflicts.
 |
 | # ifconfig em0 up
 | # ifconfig svlan100 vlandev em0
 | # ifconfig vlan200 vlandev svlan100 192.168.2.100
 |
 | reyk

I have a need for this patch and I would like to test it on OpenBSD 4.5.
the patch no longer applies in part because of changes to if_bridge.c
in Revision 1.173

I was wondering if someone had a updated patch laying around, also
what is the likelihood of this patch ever getting committed?

Sam Fourman Jr.
Fourman Networks



Re: disk perfomance issues with Symbios Logic MegaRAID SAS 1064R and mfi driver

2009-03-03 Thread Stuart Henderson
From those figures it looks like write cache may not be enabled.


On 2009-03-03, Denis Hainsworth de...@alumni.brandeis.edu wrote:
 Hello,

 Some what of a novice openbsd user and hope I didnt miss something obvious.  I
 have a box running openbsd 4.2 which I cannot upgrade for various
 reasons.  The machine has the  Symbios Logic MegaRAID SAS 1064R
 controller and currently has a 4 disk Raid5 set up in bios with Seagate
 ST9146802SS disks.   We also run the same machines with Linux and
 openbsd 4.2 with older hardware using an Ultra Scsi controller.

 Anyway we have some basic tests we run and noticed that a basic Bonnie++
 test on all 3 machines gave the following performance numbers.

 Openbsd 4.2 and Symbios SAS
 6073  K/sec Block Seq Output  and  83086 K/sec Block Seq Input 
 Linux RH 7 and Symbios SAS
 65096 K/sec Block Seq Output  and  165194 K/sec Block Seq Input
 Openbsd 4.2 and Adaptec SCSI
 30849 K/sec Block Seq Output  and  36291 K/sec Block Seq Input

 Now I wouldnt expect the numbers to match exactly given a number
 parameters but the 6073  K/sec Block Seq Output is somewhat of a
 concern.  Since it doesnt seem to affect Linux using the exact same
 hardware I think its most likly a driver and or configuration issue.
 So does anyone know if there are issues with the mfi driver or any
 configuration bits within openbsd I might be missing with regaurds to
 disk performance?

 Here's the exact line from syslog if thats of any help:
 Feb 18 19:45:33 /bsd: mfi0 at pci4 dev 14 function 0 Symbios Logic
 MegaRAID SAS 1064R rev 0x00: apic 8 int 18 (irq 5)
 Feb 18 19:45:33 /bsd: mfi0: logical drives 1, version 5.1.1-0038, 128MB
 RAM

 I will note that we needed to apply a driver patch to recognise this
 card in 4.2 but that was simply to add the pci device type to the list
 of other supported types.  I am unaware of any other changes.

 thank you for your time
 -denis



Re: Dual-port gigabit PCI card options

2009-03-03 Thread Stuart Henderson
On 2009-03-03, Dan dan-openbsd-m...@ourbrains.org wrote:
 Hi. What are my options for a well-supported 2-port PCI gigabit network
 card? Are intel cards well-supported? Note I am looking for older PCI,
 not PCI-E.

Intel are the easiest to find. They will be 64-bit PCI-X (not PCIE),
and these should work fine in a 32-bit slot providing no motherboard
components interfere.



OpenBSD PCI wireless card (for bridge)

2009-03-03 Thread Jon Fullmer

Hi all!

I've got an Intel server that I would like to turn into a wireless  
bridge. I'd be using OpenBSD 4.4, and I'm asking for recommendations  
on the wireless end. Is there a PCI (not PCI-E) card that would be  
well supported and provide good range? I'm looking for 802.11b/g.  
Anything else is nice, but not needed. Or perhaps would PCI not be the  
way to go (i.e., USB, something else I haven't considered)?


I have a SOHO wireless bridge, but I hate it (and I can't install  
OpenWRT or anything NICE on it). I'd like to get to know PF and  
OpenBSD a lot better, and this seemed like a good project.


Thoughts?

 - Jon



Re: disk perfomance issues with Symbios Logic MegaRAID SAS 1064R and mfi driver

2009-03-03 Thread Marco Peereboom
I think I have to conclude that you (or your hardware) are doing it
wrong.  Either you have interrupt issues or your raid card setup wrong.

I also have no idea how you measured these numbers so I can't deduce
any validity from them.

On Tue, Mar 03, 2009 at 05:45:02PM -0500, Denis Hainsworth wrote:
 Hello,
 
 Some what of a novice openbsd user and hope I didnt miss something obvious.  I
 have a box running openbsd 4.2 which I cannot upgrade for various
 reasons.  The machine has the  Symbios Logic MegaRAID SAS 1064R
 controller and currently has a 4 disk Raid5 set up in bios with Seagate
 ST9146802SS disks.   We also run the same machines with Linux and
 openbsd 4.2 with older hardware using an Ultra Scsi controller.
 
 Anyway we have some basic tests we run and noticed that a basic Bonnie++
 test on all 3 machines gave the following performance numbers.
 
 Openbsd 4.2 and Symbios SAS
 6073  K/sec Block Seq Output  and  83086 K/sec Block Seq Input 
 Linux RH 7 and Symbios SAS
 65096 K/sec Block Seq Output  and  165194 K/sec Block Seq Input
 Openbsd 4.2 and Adaptec SCSI
 30849 K/sec Block Seq Output  and  36291 K/sec Block Seq Input
 
 Now I wouldnt expect the numbers to match exactly given a number
 parameters but the 6073  K/sec Block Seq Output is somewhat of a
 concern.  Since it doesnt seem to affect Linux using the exact same
 hardware I think its most likly a driver and or configuration issue.
 So does anyone know if there are issues with the mfi driver or any
 configuration bits within openbsd I might be missing with regaurds to
 disk performance?
 
 Here's the exact line from syslog if thats of any help:
 Feb 18 19:45:33 /bsd: mfi0 at pci4 dev 14 function 0 Symbios Logic
 MegaRAID SAS 1064R rev 0x00: apic 8 int 18 (irq 5)
 Feb 18 19:45:33 /bsd: mfi0: logical drives 1, version 5.1.1-0038, 128MB
 RAM
 
 I will note that we needed to apply a driver patch to recognise this
 card in 4.2 but that was simply to add the pci device type to the list
 of other supported types.  I am unaware of any other changes.
 
 thank you for your time
 -denis
 
 -- 
 __
 Denis Alan Hainsworth 
 de...@alumni.brandeis.edu 



Re: 3Qs, including How insane to have /var mount with softraid discipline raid 1 ?

2009-03-03 Thread Marco Peereboom
#1
no

#2
i use softraid for all kinds of uses; nothing you mention here is odd or
out of place

#3
that is correct; the lazy author still hasn't finished partial bringup
and rebuilds.  that guy kind of sucks and needs to be reminded often to
get off his lazy slack bum butt.

On Tue, Mar 03, 2009 at 08:31:57PM +, ppru...@webengr.com wrote:
 #1
 In a real world for small non-profits,
 in many cases, its what was left over or donated, so
 question one, does the softraid, bioctl, have to much
 heartburn if the drives are not the same geometry...
 I've always used matching drives for raid of anytype,
 but even $60*2 for two drives is a stretch for some nonprofits these days


 #2
 And the next question in the subject, thinking
 about which mounted partition changes the most frequently
 through the day that would be /var
 The others, /usr for example don't change as much and
 could be rsync or tgz nightly...or weekly
 however... perhaps /home and /tmp, but definitely /var.
 could change significantly during the day.
 For example the log files, /var/mail, /var/mysql
 and so on are active.  I wander about /var/mysql
 and ldap being on a softraid.?

 How insane would it be to use the new softraid features
 for all of /var  
 to make a mirror raid 1 of say 3 drives and then dump
 and restore the orig. /var to that softraid and change /etc/fstab
 for /var to use it?


 #3
 Of note, as I understand (might not documented in man yet)
 if one or two of the three raid1 partitions making the volume fails,
 it will keep running but cannot be rebuilt...
 To 'rebuild' means dumping the volume, in this case /var with
 say 'dump' may be best over pax/tar and then making
 anew a softraid and restoring the dump.

 But what happens if the computer reboots with say the third
 drive missing the power cable? and it runs for a day or so,
 then tech reboots with molex plug put back it? does the
 softraid catch the third drive up?  This is something
 I guess I could test myself, just asking.


 tia.



xenocara: build problem: Package xdmcp was not found...

2009-03-03 Thread dtalk

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


Salutations --

This occurs when building xenocara after updating /usr/src, /usr/ports, 
/usr/xenocara to -stable from cvs and successfully building kernel and 
src:


- 
---
checking for XDMCP... Package xdmcp was not found in the pkg-config search path
configure: error: Package requirements (xdmcp) were not met:


Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables XDMCP_CFLAGS
and XDMCP_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

*** Error code 1

Stop in /usr/xenocara/lib/libX11 (line 149 of 
/usr/X11R6/share/mk/bsd.xorg.mk).

*** Error code 1

Stop in /usr/xenocara/lib/libX11 (line 185 of 
/usr/X11R6/share/mk/bsd.xorg.mk).

*** Error code 1

Stop in /usr/xenocara/lib (line 48 of /usr/share/mk/bsd.subdir.mk).
*** Error code 1

Stop in /usr/xenocara (line 48 of /usr/share/mk/bsd.subdir.mk).

- 
---

All the 4.4 sets are installed, and this system was built for this 
purpose and used for nothing else; it has no packages or ports added. 
I do not find xdmcp anywhere in the system, nor in ports.  Have I missed 
something blindingly obvious?


dmesg:

OpenBSD 4.4-stable (GENERIC) #2: Mon Mar  2 15:59:06 GMT 2009
r...@puffy64.flyingjoke.org:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 2134208512 (2035MB)
avail mem = 2072334336 (1976MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (45 entries)
bios0: vendor Phoenix Technologies LTD version 6.00 date 07/22/2008
bios0: VMware, Inc. VMware Virtual Platform
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP APIC BOOT
acpi0: wakeup devices USB_(S1)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiprt0 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0
acpibat0 at acpi0: BAT1 not present
acpibat1 at acpi0: BAT2 not present
acpiac0 at acpi0: AC unit online
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2399.88 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,SSE3,CX16,NXE,LONG
cpu0: 4MB 64b/line 16-way L2 cache
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 Intel 82443BX AGP rev 0x01
ppb0 at pci0 dev 1 function 0 Intel 82443BX AGP rev 0x01
pci1 at ppb0 bus 1
pcib0 at pci0 dev 7 function 0 Intel 82371AB PIIX4 ISA rev 0x08
pciide0 at pci0 dev 7 function 1 Intel 82371AB IDE rev 0x01: DMA, channel 0 
configured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets, initiator 7
cd0 at scsibus0 targ 0 lun 0: NECVMWar, VMware IDE CDR00, 1.00 ATAPI 5/cdrom 
removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
piixpm0 at pci0 dev 7 function 3 Intel 82371AB Power rev 0x08: SMBus disabled
vga1 at pci0 dev 15 function 0 VMware Virtual SVGA II rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
drm at vga1 unsupported
mpi0 at pci0 dev 16 function 0 Symbios Logic 53c1030 rev 0x01: irq 9
scsibus1 at mpi0: 16 targets, initiator 7
sd0 at scsibus1 targ 0 lun 0: VMware, Virtual disk, 1.0 SCSI2 0/direct fixed
sd0: 20480MB, 2610 cyl, 255 head, 63 sec, 512 bytes/sec, 41943040 sec total
mpi0: target 0 Sync at 160MHz width 16bit offset 127 QAS 1 DT 1 IU 1
em0 at pci0 dev 17 function 0 Intel PRO/1000MT (82545EM) rev 0x01: irq 11, 
address 00:50:56:00:10:15
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
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
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
mtrr: Pentium Pro MTRR support
softraid0 at root
root on sd0a swap on sd0b dump on sd0b


David Talkington
dt...@drizzle.com
- --
PGP key: http://www.flyingjoke.org/keys/801E3976.asc
iQEcBAEBAgAGBQJJrhqQAAoJEO7jL1CAHjl2mN4H/1Lwn16zxewrpDePfzbqROLv
tsj/C5RCjQs+TOqpE68gO4LBX4u3PEoYq6enDR/1XF8LQwLrOeMZ3regWW0HHA5u
mqIjjmc1S6YwRyt1t+xQUX6hloDdVKGOJ/vwBVz9zxo0tfkBtOOQ//Ym+AXDDE4X
VlhzHeIBgid98dx/FJsCAALtJ2q4J4Wu5DQfjkzEeI8S/YJXCiKJbCSSOiAFl+rs
02HxhAOwJQAj0NLQtH1a1O35WJXtHGfcJ6m8w/Pyv6Z0WIBKLffKrhDFzS+wVQVD
s1vK50McISmiIChYOAVhV/KGYZxwtmK5rqIxidDax5EPNRhlcrcqCO9T1XYL8bs=
=wmYS
-END PGP SIGNATURE-



Delaying BGPD Failover

2009-03-03 Thread Insan Praja SW

Hi Misc@,
I got 2 internet upstream providers, 1 is main and another is backup. I'd  
like to ask has anyone had experience to setup a measured failover time  
using either holdtime or keep-alive parameters. This is because of my main  
upstream bgp router is oftenly restarted (twice a week now), and yes their  
not using OpenBGPD. I'm thinking to delay fail-over sequence from 5 to 15  
minutes. If its not possible, then I'll go with scripts and cron.

Thanks,

--
insandotpraja(at)gmaildotcom



Re: xenocara: build problem: Package xdmcp was not found...

2009-03-03 Thread Matthieu Herrb
On Wed, Mar 4, 2009 at 7:07 AM,  dt...@drizzle.com wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1


 Salutations --

 This occurs when building xenocara after updating /usr/src, /usr/ports,
 /usr/xenocara to -stable from cvs and successfully building kernel and src:

 -
 ---
 checking for XDMCP... Package xdmcp was not found in the pkg-config search
 path
 configure: error: Package requirements (xdmcp) were not met:



What commands did you use to arrive here? I guess thatyou forgot to
run 'make bootstrap'.

Or you have a custom pkg-config somewhere that's used instead of
/usr/bin/pkg-pkgconfig.

If none of those hypothesis are correct, you'll need to provide the
full build log (ie make build  log 21).
-- 
Matthieu Herrb



Prop/I want to transfer $19.3 million in your account if u agree i give u detail

2009-03-03 Thread Aline Dansuki
Invitationnbsp;: Prop/I want to transfer $19.3 million in your account if u 
agree i give u detail.


Par votre htte Aline Dansuki:


 Date:  mercredi 4 mars 2009

 Heure: 7h 00 - 8h 00 (GMT+00:00)

Invitis:

 * bill.man...@unistudios.com
 * sudha...@cradle.com
 * sexyvi...@yahoo.co.uk
 * barryleje...@yahoo.co.uk
 * steve_wic...@yahoo.co.uk
 * patriciaheath...@yahoo.com
 * misc@openbsd.org
 * fxmzb...@yahoo.co.uk
 * jhorwit...@yahoo.com
 * rights4wo...@yahoo.com
 * taghreedmfara...@yahoo.co.uk
 * ronhi...@yahoo.com
 * kim.malvi...@colorado.edu
 * ckyer...@ncsu.edu
 * jillianl...@yahoo.com
 * rachelkendal2...@yahoo.co.uk
 * grimripe...@yahoo.com
 * razorwirepa...@yahoo.com
 * ar...@chembrit.co.uk
 * drge...@yahoo.com
 * step...@vetwork.abel.co.uk
 * jennifer_stidham2...@yahoo.com
 * adultpsychia...@yahoo.co.uk
 * lrmcgrat...@yahoo.com
 * knechtd...@yahoo.com
 * to...@kc.rr.com
 * gezagrol...@yahoo.com
 * ma...@lenthall121.freeserve.co.uk
 * sheila_...@yahoo.com
 * a_devarako...@yahoo.com
 * c...@btclick.com
 * edi...@medialens.org
 * jo_swin...@yahoo.co.uk
 * jbu...@simpol.org
 * est...@yahoo.com
 * incofere...@cableinet.co.uk
 * myfather442...@yahoo.com
 * blottc...@comcast.net
 * tteampractitio...@yahoo.co.uk
 * thegunnsal...@yahoo.com
 * philiphampto...@yahoo.co.uk
 * davidpicker...@mare-nostrum.co.uk
 * adelekan1...@yahoo.com
 * keziat...@yahoo.co.uk
 * tonypey...@yahoo.com
 * nota...@yahoo.com
 * andwedoitlike...@yahoo.com
 * fw...@yerkes.com
 * lrainvi...@yahoo.com
 * firewall-wiza...@nfr.net
 * chris_ed_d...@yahoo.co.uk
 * dalogi2...@yahoo.co.uk
 * avianat...@yahoo.com
 * alangrooc...@yahoo.co.uk
 * li...@www.human-nature.com28
 * san...@imprint.co.uk
 * o...@burnout.demon.co.uk
 * wraee_webmas...@yahoo.com
 * edgardoaguil...@yahoo.com
 * markrg...@yahoo.com
 * dpin...@yahoo.com
 * lady_t...@yahoo.comlady_t_93
 * r65web...@yahoo.co.uk
 * donfac...@donfactor.demon.co.uk
 * aimanwadie2...@yahoo.co.uk
 * idfridayfo...@yahoo.com
 * mhe...@yahoo.com
 * pow...@ptd.net
 * m...@bellsouth.net
 * quikn...@yahoo.com
 * osmc2...@yahoo.com
 * sapear...@yahoo.co
 * josh.suk...@yahoo.com
 * khaks...@yahoo.co.uk
 * coop_n...@yahoo.com
 * cer...@yahoo.com
 * jcer...@faculty.nesl.edu
 * smit_jadha...@yahoo.comor
 * smitjadha...@gmail.com
 * s...@snew.com

invitation_add_to_your_yahoo_calendar:

 
http://fr.calendar.yahoo.com//?v=60ST=20090304T07%2BTITLE=Prop/I+want+to+transfer+$19.3+million+in+your+account+if+u+agree+i+give+u+detailDUR=0100VIEW=dDESC=Prop/I+want+to+transfer+$19.3+million+in+your+account+if+u+agree+i+give+u+detailTYPE=10


Copyright ) 2009 Tous droits riservis.
 www.yahoo.fr

Donnies personnelles:
 http://privacy.yahoo.com/privacy/us

Conditions d'utilisation:
 http://docs.yahoo.com/info/terms/