Re: Slow response...

2009-06-09 Thread Richard Toohey

On 9/06/2009, at 12:24 PM, Nebojsa Gavrilov wrote:


Hello,

I recently bought new computer (Phenon II X3 720, GA-MA790FXT-UD5P,  
4GB

RAM  400GB SATA) and I was decided to install 64 bit (amd64) OpenBSD
4.5 on it. Installation went well and I was setup OpenBSD to use  
bsd.mp

kernel.

However OpenBSD recognize just 3.3 GB of 4GB RAM and overall system
response seems very slow (compiling, untar, gunzip...).

I try to speed up OpenBSD with Soft Updates and now it is a little bit
faster then before but again it is very slow for my hardware capacity.

How can I speed up OpenBSD? Can anybody give me some hint what to  
do or

give me a keywords for further research?


[cut]

Re. the RAM - someone asked the same question on 29th May - search
for "amd64" at http://marc.info/?l=openbsd-misc&r=1&w=3

"Seems very slow" - is rather vague.  What's the machine doing?

Are you running X?

What does top say?  systat?  Lots of interrupts or CPU or IO bound?

Have you tried disabling acpi to see if that makes a difference?

If you try installing FreeBSD/Linux, does it seem any faster?
Is it measurably faster?  Horses for courses, each OS has
strengths and weaknesses.

You will need some benchmarks as well, to see if your changes
make any difference.

Think carefully before sending the results - these are just things  
for you
to investigate to narrow down the issue(s).  If you can actually say  
that

turning "foo" off makes your "bar" go 1000% faster, then someone might
be able to help - your question is too vague.

HTH.



Re: Separate desktop list?

2009-06-09 Thread Bill Maas
Hi Antoine,

On Mon, 2009-06-08 at 21:39 +0200, Antoine Jacoutot wrote:
> On Mon, 8 Jun 2009, Bill Maas wrote:
> > - evolution is incredibly slow at startup
> 
> Known issue. Probably threads related, but it is just a wild guess. I 
> had no time to look into the issue for real yet.
> 
> > - deleting a message before it is fully loaded will cause evolution to
> >   crash
> 
> Interesting, I'll try to reproduce that one.

Same with pressing a folder button before the program itself is fully
loaded. This occurred yesterday, after I posted this message, as if in
protest. "Loaded" seems to be an issue with Evolution. 

[...]

> > Also, copying from a vi(m) screen in an xterm window doesn't seem to
> > work (haven't made any attempt to sort that out yet).
> 
> xterm != GNOME, so I'll leave that one to others ;)

Excuse me, I was using the expression "xterm" in a generic manner. It's
acutally a GNOME terminal.

Thanks for patience and attention anyway,

Bill



/var/db/dhcpd.leases

2009-06-09 Thread Thanasis
I am running dhcpd via /etc/rc.conf.local (dhcpd_flags="le0") and it
works (as tested on the lan clients), but the file /var/db/dhcpd.leases
does not record any leases.
Is it normal?

# cat /var/db/dhcpd.leases
# All times in this file are in UTC (GMT), not your local timezone.
# The format of this file is documented in the dhcpd.leases(5) manual page.

#
# ls -l /var/db/dhcpd.leases
-rw-r--r--  1 root  wheel  145 Jun  7 12:32 /var/db/dhcpd.leases
#



pflow question - incorrect FIRST and LAST values ?

2009-06-09 Thread Фролов Константин
Hi all.

In fields FIRST and LAST in a stream should be system uptime during reception 
of the first package
and during reception of the last

When i use 'softflowd' software sensor - all OK (see below), but when i use 
pflow interface 
then in fields FIRST and LAST i see huge values.
Maybe somebody knows, what mean these values ?


2:56 PM, up 3 mins - flow collection begin with softflowd
-
UNIX_SECS=1244458921 # 2009-06-08 15:02:01 +04
SYSUPTIME=363460 # 363460/1000/60 = 6 mins
FIRST=60073   # 
LAST=60090# 
-

9:17 AM, up 18 mins - flow collection begin with pflow
-
UNIX_SECS=1244351870 # 2009-06-07 09:17:50 +04
SYSUPTIME=1119000# 1119000/60/1000=18.6 MIN
FIRST=3106274456 # 
LAST=3106291456  # 
-



Re: Slow response...

2009-06-09 Thread Jonathan Gray
change your wd entries in fstab to sd and set
the controller to AHCI mode in the bios.



Re: newfs_msdos alters disklabel?

2009-06-09 Thread Jussi Peltola
On Mon, Jun 08, 2009 at 07:43:22PM -0400, Nick Holland wrote:
> condensing... (Those who scream about the horror of top posting
> obviously don't have a netbook.  Having to flip down twenty
> screens worth just to see something one hasn't seen five times
> already is annoying and a good way to get ignored by me.)
 
S   skip-quoted skip beyond quoted text 

 
T   toggle-quoted   toggle display of quoted text

Just use a MUA that doesn't suck too much :)

-- 
Jussi Peltola



Re: newfs_msdos alters disklabel?

2009-06-09 Thread Thomas Pfaff
On Tue, 9 Jun 2009 14:18:59 +0300
Jussi Peltola  wrote:
> On Mon, Jun 08, 2009 at 07:43:22PM -0400, Nick Holland wrote:
> > condensing... (Those who scream about the horror of top posting
> > obviously don't have a netbook.  Having to flip down twenty
> > screens worth just to see something one hasn't seen five times
> > already is annoying and a good way to get ignored by me.)
>  
> S skip-quoted skip beyond quoted text
> T toggle-quoted   toggle display of quoted text
> 
> Just use a MUA that doesn't suck too much :)

Says the guy who just added 143 bytes of useless space characters
after the "skip beyond quoted " text ;-)

Anyway, I'm quite impressed by some of the people that post here
at how poorly they quote and snip away useless content.  I often
find myself having to scroll through pages of crap to get to the
point, just because the author was too lazy to delete (and often
they just decide to top post instead, which makes it real sweet
to quote and keep context later on).





Re: /var/db/dhcpd.leases

2009-06-09 Thread neal hogan
On Tue, Jun 09, 2009 at 11:05:23AM +0300, Thanasis wrote:
> I am running dhcpd via /etc/rc.conf.local (dhcpd_flags="le0") and it
> works (as tested on the lan clients), but the file /var/db/dhcpd.leases
> does not record any leases.
> Is it normal?
> 
> # cat /var/db/dhcpd.leases
> # All times in this file are in UTC (GMT), not your local timezone.
> # The format of this file is documented in the dhcpd.leases(5) manual page.

I don't think it's normal, assuming that you did it correctly. Are you using 
your box as an access point? I'm curious what makes you think "it works?" Did 
you consult: http://www.openbsd.org/faq/faq6.html#DHCPclient and 
http://www.openbsd.org/faq/faq6.html#DHCPserver ? It's pretty straightforward.

> 
> #
> # ls -l /var/db/dhcpd.leases
> -rw-r--r--  1 root  wheel  145 Jun  7 12:32 /var/db/dhcpd.leases
> #



Re: Partition confusion

2009-06-09 Thread frantisek holop
hmm, on Sat, Jun 06, 2009 at 01:27:25PM -0400, Jacob L. Leifman said that
> what is provided by Microsoft. In particular, there are a few stable 
> and open source drivers to allow XP to access Linux ext2/3 filesystems. 

they are far from stable.  maybe read-only.

-f
-- 
suicidal twin kills sister by mistake!



Re: Installer: NTP server from DHCP

2009-06-09 Thread Kenneth R Westerback
On Mon, Jun 08, 2009 at 04:15:12PM +, Stuart Henderson wrote:
> On 2009-06-08, Thomas Pfaff  wrote:
> > In the installer, when configuring an interface using DHCP and then later
> > when you're asked to specify an NTP server, would it be possible to use
> > the server specified by the DHCP server (option ntp-servers ip-address)?
> >
> >
> 
> Since people were asking for things to do, this might be a nice little
> project for someone with time who's interested in it.
> 
> Starting points: /usr/src/distrib/miniroot/install.sub, and release(8).
> 

And dhclient-script.

 Ken



Re: Openbgpd : how to ADD a community ?

2009-06-09 Thread Stuart Henderson
On 2009-06-08, Xavier Beaudouin  wrote:
> Hello,
>
> I use OpenBSD 4.5 on one of my router. I'd like to ADD a community to  
> group of peer.
>
> I have currenlty such statements :
>
>
> # Set transit communities
> match from group Transit set { community 35189:9000, med 20 }
>
> # Set peering communities
> match from group Peering set { community 35189:8000, med 15 }

That works just fine. Look at "bgpctl sh rib detail".

The path received over a session with a member of group Transit will have
35189:9000 applied, and the path received over a session with a member
of group Peering will have 35189:8000 applied.

Here's an example, I'm applying 41103:3344 to paths from 3344, and
41103:25577 to paths from 25577, I receive 193.131.248/22 from both and
this is how it looks:

# bgpctl sh rib d 193.131.248/22

BGP routing table entry for 193.131.248.0/22
3344 21099 4589
Nexthop 85.116.1.209 (via 85.116.1.209) from kewlio.sorcerer (85.116.0.23)
Origin IGP, metric 5, localpref 250, external, valid, best
Last update: 07w0d01h ago
Communities: 41103:3344 3344:21099 3344:6 3344:63300 21099:6 
21099:60001
 ^^

BGP routing table entry for 193.131.248.0/22
25577 25577 25577 4589
Nexthop 84.45.104.81 (via 84.45.104.81) from c4l-1 (10.134.221.14)
Origin IGP, metric 0, localpref 250, external, valid
Last update: 1d03h11m ago
Communities: 41103:25577 4589:1 4589:2 4589:14400 11341:1 11341:10 
25577:21000 25577:21100 25577:21120
 ^^^



> Problem, if that I have same subnet on 2 group Transit and Peering so  
> I cannot have both of them on the route.

I don't quite understand what this means. What does a subnet have
to do with anything?


> Is there any way to do :
>
> match from group Peering set { community +35189:8000, med 15 }

that is exactly what happens when you do
"match from group Peering set { community 35189:8000, med 15 }"

You aren't expecting to have Peering's filters applied to paths received
from Transit, are you?



Re: pflow question - incorrect FIRST and LAST values ?

2009-06-09 Thread Stuart Henderson
On 2009-06-09, fROLOW kONSTANTIN  wrote:
> Hi all.
>
> In fields FIRST and LAST in a stream should be system uptime during reception 
> of the first package
> and during reception of the last
>
> When i use 'softflowd' software sensor - all OK (see below), but when i use 
> pflow interface 
> then in fields FIRST and LAST i see huge values.
> Maybe somebody knows, what mean these values ?

flow_start is specified as system uptime (in ms) at the start of flow,
to calculate the actual time you must look at uptime_ms and time_sec /
time_nanosec from the flow header.

This is done so that millisecond timestamp resolution is available
without using more than 32 bits in the wire format (reduces overhead).

The fix might be as simple as this, but it's totally untested, not
even compiled.

Index: if_pflow.c
===
RCS file: /cvs/src/sys/net/if_pflow.c,v
retrieving revision 1.10
diff -u -p -r1.10 if_pflow.c
--- if_pflow.c  27 Feb 2009 11:09:36 -  1.10
+++ if_pflow.c  9 Jun 2009 14:01:43 -
@@ -356,8 +356,8 @@ copy_flow_data(struct pflow_flow *flow1,
flow1->flow_octets = htonl(st->bytes[0]);
flow2->flow_octets = htonl(st->bytes[1]);
 
-   flow1->flow_start = flow2->flow_start = htonl(st->creation * 1000);
-   flow1->flow_finish = flow2->flow_finish = htonl(time_second * 1000);
+   flow1->flow_start = flow2->flow_start = 
htonl((st->creation-time_uptime) * 1000);
+   flow1->flow_finish = flow2->flow_finish = 
htonl((time_second-time_uptime) * 1000);
flow1->tcp_flags = flow2->tcp_flags = 0;
flow1->protocol = flow2->protocol = sk->proto;
flow1->tos = flow2->tos = st->rule.ptr->tos;




> 2:56 PM, up 3 mins - flow collection begin with softflowd
> -
> UNIX_SECS=1244458921 # 2009-06-08 15:02:01 +04
> SYSUPTIME=363460 # 363460/1000/60 = 6 mins
> FIRST=60073   # 
> LAST=60090# 
> -
>
> 9:17 AM, up 18 mins - flow collection begin with pflow
> -
> UNIX_SECS=1244351870 # 2009-06-07 09:17:50 +04
> SYSUPTIME=1119000# 1119000/60/1000=18.6 MIN
> FIRST=3106274456 # 
> LAST=3106291456  # 
> -



Re: azalia

2009-06-09 Thread Dan Harnett
On Tue, Jun 09, 2009 at 05:19:21AM +, Jacob Meuser wrote:
> On Mon, May 04, 2009 at 08:21:52AM +, Jacob Meuser wrote:
> > I put a lot of work into azalia(4) in the last release cycel, and I'd
> > like to be able to say, when 4.6 release comes, that azalia is
> > "completed".
> > 
> > by completed I mean it "just works" as expected, by default, everywhere.
> > 
> > so, if you are using OpenBSD 4.5 or -current, and you have *any*
> > issues with azalia(4) (I mean anything, even if it seems "small" or 
> > is "not really a bug but I change this everytime"), please let me
> > know.
> 
> if anyone still has any problems with azalia, please let me know.

I noticed this a while ago, but don't really care because I disable it
anyway.  However, if you're interested...

The "alarm" on my ThinkPad T61 and ThinkPad X61s no longer seem to work.
It's just a beep or series of beeps when the A/C power state changes or
the battery starts to run low.

Here is the mixerctl and dmesg output for the X61s.

inputs.dac=186,186 
inputs.dac2=186,186 
inputs.hp_source=sel6,mix6  { sel6 mix6 }
inputs.spkr_source=dac2,mix6  { dac2 mix6 }
record.adc2_source=mic2  [ mic mic2 ]
record.adc2_mute=on  [ off on ]
record.adc2=124,124 
record.adc_source=mic  [ mic mic2 ]
record.adc_mute=on  [ off on ]
record.adc=216,156 
inputs.sel3_source=dac  [ dac dac2 ]
inputs.sel4_source=dac  [ dac dac2 ]
inputs.beep_mute=off  [ off on ]
inputs.beep=119 
outputs.hp_mute=off  [ off on ]
outputs.hp_boost=off  [ off on ]
outputs.spkr_mute=off  [ off on ]
outputs.spkr_boost=off  [ off on ]
outputs.spkr_eapd=on  [ off on ]
inputs.mic=85,85 
outputs.mic_dir=input-vr80  [ none input input-vr0 input-vr50 input-vr80 
input-vr100 ]
inputs.mic2=85,85 
outputs.mic2_dir=input-vr80  [ none input input-vr0 input-vr50 input-vr80 
input-vr100 ]
outputs.mic3_mute=on  [ off on ]
outputs.mic3_dir=input-vr80  [ none output input input-vr0 input-vr50 
input-vr80 input-vr100 ]
outputs.vendor_source=hp  [ hp spkr adc2 adc sel3 sel4 beep hp ]
inputs.mix4_source=sel3,mix6  { sel3 mix6 }
inputs.mix6_source=mic,mic2  { mic mic2 }
inputs.mix6_mic=120,120 
inputs.mix6_mic2=120,120 
outputs.mix6_mute=off  [ off on ]
outputs.mix6=120,120 
inputs.sel6_source=dac  [ dac dac2 ]
inputs.sel7_source=dac  [ dac dac2 ]
inputs.mic3_source=sel7,mix6  { sel7 mix6 }
inputs.mic3=85,85 
outputs.vendor2_source=mic  [ mic mic2 mic3 ]
outputs.hp_sense=plugged  [ unplugged plugged ]
outputs.mic_sense=unplugged  [ unplugged plugged ]
outputs.mic3_sense=unplugged  [ unplugged plugged ]
outputs.spkr_muters=hp,mic,mic3  { hp mic mic3 }
outputs.master=190,190 
outputs.master.mute=off  [ off on ]
outputs.master.slaves=dac,dac2,hp,spkr  { dac dac2 beep hp spkr mic3 mix6 mic3 }
record.volume=124,124 
record.volume.mute=on  [ off on ]
record.volume.slaves=adc2,adc  { adc2 adc mic mic2 }

OpenBSD 4.5-current (GENERIC.MP) #16: Tue Jun  9 02:21:45 EDT 2009
d...@ares.localdomain:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2119892992 (2021MB)
avail mem = 2046922752 (1952MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (63 entries)
bios0: vendor LENOVO version "7NETB8WW (2.18 )" date 09/26/2008
bios0: LENOVO 7668CTO
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET SLIC BOOT ASF! SSDT SSDT 
SSDT SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) DURT(S3) IGBE(S4) EXP0(S4) EXP1(S4) 
EXP2(S4) EXP3(S4) EXP4(S4) PCI1(S4) USB0(S3) USB1(S3) USB2(S3) USB3(S3) 
USB4(S3) EHC0(S3) EHC1(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 Duo CPU L7500 @ 1.60GHz, 1596.30 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,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR,NXE,LONG
cpu0: 4MB 64b/line 16-way L2 cache
cpu0: apic clock running at 199MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU L7500 @ 1.60GHz, 1596.00 MHz
cpu1: 
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,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR,NXE,LONG
cpu1: 4MB 64b/line 16-way L2 cache
ioapic0 at mainbus0 apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus -1 (EXP2)
acpiprt5 at acpi0: bus -1 (EXP3)
acpiprt6 at acpi0: bus -1 (EXP4)
acpiprt7 at acpi0: bus 5 (PCI1)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpipwrres0 at acpi0: PUBS
acpitz0 at acpi0: critical temperature 127 degC
acpitz1 at acpi0: critical temperature 99 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model "42T4631" serial  4147 type LION oem "SON

trying out simple ospf setup

2009-06-09 Thread Imre Oolberg
Hallo!

I am thinking of startig using ospf techology to set up higer redundancy
but at the moment i am just there where i am trying out my first setup.
I have read some books on the topic and now i am following the text from
http://www.openbsd.org/papers/linuxtag06-network.pdf.

To follow the 'Distant-office - Local-office' part from page 7 i set up
 xen hvm hosts, configured networking and started ospfd daemons on both
ends, when they start i belive things work as they should but after
taking preferred link down and putting back up my ospf setup isnt
adjusting to the change.

I am sorry for the long letter but i decided to present my setup in
appropriate detail so someone could point me to the right direction.

Leaving out details my setup is like this

ne1, 192.168.15.1 -- 192.168.15.254, ne1
 metric 100, over 1st xen bridge
  distant   local
  officeoffice
 metric 10, over 2nd xen bridge
ne2, 192.168.16.1 -- 192.168.16.254, ne2

ospfd.conf at distant office is

router-id 0.0.0.2
redistribute connected

# areas
area 0.0.0.0 {
interface ne1 { metric 100 }
interface ne2 { metric 10 }
}

ospfd.conf at local office is

router-id 0.0.0.1
redistribute connected

# areas
area 0.0.0.0 {
interface ne1 { metric 100 }
interface ne2 { metric 10 }
}

I started ospf like '# ospfd -vd'.

1. FIRST TEST - both links are up and things work

And after ospf settles and things work i have at distant office
(interesting why linkstate is unknown, because of xen?)

# ospfctl show int
Interface   Address State  HelloTimer Linkstate  Uptimenc  ac
ne2   192.168.16.1/24DR 00:00:07   unknown00:02:33   1   1
ne1   192.168.15.1/24DR 00:00:07   unknown00:02:33   1   1

and neighborhood


# ospfctl show nei
IDPri StateDeadTime Address Iface Uptime
0.0.0.1   1   FULL/BCKUP   00:00:38 192.168.16.254  ne2   00:05:12
0.0.0.1   1   FULL/BCKUP   00:00:39 192.168.15.254  ne1   00:05:12

and rib

c# ospfctl show rib
Destination   Nexthop   Path TypeType  CostUptime
0.0.0.1192.168.16.254  Intra-Area   Router10  00:05:47
192.168.15.0/24  192.168.15.1  Intra-Area   Network   100 00:05:52
192.168.16.0/24  192.168.16.1  Intra-Area   Network   10  00:05:52
0.0.0.0/0  192.168.16.254  Type 1 ext   Network   110 00:05:47


2. SECOND TEST - preferred ie with metric 10 link down

Things work, at distant office i have

# ospfctl show int
Interface AddressState  HelloTimer Linkstate  Uptimenc  ac
ne2192.168.16.1/24DR 00:00:06   unknown00:15:45   1   0
ne1192.168.15.1/24DR 00:00:06   unknown00:15:45   1   1

# ospfctl show nei
ID  Pri StateDeadTime Address Iface Uptime
0.0.0.1  1   DOWN/OTHER   00:01:29 192.168.16.254  ne2   -
0.0.0.1  1   FULL/BCKUP   00:00:32 192.168.15.254  ne1   00:15:49

as i see, distant office learned new default route, very good

# ospfctl show rib
Destination  NexthopPath TypeType  CostUptime
0.0.0.1  192.168.15.254 Intra-Area   Router100 00:02:12
192.168.15.0/24 192.168.15.1Intra-Area   Network   100 00:16:33
192.168.16.0/24 192.168.15.254  Intra-Area   Network   110 00:02:12
0.0.0.0/0   192.168.15.254  Type 1 ext   Network   200 00:02:12

3. THIRD TEST - preferred link is put back up

Traffic flows but it isnt switching back to the preferred metric 10
link, at the distant office i have

# ospfctl show int
Interface Address   State  HelloTimer Linkstate  Uptimenc  ac
ne2 192.168.16.1/24DR 00:00:04   unknown00:22:17   1   1
ne1 192.168.15.1/24DR 00:00:04   unknown00:22:17   1   1

for some reason state stays on FULL/OTHER

# ospfctl show nei
ID   Pri StateDeadTime Address Iface Uptime
0.0.0.1  1   FULL/OTHER   00:00:36 192.168.16.254  ne2   00:00:13
0.0.0.1  1   FULL/BCKUP   00:00:36 192.168.15.254  ne1   00:21:45

and routing stays on metric 100 link

# ospfctl show rib
Destination  Nexthop   Path TypeType  CostUptime
0.0.0.1  192.168.15.254Intra-Area   Router100 00:08:49
192.168.15.0/24 192.168.15.1   Intra-Area   Network   100 00:23:10
192.168.16.0/24 192.168.16.1   Intra-Area   Network   10  00:01:38
0.0.0.0/0   192.168.15.254 Type 1 ext   Network   200 00:08:49

If i continue and take down the metric 10 link, then traffic stops and i get

# ospfctl show nei
ID   Pri StateDeadTime Address Iface Uptime
0.0.0.1  1   FULL/OTHER   00:00:37 192.168.16.254  ne2   00:07:52
0.0.0.1  1   DOWN/OTHER   00:00:03 192.168.15.254  ne1   -

and when i put it back i dont get traffic and i have

# ospfctl show nei
ID  Pri StateDeadTime Address Iface Uptime
0.0.0.1  1  

Ext2/3 mount trouble

2009-06-09 Thread Bill Maas
Hi,

I posted a message earlier about a kernel panic occurring when I
accessed a file on some of my ext3 fses. I've also been having trouble
with r/w extfs entries in fstab. At boot time I'm dropped to a shell
because fsck thinks the fs is unclean, even when "the other side" says
it's clean.

There is a simple workaround: declare all ext2fs mounts ro
in /etc/fstab, and remount these r/w after boot. This hasn't given me a
single problem so far (except that it's a bit inconvenient).

Bill

dmesg:
OpenBSD 4.5 (GENERIC) #1749: Sat Feb 28 14:51:18 MST 2009
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Core(TM)2 Duo CPU T9400 @ 2.53GHz ("GenuineIntel"
686-class) 2.53 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,CX16,xTPR
real mem  = 3214176256 (3065MB)
avail mem = 3114315776 (2970MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 09/24/08, BIOS32 rev. 0 @ 0xfdc80,
SMBIOS rev. 2.4 @ 0xe0010 (74 entries)
bios0: vendor LENOVO version "6FET46WW (1.16 )" date 09/24/2008
bios0: LENOVO 4058CTO
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SSDT ECDT APIC MCFG HPET SLIC BOOT ASF! SSDT
SSDT SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) UART(S3) IGBE(S4) EXP0(S4)
EXP1(S4) EXP2(S4) EXP3(S4) EXP4(S4) PCI1(S4) USB0(S3) USB1(S3) USB2(S3)
USB3(S3) USB4(S3) USB5(S3) EHC0(S3) EHC1(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 265MHz
cpu at mainbus0: not configured
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus -1 (EXP2)
acpiprt5 at acpi0: bus 5 (EXP3)
acpiprt6 at acpi0: bus 13 (EXP4)
acpiprt7 at acpi0: bus 21 (PCI1)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2
acpitz0 at acpi0: critical temperature 127 degC
acpitz1 at acpi0: critical temperature 100 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model "92P1133" serial   199 type LION oem
"Panasonic"
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
acpidock at acpi0 not configured
acpivideo at acpi0 not configured
acpivideo at acpi0 not configured
bios0: ROM list: 0xc/0xfc00 0xd/0x1000 0xd1000/0x1000
0xd2000/0x1000 0xde000/0x1800! 0xe/0x1
cpu0: unknown Enhanced SpeedStep CPU, msr 0x0617492506004925
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 19467 MHz (1292 mV): speeds: 19467, 1600 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel GM45 Host" rev 0x07
ppb0 at pci0 dev 1 function 0 "Intel GM45 PCIE" rev 0x07: apic 1 int 16
(irq 11)
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "ATI Mobility Radeon HD 3650" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
"Intel GM45 HECI" rev 0x07 at pci0 dev 3 function 0 not configured
em0 at pci0 dev 25 function 0 "Intel ICH9 IGP M AMT" rev 0x03: apic 1
int 20 (irq 11), address 00:1c:25:97:34:61
uhci0 at pci0 dev 26 function 0 "Intel 82801I USB" rev 0x03: apic 1 int
20 (irq 11)
uhci1 at pci0 dev 26 function 1 "Intel 82801I USB" rev 0x03: apic 1 int
21 (irq 11)
uhci2 at pci0 dev 26 function 2 "Intel 82801I USB" rev 0x03: apic 1 int
22 (irq 11)
ehci0 at pci0 dev 26 function 7 "Intel 82801I USB" rev 0x03: apic 1 int
23 (irq 11)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 "Intel 82801I HD Audio" rev 0x03: apic
1 int 17 (irq 11)
azalia0: RIRB time out
azalia0: codecs: Conexant CX20561, Conexant/0x2c06, using Conexant
CX20561
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 "Intel 82801I PCIE" rev 0x03: apic 1 int
20 (irq 11)
pci2 at ppb1 bus 2
ppb2 at pci0 dev 28 function 1 "Intel 82801I PCIE" rev 0x03: apic 1 int
21 (irq 11)
pci3 at ppb2 bus 3
iwn0 at pci3 dev 0 function 0 "Intel WiFi Link 5300AGN" rev 0x00: apic 1
int 17 (irq 11), MIMO 3T3R, MoW, address 00:16:ea:a3:00:2c
ppb3 at pci0 dev 28 function 3 "Intel 82801I PCIE" rev 0x03: apic 1 int
23 (irq 11)
pci4 at ppb3 bus 5
ppb4 at pci0 dev 28 function 4 "Intel 82801I PCIE" rev 0x03: apic 1 int
20 (irq 11)
pci5 at ppb4 bus 13
uhci3 at pci0 dev 29 function 0 "Intel 82801I USB" rev 0x03: apic 1 int
16 (irq 11)
uhci4 at pci0 dev 29 function 1 "Intel 82801I USB" rev 0x03: apic 1 int
17 (irq 11)
uhci5 at pci0 dev 29 function 2 "Intel 82801I USB" rev 0x03: apic 1 int
18 (irq 11)
ehci1 at pci0 dev 29 function 7 "Intel 82801I USB" rev 0x03: apic 1 int
19 (irq 11)
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb5 at pci0 

Ext2/3 mount trouble - follow-up

2009-06-09 Thread Bill Maas
Hi,

I figured I might as well add some disk details to my previous
message (Ext2/3 mount trouble), so here's the whole story.


r...@happyflowers:~# cat /etc/fstab 

/dev/sd0a / ffs rw 1 1
/dev/sd0g /home ffs rw,nodev,nosuid 1 2
/dev/sd0f /tmp ffs rw,nodev,nosuid 1 2
/dev/sd0d /usr ffs rw,nodev 1 2
/dev/sd0e /var ffs rw,nodev,nosuid 1 2
/dev/sd0l /mnt/export ext2fs ro,nodev,nosuid 1 2
/dev/sd0m /mnt/home ext2fs ro,nodev,nosuid 1 2
#/dev/sd0n /mnt/ubu ext2fs ro,nodev,nosuid,noauto 1 2
#/dev/sd0o /mnt/misc ext2fs ro,nodev,nosuid,noauto 1 2
#/dev/sd0p /mnt/backup ext2fs ro,nodev,nosuid,noauto 1 2
/dev/cd0a /mnt/cdrom cd9660 noauto,ro 0 0


Devices sd0l and sd0m give no trouble as long as I don't try to
have them mounted r/w at boot. Accessing a file (in the broad
sense) on any of the other ext2 partitions causes the system
to panic.


r...@happyflowers:~# disklabel sd0 
# Inside MBR partition 2: type A6 start 58605120 size 19535040
# /dev/rsd0c:
type: SCSI
disk: SCSI disk
label: ST9320421AS 
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 38913
total sectors: 625142448
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0   # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0 

16 partitions:
#size   offset  fstype [fsize bsize  cpg]
  a:  1028160 59633280  4.2BSD   2048 163841 
  b:  1028160 58605120swap   
  c:6251424480  unused   
  d: 12594960 60661440  4.2BSD   2048 163841 
  e:  2104515 73256400  4.2BSD   2048 163841 
  f:  2104515 75360915  4.2BSD   2048 163841 
  g:   674730 77465430  4.2BSD   2048 163841 
  i: 58605057   63NTFS   
  j: 11430720613705680 unknown   
  k:  7807527 78140223 unknown   
  l: 19534977 85947813  ext2fs   
  m: 19534977105482853  ext2fs   
  n: 19534977125017893  ext2fs   
  o: 19534977144552933  ext2fs   
  p: 19534977164087973  ext2fs   


The reason why I use those ext3 partitions will be clear: shared
bulk data - can't reach my music & videos from OpenBSD right now:-(.


r...@happyflowers:~# fdisk sd0 
Disk: sd0   geometry: 41345/240/63 [625142448 Sectors]
Offset: 0   Signature: 0xAA55
Starting Ending LBA Info:
 #: id  C   H   S -  C   H   S [   start:size ]
---
*0: 07  0   1   1 -   3875 239  63 [  63:58605057 ] HPFS/QNX/AUX
 1: 12  40589   0   1 -  41344 239  63 [   613705680:11430720 ] Compaq Diag.
 2: A6   3876   0   1 -   5167 239  63 [58605120:19535040 ] OpenBSD 
 3: 05   5168   0   1 -  40588 239  63 [78140160:   535565520 ] Extended DOS
Offset: 78140160Signature: 0xAA55
Starting Ending LBA Info:
 #: id  C   H   S -  C   H   S [   start:size ]
---
 0: 82   5168   1   1 -   5684  89  63 [78140223: 7807527 ] Linux swap  
 1: 05   5684  90   1 -   6976  89  63 [85947750:19535040 ] Extended DOS
 2: 00  0   0   0 -  0   0   0 [   0:   0 ] unused  
 3: 00  0   0   0 -  0   0   0 [   0:   0 ] unused  
Offset: 85947750Signature: 0xAA55
Starting Ending LBA Info:
 #: id  C   H   S -  C   H   S [   start:size ]
---
 0: 83   5684  91   1 -   6976  89  63 [85947813:19534977 ] Linux files*
 1: 05   6976  90   1 -   8268  89  63 [   105482790:19535040 ] Extended DOS
 2: 00  0   0   0 -  0   0   0 [   0:   0 ] unused  
 3: 00  0   0   0 -  0   0   0 [   0:   0 ] unused  
Offset: 105482790   Signature: 0xAA55
Starting Ending LBA Info:
 #: id  C   H   S -  C   H   S [   start:size ]
---
 0: 83   6976  91   1 -   8268  89  63 [   105482853:19534977 ] Linux files*
 1: 05   8268  90   1 -   9560  89  63 [   125017830:19535040 ] Extended DOS
 2: 00  0   0   0 -  0   0   0 [   0:   0 ] unused  
 3: 00  0   0   0 -  0   0   0 [   0:   0 ] unused  
Offset: 125017830   Signature: 0xAA55
Star

Re: /var/db/dhcpd.leases

2009-06-09 Thread Thanasis
on 06/09/2009 02:52 PM neal hogan wrote the following:
> On Tue, Jun 09, 2009 at 11:05:23AM +0300, Thanasis wrote:
>   
>> I am running dhcpd via /etc/rc.conf.local (dhcpd_flags="le0") and it
>> works (as tested on the lan clients), but the file /var/db/dhcpd.leases
>> does not record any leases.
>> Is it normal?
>>
>> # cat /var/db/dhcpd.leases
>> # All times in this file are in UTC (GMT), not your local timezone.
>> # The format of this file is documented in the dhcpd.leases(5) manual page.
>> 
>
> I don't think it's normal, assuming that you did it correctly. Are you using 
> your box as an access point? 
As a mail, name and dhcp server.
> I'm curious what makes you think "it works?" 
I mean it does actually assign addresses to the network (lan) clients,
although all are like static, ie assigned according to mac ethernet
addresses of the clients' NICs.

host x {
  hardware ethernet xx:xx:xx:xx:xx:xx;
  fixed-address 192.168.0.XXX;
}

> Did you consult: http://www.openbsd.org/faq/faq6.html#DHCPclient and 
> http://www.openbsd.org/faq/faq6.html#DHCPserver ? It's pretty straightforward.
>   
yes.



Re: /var/db/dhcpd.leases

2009-06-09 Thread Stuart Henderson
If they're static, then they're not leases, so they're not recorded
in the leases file.

On 2009-06-09, Thanasis  wrote:
> on 06/09/2009 02:52 PM neal hogan wrote the following:
>> On Tue, Jun 09, 2009 at 11:05:23AM +0300, Thanasis wrote:
>>   
>>> I am running dhcpd via /etc/rc.conf.local (dhcpd_flags="le0") and it
>>> works (as tested on the lan clients), but the file /var/db/dhcpd.leases
>>> does not record any leases.
>>> Is it normal?
>>>
>>> # cat /var/db/dhcpd.leases
>>> # All times in this file are in UTC (GMT), not your local timezone.
>>> # The format of this file is documented in the dhcpd.leases(5) manual page.
>>> 
>>
>> I don't think it's normal, assuming that you did it correctly. Are you using 
>> your box as an access point? 
> As a mail, name and dhcp server.
>> I'm curious what makes you think "it works?" 
> I mean it does actually assign addresses to the network (lan) clients,
> although all are like static, ie assigned according to mac ethernet
> addresses of the clients' NICs.
>
> host x {
>   hardware ethernet xx:xx:xx:xx:xx:xx;
>   fixed-address 192.168.0.XXX;
> }



Re: Ext2/3 mount trouble

2009-06-09 Thread Ted Unangst
On Tue, Jun 9, 2009 at 2:03 PM, Bill Maas  wrote:
> I posted a message earlier about a kernel panic occurring when I
> accessed a file on some of my ext3 fses. I've also been having trouble
> with r/w extfs entries in fstab. At boot time I'm dropped to a shell
> because fsck thinks the fs is unclean, even when "the other side" says
> it's clean.

ext3 is marked dirty because the journal hasn't been played back.  You
have to convert it to ext2 in linux before mounting in openbsd.



Re: /var/db/dhcpd.leases

2009-06-09 Thread Thanasis
on 06/09/2009 08:25 PM Stuart Henderson wrote the following:
> If they're static, then they're not leases, so they're not recorded
> in the leases file.
>   
They are not static, but they are fixed and they actually get assigned
to the clients by this very dhcpd.
I hope I make myself clear now.
So in this case is it normal, not having any entries in
/var/db/dhcpd.leases ?



Re: /var/db/dhcpd.leases

2009-06-09 Thread Johan Beisser
2009/6/9 Thanasis :

> They are not static, but they are fixed and they actually get assigned

They're fixed then. Yes, it's normal behavior because they're not
considered a lease, and rather viewed as what they are: assigned and
reserved.

> So in this case is it normal, not having any entries in
> /var/db/dhcpd.leases ?

Again, yes.



Re: /var/db/dhcpd.leases

2009-06-09 Thread Stuart Henderson
On 2009/06/09 20:40, Thanasis wrote:
> on 06/09/2009 08:25 PM Stuart Henderson wrote the following:
> > If they're static, then they're not leases, so they're not recorded
> > in the leases file.
> >   
> They are not static, but they are fixed and they actually get assigned
> to the clients by this very dhcpd.
> I hope I make myself clear now.
> So in this case is it normal, not having any entries in
> /var/db/dhcpd.leases ?

A static assignment done in dhcpd.conf as a fixed-address is not a
lease.



Re: /var/db/dhcpd.leases

2009-06-09 Thread Thanasis
on 06/09/2009 08:55 PM Johan Beisser wrote the following:
> 2009/6/9 Thanasis :
>
>   
>> They are not static, but they are fixed and they actually get assigned
>> 
>
> They're fixed then. Yes, it's normal behavior because they're not
> considered a lease, and rather viewed as what they are: assigned and
> reserved.
>
>   
>> So in this case is it normal, not having any entries in
>> /var/db/dhcpd.leases ?
>> 
>
> Again, yes.
>
>   
OK. Thank you all.
:-)



Automated service/daemon management

2009-06-09 Thread (private) HKS
As my environment grows, I'm automating more and more of my work
(package installation, config file propagation, etc.) so I can keep up
with it. The problem I'm running into with my OpenBSD boxes is with
services/daemons.

When my scripts install a package, they have to edit the monolithic
/etc/rc.local in order to enable starting (rc.conf.local too, but
that's a single line easily done with sed and checked with grep).
Uninstalling a package is scarier since they're removing the parts of
/etc/rc.local. Both of these rely on multi-line pattern matching and
merging, which are imperfect sciences that wrack my nerves when they
run automatically.

The much larger problem, though, is with starting/stopping/restarting
services. Say I add spamd as an enabled service on host1. For my
scripts to start it properly, I have to replicate the code already in
/etc/rc defining how spamd starts. This is prone to errors and runs
the risk of breaking on upgrades. Restarting services that need more
than a HUP is also a chore. As for stopping, some services like
postgresql need some careful attention. This means replicating code
from /etc/rc.shutdown.

I've looked at adding some stupid delimiters to /etc/rc,
/etc/rc.local, and /etc/rc.shutdown so I can just pull in the
necessary chunks, but I'm wondering if there's anything available
that's more elegant and won't break on every upgrade.

Has anyone solved this problem on OpenBSD?

-HKS



Re: /var/db/dhcpd.leases

2009-06-09 Thread neal hogan
On Tue, Jun 09, 2009 at 08:40:31PM +0300, Thanasis wrote:
> on 06/09/2009 08:25 PM Stuart Henderson wrote the following:
> > If they're static, then they're not leases, so they're not recorded
> > in the leases file.
> >   
> They are not static, but they are fixed and they actually get assigned
> to the clients by this very dhcpd.
> I hope I make myself clear now.
> So in this case is it normal, not having any entries in
> /var/db/dhcpd.leases ?

yes



snapshot package error: pixman-1.12.0 dependency not found

2009-06-09 Thread Mihai Popescu B.S.
Hello,

I'm trying to install OpenBSD 4.5 i386 from snapshots and this is the
third snapshot which gives me this error when trying to install
mozilla-firefox package.

[...]
Can't install cairo-1.8.6p1: lib not found pixman-1.12.0
[...]
pixman-1.12.0: partial match in /usr/X11R6/lib: major=15, minor=8 (bad major)
[...]

Of course the mozilla-package is not installed.
I tried the install45.iso from 6, 7, 8-June. The package collection is
from 6-June. From what I read on dependency stuff is looks like the
cairo was linked against a future pixman version which is not shipped
in the base packages. But maybe I am wrong.

Can someone tell me please what's the issue here and how should I
approach the install method from snapshots?
Am I dong something wrong ?

Thanks



Re: snapshot package error: pixman-1.12.0 dependency not found

2009-06-09 Thread Mihai Popescu B.S.
.

Drop this issue, I got the idea. The base was providing a newer
version of pixman than the package was linked against, it's the other
way around what I thought. So I should wait for another _package_ set
snapshot, not base.

Thanks and excuse me for the noise.



Re: Automated service/daemon management

2009-06-09 Thread Nick Hasser
(private) HKS wrote:
> Has anyone solved this problem on OpenBSD?
> 
> -HKS
> 

I have not yet, but I've been meaning to look into systems such as
cfengine [1], puppet [2], chef [3], etc.

I'd be interested in any experiences folks have with these types of
systems and OpenBSD.

Nick

[1] http://www.cfengine.org/
[2] http://reductivelabs.com/products/puppet/
[3] http://wiki.opscode.com/display/chef/Home



Re: Automated service/daemon management

2009-06-09 Thread (private) HKS
On Tue, Jun 9, 2009 at 3:02 PM, Nick Hasser wrote:
> (private) HKS wrote:
>> Has anyone solved this problem on OpenBSD?
>>
>> -HKS
>>
>
> I have not yet, but I've been meaning to look into systems such as
> cfengine [1], puppet [2], chef [3], etc.
>
> I'd be interested in any experiences folks have with these types of
> systems and OpenBSD.
>
> Nick
>
> [1] http://www.cfengine.org/
> [2] http://reductivelabs.com/products/puppet/
> [3] http://wiki.opscode.com/display/chef/Home
>

Puppet is the one I'm working with right now. It's great, but it
doesn't solve the problems I outlined above.

-HKS



Re: Automated service/daemon management

2009-06-09 Thread Will Maier
On Tue, Jun 09, 2009 at 02:06:59PM -0400, (private) HKS wrote:
> The much larger problem, though, is with starting/stopping/restarting
> services. Say I add spamd as an enabled service on host1. For my
> scripts to start it properly, I have to replicate the code already in
> /etc/rc defining how spamd starts. This is prone to errors and runs
> the risk of breaking on upgrades. Restarting services that need more
> than a HUP is also a chore. As for stopping, some services like
> postgresql need some careful attention. This means replicating code
> from /etc/rc.shutdown.

You can make this easier in rc.local by using a construct along the
lines described here:

http://erdelynet.com/tech/openbsd/rclocal-trick/

> I've looked at adding some stupid delimiters to /etc/rc,
> /etc/rc.local, and /etc/rc.shutdown so I can just pull in the
> necessary chunks, but I'm wondering if there's anything available
> that's more elegant and won't break on every upgrade.

It sounds like using rc.d would be better suited to your
environment. FreeBSD and NetBSD both use rcorder(8), which runs well
on OpenBSD. Hook that into your rc.local and write/manage init
scripts under /etc/rc.d.

-- 

o--{ Will Maier }--o
| web:...http://www.lfod.us/ | email.willma...@ml1.net |
*-[ BSD: Live Free or Die ]*



Re: Automated service/daemon management

2009-06-09 Thread Cem Kayali

Will Maier, 06/09/09 22:33:

On Tue, Jun 09, 2009 at 02:06:59PM -0400, (private) HKS wrote:
  

The much larger problem, though, is with starting/stopping/restarting
services. Say I add spamd as an enabled service on host1. For my
scripts to start it properly, I have to replicate the code already in
/etc/rc defining how spamd starts. This is prone to errors and runs
the risk of breaking on upgrades. Restarting services that need more
than a HUP is also a chore. As for stopping, some services like
postgresql need some careful attention. This means replicating code
from /etc/rc.shutdown.



You can make this easier in rc.local by using a construct along the
lines described here:

http://erdelynet.com/tech/openbsd/rclocal-trick/

  

I've looked at adding some stupid delimiters to /etc/rc,
/etc/rc.local, and /etc/rc.shutdown so I can just pull in the
necessary chunks, but I'm wondering if there's anything available
that's more elegant and won't break on every upgrade.



It sounds like using rc.d would be better suited to your
environment. FreeBSD and NetBSD both use rcorder(8), which runs well
on OpenBSD. Hook that into your rc.local and write/manage init
scripts under /etc/rc.d.

  


Well, years i used, NetBSD and their rc.d scripts are quite usefull... 
Is there any specific reason why OpenBSD does not place startup scripts 
under rc.d? As long as administrator does not insert ie; service=YES 
flag into rc.conf, service not activated.


Regards,
Cem



apc ups daemon

2009-06-09 Thread Thanasis
Is there a port of the apcupsd or any other daemon for ups on openbsd?



Re: apc ups daemon

2009-06-09 Thread Maurice Janssen

Thanasis wrote:

Is there a port of the apcupsd or any other daemon for ups on openbsd?



Nut seems to work fine for me.  It's in ports and available as package.

Maurice



Re: apc ups daemon

2009-06-09 Thread dtalk

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Thanasis wrote:


Is there a port of the apcupsd or any other daemon for ups on openbsd?


nut works well.  Takes a bit of reading, if you're coming from apcupsd, 
but it's very flexible.


- --
David Talkington
dt...@drizzle.com
- --
PGP key: http://www.flyingjoke.org/keys/801E3976.asc
(What's this?  http://en.wikipedia.org/wiki/Digital_signature)
iQEcBAEBAgAGBQJKLsZ5AAoJEO7jL1CAHjl2+/wH+QGLDG841V/bEBCnODk7c5Ag
ypp7SvhVAyv/Mae/p8Wfv930U8XULMbchlaiolr96dZdtXJUaJPtAYVpxHuLC/hJ
NnT/oprdD3VZEWlhEEz/mMhk5DGFz20xwTdvX6kwiArqCKpytTY0o2dOFmw/TCqZ
eu/Yj2EAvFdFctY8TYjBfGgbedWStOi9WMNWPKalS2vQEnTz+TR0jvZS/ADAniOR
2h7nK6a/N9rKUcHnPFkFC3+tGfbA/s7KKOo5Q9jZXWeq/lAU9Qi9UeOa/PArb0ZT
PANHcjfAyRPi7+QEIK5HRw4p+RJM2QdfML8Xij1cZLKh1x7mnDW9DE6sMZNdxQg=
=FeIt
-END PGP SIGNATURE-



Re: Automated service/daemon management

2009-06-09 Thread Bryan Allen
My suggestion would be to move all your services to run under runit or
daemontools. You can manage both with Puppet. I'm not familiar with runit,
really, but I've used daemontools for years, quite happily, on several
platforms, including OpenBSD.
-- 
bda
cyberpunk is dead. long live cyberpunk.



MySQL and ulimit

2009-06-09 Thread Gaby Vanhegan
I'm having an annoying time trying to make MySQL run with a large  
amount of buffer memory.  I have 4Gb of RAM and 8Gb of swap and I need  
to increase the data size limit for the _mysql login class.  Currently  
it's set to unlimited but it doesn't seem to be coming through to the  
_mysql login class:



$ ulimit -a
time(cpu-seconds)unlimited
file(blocks) unlimited
coredump(blocks) unlimited
data(kbytes) 1048576
stack(kbytes)8192
lockedmem(kbytes)1101134
memory(kbytes)   3301268
nofiles(descriptors) 2048
processes1310
$ whoami
_mysql


I need to increase the data limit as we're hitting the limits with the  
large InnoDB pool size.  I must be doing something wrong but I can't  
see the obvious problem that I'm hitting.  Help?  I have a large  
InnoDB buffer pool configured and every time I fire up MySQL I keep  
getting this error:



# Starting mysqld daemon with databases from /var/mysql
090609 21:23:51  mysqld started
090609 21:23:51  InnoDB: Error: cannot allocate 1073758208 bytes of
InnoDB: memory with malloc! Total allocated memory
InnoDB: by InnoDB 14810216 bytes. Operating system errno: 12
InnoDB: Check if you should increase the swap file or
InnoDB: ulimits of your operating system.
InnoDB: On FreeBSD check you have compiled the OS with
InnoDB: a big enough maximum process size.
InnoDB: Note that in most 32-bit computers the process
InnoDB: memory space is limited to 2 GB or 4 GB.
InnoDB: We keep retrying the allocation for 60 seconds...


MySQL comes up but the innodb tables don't.  This is the latest 4.5  
release, upgraded yesterday, running the latest package of MySQL.


Haylp!

G.

--
Imagine there were no hypothetical situations.
http://playr.co.uk/



Re: Automated service/daemon management

2009-06-09 Thread Theo de Raadt
> Well, years i used, NetBSD and their rc.d scripts are quite usefull... 
> Is there any specific reason why OpenBSD does not place startup scripts 
> under rc.d? As long as administrator does not insert ie; service=YES 
> flag into rc.conf, service not activated.

Because our total rc script is 816 lines, and our netstart script is
397 lines, and they do more than theirs?

There are very specific solid reasons.  When you split the script into
a multitude of scripts, it takes about 3 days before people fuck it up
so that syslogd or portmap or something else gets started in the wrong
place and some type of install does not work.



Re: apc ups daemon

2009-06-09 Thread Thanasis
on 06/09/2009 11:30 PM kell...@gmail.com wrote the following:
> Thanasis wrote (06/09/09 23:18):
>   
>> Is there a port of the apcupsd or any other daemon for ups on openbsd?
>> 
>  
> Yes, apc-upsd and nut.  Go to:
>
>   http://www.openbsd.org/4.5_packages/i386.html
>
> for all of your package-listing needs.  
The machine is an old sparc and unfortunately there is _not_ an apc-upsd
in the sparc packages, but there is one for sparc64.
Why is that so?



Re: MySQL and ulimit

2009-06-09 Thread Daniel Ouellet
Gaby Vanhegan wrote:
> I'm having an annoying time trying to make MySQL run with a large amount
> of buffer memory.  I have 4Gb of RAM and 8Gb of swap and I need to
> increase the data size limit for the _mysql login class.  Currently it's
> set to unlimited but it doesn't seem to be coming through to the _mysql
> login class:

How do you start your MySQL, do you actually tell it to use that class?

http://openbsdsupport.org/mysql.htm

For may be more details that you may have overlooked.

Best,

Daniel



Re: apc ups daemon

2009-06-09 Thread neal hogan
On Tue, Jun 09, 2009 at 11:18:49PM +0300, Thanasis wrote:
> Is there a port of the apcupsd or any other daemon for ups on openbsd?

google lead me to: http://www.apcupsd.com/manual/manual.html#openbsd 
and I see apc-upsd-19991128p0.tgz in the package list



Re: MySQL and ulimit

2009-06-09 Thread Ted Unangst
On Tue, Jun 9, 2009 at 4:41 PM, Gaby Vanhegan  wrote:
> I'm having an annoying time trying to make MySQL run with a large amount of
> buffer memory.  I have 4Gb of RAM and 8Gb of swap and I need to increase
the
> data size limit for the _mysql login class.  Currently it's set to
unlimited
> but it doesn't seem to be coming through to the _mysql login class:

There are hard limits that you can't exceed.



Re: MySQL and ulimit

2009-06-09 Thread Gaby Vanhegan
Thanks for getting back to me so swiftly, I've been banging my head  
against this for a couple of days now... :(


On 9 Jun 2009, at 22:06, Daniel Ouellet wrote:


Gaby Vanhegan wrote:
I'm having an annoying time trying to make MySQL run with a large  
amount

of buffer memory.  I have 4Gb of RAM and 8Gb of swap and I need to
increase the data size limit for the _mysql login class.  Currently  
it's
set to unlimited but it doesn't seem to be coming through to the  
_mysql

login class:


How do you start your MySQL, do you actually tell it to use that  
class?



The server is started thusly:

sudo -c _mysql /usr/local/bin/mysqld_safe &

And also:

# getcap -c datasize -f /etc/login.conf _mysql
=infinity
# getcap -c datasize-max -f /etc/login.conf _mysql
=2048M
# getcap -c datasize-cur -f /etc/login.conf _mysql
=2048M

On 9 Jun 2009, at 22:07, Ted Unangst wrote:


There are hard limits that you can't exceed.


If the machine has mare than enough physical RAM and tons of swap, is  
there no way to configure MySQL to hold a 2Gb buffer in memory?  I  
really want to avoid building a custom kernel and it feels like I  
should be able to get this working using login.conf, ulimit and sysctl  
settings.  Or is this a wall that is not meant to be broken through?


G.

--
Being drunk is feeling sophisticated without being able to say it.
http://www.playr.co.uk/



Re: MySQL and ulimit

2009-06-09 Thread Daniel Ouellet
> If the machine has mare than enough physical RAM and tons of swap, is
> there no way to configure MySQL to hold a 2Gb buffer in memory?  I
> really want to avoid building a custom kernel and it feels like I should
> be able to get this working using login.conf, ulimit and sysctl
> settings.  Or is this a wall that is not meant to be broken through?

If I may asked, why would you really want to get a 2GB buffer???

I obviously do not know what your setup is or your application here, or how big
your database actually is, but if you are trying to have everything in ram for
speed for example and that your application do not make changes to the database,
then you could always setup a partition in ram disk only and put your table 
there.

You could mount /var/mysql/test in a ram disk that you configure to use 2GB or
ram and that would do what you want.

If you need to make changes to that database in RAM, then you could use
replication to save the changes to the physical hard disk, witch would need to
run to copy of MySQL obviously to replicate it live to a different table name.

I did that before and it does actually works well, that's when I had slow
hardware and I would around it that way, now I don't need that anymore, but
still possible to do it, if that's really want you need.

You can create your table to be loaded on the start and be put into ram disk, or
may be even under volatile table as well, but not knowing what you want to do,
these are just ideas that may or may not apply or may be even stupid as well to
do depending of what you really try to solved as a problem.

The ram disk I must say was a very cleaver idea and works very well back then,
but needed raidframe, witch I didn't really like to use.

I might do it again now with Marco softraide for fun and see if that would
actually works or not, just as a test.

Anyway, hope this may give you some thoughts or not as I am not really sure
where you try to go here.

But no matter what, you still limited to 4 GB for physical memory anyway.

Best,

Daniel



Re: apc ups daemon

2009-06-09 Thread Thomas Pfaff
On Tue, 09 Jun 2009 23:18:49 +0300
Thanasis  wrote:
> Is there a port of the apcupsd or any other daemon for ups on openbsd?

See http://marc.info/?l=openbsd-ports&m=123100538732186&w=2

Otherwise there's sysutils/nut and sysutils/apc-upsd in ports.



Re: MySQL and ulimit

2009-06-09 Thread Ted Unangst
On Tue, Jun 9, 2009 at 5:23 PM, Gaby Vanhegan  wrote:
> On 9 Jun 2009, at 22:07, Ted Unangst wrote:
>
>> There are hard limits that you can't exceed.
>
> If the machine has mare than enough physical RAM and tons of swap, is there
> no way to configure MySQL to hold a 2Gb buffer in memory?  I really want to
> avoid building a custom kernel and it feels like I should be able to get
> this working using login.conf, ulimit and sysctl settings.  Or is this a
> wall that is not meant to be broken through?

The short answer is that you can't use more than 1GB of memory.



Re: Automated service/daemon management

2009-06-09 Thread Cem Kayali

Theo de Raadt, 06/09/09 23:57:
Well, years i used, NetBSD and their rc.d scripts are quite usefull... 
Is there any specific reason why OpenBSD does not place startup scripts 
under rc.d? As long as administrator does not insert ie; service=YES 
flag into rc.conf, service not activated.



Because our total rc script is 816 lines, and our netstart script is
397 lines, and they do more than theirs?

There are very specific solid reasons.  When you split the script into
a multitude of scripts, it takes about 3 days before people fuck it up
so that syslogd or portmap or something else gets started in the wrong
place and some type of install does not work.


Ooops, i would expect people (who somehow use any-bsd) to be more 
familir to rc.d :)


Thanks for clarification.

Regards,
Cem



Re: Automated service/daemon management

2009-06-09 Thread patrick keshishian
On Tue, Jun 9, 2009 at 11:06 AM, (private) HKS wrote:
> When my scripts install a package, they have to edit the monolithic
> /etc/rc.local in order to enable starting (rc.conf.local too, but
> that's a single line easily done with sed and checked with grep).
> Uninstalling a package is scarier since they're removing the parts of
> /etc/rc.local. Both of these rely on multi-line pattern matching and
> merging, which are imperfect sciences that wrack my nerves when they
> run automatically.
>
> The much larger problem, though, is with starting/stopping/restarting
> services. Say I add spamd as an enabled service on host1. For my
> scripts to start it properly, I have to replicate the code already in
> /etc/rc defining how spamd starts. This is prone to errors and runs
> the risk of breaking on upgrades. Restarting services that need more
> than a HUP is also a chore. As for stopping, some services like
> postgresql need some careful attention. This means replicating code
> from /etc/rc.shutdown.

for ports you add to your system (such as postgresql) you can always
use an external script for its start/stop and just add appropriate
section to rc.local and rc.shutdown:

--- e.g., ---
rc.local
# 
if [ -x /etc/rc.pgsql ] ; then /etc/rc.pgsql start ; fi

rc.shutdown
# ...
if [ -x /etc/rc.pgsql ] ; then /etc/rc.pgsql stop ; fi

next you need to write rc.pgsql that starts or stops postgresql based
on "$1" == "start" or == "stop"

That should solve at least part of your problem.

As for spamd enabling/disabling, just reboot that machine if you don't
want to look through the rc script to figure out what you need run.

--patrick



Re: snapshot package error: pixman-1.12.0 dependency not found

2009-06-09 Thread Peter N. M. Hansteen
"Mihai Popescu B.S."  writes:

> I'm trying to install OpenBSD 4.5 i386 from snapshots and this is the
> third snapshot which gives me this error when trying to install
> mozilla-firefox package.

If you're installing what's in your friendly neighborhood mirror's
/pub/OpenBSD/snapshots/$arch/ directory, it's not OpenBSD 4.5 you're
installing, but rather a -currentish snapshot of what will at some
time in the future evolve into what becomes 4.6.

> I tried the install45.iso from 6, 7, 8-June. The package collection is
> from 6-June. From what I read on dependency stuff is looks like the
> cairo was linked against a future pixman version which is not shipped
> in the base packages. But maybe I am wrong.

In snapshots, base system vs package mismatches happen, but they do
tend to cure themselves (think pkg_add -u) within a few hours or days.
If something you desperately need is broken and you think your local
build will complete correctly sooner, you could always try to check
out a fresh ports tree and build from there.

> Can someone tell me please what's the issue here and how should I
> approach the install method from snapshots?
> Am I dong something wrong ?

When tracking snapshots, bumps do happen, but they're mostly harmless.

- Peter
-- 
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
http://bsdly.blogspot.com/ http://www.bsdly.net/ http://www.nuug.no/
"Remember to set the evil bit on all malicious network traffic"
delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.



Re: apc ups daemon

2009-06-09 Thread Thanasis
on 06/10/2009 12:46 AM Thomas Pfaff wrote the following:
> On Tue, 09 Jun 2009 23:18:49 +0300
> Thanasis  wrote:
>   
>> Is there a port of the apcupsd or any other daemon for ups on openbsd?
>> 
>
> See http://marc.info/?l=openbsd-ports&m=123100538732186&w=2
>   
Is that a different port from apc-upsd ?
> Otherwise there's sysutils/nut and sysutils/apc-upsd in ports.
>   
But why isn't there a apc-upsd package in the packages for sparc, while
there is one for sparc64 ?



Re: apc ups daemon

2009-06-09 Thread Diana Eichert

On Wed, 10 Jun 2009, Thanasis wrote:


But why isn't there a apc-upsd package in the packages for sparc, while
there is one for sparc64 ?


Look in the Makefile for the port and see if the sparc platform is
excluded.  If not then build it yourself from ports.

diana



junk directory cleanup question

2009-06-09 Thread jmc
from /etc/daily:

# Additional junk directory cleanup would go like this:
#if [ -d /scratch -a ! -L /scratch ]; then
#   cd /scratch && {
#   find . ! -name . -atime +1 -execdir rm -f -- {} \;
#   find . ! -name . -type d -mtime +1 -execdir rmdir -- {} \; \
#   >/dev/null 2>&1; }
#fi

is this to suggest that the best thing to do is edit /etc/daily and
wedge in the directories i need cleaned up? i'm only asking because my
first thought of course would be to put this code in /etc/daily.local to
ease merging in any diffs that future upgrades might provide.

perhaps there're reasons i can't suss right now why doing this
daily.local might be sub-optimal.

appreciate any input.



Re: apc ups daemon

2009-06-09 Thread Thanasis
on 06/10/2009 01:45 AM Diana Eichert wrote the following:
> On Wed, 10 Jun 2009, Thanasis wrote:
>
>> But why isn't there a apc-upsd package in the packages for sparc, while
>> there is one for sparc64 ?
>
> Look in the Makefile for the port and see if the sparc platform is
> excluded.  If not then build it yourself from ports.
>
> diana
>
>
If I search for upsd in the ports, I get the following:

# make search key=upsd
Port:   apc-upsd-19991128p0
Path:   sysutils/apc-upsd
Info:   UPS software for APC UPS models
Maint:  The OpenBSD ports mailing-list 
Index:  sysutils
L-deps:
B-deps:
R-deps:
Archs:  any

Port:   p5-UPS-Nut-0.04p0
Path:   sysutils/p5-UPS-Nut
Info:   module to talk to a UPS via NUT (Network UPS Tools) upsd
Maint:  The OpenBSD ports mailing-list 
Index:  sysutils perl5
L-deps:
B-deps:
R-deps:
Archs:  any

Port:   upsd-2.0.1.6
Path:   sysutils/upsd
Info:   APC Smart UPS Monitoring Daemon
Maint:  Kevin Lo 
Index:  sysutils
L-deps:
B-deps:
R-deps:
Archs:  any
#

Which one should I use apc-upsd or upsd ?



Re: junk directory cleanup question

2009-06-09 Thread Jim Razmus
* jmc  [090609 19:58]:
> from /etc/daily:
> 
> # Additional junk directory cleanup would go like this:
> #if [ -d /scratch -a ! -L /scratch ]; then
> #   cd /scratch && {
> #   find . ! -name . -atime +1 -execdir rm -f -- {} \;
> #   find . ! -name . -type d -mtime +1 -execdir rmdir -- {} \; \
> #   >/dev/null 2>&1; }
> #fi
> 
> is this to suggest that the best thing to do is edit /etc/daily and
> wedge in the directories i need cleaned up? i'm only asking because my
> first thought of course would be to put this code in /etc/daily.local to
> ease merging in any diffs that future upgrades might provide.
> 

exactly!

> perhaps there're reasons i can't suss right now why doing this
> daily.local might be sub-optimal.
> 
> appreciate any input.
> 

I use weekly.local to clean stale files from web server cache
directories.  It never fails.

HTH,
Jim



Re: junk directory cleanup question

2009-06-09 Thread Daniel Ouellet
jmc wrote:
> is this to suggest that the best thing to do is edit /etc/daily and
> wedge in the directories i need cleaned up? i'm only asking because my
> first thought of course would be to put this code in /etc/daily.local to
> ease merging in any diffs that future upgrades might provide.

>From man 8 daily:

 These scripts should not be altered.  Local additions should be made to
 the files /etc/daily.local, /etc/weekly.local, and /etc/monthly.local,
 which will be executed by /etc/daily, /etc/weekly, and /etc/monthly, re-
 spectively.  The *.local files are executed first, which makes it conve-
 nient to do any necessary cleanup and backup before the script is run.



Re: junk directory cleanup question

2009-06-09 Thread jmc
--- Daniel Ouellet [Tue, Jun 09, 2009 at 08:33:34PM -0400]: --- 
> jmc wrote:
> > is this to suggest that the best thing to do is edit /etc/daily and
> > wedge in the directories i need cleaned up? i'm only asking because my
> > first thought of course would be to put this code in /etc/daily.local to
> > ease merging in any diffs that future upgrades might provide.
> 
> >From man 8 daily:

doh! yes, i'm fairly certain i've seen that before--thanks for the
nudge.



fc -l only showing 16 commands not 500

2009-06-09 Thread Mark Yieh
I just noticed that when I try to recall my history of commands by  
issuing a "fc -l" command it only shows me the last 16 commands even  
though my $HISTSIZE is the default 500. Anyone know why it's doing  
this? I also tried to set my $HISTFILE to $HOME/.history just to see  
if that makes any difference, but it doesn't.


I'm using the default ksh shell on a GENERIC 4.5 kernel.



Re: Automated service/daemon management

2009-06-09 Thread Aaron W. Hsu
Cem,

From cemkay...@eticaret.com.tr Tue Jun  9 22:11:38 2009

Ooops, i would expect people (who somehow use any-bsd) to
be more familir to rc.d :)

I think people coming from "SysV" systems like Solaris or Linux 
will generally find rc.d more familiar, but it isn't hard to learn 
this system. On the other hand, classic BSD types are going to find 
this system easier. Slackware has an rc script like setup, but it 
is much closer to OpenBSD's classic style scripts compared to the 
rc system used by FreeBSD or other Linux distributions. 

If someone really wanted to implement their own management of 
scripts in a similar way to rc.d, one might check out the Slackware
way of doing it, as it is simpler than the others, while achieving 
pretty much the same end.

On the other hand, I like OpenBSD in part because of the way it 
handles these scripts, so I hope I'll continue to see the current 
style used for a long time into the future. :-)

-- 
Aaron W. Hsu  | 
"Government is the great fiction, through which everybody endeavors to
live at the expense of everybody else." -- Frederic Bastiat
+++ ((lambda (x) (x x)) (lambda (x) (x x))) ++



Re: fc -l only showing 16 commands not 500

2009-06-09 Thread Dan Harnett
On Tue, Jun 09, 2009 at 05:06:57PM -0700, Mark Yieh wrote:
> I just noticed that when I try to recall my history of commands by  
> issuing a "fc -l" command it only shows me the last 16 commands even  
> though my $HISTSIZE is the default 500. Anyone know why it's doing this? 
> I also tried to set my $HISTFILE to $HOME/.history just to see if that 
> makes any difference, but it doesn't.
>
> I'm using the default ksh shell on a GENERIC 4.5 kernel.

"fc -l -500" would show you the last 500 commands.  See ksh(1) for the
proper usage.



Broadcom BCM5709 on Dell R610

2009-06-09 Thread Adam Getchell
Hello all,

I have several new Dell R610's each with four Broadcom BCM5709's that
are not being configured in 4.5-release with the bge driver. I checked
the errata for 4.5 release, but didn't notice any patches that seemed
to address this.

Suggestions or advice appreciated. Dmesg follows:

OpenBSD 4.5 (GENERIC) #2052: Sat Feb 28 14:55:24 MST 2009
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 3478753280 (3317MB)
avail mem = 3363225600 (3207MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xcf79c000 (83 entries)
bios0: vendor Dell Inc. version "1.0.4" date 03/09/2009
bios0: Dell Inc. PowerEdge R610
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP APIC SPCR HPET DM__ MCFG WD__ SLIC ERST HEST
BERT EINJ SRAT TCPA SSDT
acpi0: wakeup devices PCI0(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 16 (boot processor)
cpu0: Intel(R) Xeon(R) CPU E5504 @ 2.00GHz, 1995.25 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,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR,NXE,LONG
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: apic clock running at 132MHz
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
ioapic0 at mainbus0 apid 0 pa 0xfec0, version 20, 24 pins
ioapic1 at mainbus0 apid 1 pa 0xfec8, version 20, 24 pins
ioapic1: misconfigured as apic 0, remapped to apid 1
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (PEX1)
acpiprt2 at acpi0: bus 2 (PEX3)
acpiprt3 at acpi0: bus -1 (PEX4)
acpiprt4 at acpi0: bus -1 (PEX5)
acpiprt5 at acpi0: bus -1 (PEX6)
acpiprt6 at acpi0: bus 4 (PEX7)
acpiprt7 at acpi0: bus 5 (PEX9)
acpiprt8 at acpi0: bus -1 (PEXA)
acpiprt9 at acpi0: bus 3 (SBEX)
acpiprt10 at acpi0: bus 6 (COMP)
acpicpu0 at acpi0: C3, C1, PSS
ipmi at mainbus0 not configured
cpu0: unknown i686 model 0x1a, can't get bus clockcpu0: EST: unknown
system bus clock
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 vendor "Intel", unknown product 0x3403 rev 0x13
ppb0 at pci0 dev 1 function 0 "Intel X58 PCIE" rev 0x13
pci1 at ppb0 bus 1
"Broadcom BCM5709" rev 0x20 at pci1 dev 0 function 0 not configured
"Broadcom BCM5709" rev 0x20 at pci1 dev 0 function 1 not configured
ppb1 at pci0 dev 3 function 0 "Intel X58 PCIE" rev 0x13
pci2 at ppb1 bus 2
ppb2 at pci0 dev 7 function 0 "Intel X58 PCIE" rev 0x13: apic 1 int 21 (irq 0)
pci3 at ppb2 bus 4
ppb3 at pci0 dev 9 function 0 "Intel X58 PCIE" rev 0x13: apic 1 int 21 (irq 0)
pci4 at ppb3 bus 5
"Intel X58 Misc" rev 0x13 at pci0 dev 20 function 0 not configured
"Intel X58 GPIO" rev 0x13 at pci0 dev 20 function 1 not configured
"Intel X58 RAS" rev 0x13 at pci0 dev 20 function 2 not configured
uhci0 at pci0 dev 26 function 0 "Intel 82801I USB" rev 0x02: apic 0
int 17 (irq 14)
uhci1 at pci0 dev 26 function 1 "Intel 82801I USB" rev 0x02: apic 0
int 18 (irq 11)
ehci0 at pci0 dev 26 function 7 "Intel 82801I USB" rev 0x02: apic 0
int 19 (irq 10)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb4 at pci0 dev 28 function 0 "Intel 82801I PCIE" rev 0x02
pci5 at ppb4 bus 3
mpi0 at pci5 dev 0 function 0 "Symbios Logic SAS1068E" rev 0x08: apic
0 int 16 (irq 15)
scsibus0 at mpi0: 112 targets
sd0 at scsibus0 targ 0 lun 0:  SCSI3 0/direct fixed
sd0: 140014MB, 512 bytes/sec, 286749480 sec total
sd1 at scsibus0 targ 1 lun 0:  SCSI3 0/direct fixed
sd1: 140014MB, 512 bytes/sec, 286749480 sec total
ses0 at scsibus0 targ 8 lun 0:  SCSI3
13/enclosure services fixed
uhci2 at pci0 dev 29 function 0 "Intel 82801I USB" rev 0x02: apic 0
int 21 (irq 6)
uhci3 at pci0 dev 29 function 1 "Intel 82801I USB" rev 0x02: apic 0
int 20 (irq 5)
ehci1 at pci0 dev 29 function 7 "Intel 82801I USB" rev 0x02: apic 0
int 21 (irq 6)
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb5 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0x92
pci6 at ppb5 bus 6
vga1 at pci6 dev 3 function 0 vendor "Matrox", unknown product 0x0532 rev 0x0a
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 31 function 0 "Intel 82801IB LPC" rev 0x02
pciide0 at pci0 dev 31 function 2 "Intel 82801I SATA" rev 0x02: DMA,
channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide0: using apic 0 int 23 (irq 14) for native-PCI interrupt
atapiscsi0 at pciide0 channel 0 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0:  ATAPI
5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
usb2 at uhci0: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci1: USB revision 1.0
uhub3 at usb3 "Intel UHCI root h

Re: Broadcom BCM5709 on Dell R610

2009-06-09 Thread Jonathan Gray
bnx(4) requires an updated firmware and various changes to
support the 5709, no one has yet done this for lack of hardware.

On Tue, Jun 09, 2009 at 08:47:46PM -0700, Adam Getchell wrote:
> Hello all,
> 
> I have several new Dell R610's each with four Broadcom BCM5709's that
> are not being configured in 4.5-release with the bge driver. I checked
> the errata for 4.5 release, but didn't notice any patches that seemed
> to address this.
> 
> Suggestions or advice appreciated. Dmesg follows:
> 
> OpenBSD 4.5 (GENERIC) #2052: Sat Feb 28 14:55:24 MST 2009
> dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
> real mem = 3478753280 (3317MB)
> avail mem = 3363225600 (3207MB)
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xcf79c000 (83 entries)
> bios0: vendor Dell Inc. version "1.0.4" date 03/09/2009
> bios0: Dell Inc. PowerEdge R610
> acpi0 at bios0: rev 2
> acpi0: tables DSDT FACP APIC SPCR HPET DM__ MCFG WD__ SLIC ERST HEST
> BERT EINJ SRAT TCPA SSDT
> acpi0: wakeup devices PCI0(S5)
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
> cpu0 at mainbus0: apid 16 (boot processor)
> cpu0: Intel(R) Xeon(R) CPU E5504 @ 2.00GHz, 1995.25 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,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16,xTPR,NXE,LONG
> cpu0: 256KB 64b/line 8-way L2 cache
> cpu0: apic clock running at 132MHz
> cpu at mainbus0: not configured
> cpu at mainbus0: not configured
> cpu at mainbus0: not configured
> cpu at mainbus0: not configured
> cpu at mainbus0: not configured
> cpu at mainbus0: not configured
> cpu at mainbus0: not configured
> ioapic0 at mainbus0 apid 0 pa 0xfec0, version 20, 24 pins
> ioapic1 at mainbus0 apid 1 pa 0xfec8, version 20, 24 pins
> ioapic1: misconfigured as apic 0, remapped to apid 1
> acpihpet0 at acpi0: 14318179 Hz
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus 1 (PEX1)
> acpiprt2 at acpi0: bus 2 (PEX3)
> acpiprt3 at acpi0: bus -1 (PEX4)
> acpiprt4 at acpi0: bus -1 (PEX5)
> acpiprt5 at acpi0: bus -1 (PEX6)
> acpiprt6 at acpi0: bus 4 (PEX7)
> acpiprt7 at acpi0: bus 5 (PEX9)
> acpiprt8 at acpi0: bus -1 (PEXA)
> acpiprt9 at acpi0: bus 3 (SBEX)
> acpiprt10 at acpi0: bus 6 (COMP)
> acpicpu0 at acpi0: C3, C1, PSS
> ipmi at mainbus0 not configured
> cpu0: unknown i686 model 0x1a, can't get bus clockcpu0: EST: unknown
> system bus clock
> pci0 at mainbus0 bus 0: configuration mode 1
> pchb0 at pci0 dev 0 function 0 vendor "Intel", unknown product 0x3403 rev 0x13
> ppb0 at pci0 dev 1 function 0 "Intel X58 PCIE" rev 0x13
> pci1 at ppb0 bus 1
> "Broadcom BCM5709" rev 0x20 at pci1 dev 0 function 0 not configured
> "Broadcom BCM5709" rev 0x20 at pci1 dev 0 function 1 not configured
> ppb1 at pci0 dev 3 function 0 "Intel X58 PCIE" rev 0x13
> pci2 at ppb1 bus 2
> ppb2 at pci0 dev 7 function 0 "Intel X58 PCIE" rev 0x13: apic 1 int 21 (irq 0)
> pci3 at ppb2 bus 4
> ppb3 at pci0 dev 9 function 0 "Intel X58 PCIE" rev 0x13: apic 1 int 21 (irq 0)
> pci4 at ppb3 bus 5
> "Intel X58 Misc" rev 0x13 at pci0 dev 20 function 0 not configured
> "Intel X58 GPIO" rev 0x13 at pci0 dev 20 function 1 not configured
> "Intel X58 RAS" rev 0x13 at pci0 dev 20 function 2 not configured
> uhci0 at pci0 dev 26 function 0 "Intel 82801I USB" rev 0x02: apic 0
> int 17 (irq 14)
> uhci1 at pci0 dev 26 function 1 "Intel 82801I USB" rev 0x02: apic 0
> int 18 (irq 11)
> ehci0 at pci0 dev 26 function 7 "Intel 82801I USB" rev 0x02: apic 0
> int 19 (irq 10)
> usb0 at ehci0: USB revision 2.0
> uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
> ppb4 at pci0 dev 28 function 0 "Intel 82801I PCIE" rev 0x02
> pci5 at ppb4 bus 3
> mpi0 at pci5 dev 0 function 0 "Symbios Logic SAS1068E" rev 0x08: apic
> 0 int 16 (irq 15)
> scsibus0 at mpi0: 112 targets
> sd0 at scsibus0 targ 0 lun 0:  SCSI3 0/direct fixed
> sd0: 140014MB, 512 bytes/sec, 286749480 sec total
> sd1 at scsibus0 targ 1 lun 0:  SCSI3 0/direct fixed
> sd1: 140014MB, 512 bytes/sec, 286749480 sec total
> ses0 at scsibus0 targ 8 lun 0:  SCSI3
> 13/enclosure services fixed
> uhci2 at pci0 dev 29 function 0 "Intel 82801I USB" rev 0x02: apic 0
> int 21 (irq 6)
> uhci3 at pci0 dev 29 function 1 "Intel 82801I USB" rev 0x02: apic 0
> int 20 (irq 5)
> ehci1 at pci0 dev 29 function 7 "Intel 82801I USB" rev 0x02: apic 0
> int 21 (irq 6)
> usb1 at ehci1: USB revision 2.0
> uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
> ppb5 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0x92
> pci6 at ppb5 bus 6
> vga1 at pci6 dev 3 function 0 vendor "Matrox", unknown product 0x0532 rev 0x0a
> wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> pcib0 at pci0 dev 31 function 0 "Intel 82801IB LPC" rev 0x02
> pciide0 at pci0 dev 31 function 2 "Intel 82801I SATA" rev 0x02: DMA,
> channel 0 configured to native-PCI, channel 1 configured to native-PCI

Re: apc ups daemon

2009-06-09 Thread jared r r spiegel
On Wed, Jun 10, 2009 at 03:01:38AM +0300, Thanasis wrote:
> on 06/10/2009 01:45 AM Diana Eichert wrote the following:
> >
> > Look in the Makefile for the port and see if the sparc platform is
> > excluded.  If not then build it yourself from ports.
> >
> > diana

  +1.

  diana is right a LOT.

> If I search for upsd in the ports, I get the following:
> 
> # make search key=upsd

  `make search' is awesome, but also check the Makefile for the
  port.  or heck, on the $arch in question you could worst
  case try `make package' and see if it works.  if it doesn't,
  the pkg is probably marked broken or something - in which case
  i'd check archives of ports@ (or cvsweb) and hope i can find why :).

> Which one should I use apc-upsd or upsd ?

  try the one you're most familiar with first and if it doesn't
  work exactly how you want out of the box, try the other one(s).

  if that doesn't get you anywhere, do some checking in
  /usr/share/doc/$PKG and /usr/share/examples/$PKG and if still
  nothing check back from there

-- 

  jared