Re: web sites not accessible

2007-02-12 Thread Timo Schoeler
In epistula a Gustavo Rios [EMAIL PROTECTED] die horaque Sun,
11 Feb 2007 21:08:08 -0200:

 Dear gentelmen/madams,
 
 i would like to thank you all for you suggestion. They were to the
 point. Now, one doubt raised up in regards to man 4 pppoe and the
 link suggested below.
 
 In theory, what should it be the maximum MSS over a PPPoE interface;
 1452 or 1454 ?
 
 Thanks once more.

hi,

see the article. it explains fairly well that it depends on the network
_behind_, mostly ATM, which works based on so-called cells.

if your paket fits in N cells without using an additional cell only
partly, it's perfect.

HTH,

timo

 On 2/11/07, Timo Schoeler [EMAIL PROTECTED] wrote:
  In epistula a Gustavo Rios [EMAIL PROTECTED] die horaque
  Sun, 11 Feb 2007 12:55:14 -0200:
 
   Thanks, but i am using kernel pppoe! How can it be changed?
 
  i'm not top-posting ;)
 
  might be of help
 
  http://www.mynetwatchman.com/kb/adsl/pppoemtu.htm
 
  /i'm not top-posting ;)
 
  HTH,
 
  timo
 
   On 2/11/07, Paul D. Ouderkirk [EMAIL PROTECTED] wrote:
On 2/10/07, Gustavo Rios [EMAIL PROTECTED] wrote:
 Dear list members,

 i am trying to build a firewall. Up to now, everything is ok,
 except for some http sites that cannot be shown.

...

 I can ping world outside my private network, as also telnet,
 ssh, etc ...

   
This may be a long-shot, but I once had similar symptoms on a
network with a PPPoE DSL connection.  Everything would work as I
expected, but certain web sites would just never load.
   
Try lowering the MTU on the PPPoE interface, it worked for me.
   
In /etc/ppp/ppp.conf:
   
set mtu max 1480
   
Try setting various values starting at 1480 and lowering the
value until the web page problem is fixed.
   
--
--
Paul D. Ouderkirk
Senior UNIX System Administrator
JadedPixel Technologies
[EMAIL PROTECTED]
--
laughing,
in the mechanism
-- William Gibson



Re: pf rules

2007-02-12 Thread Rogier Krieger

On 2/12/07, Artyom Goryainov [EMAIL PROTECTED] wrote:

block in quick on $ext_if proto tcp from {!$me, !$mynet} to $ext_if  port 80


You will probably want to see the PF FAQ [1] on this, specifically the
section on Lists and Macros. It tells you why you should use tables
for this purpose. The list expands to a set of separate single rules,
for !$me and !$mynet respectively.

To quote from the FAQ:

Beware of constructs like the following, dubbed negated lists, which
are a common mistake:

   pass in on fxp0 from { 10.0.0.0/8, !10.1.2.3 }

While the intended meaning is usually to match any address within
10.0.0.0/8, except for 10.1.2.3, the rule expands to:

   pass in on fxp0 from 10.0.0.0/8
   pass in on fxp0 from !10.1.2.3


References:
1. PF FAQ - Lists and Macros
http://www.openbsd.org/faq/pf/macros.html


--
If you don't know where you're going, any road will get you there.



Re: pf rules

2007-02-12 Thread Paul Pruett
block in quick on $ext_if proto tcp from {!$me, !$mynet} to $ext_if  port 
80



read also
http://www.openbsd.org/faq/pf/tables.html

another way to deal with negative in your pf.conf
is to use tables... maybe try a table with safeip combinations
like, but do test and read and try variations, this may be wrong also :)


table safeip {192.168.1.0/24, !192.168.1.200}
...
...
...
block in log quick on $ext_if proto {tcp,udp} from !safeip to any port 
80




Re: pcn in VMware, 5KB/s

2007-02-12 Thread Stephan A. Rickauer
Srebrenko Sehic wrote:
 You could always try using vmxnet/vic.

Using the Intel 'em' driver is also an option.

 ethernet0.virtualDev = vmxnet

ethernet0.virtualDev = e1000

-- 

 Stephan A. Rickauer

 ---
 Institute of Neuroinformatics Tel  +41 44 635 30 50
 University / ETH Zurich   Sec  +41 44 635 30 52
 Winterthurerstrasse 190   Fax  +41 44 635 30 53
 CH-8057 ZurichWeb  www.ini.unizh.ch

 RSA public key:  https://www.ini.uzh.ch/~stephan/pubkey.asc
 ---



Re: Writing Device Drivers Dokumentation

2007-02-12 Thread Reyk Floeter
On Sun, Feb 11, 2007 at 10:12:25AM +0100, Marc Balmer wrote:
 Markus Ritzer wrote:
 
 I would like to write a framebuffer driver for OpenBSD (for the MS Xbox 
 platform).
 
 Where can I find documentation about writing OpenBSD drivers in general or 
 especially for framebuffers?
 
 There is a list of books that help at http://www.openbsd.org/books.html.
 I found The Design and Implementation of the 4.4BSD Operating System
 helpful.
 
 Then a close look at the wscons source code in sys/dev/wscons/ will
 surely help.
 

and there's a nice quick introduction from jsg:
http://www.openbsd.org/papers/opencon06-drivers/

reyk



Port trunking/bonding

2007-02-12 Thread Jon Morby

Hi

I'm trying to run an experiment (initially) with regards bonding/ 
trunking ethernet ports under OpenBSD (current) .. but I'm hitting a  
snag and I haven't been able to google my way out of it as yet ...


I have 2 x Broadcom NICS set at 10mbit full duplex (for the purposes  
of the test .. in real life these will be either 2 or 4 x GigE ports)  
bonded together using trunk(4) (it's likely to be some time before we  
can afford 10 Gig infrastructure, but need more than 1Gig between  
certain segments of our network)


My problem is that graphs of the 2 cisco ports show traffic is only  
going via the 1 port and not being balanced across both ports as I  
would have expected.


What I need is what I believe is referred to as link aggregation ..  
ie traffic equal to the sum of all members of the trunk(4) and not  
just the one interface.


Helpful pointers gratefully received!

OpenBSD 4.0-current (GENERIC) #1: Sun Feb 11 23:29:59 GMT 2007

brgphy1 at bge1 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0
bge0 at pci3 dev 0 function 0 Broadcom BCM5721 rev 0x11, BCM5750 B1  
(0x4101): irq 12, address 00:30:48:83:39:c4

brgphy0 at bge0 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0
bge1 at pci4 dev 0 function 0 Broadcom BCM5721 rev 0x11, BCM5750 B1  
(0x4101): irq 10, address 00:30:48:83:39:c5



cat /etc/hostname.trunk0
up trunkproto loadbalance trunkport bge0 trunkport bge1
cat /etc/hostname.bge0
up
cat /etc/hostname.bge1
up

ifconfig trunk0
trunk0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:30:48:83:39:c4
trunk: trunkproto loadbalance
trunkport bge1 active
trunkport bge0 master,active
groups: trunk
media: Ethernet autoselect
status: active
inet6 fe80::230:48ff:fe83:39c4%trunk0 prefixlen 64 scopeid 0x6

I have a cisco 3750 set with the 2 ports in their own channel

interface Port-channel1
switchport trunk encapsulation dot1q
switchport mode trunk
!
interface GigabitEthernet1/0/1
description router-trunk
switchport trunk encapsulation dot1q
switchport mode trunk
duplex full
speed auto 10
channel-group 1 mode on
spanning-tree portfast trunk
!
interface GigabitEthernet1/0/2
description router-trunk
switchport trunk encapsulation dot1q
switchport mode trunk
duplex full
speed auto 10
channel-group 1 mode on
spanning-tree portfast trunk


sh ether 1 s
Flags:  D - downP - in port-channel
I - stand-alone s - suspended
H - Hot-standby (LACP only)
R - Layer3  S - Layer2
U - in use  f - failed to allocate aggregator
u - unsuitable for bundling
w - waiting to be aggregated
d - default port


Number of channel-groups in use: 2
Number of aggregators:   2

Group  Port-channel  ProtocolPorts
--+-+--- 
+---

1  Po1(SU)  -Gi1/0/1(P)  Gi1/0/2(P)

I have a host configured on a GigE port connected directly to the  
3750 and the OpenBSD box setup as a router


vlan309: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:30:48:83:39:c4
vlan: 309 priority: 0 parent interface: trunk0
groups: vlan
inet6 fe80::230:48ff:fe83:39c4%vlan309 prefixlen 64 scopeid 0x8
inet 80.252.126.1 netmask 0xff00 broadcast 80.252.126.255






--
Jon Morby
FidoNet Registration Services Ltd
tel: 0845 004 3050 / fax: 0845 004 3051
web: http://www.fido.net/



Re: Port trunking/bonding

2007-02-12 Thread Stuart Henderson
On 2007/02/12 12:44, Jon Morby wrote:
 My problem is that graphs of the 2 cisco ports show traffic is only  
 going via the 1 port and not being balanced across both ports as I  
 would have expected.

loadbalance hashes the header to determine which link to use; you might
want round-robin instead? check trunk(4) for descriptions.



Re: Port trunking/bonding

2007-02-12 Thread Jon Morby

On 12 Feb 2007, at 13:18, Stuart Henderson wrote:


On 2007/02/12 12:44, Jon Morby wrote:

My problem is that graphs of the 2 cisco ports show traffic is only
going via the 1 port and not being balanced across both ports as I
would have expected.


loadbalance hashes the header to determine which link to use; you  
might

want round-robin instead? check trunk(4) for descriptions.



I should have said, I have also tried with roundrobin

and also removing the channel-group from the switch.

The only real performance increase I've seen is with the channel- 
group removed in which case we do see some traffic across both ports,  
but we still only get about 1.4MB/sec and not the 1.8MB/s-2.2MB/s I  
would have expected to see from scp transfers. (graphs show 8Mbit  
which matches what I'm seeing from scp)


With the ports set to GigE we see a major speed increase, so it's not  
a bottle neck on the sending machines as far as I can ascertain.








--
Jon Morby
FidoNet Registration Services Ltd
tel: 0845 004 3050 / fax: 0845 004 3051
web: http://www.fido.net/



altq+hfsc in pf

2007-02-12 Thread Ralf Braga
 I'm with one few dificults for configure altq+pf+hfsc,

Need balancear traffic of the output and input,

See my script:

#Default configuration
##
set limit { states 4, frags 2, src-nodes 35000 }
set block-policy return
set loginterface fxp0

set timeout { interval 10, frag 30 }
set timeout { tcp.first 60, tcp.opening 30, tcp.established 3600 }
set timeout { udp.first 20, udp.single 10, udp.multiple 15 }
set timeout { icmp.first 11, icmp.error 6 }
set timeout { other.first 40, other.single 20, other.multiple 30 }

scrub in all fragment reassemble no-df
scrub out all random-id

##
#IP table
##
table invalidos { 10.0.0.0/8 , 192.168.0.0/16 ,
172.16.0.0/12
}

table fw_ip {  10.0.254.254/32, 200.166.104.200/32 }

# Clientes - Objetivo - Limitar a saida em 200Kbps e balancear a banda de
download e upload
table sindimaq_cci  { 10.1.201.0/21 }
table condordia_cci  { 10.200.0.0/21 }

portas_lixo=69 135 137 139 445  7778 8594 8563 3 11173
portas_servico=20 21 22 23 25 69 80 81 110 113 123 143 135 137 139 161 162
443 445 514 587 873 901 993 995 1023 1025 1026 1080 1234 1433 1434 2745 3128
3306 3410 5554 6129 6588 8080 8866 9898 9996 12345 17300 27374 

##
#Rules of QoS for Upload
##
altq on { rl0 } hfsc bandwidth 6Mb  qlimit 75 queue { deflt_up,
champtower_up }
queue   deflt_up bandwidth 3Mb qlimit 75 priority 3 hfsc(linkshare 3Mb
default realtime 4Mb upperlimit 6Mb red)
queue   champtower_up bandwidth 3096Kb qlimit 75 priority 5 hfsc(realtime
3096Kb upperlimit 3096Kb red) { sindimaq_cci_u,condordia_cci_u }
queue sindimaq_cci_u bandwidth 64Kb qlimit 75 priority 5
hfsc(linkshare 64Kb realtime 64Kb upperlimit 200Kb red)
queue condordia_cci_u bandwidth 64Kb qlimit 75 priority 5
hfsc(realtime 64Kb upperlimit 200Kb red)


##
#Default rules
##
pass in on { fxp0 rl0 }  keep state
pass out  keep state
pass quick on lo all
pass quick  proto icmp
antispoof quick for lo

##

If help me, thanks,

Why the address of list about altq ?

-- 
Ralf Braga



BGP Connection For Two OpenBSD Machines

2007-02-12 Thread demuel
Anyone,

I have one OpenBGP machine running OpenBGPd that is currently connected to the 
Internet running
OpenBGPd.  Furthermore, it has two NIC interfaces. The external NIC is 
designated as xl0(3com)
whereas the internal NIC is rl0(rtlink). From the internal NIC, I connected it 
to another OpenBSD
machine running OpenBPGd. I run ospfd and bgpd in these two machines. The 
results for both bgpctl
and ospfctl showed that bgp and ospf is working.

But from the OpenBSD machine behind the one that has internet connection, I 
cannot ping the
internet. I added entries in /etc/resolv.conf and an entry /etc/sysctl.conf has 
been commented
out. Yet still not working. Any tips for this? I


Regards,
Demuel



Re: Port trunking/bonding

2007-02-12 Thread Jon Morby

Actually .. maybe I'm expecting too much from this ...

With 1 of the ports disabled, and roundrobin specified - transfer  
speeds dropped from 1.2MB/s to about 780KB/s


Certainly at GigE speeds the graphs look a little more as I would  
expect, so it could also be an artefact of testing at 10baseT I guess


--
Jon Morby
FidoNet Registration Services Ltd
tel: 0845 004 3050 / fax: 0845 004 3051
web: http://www.fido.net/



Re: Port trunking/bonding

2007-02-12 Thread Reyk Floeter
On Mon, Feb 12, 2007 at 01:30:18PM +, Jon Morby wrote:
 On 12 Feb 2007, at 13:18, Stuart Henderson wrote:
 
 On 2007/02/12 12:44, Jon Morby wrote:
 My problem is that graphs of the 2 cisco ports show traffic is only
 going via the 1 port and not being balanced across both ports as I
 would have expected.
 
 loadbalance hashes the header to determine which link to use; you  
 might
 want round-robin instead? check trunk(4) for descriptions.
 
 
 I should have said, I have also tried with roundrobin
 
 and also removing the channel-group from the switch.
 

the default cisco port/etherchannel link aggregation works similar to
the loadbalance mode. some switches/ios versions allow to use other
protocols, like roundrobin.

 The only real performance increase I've seen is with the channel- 
 group removed in which case we do see some traffic across both ports,  
 but we still only get about 1.4MB/sec and not the 1.8MB/s-2.2MB/s I  
 would have expected to see from scp transfers. (graphs show 8Mbit  
 which matches what I'm seeing from scp)
 
 With the ports set to GigE we see a major speed increase, so it's not  
 a bottle neck on the sending machines as far as I can ascertain.
 

again, the roundrobin mode will distribute every single packet over
the ports and you may get a speed increase with single connections.

the loadbalance mode will hash the packet headers (src/dst ethernet,
src/dst ip, vlan) and distribute the connections over the ports. you
may get an overall bandwidth increase with many connections from
different addresses/vlans.

by default, all the known vendors do a hash-based loadbalancing
(cizzco-eeh etherchannel/FEC, hp trunk, ...). it is a marketing lie
that it will increase the performance by the number of ports, it
heavilly depends on your individual network traffic and the number of
different connections, but it will never exceed the maximum link speed
for a single connection.

as is said, roundrobin mode may increase the speed, but it also
increases the interrupt load and many other factors. and it doesn't
work very well with non-openbsd systems on the other side. i have seen
it only once, that i got ~166Mbit/s with a crosslink trunk between 2x2
rl(4) nics.

use trunking/bonding to increase the bandwidth and to add additional
layer 2 redundancy.

reyk



Re: Port trunking/bonding

2007-02-12 Thread Claudio Jeker
On Mon, Feb 12, 2007 at 03:09:27PM +0100, Reyk Floeter wrote:
 On Mon, Feb 12, 2007 at 01:30:18PM +, Jon Morby wrote:
  On 12 Feb 2007, at 13:18, Stuart Henderson wrote:
  
  On 2007/02/12 12:44, Jon Morby wrote:
  My problem is that graphs of the 2 cisco ports show traffic is only
  going via the 1 port and not being balanced across both ports as I
  would have expected.
  
  loadbalance hashes the header to determine which link to use; you  
  might
  want round-robin instead? check trunk(4) for descriptions.
  
  
  I should have said, I have also tried with roundrobin
  
  and also removing the channel-group from the switch.
  
 
 the default cisco port/etherchannel link aggregation works similar to
 the loadbalance mode. some switches/ios versions allow to use other
 protocols, like roundrobin.
 
  The only real performance increase I've seen is with the channel- 
  group removed in which case we do see some traffic across both ports,  
  but we still only get about 1.4MB/sec and not the 1.8MB/s-2.2MB/s I  
  would have expected to see from scp transfers. (graphs show 8Mbit  
  which matches what I'm seeing from scp)
  
  With the ports set to GigE we see a major speed increase, so it's not  
  a bottle neck on the sending machines as far as I can ascertain.
  
 
 again, the roundrobin mode will distribute every single packet over
 the ports and you may get a speed increase with single connections.
 
 the loadbalance mode will hash the packet headers (src/dst ethernet,
 src/dst ip, vlan) and distribute the connections over the ports. you
 may get an overall bandwidth increase with many connections from
 different addresses/vlans.
 
 by default, all the known vendors do a hash-based loadbalancing
 (cizzco-eeh etherchannel/FEC, hp trunk, ...). it is a marketing lie
 that it will increase the performance by the number of ports, it
 heavilly depends on your individual network traffic and the number of
 different connections, but it will never exceed the maximum link speed
 for a single connection.
 
 as is said, roundrobin mode may increase the speed, but it also
 increases the interrupt load and many other factors. and it doesn't
 work very well with non-openbsd systems on the other side. i have seen
 it only once, that i got ~166Mbit/s with a crosslink trunk between 2x2
 rl(4) nics.
 

Roundrobin may increase packet reordering which in turn reduces the tcp
window size because tcp thinks it is a network congestion. In the worst
case one connection may run slower over two link trunk than over a single
link. You need a real multilink capable L2 portocol (like ppp) to fully
use the bandwith of the additional link. Ethernet was not designed for
that and so bonding/trunking of interfaces give you a sub-optimal
performance improvement.  
-- 
:wq Claudio



Re: BGP Connection For Two OpenBSD Machines

2007-02-12 Thread Ronnie Garcia

[EMAIL PROTECTED] a icrit :

Anyone,

I have one OpenBGP machine running OpenBGPd that is currently connected to the 
Internet running
OpenBGPd.  Furthermore, it has two NIC interfaces. The external NIC is 
designated as xl0(3com)
whereas the internal NIC is rl0(rtlink). From the internal NIC, I connected it 
to another OpenBSD
machine running OpenBPGd. I run ospfd and bgpd in these two machines. The 
results for both bgpctl
and ospfctl showed that bgp and ospf is working.

But from the OpenBSD machine behind the one that has internet connection, I 
cannot ping the
internet. I added entries in /etc/resolv.conf and an entry /etc/sysctl.conf has 
been commented
out.


Which one ? net.inet.ip.forwarding ?

--
Ronnie Garcia r.garcia at ovea dot com



Re: BGP Connection For Two OpenBSD Machines

2007-02-12 Thread demuel
in /etc/sysctl.conf, the net.inet.ip.forwarding=1 and in /etc/resolv.conf i 
added a valid public
ip address as well.

 [EMAIL PROTECTED] a icrit :
 Anyone,

 I have one OpenBGP machine running OpenBGPd that is currently connected to 
 the Internet running
 OpenBGPd.  Furthermore, it has two NIC interfaces. The external NIC is 
 designated as xl0(3com)
 whereas the internal NIC is rl0(rtlink). From the internal NIC, I connected 
 it to another
 OpenBSD
 machine running OpenBPGd. I run ospfd and bgpd in these two machines. The 
 results for both
 bgpctl
 and ospfctl showed that bgp and ospf is working.

 But from the OpenBSD machine behind the one that has internet connection, I 
 cannot ping the
 internet. I added entries in /etc/resolv.conf and an entry /etc/sysctl.conf 
 has been commented
 out.

 Which one ? net.inet.ip.forwarding ?

 --
 Ronnie Garcia r.garcia at ovea dot com



Re: BGP Connection For Two OpenBSD Machines

2007-02-12 Thread demuel
These are my configurations:

OpenBSD With Internet And OpenBGP Running
-

external ip xl0(internet): some-public-ip
internal ip rl0: 192.168.111.254/30

$ sudo bgpctl -n show summary
Neighbor ASMsgRcvdMsgSentOutQ  Up/Down  State/PrefixRcvd
192.168.111.253  65533   2723   2726 0 08:50:13  0


OpenBSD machine that established BGP session to the gateway
---

$ sudo bgpctl -n show summary
Neighbor ASMsgRcvdMsgSentOutQ  Up/Down  State/PrefixRcvd
192.168.111.254  65535   1057   1058 0 08:47:34  1

Checking the RIB


$ sudo bgpctl show rib
flags: * = Valid,  = Selected, I = via IBGP, A = Announced
origin: i = IGP, e = EGP, ? = Incomplete

flags destination gateway  lpref   med aspath origin
AI*  192.168.111.0/240.0.0.0100 0 i
* 192.168.111.0/24192.168.111.254100 0 65535 i


Checking the RIB


$ sudo bgpctl show fib
flags: * = valid, B = BGP, C = Connected, S = Static
   N = BGP Nexthop reachable via this route
   r = reject route, b = blackhole route

flags destination  gateway
*CN   192.168.111.252/30   link#1
*S r  224.0.0.0/4  127.0.0.1
*S r  ::/96::1
*S r  ::/104   ::1
* ::1/128  ::1
*S r  ::127.0.0.0/104  ::1
*S r  ::224.0.0.0/100  ::1
*S r  ::255.0.0.0/104  ::1
*S r  :::0.0.0.0/96::1
*S r  2002::/24::1
*S r  2002:7f00::/24   ::1
*S r  2002:e000::/20   ::1
*S r  2002:ff00::/24   ::1
*S r  fe80::/10::1
*Cfe80::%rl0/64link#1
 Cfe80::%dc0/64link#2
*Cfe80::%xl0/64link#3
* fe80::%lo0/64fe80::1%lo0
*S r  fec0::/10::1
* ff01::/32::1
*Cff02::%rl0/32link#1
 Cff02::%dc0/32link#2
*Cff02::%xl0/32link#3
* ff02::%lo0/32::1


Everything appears to be valid. But if I put 192.168.111.254 in /etc/mygate, I 
could get internet.
Is this BGP?

Side comments?


Regards,
demuel





$sudo bgpctl -n show summary

 On Mon, Feb 12, 2007 at 01:37:28PM -, [EMAIL PROTECTED] wrote:
 Anyone,

 I have one OpenBGP machine running OpenBGPd that is currently connected
 to the Internet running OpenBGPd.  Furthermore, it has two NIC
 interfaces. The external NIC is designated as xl0(3com) whereas the
 internal NIC is rl0(rtlink). From the internal NIC, I connected it to
 another OpenBSD machine running OpenBPGd. I run ospfd and bgpd in these
 two machines. The results for both bgpctl and ospfctl showed that bgp
 and ospf is working.

 But from the OpenBSD machine behind the one that has internet
 connection, I cannot ping the internet. I added entries in
 /etc/resolv.conf and an entry /etc/sysctl.conf has been commented out.
 Yet still not working. Any tips for this? I


 Check the RIB and the kernel routing table. Do the routes look ok? Is the
 fib coupled? Is the nexthop valid? Does the RIB on your secondary bgpd
 look OK -- valid, correct nexthop?

 --
 :wq Claudio



openLDAP Unrecognized database type (bdb)

2007-02-12 Thread Antonis Faragitakis

Hi all,


im trying to install openldap-server-2.3.11p4.tgz (i386) and
openldap-client-2.3.11p4.tgz (i386) under OpenBSD3.9. After
i've configured my slapd.conf im trying to start the server (slapd -d4 )
but the i get the following error:
# /usr/local/libexec/slapd -d 4
@(#) $OpenLDAP: slapd 2.3.11 (Mar 1 2006 13:27:09) $
@i386.ports.openbsd.org:/usr/obj/i386/openldap-2.3.11/build-i386/servers/slapd
daemon_init: null
Unrecognized database type (bdb)
/etc/openldap/slapd.conf: line 79: database failed init (bdb)!
slapd stopped.
connections_destroy: nothing to destroy.

anyone else had the same error?
any solution(s) ?

Thanks
Atnonis



COMPAT_LINUX in kernel

2007-02-12 Thread Karel Kulhavy
Hello

How do I figure out if my kernel was compiled with COMPAT_LINUX option or not?
I didn't compile it. I put COMPAT_LINUX openbsd kernel into google but didn't
find anything useful in the first several pages.

I have 4.0 on i386 installed from a CD it must be running the default kernel.

CL



Re: Writing Device Drivers Dokumentation

2007-02-12 Thread Nick !

On 2/12/07, Reyk Floeter [EMAIL PROTECTED] wrote:

On Sun, Feb 11, 2007 at 10:12:25AM +0100, Marc Balmer wrote:
 There is a list of books that help at http://www.openbsd.org/books.html.
 I found The Design and Implementation of the 4.4BSD Operating System
 helpful.

 Then a close look at the wscons source code in sys/dev/wscons/ will
 surely help.


and there's a nice quick introduction from jsg:
http://www.openbsd.org/papers/opencon06-drivers/


This is great, it's the way in I've been searching for.

Tell me, it's a joke when it says use electron microscope at
http://www.openbsd.org/papers/opencon06-drivers/mgp00020.html right?

-Nick



Re: BGP Connection For Two OpenBSD Machines

2007-02-12 Thread Stuart Henderson
 OpenBSD With Internet And OpenBGP Running

Does this one announce a default route into bgp to the other machine?
('announce default-route')

 OpenBSD machine that established BGP session to the gateway

Does this one accept a default route announced by the other machine?
(comment out 'deny from any prefix 0.0.0.0/0')

 $ sudo bgpctl show rib

(if you're in wheel, you can skip the sudo.)

  Check the RIB and the kernel routing table. Do the routes look ok? Is the
  fib coupled? Is the nexthop valid? Does the RIB on your secondary bgpd
  look OK -- valid, correct nexthop?

'bgpctl sh nex' to check nexthops.



Re: openLDAP Unrecognized database type (bdb)

2007-02-12 Thread Vijay Sankar
On Monday 12 February 2007 09:27, Antonis Faragitakis wrote:
 Hi all,


 im trying to install openldap-server-2.3.11p4.tgz (i386) and
 openldap-client-2.3.11p4.tgz (i386) under OpenBSD3.9. After
 i've configured my slapd.conf im trying to start the server (slapd -d4 )
 but the i get the following error:
 # /usr/local/libexec/slapd -d 4
 @(#) $OpenLDAP: slapd 2.3.11 (Mar 1 2006 13:27:09) $
 @i386.ports.openbsd.org:/usr/obj/i386/openldap-2.3.11/build-i386/servers/sl
apd daemon_init: null
 Unrecognized database type (bdb)
 /etc/openldap/slapd.conf: line 79: database failed init (bdb)!
 slapd stopped.
 connections_destroy: nothing to destroy.

 anyone else had the same error?
 any solution(s) ?

FWIW, there is a newer version of the package --  
openldap-server-2.3.11p5.tgz -- and IIRC it works better than 
openldap-server-2.3.11p4.tgz on OpenBSD 3.9. 

Also, if you are using bdb as the backend database, you have to install the 
bdb flavor of openldap-server from ports. If you prefer to use package 
instead of ports, you have to use ldbm as the backend database.



 Thanks
 Atnonis


 !DSPAM:1,45d08784138061220213263!

-- 
Vijay Sankar
ForeTell Technologies Limited
59 Flamingo Avenue, Winnipeg, MB, Canada R3J 0X6
Phone: +1 (204) 885-9535, E-Mail: [EMAIL PROTECTED]



Re: COMPAT_LINUX in kernel

2007-02-12 Thread Miod Vallat
How do I figure out if my kernel was compiled with COMPAT_LINUX   
option or not?
I didn't compile it. I put COMPAT_LINUX openbsd kernel into google  
 but didn't

find anything useful in the first several pages.


``sysctl kern.emul'' will list the available emulations.


I have 4.0 on i386 installed from a CD it must be running the default kernel.


The GENERIC kernel on i386 is compiled with COMPAT_LINUX.

Miod



Re: COMPAT_LINUX in kernel

2007-02-12 Thread Nick !

On 2/12/07, Karel Kulhavy [EMAIL PROTECTED] wrote:

Hello

How do I figure out if my kernel was compiled with COMPAT_LINUX option or not?
I didn't compile it. I put COMPAT_LINUX openbsd kernel into google but didn't
find anything useful in the first several pages.

I have 4.0 on i386 installed from a CD it must be running the default kernel.


http://www.openbsd.org/faq/faq9.html#Interact
OpenBSD/i386 is able to run Linux binaries when the kernel is
compiled with the COMPAT_LINUX option and the runtime sysctl
kern.emul.linux is also set. If you are using the GENERIC kernel
(which you should be), COMPAT_LINUX is already enabled, and you will
just need to do:

-Nick



Re: COMPAT_LINUX in kernel

2007-02-12 Thread Otto Moerbeek
On Mon, 12 Feb 2007, Karel Kulhavy wrote:

 Hello
 
 How do I figure out if my kernel was compiled with COMPAT_LINUX option or not?
 I didn't compile it. I put COMPAT_LINUX openbsd kernel into google but 
 didn't
 find anything useful in the first several pages.
 
 I have 4.0 on i386 installed from a CD it must be running the default kernel.

It depends on platform.

$ grep COMPAT_LINUX /usr/src/sys/arch/*/conf/GENERIC

-Otto



Re: Port trunking/bonding

2007-02-12 Thread Jon Morby

On 12 Feb 2007, at 14:31, Claudio Jeker wrote:



Roundrobin may increase packet reordering which in turn reduces the  
tcp
window size because tcp thinks it is a network congestion. In the  
worst
case one connection may run slower over two link trunk than over a  
single
link. You need a real multilink capable L2 portocol (like ppp) to  
fully

use the bandwith of the additional link. Ethernet was not designed for
that and so bonding/trunking of interfaces give you a sub-optimal
performance improvement.
--
:wq Claudio




Thanks

That explains a lot 

I guess until we can afford / source / upgrade to 10Gig capable  
infrastructure, we're stuck with bonding and the issues that you  
describe.


It's certainly going to be better than the packet loss we'd see  
trying to squeeze 1.6Gbit of traffic down a 1Gbit connection I guess  
- even if we have to bond 3 GigE links together to ensure we allow  
for over head


Cheers

--
Jon Morby
FidoNet Registration Services Ltd
tel: 0845 004 3050 / fax: 0845 004 3051
web: http://www.fido.net/



PowerEdge 2950 sd0: not queued: error 5

2007-02-12 Thread Alejandro Lozanoff
 

Re: BGP Connection For Two OpenBSD Machines

2007-02-12 Thread demuel
Where should I suppose to declare announce default-route? And I commented all 
entries in the

# filter out prefixes longer than 24 or shorter than 8 bits
# do not accept a default route
# filter bogus networks

In the internal OpenBSD machine, I did invoke:

$ sudo bgpctl sh next
Nexthop  State
192.168.111.254  valid rl0 UP, Ethernet, active, 100 MBit/s

$ ping www.yahoo.com
ping: unknown host: www.yahoo.com

$ ping 192.168.111.254
PING 192.168.111.254 (192.168.111.254): 56 data bytes
64 bytes from 192.168.111.254: icmp_seq=0 ttl=255 time=0.435 ms
--- 192.168.111.254 ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.435/0.435/0.435/0.000 ms
$


Any comments?


Regards,
demuel


 OpenBSD With Internet And OpenBGP Running

 Does this one announce a default route into bgp to the other machine?
 ('announce default-route')

 OpenBSD machine that established BGP session to the gateway

 Does this one accept a default route announced by the other machine?
 (comment out 'deny from any prefix 0.0.0.0/0')

 $ sudo bgpctl show rib

 (if you're in wheel, you can skip the sudo.)

  Check the RIB and the kernel routing table. Do the routes look ok? Is the
  fib coupled? Is the nexthop valid? Does the RIB on your secondary bgpd
  look OK -- valid, correct nexthop?

 'bgpctl sh nex' to check nexthops.



compat_linux: Bad system call

2007-02-12 Thread Karel Kulhavy
Hello

OpenBSD 4.0, i386, trying to copy from a 2007 Gentoo Linux.

I made sure there is kern.emul.linux=1 in /etc/sysctl.conf and the machine is
rebooted. Then I installed the Redhat package. Then I wanted to make the yes
program work. I copied all the libraries from the Linux to /emul/linux/...:
[EMAIL PROTECTED] ~ $ ldd `which yes`
linux-gate.so.1 =  (0xe000)
libc.so.6 = /lib/libc.so.6 (0xb7e37000)
/lib/ld-linux.so.2 (0xb7f65000)

There is no file named *linux-gate* so I didn't copy this one. ld-linux.so.2 is
copied, it's symlink dereference too, has the same length. The same holds for
the libc. Then I made sure ld-2.4.so, ld.so.cache and ld.so.conf
are copied and have the same length.

Now when I run ./yes in my home directory under the user clock, I get
Bad system call (core dumped). I tried under root, the same.

#0  0x4ca55282 in ?? ()
No symbol table info available.
#1  0x0208 in ?? ()
No symbol table info available.
#2  0x0001 in ?? ()
No symbol table info available.
#3  0x4ae90fdc in ?? ()
No symbol table info available.
#4  0x4ae963e0 in ?? ()
No symbol table info available.
#5  0x in ?? ()
No symbol table info available.
#6  0x51a7bab0 in ?? ()
No symbol table info available.
#7  0x000f in ?? ()
No symbol table info available.
#8  0x0051 in ?? ()
No symbol table info available.
#9  0x4ca6cfbc in ?? ()
No symbol table info available.
#10 0x4ca6d6c0 in ?? ()
No symbol table info available.
#11 0xcf7ca108 in ?? ()
---Type return to continue, or q return to quit---
No symbol table info available.
#12 0xcf7ca300 in ?? ()
No symbol table info available.
#13 0x4ca56872 in ?? ()
No symbol table info available.
#14 0x in ?? ()
No symbol table info available.

[EMAIL PROTECTED]:~$ kdump
 23719 ktrace   RET   ktrace 0
 23719 ktrace   CALL  execve(0xcf7d33a7,0xcf7d3234,0xcf7d323c)
 23719 ktrace   NAMI  ./ktrace.out
 23719 ktrace   RET   execve -1 errno 13 Permission denied
 23719 ktrace   CALL  mprotect(0x89e16000,0x1000,0x3)
 23719 ktrace   RET   mprotect 0
 23719 ktrace   CALL  mprotect(0x89e16000,0x1000,0x1)
 23719 ktrace   RET   mprotect 0
 23719 ktrace   CALL  write(0x2,0xcf7d2850,0x8)
 23719 ktrace   GIO   fd 2 wrote 8 bytes
   ktrace: 
 23719 ktrace   RET   write 8
 23719 ktrace   CALL  write(0x2,0xcf7d2870,0x1d)
 23719 ktrace   GIO   fd 2 wrote 29 bytes
   exec of './ktrace.out' failed
 23719 ktrace   RET   write 29/0x1d
 23719 ktrace   CALL  write(0x2,0x3c0021b8,0x2)
 23719 ktrace   GIO   fd 2 wrote 2 bytes
   : 
 23719 ktrace   RET   write 2
 23719 ktrace   CALL  issetugid()
 23719 ktrace   RET   issetugid 0
 23719 ktrace   CALL  open(0xcf7d2c20,0,0)
 23719 ktrace   NAMI  /usr/share/nls/C/libc.cat
 23719 ktrace   RET   open 3
 23719 ktrace   CALL  fstat(0x3,0xcf7d2b80)
 23719 ktrace   RET   fstat 0
 23719 ktrace   CALL  mmap(0,0xe5a,0x1,0x1,0x3,0,0,0)
 23719 ktrace   RET   mmap 2118168576/0x7e40b000
 23719 ktrace   CALL  close(0x3)
 23719 ktrace   RET   close 0
 23719 ktrace   CALL  readlink(0x3c0021e4,0xcf7d2ac0,0x3f)
 23719 ktrace   NAMI  /etc/malloc.conf
 23719 ktrace   RET   readlink -1 errno 2 No such file or directory
 23719 ktrace   CALL  issetugid()
 23719 ktrace   RET   issetugid 0
 23719 ktrace   CALL  mmap(0,0x1000,0x3,0x1002,0x,0,0,0)
 23719 ktrace   RET   mmap -2083209216/0x83d4c000
 23719 ktrace   CALL  mmap(0,0x1000,0x3,0x1002,0x,0,0,0)
 23719 ktrace   RET   mmap -2114424832/0x81f87000
 23719 ktrace   CALL  mmap(0,0x1000,0x3,0x1002,0x,0,0,0)
 23719 ktrace   RET   mmap -2057961472/0x8556
 23719 ktrace   CALL  mmap(0,0x1000,0x3,0x1002,0x,0,0,0)
 23719 ktrace   RET   mmap -1972555776/0x8a6d3000
 23719 ktrace   CALL  mmap(0,0x1000,0x3,0x1002,0x,0,0,0)
 23719 ktrace   RET   mmap -1949962240/0x8bc5f000
 23719 ktrace   CALL  munmap(0x7e40b000,0xe5a)
 23719 ktrace   RET   munmap 0
 23719 ktrace   CALL  write(0x2,0xcf7d2850,0x12)
 23719 ktrace   GIO   fd 2 wrote 18 bytes
   Permission denied
   
 23719 ktrace   RET   write 18/0x12
 23719 ktrace   CALL  munmap(0x89e16000,0x1000)
 23719 ktrace   RET   munmap 0
 23719 ktrace   CALL  exit(0x1)


I checked /etc/malloc.conf on the Linux system but it doesn't exist.
Is there some extra command I have to type so that the Linux emulation
gets enabled completely?

CL



PowerEdge 2950 sd0: not queued: error 5

2007-02-12 Thread Alejandro Lozanoff

Sorry for the message without body, im a little sleepy and hitted the
wrong button... :p

Ok,

I had this problem last night on one of our shiny Dell PowerEdge 2950s
with RAID 10 and SAS disks.
For no reason it started screaming sd0: not queued: error 5 on the
console, the  server didnt crash (no core, no trace) but was in an
unresponsive state, i couldnt log on or anything. I was wondering if
this error could be a hardware problem (RAID card maybe?).
The logs dont show anything notorious, there were no heavy IO at the
time of the problem. I'm kind of clueless at what could have been the
problem, a quick search showed some old messages with SCSI cards
problems only.

This is 4.0 Stable as shown below.

dmesg follows:

OpenBSD 4.0-stable (GENERIC) #1: Mon Nov 27 16:23:49 GMT 2006
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Xeon(TM) CPU 3.00GHz (GenuineIntel 686-class) 3 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,CNXT-ID,C
X16
cpu0: Enhanced SpeedStep disabled by BIOS
real mem  = 1072955392 (1047808K)
avail mem = 970735616 (947984K)
using 4256 buffers containing 53751808 bytes (52492K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 06/21/06, BIOS32 rev. 0 @
0xffe90, SMBIOS rev. 2.4 @ 0x3ffbc000 (62 entries)
bios0: Dell Inc. PowerEdge 2950
pcibios0 at bios0: rev 2.1 @ 0xf/0x1
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfade0/384 (22 entries)
pcibios0: PCI Interrupt Router at 000:31:0 (Intel 6321ESB LPC rev 0x00)
pcibios0: PCI bus #16 is the last bus
bios0: ROM list: 0xc/0x9000! 0xc9000/0x1000 0xca000/0x1800
0xcb800/0x5200 0xec000/0x4000!
ipmi0 at mainbus0: version 2.0 interface KCS iobase 0xca8/8 spacing 4
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 5000X Host rev 0x12
ppb0 at pci0 dev 2 function 0 Intel 5000 PCIE rev 0x12
pci1 at ppb0 bus 6
ppb1 at pci1 dev 0 function 0 Intel 6321ESB PCIE rev 0x01
pci2 at ppb1 bus 7
ppb2 at pci2 dev 0 function 0 Intel 6321ESB PCIE rev 0x01
pci3 at ppb2 bus 8
ppb3 at pci3 dev 0 function 0 ServerWorks PCIE-PCIX rev 0xc2
pci4 at ppb3 bus 9
bnx0 at pci4 dev 0 function 0 Broadcom BCM5708 rev 0x11: irq 5,
address 00:18:8b:72:c0:fd
brgphy0 at bnx0 phy 1: BCM5708C 10/100/1000baseT PHY, rev. 5
ppb4 at pci2 dev 1 function 0 Intel 6321ESB PCIE rev 0x01
pci5 at ppb4 bus 10
ppb5 at pci1 dev 0 function 3 Intel 6321ESB PCIE-PCIX rev 0x01
pci6 at ppb5 bus 11
ppb6 at pci0 dev 3 function 0 Intel 5000 PCIE rev 0x12
pci7 at ppb6 bus 1
ppb7 at pci7 dev 0 function 0 Intel IOP333 PCIE-PCIX rev 0x00
pci8 at ppb7 bus 2
mfi0 at pci8 dev 14 function 0 Dell PERC 5 rev 0x00: irq 6
mfi0: logical drives 1, version 5.0.1-0030, 256MB RAM
scsibus0 at mfi0: 1 targets
sd0 at scsibus0 targ 0 lun 0: DELL, PERC 5/i, 1.00 SCSI3 0/direct fixed
sd0: 278784MB, 278784 cyl, 64 head, 32 sec, 512 bytes/sec, 570949632 sec
total
ppb8 at pci7 dev 0 function 2 Intel IOP333 PCIE-PCIX rev 0x00
pci9 at ppb8 bus 3
ppb9 at pci0 dev 4 function 0 Intel 5000 PCIE rev 0x12
pci10 at ppb9 bus 12
ppb10 at pci0 dev 5 function 0 Intel 5000 PCIE rev 0x12
pci11 at ppb10 bus 13
ppb11 at pci0 dev 6 function 0 Intel 5000 PCIE rev 0x12
pci12 at ppb11 bus 14
ppb12 at pci0 dev 7 function 0 Intel 5000 PCIE rev 0x12
pci13 at ppb12 bus 15
pchb1 at pci0 dev 16 function 0 Intel 5000 Error Reporting rev 0x12
pchb2 at pci0 dev 16 function 1 Intel 5000 Error Reporting rev 0x12
pchb3 at pci0 dev 16 function 2 Intel 5000 Error Reporting rev 0x12
pchb4 at pci0 dev 17 function 0 Intel 5000 Reserved rev 0x12
pchb5 at pci0 dev 19 function 0 Intel 5000 Reserved rev 0x12
pchb6 at pci0 dev 21 function 0 Intel 5000 FBD rev 0x12
pchb7 at pci0 dev 22 function 0 Intel 5000 FBD rev 0x12
ppb13 at pci0 dev 28 function 0 Intel 6321ESB PCIE rev 0x09
pci14 at ppb13 bus 4
ppb14 at pci14 dev 0 function 0 ServerWorks PCIE-PCIX rev 0xc2
pci15 at ppb14 bus 5
bnx1 at pci15 dev 0 function 0 Broadcom BCM5708 rev 0x11: irq 5,
address 00:18:8b:72:c0:fb
brgphy1 at bnx1 phy 1: BCM5708C 10/100/1000baseT PHY, rev. 5
uhci0 at pci0 dev 29 function 0 Intel 6321ESB USB rev 0x09: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1 Intel 6321ESB USB rev 0x09: irq 10
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2 Intel 6321ESB USB rev 0x09: irq 11
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 29 function 7 Intel 6321ESB USB rev 0x09: irq 11
usb3 at ehci0: USB revision 2.0
uhub3 at usb3
uhub3: Intel EHCI root hub, rev 2.00/1.00, addr 1
uhub3: 6 ports with 6 removable, self powered
ppb15 at 

linux emulation without redhat_base

2007-02-12 Thread Karel Kulhavy
Hi

Now I tried to make yes work without the redhat base. I uninstalled
redhat_base, partial-redhat_base and partial-partial-redhat_base (??).
Then ldd yes on the Linux system shows these libraries:
[EMAIL PROTECTED] ~ $ ldd `which yes`
linux-gate.so.1 =  (0xe000)
libc.so.6 = /lib/libc.so.6 (0xb7e79000)
/lib/ld-linux.so.2 (0xb7fa7000)

I copied the following files to /emul/linux/... :
/lib/ld-linux.so.2
/lib/libc.so.6
/lib/ld-2.4.so
/lib/libc-2.4.so
/etc/ld.so.cache
/etc/ld.so.conf

Now when I run ./yes (which I copied too), I get Bad system call (core dumped)
and the following trace:

 16287 ktrace   RET   ktrace 0
 16287 ktrace   CALL  execve(0xcf7cc963,0xcf7cc7f0,0xcf7cc7f8)
 16287 ktrace   NAMI  ./yes
 16287 ktrace   NAMI  /emul/svr4/lib/ld-linux.so.2
 16287 ktrace   NAMI  /emul/linux/lib/ld-linux.so.2
 16287 ktrace   NAMI  /emul/linux
 16287 yes  NAMI  /emul/linux/lib/ld-linux.so.2
 16287 yes  EMUL  linux
 16287 yes  RET   oldolduname 0
 16287 yes  CALL  brk(0)
 16287 yes  RET   brk 134529024/0x804c000
 16287 yes  CALL  uname(0xcf7f1488)
 16287 yes  RET   uname 0
 16287 yes  CALL  access(0x50578de5,0x4)
 16287 yes  NAMI  /emul/linux/etc/ld.so.preload
 16287 yes  NAMI  /etc/ld.so.preload
 16287 yes  RET   access -1 errno 2 No such file or directory
 16287 yes  CALL  open(0xcf7f0db0,0,0)
 16287 yes  NAMI  /emul/linux/usr/local/geda/lib/tls/libc.so.6
 16287 yes  NAMI  /usr/local/geda/lib/tls/libc.so.6
 16287 yes  RET   open -1 errno 2 No such file or directory
 16287 yes  CALL  open(0xcf7f0db0,0,0)
 16287 yes  NAMI  /emul/linux/usr/local/geda/lib/libc.so.6
 16287 yes  NAMI  /usr/local/geda/lib/libc.so.6
 16287 yes  RET   open -1 errno 2 No such file or directory
 16287 yes  CALL  open(0xcf7f0db0,0,0)
 16287 yes  NAMI  tls/libc.so.6
 16287 yes  RET   open -1 errno 2 No such file or directory
 16287 yes  CALL  open(0xcf7f0db0,0,0)
 16287 yes  NAMI  libc.so.6
 16287 yes  RET   open -1 errno 2 No such file or directory
 16287 yes  CALL  open(0x505790d1,0,0)
 16287 yes  NAMI  /emul/linux/etc/ld.so.cache
 16287 yes  NAMI  /emul/linux
 16287 yes  NAMI  /emul/linux/etc/ld.so.cache
 16287 yes  RET   open 3
 16287 yes  CALL  fstat64(0x3,0xcf7f0d80)
 16287 yes  RET   fstat64 0
 16287 yes  CALL  mmap2(0,0x150c2,0x1,0x2,0x3,0)
 16287 yes  RET   mmap2 1259569152/0x4b138000
 16287 yes  CALL  close(0x3)
 16287 yes  RET   close 0
 16287 yes  CALL  open(0x4b14a79d,0,0)
 16287 yes  NAMI  /emul/linux/lib/libc.so.6
 16287 yes  NAMI  /emul/linux
 16287 yes  NAMI  /emul/linux/lib/libc.so.6
 16287 yes  RET   open 3
 16287 yes  CALL  read(0x3,0xcf7f0ee4,0x200)
 16287 yes  GIO   fd 3 read 512 bytes
   \^?ELF\^A\^A\^A\0\0\0\0\0\0\0\0\0\^C\0\^C\0\^A\0\0\0\M^JY\^A\0004\0\0\
[EMAIL PROTECTED] \0\v\0(\0\0=\0\^F\0\0\0004\0\0\0004\0\0\
[EMAIL PROTECTED]
[EMAIL PROTECTED]@\M^D\^P\0\^S\0\0\0\^S\0\0\0\^D\0\0\0\^A\0\0\0\^A\0\0\
\0\0\0\0\0\0\0\0\0\0\0\0\0\M-\M-y\^P\0\M-\M-y\^P\0\^E\0\0\0\0\^P\0\0\
\^A\0\0\0\M-\\M^?\^P\0\M-\\^O\^Q\0\M-\\^O\^Q\0\240)\0\0\240U\0\0\^F\0\
\0\0\0\^P\0\0\^B\0\0\0\\\^]\^Q\0\\-\^Q\0\\-\^Q\0\M-p\0\0\0\M-p\0\0\0\
\^F\0\0\0\^D\0\0\0\^D\0\0\0\M^T\^A\0\0\M^T\^A\0\0\M^T\^A\0\0 \0\0\0 \0\
\0\0\^D\0\0\0\^D\0\0\0\a\0\0\0\M-\\M^?\^P\0\M-\\^O\^Q\0\M-\\^O\^Q\0\b\
\0\0\0(\0\0\0\^D\0\0\0\^D\0\0\0P\M-etd\M-T\M^D\^P\0\M-T\M^D\^P\0\M-T\
\M^D\^P\0\M^L\^V\0\0\M^L\^V\0\0\^D\0\0\0\^D\0\0\0Q\M-etd\0\0\0\0\0\0\0\
\0\0\0\0\0\0\0\0\0\0\0\0\0\^F\0\0\0\^D\0\0\0R\M-etd\M-d\M^?\^P\0\M-d\
\^O\^Q\0\M-\\^O\^Q\0\^P \0\0\^P \0\0\^D\0\0\0 [EMAIL PROTECTED]
\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0(\0\0\^D\0\0\0\^D\0\0\0\^P\0\0\0\
\^A\0\0\0GNU\0\0\0\0\0\^B\0\0\0\^F\0\0\0\0\0\0\M^?\^C\0\0\M-5\
\b\0\0\^P\^A\0\0\M-A\^F\0\0k\^B\0\0\M-[\0\0\0.\a\0\0\0\0\0\0\0\0\0\0\0\
\0\0\0\0\0\0\0\M-0\^F\0\0\f\^F\0\0\0\0\0\0l\b\0\0\M-:\^F\0\0'\^B\0\0\
\M-\^B\0\0\M^A\b\0\0
 16287 yes  RET   read 512/0x200
 16287 yes  CALL  fstat64(0x3,0xcf7f0e00)
 16287 yes  RET   fstat64 0
 16287 yes  CALL  mmap2(0,0x11657c,0x5,0x802,0x3,0)
 16287 yes  RET   mmap2 1340907520/0x4feca000
 16287 yes  CALL  mmap2(0x4ffda000,0x4000,0x3,0x812,0x3,0x10f)
 16287 yes  RET   mmap2 1342021632/0x4ffda000
 16287 yes  CALL  mmap2(0x4ffde000,0x257c,0x3,0x32,0x,0)
 16287 yes  RET   mmap2 1342038016/0x4ffde000
 16287 yes  CALL  close(0x3)
 16287 yes  RET   close 0
 16287 yes  CALL  mmap2(0,0x1000,0x3,0x22,0x,0)
 16287 yes  RET   mmap2 1382084608/0x5260f000
 16287 yes  CALL  #243 (unimplemented linux_sys_set_thread_area)()
 16287 yes  PSIG  SIGSYS SIG_DFL code 0
 16287 yes  NAMI  yes.core

What does this mean? That linux_sys_set_thread_area is unimplemented in the 
emulation?

When I 

Re: COMPAT_LINUX IN KERNEL

2007-02-12 Thread tom
Quoting Nick ! [EMAIL PROTECTED]:

 On 2/12/07, Karel Kulhavy [EMAIL PROTECTED] wrote:
  Hello
 
  How do I figure out if my kernel was compiled with COMPAT_LINUX option or
 not?
  I didn't compile it. I put COMPAT_LINUX openbsd kernel into google but
 didn't
  find anything useful in the first several pages.
 
  I have 4.0 on i386 installed from a CD it must be running the default
 kernel.
 
 http://www.openbsd.org/faq/faq9.html#Interact
 OpenBSD/i386 is able to run Linux binaries when the kernel is
 compiled with the COMPAT_LINUX option and the runtime sysctl
 kern.emul.linux is also set. If you are using the GENERIC kernel
 (which you should be), COMPAT_LINUX is already enabled, and you will
 just need to do:
 
 -Nick
 
 

Why do static linux binaries at least sometimes run 
without executing sysctl kern.emul.linux=1 and 
without removing the # in front of the line for
kern.emul.linux=1 in /etc/sysctl.conf? 

I have been running Linux Opera version

opera-9.10-20061214.1-static-qt.i386-en.tar.gz 

with redhat_base-8.0p8 this morning on the 2/9/2007
OpenBSD-current snapshot.  Opera launches and runs
fine a few times, but eventually it crashes upon 
relaunch with the error shown at the end of the kdump 
available for a few days at 

ftp://ftp.tommiller.us/pub/openbsd/kdump.out

Is the failure to execute the sysctl command causing
the problem?  Why does Opera launch and run okay 
sometmes?

Kindest regards, 

Tom



Re: PowerEdge 2950 sd0: not queued: error 5

2007-02-12 Thread Marco Peereboom
I have never seen this but I am very interested in this particular
instance.  Apparently there is an issue with read ahead on mfi that I
have never seen before on OpenBSD but other OS' have run into.

Is this reproducible?  If so can you try to disable read ahead in
CTRL-R (bios)?

Thanks,
/marco

On Mon, Feb 12, 2007 at 11:31:26AM -0500, Alejandro Lozanoff wrote:
 Sorry for the message without body, im a little sleepy and hitted the
 wrong button... :p
 
 Ok,
 
 I had this problem last night on one of our shiny Dell PowerEdge 2950s
 with RAID 10 and SAS disks.
 For no reason it started screaming sd0: not queued: error 5 on the
 console, the  server didnt crash (no core, no trace) but was in an
 unresponsive state, i couldnt log on or anything. I was wondering if
 this error could be a hardware problem (RAID card maybe?).
 The logs dont show anything notorious, there were no heavy IO at the
 time of the problem. I'm kind of clueless at what could have been the
 problem, a quick search showed some old messages with SCSI cards
 problems only.
 
 This is 4.0 Stable as shown below.
 
 dmesg follows:
 
 OpenBSD 4.0-stable (GENERIC) #1: Mon Nov 27 16:23:49 GMT 2006
 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
 cpu0: Intel(R) Xeon(TM) CPU 3.00GHz (GenuineIntel 686-class) 3 GHz
 cpu0:
 FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
 H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,CNXT-ID,C
 X16
 cpu0: Enhanced SpeedStep disabled by BIOS
 real mem  = 1072955392 (1047808K)
 avail mem = 970735616 (947984K)
 using 4256 buffers containing 53751808 bytes (52492K) of memory
 mainbus0 (root)
 bios0 at mainbus0: AT/286+(00) BIOS, date 06/21/06, BIOS32 rev. 0 @
 0xffe90, SMBIOS rev. 2.4 @ 0x3ffbc000 (62 entries)
 bios0: Dell Inc. PowerEdge 2950
 pcibios0 at bios0: rev 2.1 @ 0xf/0x1
 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfade0/384 (22 entries)
 pcibios0: PCI Interrupt Router at 000:31:0 (Intel 6321ESB LPC rev 0x00)
 pcibios0: PCI bus #16 is the last bus
 bios0: ROM list: 0xc/0x9000! 0xc9000/0x1000 0xca000/0x1800
 0xcb800/0x5200 0xec000/0x4000!
 ipmi0 at mainbus0: version 2.0 interface KCS iobase 0xca8/8 spacing 4
 cpu0 at mainbus0
 pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
 pchb0 at pci0 dev 0 function 0 Intel 5000X Host rev 0x12
 ppb0 at pci0 dev 2 function 0 Intel 5000 PCIE rev 0x12
 pci1 at ppb0 bus 6
 ppb1 at pci1 dev 0 function 0 Intel 6321ESB PCIE rev 0x01
 pci2 at ppb1 bus 7
 ppb2 at pci2 dev 0 function 0 Intel 6321ESB PCIE rev 0x01
 pci3 at ppb2 bus 8
 ppb3 at pci3 dev 0 function 0 ServerWorks PCIE-PCIX rev 0xc2
 pci4 at ppb3 bus 9
 bnx0 at pci4 dev 0 function 0 Broadcom BCM5708 rev 0x11: irq 5,
 address 00:18:8b:72:c0:fd
 brgphy0 at bnx0 phy 1: BCM5708C 10/100/1000baseT PHY, rev. 5
 ppb4 at pci2 dev 1 function 0 Intel 6321ESB PCIE rev 0x01
 pci5 at ppb4 bus 10
 ppb5 at pci1 dev 0 function 3 Intel 6321ESB PCIE-PCIX rev 0x01
 pci6 at ppb5 bus 11
 ppb6 at pci0 dev 3 function 0 Intel 5000 PCIE rev 0x12
 pci7 at ppb6 bus 1
 ppb7 at pci7 dev 0 function 0 Intel IOP333 PCIE-PCIX rev 0x00
 pci8 at ppb7 bus 2
 mfi0 at pci8 dev 14 function 0 Dell PERC 5 rev 0x00: irq 6
 mfi0: logical drives 1, version 5.0.1-0030, 256MB RAM
 scsibus0 at mfi0: 1 targets
 sd0 at scsibus0 targ 0 lun 0: DELL, PERC 5/i, 1.00 SCSI3 0/direct fixed
 sd0: 278784MB, 278784 cyl, 64 head, 32 sec, 512 bytes/sec, 570949632 sec
 total
 ppb8 at pci7 dev 0 function 2 Intel IOP333 PCIE-PCIX rev 0x00
 pci9 at ppb8 bus 3
 ppb9 at pci0 dev 4 function 0 Intel 5000 PCIE rev 0x12
 pci10 at ppb9 bus 12
 ppb10 at pci0 dev 5 function 0 Intel 5000 PCIE rev 0x12
 pci11 at ppb10 bus 13
 ppb11 at pci0 dev 6 function 0 Intel 5000 PCIE rev 0x12
 pci12 at ppb11 bus 14
 ppb12 at pci0 dev 7 function 0 Intel 5000 PCIE rev 0x12
 pci13 at ppb12 bus 15
 pchb1 at pci0 dev 16 function 0 Intel 5000 Error Reporting rev 0x12
 pchb2 at pci0 dev 16 function 1 Intel 5000 Error Reporting rev 0x12
 pchb3 at pci0 dev 16 function 2 Intel 5000 Error Reporting rev 0x12
 pchb4 at pci0 dev 17 function 0 Intel 5000 Reserved rev 0x12
 pchb5 at pci0 dev 19 function 0 Intel 5000 Reserved rev 0x12
 pchb6 at pci0 dev 21 function 0 Intel 5000 FBD rev 0x12
 pchb7 at pci0 dev 22 function 0 Intel 5000 FBD rev 0x12
 ppb13 at pci0 dev 28 function 0 Intel 6321ESB PCIE rev 0x09
 pci14 at ppb13 bus 4
 ppb14 at pci14 dev 0 function 0 ServerWorks PCIE-PCIX rev 0xc2
 pci15 at ppb14 bus 5
 bnx1 at pci15 dev 0 function 0 Broadcom BCM5708 rev 0x11: irq 5,
 address 00:18:8b:72:c0:fb
 brgphy1 at bnx1 phy 1: BCM5708C 10/100/1000baseT PHY, rev. 5
 uhci0 at pci0 dev 29 function 0 Intel 6321ESB USB rev 0x09: irq 11
 usb0 at uhci0: USB revision 1.0
 uhub0 at usb0
 uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
 uhub0: 2 ports with 2 removable, self powered
 uhci1 at pci0 dev 29 function 1 Intel 6321ESB USB rev 0x09: irq 10
 usb1 at uhci1: USB revision 1.0
 uhub1 at usb1
 uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1
 

Re: BGP Connection For Two OpenBSD Machines

2007-02-12 Thread Stuart Henderson
On 2007/02/12 16:09, [EMAIL PROTECTED] wrote:
 Where should I suppose to declare announce default-route?

In the neighbour or group definition, see bgpd.conf(5).



Re: PowerEdge 2950 sd0: not queued: error 5

2007-02-12 Thread Alejandro Lozanoff

I was planning on running bonnie tonight (This is a production server)
to get some IO and see if i can reproduce the problem.
We have 3 of this servers with OBSD 4.0 stable and the same RAID card
running for about 2 months now, this is the first problem we
encounter. If you have any idea of how to reproduce this i would be
glad to test it in one of the servers that we are not using right now.

Thanks for replying
Alejandro.-

Quoting Marco Peereboom [EMAIL PROTECTED]:


I have never seen this but I am very interested in this particular
instance.  Apparently there is an issue with read ahead on mfi that I
have never seen before on OpenBSD but other OS' have run into.

Is this reproducible?  If so can you try to disable read ahead in
CTRL-R (bios)?

Thanks,
/marco

On Mon, Feb 12, 2007 at 11:31:26AM -0500, Alejandro Lozanoff wrote:

Sorry for the message without body, im a little sleepy and hitted the
wrong button... :p

Ok,

I had this problem last night on one of our shiny Dell PowerEdge 2950s
with RAID 10 and SAS disks.
For no reason it started screaming sd0: not queued: error 5 on the
console, the  server didnt crash (no core, no trace) but was in an
unresponsive state, i couldnt log on or anything. I was wondering if
this error could be a hardware problem (RAID card maybe?).
The logs dont show anything notorious, there were no heavy IO at the
time of the problem. I'm kind of clueless at what could have been the
problem, a quick search showed some old messages with SCSI cards
problems only.

This is 4.0 Stable as shown below.

dmesg follows:

OpenBSD 4.0-stable (GENERIC) #1: Mon Nov 27 16:23:49 GMT 2006
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Xeon(TM) CPU 3.00GHz (GenuineIntel 686-class) 3 GHz
cpu0:


FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS



H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,CNXT-ID,C

X16
cpu0: Enhanced SpeedStep disabled by BIOS
real mem  = 1072955392 (1047808K)
avail mem = 970735616 (947984K)
using 4256 buffers containing 53751808 bytes (52492K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 06/21/06, BIOS32 rev. 0 @
0xffe90, SMBIOS rev. 2.4 @ 0x3ffbc000 (62 entries)
bios0: Dell Inc. PowerEdge 2950
pcibios0 at bios0: rev 2.1 @ 0xf/0x1
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfade0/384 (22 entries)
pcibios0: PCI Interrupt Router at 000:31:0 (Intel 6321ESB LPC rev 0x00)
pcibios0: PCI bus #16 is the last bus
bios0: ROM list: 0xc/0x9000! 0xc9000/0x1000 0xca000/0x1800
0xcb800/0x5200 0xec000/0x4000!
ipmi0 at mainbus0: version 2.0 interface KCS iobase 0xca8/8 spacing 4
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 5000X Host rev 0x12
ppb0 at pci0 dev 2 function 0 Intel 5000 PCIE rev 0x12
pci1 at ppb0 bus 6
ppb1 at pci1 dev 0 function 0 Intel 6321ESB PCIE rev 0x01
pci2 at ppb1 bus 7
ppb2 at pci2 dev 0 function 0 Intel 6321ESB PCIE rev 0x01
pci3 at ppb2 bus 8
ppb3 at pci3 dev 0 function 0 ServerWorks PCIE-PCIX rev 0xc2
pci4 at ppb3 bus 9
bnx0 at pci4 dev 0 function 0 Broadcom BCM5708 rev 0x11: irq 5,
address 00:18:8b:72:c0:fd
brgphy0 at bnx0 phy 1: BCM5708C 10/100/1000baseT PHY, rev. 5
ppb4 at pci2 dev 1 function 0 Intel 6321ESB PCIE rev 0x01
pci5 at ppb4 bus 10
ppb5 at pci1 dev 0 function 3 Intel 6321ESB PCIE-PCIX rev 0x01
pci6 at ppb5 bus 11
ppb6 at pci0 dev 3 function 0 Intel 5000 PCIE rev 0x12
pci7 at ppb6 bus 1
ppb7 at pci7 dev 0 function 0 Intel IOP333 PCIE-PCIX rev 0x00
pci8 at ppb7 bus 2
mfi0 at pci8 dev 14 function 0 Dell PERC 5 rev 0x00: irq 6
mfi0: logical drives 1, version 5.0.1-0030, 256MB RAM
scsibus0 at mfi0: 1 targets
sd0 at scsibus0 targ 0 lun 0: DELL, PERC 5/i, 1.00 SCSI3 0/direct fixed
sd0: 278784MB, 278784 cyl, 64 head, 32 sec, 512 bytes/sec, 570949632 sec
total
ppb8 at pci7 dev 0 function 2 Intel IOP333 PCIE-PCIX rev 0x00
pci9 at ppb8 bus 3
ppb9 at pci0 dev 4 function 0 Intel 5000 PCIE rev 0x12
pci10 at ppb9 bus 12
ppb10 at pci0 dev 5 function 0 Intel 5000 PCIE rev 0x12
pci11 at ppb10 bus 13
ppb11 at pci0 dev 6 function 0 Intel 5000 PCIE rev 0x12
pci12 at ppb11 bus 14
ppb12 at pci0 dev 7 function 0 Intel 5000 PCIE rev 0x12
pci13 at ppb12 bus 15
pchb1 at pci0 dev 16 function 0 Intel 5000 Error Reporting rev 0x12
pchb2 at pci0 dev 16 function 1 Intel 5000 Error Reporting rev 0x12
pchb3 at pci0 dev 16 function 2 Intel 5000 Error Reporting rev 0x12
pchb4 at pci0 dev 17 function 0 Intel 5000 Reserved rev 0x12
pchb5 at pci0 dev 19 function 0 Intel 5000 Reserved rev 0x12
pchb6 at pci0 dev 21 function 0 Intel 5000 FBD rev 0x12
pchb7 at pci0 dev 22 function 0 Intel 5000 FBD rev 0x12
ppb13 at pci0 dev 28 function 0 Intel 6321ESB PCIE rev 0x09
pci14 at ppb13 bus 4
ppb14 at pci14 dev 0 function 0 ServerWorks PCIE-PCIX rev 0xc2
pci15 at ppb14 bus 5
bnx1 at pci15 dev 0 function 0 Broadcom BCM5708 rev 0x11: irq 5,
address 00:18:8b:72:c0:fb
brgphy1 at bnx1 phy 1: BCM5708C 10/100/1000baseT PHY, rev. 

Re: COMPAT_LINUX in kernel

2007-02-12 Thread Karel Kulhavy
On Mon, Feb 12, 2007 at 06:23:45PM +0200, [EMAIL PROTECTED] wrote:
 On Mon, Feb 12, 2007 at 04:39:03PM +0100, Karel Kulhavy wrote:
  Hello
  
  How do I figure out if my kernel was compiled with COMPAT_LINUX option or 
  not?
  I didn't compile it. I put COMPAT_LINUX openbsd kernel into google but 
  didn't
 
 $ sysctl -a | grep linux
 
 COMPAT_LINUX is in the GENERIC (default) kernel.
 
 but don't waste your time trying with recent linux binaries/libraries  -
 you need to modify/recompile the kernel in for that -
 and even then, no NPTL, etc.

NPTL == ?

 
 and the linux compatibilily stuff is quite broken by design - you'll see.

I tried to compile all existing free software SIP packages (about 7) on OpenBSD
4.0 and everything failed.  Everyone is claiming portability across Unix, but in
reality it's just a wishful thinking, they are portable only to Linux.

So I got an idea to try Xten-Xlite and Ekiga under emulation but it failed.
With Ekiga tried about 3 different ways.

Someone said Asterisk can be used as a SIP client but I didn't find any traces 
about
that in the manpage or in the big Asterisk book PDF. Any idea?

I ended up with xten xlite being installed on an old crappy Windows machine
next to me, but it's not an example free software solution ;-)

CL



Re: Small change to /faq/pf/carp.html

2007-02-12 Thread Joel Knight
--- Quoting Mike Erdely on 2007/02/11 at 02:46 -0500:

 I was going through the FAQ testing my CARP set up and tried ifconfig 
 carp1 down.  The backup promoted itself to master ONLY for carp1 even 
 though I have net.inet.carp.preempt=1.
 
 But, ifconfig em1 down DOES cause the backup firewall to promote 
 itself to master for ALL interfaces.

Thanks Mike, I'll correct it.




.joel



Filesystem Backwards Compatibility

2007-02-12 Thread Clint Pachl
Have the file systems from one OS version to the next always been 
compatible? Will they continue to be?


My concern is that a 3+ year old dump may not restore correctly on 
current version of OBSD. Can I be assured that I can store data reliably 
for 3 - 5 years on a FFS?


-pachl



Re: linux emulation without redhat_base

2007-02-12 Thread Mark Zimmerman
On Mon, Feb 12, 2007 at 06:04:36PM +0100, Karel Kulhavy wrote:
 Hi
 
 Now I tried to make yes work without the redhat base. I uninstalled
 redhat_base, partial-redhat_base and partial-partial-redhat_base (??).
 Then ldd yes on the Linux system shows these libraries:
 [EMAIL PROTECTED] ~ $ ldd `which yes`
 linux-gate.so.1 =  (0xe000)
 libc.so.6 = /lib/libc.so.6 (0xb7e79000)
 /lib/ld-linux.so.2 (0xb7fa7000)
 
 I copied the following files to /emul/linux/... :
 /lib/ld-linux.so.2
 /lib/libc.so.6
 /lib/ld-2.4.so
 /lib/libc-2.4.so
 /etc/ld.so.cache
 /etc/ld.so.conf
 
 Now when I run ./yes (which I copied too), I get Bad system call (core dumped)
 and the following trace:
 
---snip---
  16287 yes  CALL  mmap2(0,0x1000,0x3,0x22,0x,0)
  16287 yes  RET   mmap2 1382084608/0x5260f000
  16287 yes  CALL  #243 (unimplemented linux_sys_set_thread_area)()
  16287 yes  PSIG  SIGSYS SIG_DFL code 0
  16287 yes  NAMI  yes.core
 
 What does this mean? That linux_sys_set_thread_area is unimplemented
 in the emulation?
 

Yes, it means exactly that. Unfortunately, you cannot pull in
arbitrary linux libraries and expect them to work because many of them
make system calls that are unimplemented in the OpenBSD emulation
code. I tried to use the Debian libraries on a dual boot system since
it seemed wasteful to install a second set of linux libraries and ran
into this same problem.

Look at /usr/src/sys/compat/linux/linux_syscalls.c to see what is
unimplemented; there are about 30 of them. If you want to stray from
redhat_base, you will make it difficult for yourself.

-- Mark



Re: Dell Poweredge 860 Perc 5IR - can't recognize raid device (sd0)

2007-02-12 Thread Nick Holland
Steve Williams wrote:
 Hi,
 
 I have a brand new Dell Poweredge 850 with two 160 G SAS disks attached 
 to a Perc 5IR controller card.
 
 In the BIOS, I have configured them as an IM (Integrated Mirror) Logical 
 Volume.  I have synchronized the mirror, and the array is activated.
 
 I have played with various BIOS settings, Boot Support, etc, but don't 
 seem to get any different results.
 
 When I go to install, either OpenBSD 4.0 or current, I get the following:
 
 newfs: /dev/rsd0a: Device not configured
 mount_ffs: /dev/sd0a on /mnt: Device not configured
 
 FATAL ERROR:Cannot mount filesystems. Double-check your configuration
 and restart the install.
 
 At the shell, I can dhclient bge0 and get network connectivity no 
 problem. (how I got my dmesg off).

yep, thanks for the dmesg, it does seem to be recognizing your
controller and drive properly...

How about your partition tables?  Do you have an 'a' partition?  How
about showing us the output of 'fdisk sd0' and 'disklabel sd0' after
it chokes?

Nick.


 dmesg:
 OpenBSD 4.0-current (RAMDISK_CD) #200: Tue Feb  6 18:04:36 MST 2007
 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/RAMDISK_CD
...
 mpi0 at pci2 dev 8 function 0 Symbios Logic SAS1068 rev 0x01: irq 5
 scsibus0 at mpi0: 63 targets
 sd0 at scsibus0 targ 0 lun 0: Dell, VIRTUAL DISK, 1028 SCSI3 0/direct 
 fixed
 sd0: 151634MB, 151634 cyl, 16 head, 128 sec, 512 bytes/sec, 310546432 
 sec total
...



Re: Filesystem Backwards Compatibility

2007-02-12 Thread Otto Moerbeek
On Mon, 12 Feb 2007, Clint Pachl wrote:

 Have the file systems from one OS version to the next always been compatible?
 Will they continue to be?
 
 My concern is that a 3+ year old dump may not restore correctly on current
 version of OBSD. Can I be assured that I can store data reliably for 3 - 5
 years on a FFS?

I think the on-disk ffs filesystem layout and the format used by dump(8)
didn't change since the dark ages. So you have pretty good chances a
restore will work. That is, of your tape or other medium is still ok.

-Otto



Re: linux emulation without redhat_base

2007-02-12 Thread a . velichinsky
On Mon, Feb 12, 2007 at 06:04:36PM +0100, Karel Kulhavy wrote:
  16287 yes  CALL  #243 (unimplemented linux_sys_set_thread_area)()
  16287 yes  PSIG  SIGSYS SIG_DFL code 0
  16287 yes  NAMI  yes.core
 
 What does this mean? That linux_sys_set_thread_area is unimplemented in the 
 emulation?


IIRC, it's like that:

The linux ld-linux.so dynamic linker calls uname(), gets the version
of the kernel (4.0 on OpenBSD), and based on the fact that 4.0  2.5.58
(or something similar) decides that you're running a 2.6.X NPTL-able
kernel, and goes on to set up things for NTPL threads with
set_thread_area(), etc, even if the program is a non-threaded one.

The solution to that is to run the linux binary with

LD_ASSUME_KERNEL=2.4.2

in the environment.

(in FreeBSD, they have added a sysctl to fake a linux kernel version;
 that is completely unnecessary).

However, fixing that won't get you too far -- there are other
problems (first, the simplest one, are the PROT_GROWS{UP,DOWN}
flags to linux' mmap()).

And, finally, the 'shadow root' idiocy is completely unusable, mainly
because of symlinks and binaries that call linux-only shell scripts.



Re: Filesystem Backwards Compatibility

2007-02-12 Thread Jeff Rollin
On 12/02/07, Otto Moerbeek [EMAIL PROTECTED] wrote:

 On Mon, 12 Feb 2007, Clint Pachl wrote:

  Have the file systems from one OS version to the next always been
 compatible?
  Will they continue to be?
 
  My concern is that a 3+ year old dump may not restore correctly on
 current
  version of OBSD. Can I be assured that I can store data reliably for 3 -
 5
  years on a FFS?

 I think the on-disk ffs filesystem layout and the format used by dump(8)
 didn't change since the dark ages. So you have pretty good chances a
 restore will work. That is, of your tape or other medium is still ok.

 -Otto


Then, of course, there's the contents of the backup to consider. You
(probably) don't want your Brand New OBSD 4 installation replaced with an
install of OBSD 2, especialy since it may not contain drivers for hardware
you need to get up and running. Then there's the small matter of restoring
data that may be 3 years out of date

Jeff

-- 
Now, did you hear the news today?
They say the danger's gone away
But I can hear the marching feet
Moving into the street

Adapted from Genesis, Land of Confusion

http://latedeveloper.org.uk



Re: Dell Poweredge 860 Perc 5IR - can't recognize raid device (sd0)

2007-02-12 Thread Steve Williams

Nick Holland wrote:

Steve Williams wrote:
  

Hi,

I have a brand new Dell Poweredge 850 with two 160 G SAS disks attached 
to a Perc 5IR controller card.


In the BIOS, I have configured them as an IM (Integrated Mirror) Logical 
Volume.  I have synchronized the mirror, and the array is activated.


I have played with various BIOS settings, Boot Support, etc, but don't 
seem to get any different results.


When I go to install, either OpenBSD 4.0 or current, I get the following:

newfs: /dev/rsd0a: Device not configured
mount_ffs: /dev/sd0a on /mnt: Device not configured

FATAL ERROR:Cannot mount filesystems. Double-check your configuration
and restart the install.

At the shell, I can dhclient bge0 and get network connectivity no 
problem. (how I got my dmesg off).



yep, thanks for the dmesg, it does seem to be recognizing your
controller and drive properly...

How about your partition tables?  Do you have an 'a' partition?  How
about showing us the output of 'fdisk sd0' and 'disklabel sd0' after
it chokes?

Nick.


  

dmesg:
OpenBSD 4.0-current (RAMDISK_CD) #200: Tue Feb  6 18:04:36 MST 2007
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/RAMDISK_CD


...
  

mpi0 at pci2 dev 8 function 0 Symbios Logic SAS1068 rev 0x01: irq 5
scsibus0 at mpi0: 63 targets
sd0 at scsibus0 targ 0 lun 0: Dell, VIRTUAL DISK, 1028 SCSI3 0/direct 
fixed
sd0: 151634MB, 151634 cyl, 16 head, 128 sec, 512 bytes/sec, 310546432 
sec total


...
  


dlg@ replied offline and suggested pretty much the same thing, but also 
said to try a:

fdisk -i sd0 followed by disklabel -dE sd0.

Magic, everything is working 100% :-)

Thanks!!

Steve Williams



Re: Filesystem Backwards Compatibility

2007-02-12 Thread Jeff Rollin
On 12/02/07, Clint Pachl [EMAIL PROTECTED] wrote:

  My data will be movies and music so I should be fine. Thanks Jeff.

 Jeff Rollin wrote:


 Then, of course, there's the contents of the backup to consider. You
 (probably) don't want your Brand New OBSD 4 installation replaced with an
 install of OBSD 2, especialy since it may not contain drivers for hardware
 you need to get up and running. Then there's the small matter of restoring
 data that may be 3 years out of date

 Jeff

 You're welcome!
-- 
Now, did you hear the news today?
They say the danger's gone away
But I can hear the marching feet
Moving into the street

Adapted from Genesis, Land of Confusion

http://latedeveloper.org.uk



Re: COMPAT_LINUX in kernel

2007-02-12 Thread Ted Unangst

On 2/12/07, Karel Kulhavy [EMAIL PROTECTED] wrote:

 but don't waste your time trying with recent linux binaries/libraries  -
 you need to modify/recompile the kernel in for that -
 and even then, no NPTL, etc.

NPTL == ?


threads



carp and load balancing between different internet connections

2007-02-12 Thread Paulo Roberto Candido dos Santos

Hello list.

This is my first post here and also first contact with OpenBSD.

I have a question about CARP.

I'm engaged a project about redundancy and load balancing between
3 different internet links.They asked me to search for a robust
open source solution that can do the job and I came to CARP.


However, every example of CARP+pfsync shows a two or more firewalls
+ one internet connection and nothing like three firewalls + three
internet connections that must act like one bigconnection.
This illustration describes the situation:
http://stpaul.0xbadc0ffe.org/files/carp.png

CARP can do that? If not, is there any other robust open source product
that can do the job?

Thanks and sorry for the engrish.



test

2007-02-12 Thread Philippe BERNARD
test



Re: carp and load balancing between different internet connections

2007-02-12 Thread Luca Corti
On Mon, 2007-02-12 at 21:07 -0200, Paulo Roberto Candido dos Santos
wrote:
 CARP can do that? If not, is there any other robust open source product
 that can do the job?

I think for outgoing traffic PF could balance between the three links
(see route-to in the docs), but for incoming traffic load balancing you
need:

1) Proper balancing via BGP (see OpenBGPd, but this may be overkill and
pricy, depending on your resources).

OR

2) Your ISP could provide link aggregation as a particular configuration
for your links (which may also cost premium, but probably way less than
overall costs associated with BGP). This option probably requires that
your internet links are all from the same ISP.

ciao

Luca



Re: carp and load balancing between different internet connections

2007-02-12 Thread Paulo Roberto Candido dos Santos

Thanks for the quick reply!

Sorry, I forgot to tell that the priority is outgoing traffic and no
need for loadbalancing incoming connections. I'll read the
route-to section.

On 2/12/07, Paulo Roberto Candido dos Santos [EMAIL PROTECTED] wrote:

Thanks for the quick reply!

Sorry, I forgot to tell that the priority is outgoing traffic and no
need for load
balancing incoming connections. I'll read the route-to section.

On 2/12/07, Luca Corti [EMAIL PROTECTED] wrote:
 On Mon, 2007-02-12 at 21:07 -0200, Paulo Roberto Candido dos Santos
 wrote:
  CARP can do that? If not, is there any other robust open source product
  that can do the job?

 I think for outgoing traffic PF could balance between the three links
 (see route-to in the docs), but for incoming traffic load balancing you
 need:

 1) Proper balancing via BGP (see OpenBGPd, but this may be overkill and
 pricy, depending on your resources).

 OR

 2) Your ISP could provide link aggregation as a particular configuration
 for your links (which may also cost premium, but probably way less than
 overall costs associated with BGP). This option probably requires that
 your internet links are all from the same ISP.

 ciao

 Luca




Re: dmesg and fdisk do not match about usb external disk

2007-02-12 Thread frantisek holop
hmm, on Tue, Jan 30, 2007 at 07:40:52PM -0500, Nick Holland said that
  the cylinders, heads, sectors and the number of total sectors do not match.
  what does this mean?
 
 It means translation is stupid, but we keep doing it. :)

ok, now just to make things more interesting, i have found a disk
where fdisk and dmesg output matches, but some other stuff doesn't...


umass0 at uhub3 port 4 configuration 1 interface 0
umass0: Western Digital External HDD, rev 2.00/1.02, addr 2
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets
sd0 at scsibus1 targ 1 lun 0: WD, 1600BEVExternal, 1.02 SCSI0 0/direct fixed
sd0: 152627MB, 152627 cyl, 64 head, 32 sec, 512 bytes/sec, 312581808 sec total


amaaq fdisk sd0
fdisk: sysctl(machdep.bios.diskinfo): Device not configured
Disk: sd0   geometry: 152627/64/32 [312581808 Sectors]
Offset: 0   Signature: 0xAA55
 Starting   Ending   LBA Info:
 #: idC   H  S -C   H  S [   start:  size   ]

 0: 0C0   1 32 - 76316  38  1 [  63:   156296322 ] Win95 FAT32L
 1: 83 76316  38  2 - 152625  22  1 [   156296385:   156280320 ] Linux files*
 2: 000   0  0 -0   0  0 [   0:   0 ] unused
 3: 000   0  0 -0   0  0 [   0:   0 ] unused


but 

152627 * 64 * 32 = 312580096 and not 312581808


also according to windows the geometry is 19457/255/63

19457 * 255 * 63 = 312576705

312581808 - 312576705 = 5103, that's the same amount of sectors
i can't use with the 500G disk.


so what's up with these dick measurements?

-f
-- 
forget everything, as one day everything will forget you.



bsd cpu use

2007-02-12 Thread James Mackinnon
Hi All

Hate to ask something that might be a simple answer but I am trying to find
how it is best / easiest to get the CPU usage of a BSD 4.0 box.

I only need the result and not a bunch of other data as I want to store the
result in a mysql db.

Basically i'm just looking for either the idle number or the % used

I have tried with a few different options, but using SNMP (net-snmp 5x) I
can't find the actual % used or idle

any help or suggestions would be ideal.  I'm also working on finding the free
memory and some other stuff. I don't want to use MRTG at this point as we are
building a custom management system for custom purposes.

Thanks

James Mackinnon



Re: bsd cpu use

2007-02-12 Thread Darrin Chandler
On Mon, Feb 12, 2007 at 09:10:52PM -0400, James Mackinnon wrote:
 Hi All
 
 Hate to ask something that might be a simple answer but I am trying to find
 how it is best / easiest to get the CPU usage of a BSD 4.0 box.
 
 I only need the result and not a bunch of other data as I want to store the
 result in a mysql db.
 
 Basically i'm just looking for either the idle number or the % used
 
 I have tried with a few different options, but using SNMP (net-snmp 5x) I
 can't find the actual % used or idle
 
 any help or suggestions would be ideal.  I'm also working on finding the free
 memory and some other stuff. I don't want to use MRTG at this point as we are
 building a custom management system for custom purposes.

vmstat(8) should give you what you're asking for. There's more, of
course, but it will be trivial to parse out what you want.

-- 
Darrin Chandler   |  Phoenix BSD Users Group
[EMAIL PROTECTED]  |  http://bsd.phoenix.az.us/
http://www.stilyagin.com/darrin/  |



Re: PowerEdge 2950 sd0: not queued: error 5

2007-02-12 Thread Marco Peereboom
I honestly have no clue.  I have banged on my mfis as much as I could
and have never seen anything like this.  I am doing some investigation
into this.  If you find a way to repro this let me know please.

On Mon, Feb 12, 2007 at 01:12:56PM -0500, Alejandro Lozanoff wrote:
 I was planning on running bonnie tonight (This is a production server)
 to get some IO and see if i can reproduce the problem.
 We have 3 of this servers with OBSD 4.0 stable and the same RAID card
 running for about 2 months now, this is the first problem we
 encounter. If you have any idea of how to reproduce this i would be
 glad to test it in one of the servers that we are not using right now.
 
 Thanks for replying
 Alejandro.-
 
 Quoting Marco Peereboom [EMAIL PROTECTED]:
 
 I have never seen this but I am very interested in this particular
 instance.  Apparently there is an issue with read ahead on mfi that I
 have never seen before on OpenBSD but other OS' have run into.
 
 Is this reproducible?  If so can you try to disable read ahead in
 CTRL-R (bios)?
 
 Thanks,
 /marco
 
 On Mon, Feb 12, 2007 at 11:31:26AM -0500, Alejandro Lozanoff wrote:
 Sorry for the message without body, im a little sleepy and hitted the
 wrong button... :p
 
 Ok,
 
 I had this problem last night on one of our shiny Dell PowerEdge 2950s
 with RAID 10 and SAS disks.
 For no reason it started screaming sd0: not queued: error 5 on the
 console, the  server didnt crash (no core, no trace) but was in an
 unresponsive state, i couldnt log on or anything. I was wondering if
 this error could be a hardware problem (RAID card maybe?).
 The logs dont show anything notorious, there were no heavy IO at the
 time of the problem. I'm kind of clueless at what could have been the
 problem, a quick search showed some old messages with SCSI cards
 problems only.
 
 This is 4.0 Stable as shown below.
 
 dmesg follows:
 
 OpenBSD 4.0-stable (GENERIC) #1: Mon Nov 27 16:23:49 GMT 2006
 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
 cpu0: Intel(R) Xeon(TM) CPU 3.00GHz (GenuineIntel 686-class) 3 GHz
 cpu0:
 
 FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
 
 H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,CNXT-ID,C
 X16
 cpu0: Enhanced SpeedStep disabled by BIOS
 real mem  = 1072955392 (1047808K)
 avail mem = 970735616 (947984K)
 using 4256 buffers containing 53751808 bytes (52492K) of memory
 mainbus0 (root)
 bios0 at mainbus0: AT/286+(00) BIOS, date 06/21/06, BIOS32 rev. 0 @
 0xffe90, SMBIOS rev. 2.4 @ 0x3ffbc000 (62 entries)
 bios0: Dell Inc. PowerEdge 2950
 pcibios0 at bios0: rev 2.1 @ 0xf/0x1
 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfade0/384 (22 entries)
 pcibios0: PCI Interrupt Router at 000:31:0 (Intel 6321ESB LPC rev 0x00)
 pcibios0: PCI bus #16 is the last bus
 bios0: ROM list: 0xc/0x9000! 0xc9000/0x1000 0xca000/0x1800
 0xcb800/0x5200 0xec000/0x4000!
 ipmi0 at mainbus0: version 2.0 interface KCS iobase 0xca8/8 spacing 4
 cpu0 at mainbus0
 pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
 pchb0 at pci0 dev 0 function 0 Intel 5000X Host rev 0x12
 ppb0 at pci0 dev 2 function 0 Intel 5000 PCIE rev 0x12
 pci1 at ppb0 bus 6
 ppb1 at pci1 dev 0 function 0 Intel 6321ESB PCIE rev 0x01
 pci2 at ppb1 bus 7
 ppb2 at pci2 dev 0 function 0 Intel 6321ESB PCIE rev 0x01
 pci3 at ppb2 bus 8
 ppb3 at pci3 dev 0 function 0 ServerWorks PCIE-PCIX rev 0xc2
 pci4 at ppb3 bus 9
 bnx0 at pci4 dev 0 function 0 Broadcom BCM5708 rev 0x11: irq 5,
 address 00:18:8b:72:c0:fd
 brgphy0 at bnx0 phy 1: BCM5708C 10/100/1000baseT PHY, rev. 5
 ppb4 at pci2 dev 1 function 0 Intel 6321ESB PCIE rev 0x01
 pci5 at ppb4 bus 10
 ppb5 at pci1 dev 0 function 3 Intel 6321ESB PCIE-PCIX rev 0x01
 pci6 at ppb5 bus 11
 ppb6 at pci0 dev 3 function 0 Intel 5000 PCIE rev 0x12
 pci7 at ppb6 bus 1
 ppb7 at pci7 dev 0 function 0 Intel IOP333 PCIE-PCIX rev 0x00
 pci8 at ppb7 bus 2
 mfi0 at pci8 dev 14 function 0 Dell PERC 5 rev 0x00: irq 6
 mfi0: logical drives 1, version 5.0.1-0030, 256MB RAM
 scsibus0 at mfi0: 1 targets
 sd0 at scsibus0 targ 0 lun 0: DELL, PERC 5/i, 1.00 SCSI3 0/direct fixed
 sd0: 278784MB, 278784 cyl, 64 head, 32 sec, 512 bytes/sec, 570949632 sec
 total
 ppb8 at pci7 dev 0 function 2 Intel IOP333 PCIE-PCIX rev 0x00
 pci9 at ppb8 bus 3
 ppb9 at pci0 dev 4 function 0 Intel 5000 PCIE rev 0x12
 pci10 at ppb9 bus 12
 ppb10 at pci0 dev 5 function 0 Intel 5000 PCIE rev 0x12
 pci11 at ppb10 bus 13
 ppb11 at pci0 dev 6 function 0 Intel 5000 PCIE rev 0x12
 pci12 at ppb11 bus 14
 ppb12 at pci0 dev 7 function 0 Intel 5000 PCIE rev 0x12
 pci13 at ppb12 bus 15
 pchb1 at pci0 dev 16 function 0 Intel 5000 Error Reporting rev 0x12
 pchb2 at pci0 dev 16 function 1 Intel 5000 Error Reporting rev 0x12
 pchb3 at pci0 dev 16 function 2 Intel 5000 Error Reporting rev 0x12
 pchb4 at pci0 dev 17 function 0 Intel 5000 Reserved rev 0x12
 pchb5 at pci0 dev 19 function 0 Intel 5000 Reserved rev 0x12
 pchb6 at pci0 dev 21 function 0 Intel 5000 FBD 

Re: dmesg and fdisk do not match about usb external disk

2007-02-12 Thread Marco S Hyman
frantisek holop writes:
  so what's up with these dick measurements?

I think you got that part just right :-)

Expecthing cyl * head * sec/cyl to come up with the number of actual
sectors on the disk is your problem.   Modern disk don't have a fixed
number of sec/track.  They use Zone Bit Recording which uses a different
number of sec/track depending upon the location of the track on the
disk.

The code tries to come up with an approximate CHS for historical
reasons.   It would probably be best if it just reported the number
of sectors as that is the only important measure.

// marc



Re: bsd cpu use

2007-02-12 Thread Clint Pachl

James Mackinnon wrote:

Hi All

Hate to ask something that might be a simple answer but I am trying to find
how it is best / easiest to get the CPU usage of a BSD 4.0 box.

I only need the result and not a bunch of other data as I want to store the
result in a mysql db.

Basically i'm just looking for either the idle number or the % used

I have tried with a few different options, but using SNMP (net-snmp 5x) I
can't find the actual % used or idle

any help or suggestions would be ideal.  I'm also working on finding the free
memory and some other stuff. I don't want to use MRTG at this point as we are
building a custom management system for custom purposes.
  


For some real-time data from top(1) try:
$ top -d2 -s2  | grep ^CPU
$ top -d1 -s1  | grep ^Mem

Parse as needed.

-pachl



Re: Writing Device Drivers Dokumentation

2007-02-12 Thread Ted Unangst

On 2/12/07, Nick ! [EMAIL PROTECTED] wrote:

Tell me, it's a joke when it says use electron microscope at
http://www.openbsd.org/papers/opencon06-drivers/mgp00020.html right?


xray machines can help too.