Re: Real men don't attack straw men

2007-12-12 Thread Kyle George

On Tue, 11 Dec 2007, Richard Stallman wrote:


Including a program by name in the ports system does suggest using
that program.  It grants the program a sort of legitimacy, and that
is what I am opposed to.


If a library has a book on [insert-controversial-topic-here], does that 
imply endorsement of said topic by the library or by someone who reads the 
book?  Should the library burn copies of books on such topics to protect 
the citizenry?  Absolutely not.


Along these same lines, it doesn't make sense to try to hide what software 
is out there.  I think people can figure out which software they want to 
use from ports after installing the base system, free or non-free.


Either way, a makefile to download and install a non-free piece of 
software doesn't make the system any less free.


--
Kyle George



Re: openbsd 3.9 and httpd-2.2.6

2007-12-13 Thread Kyle George

On Thu, 13 Dec 2007, Monah Baki wrote:


I'm trying to install httpd-2.2.6 on my openbsd 3.9 from source. I get the
following error when I run make

[snip]

/usr/bin/ld: cannot find -lexpat
collect2: ld returned 1 exit status


You are missing expat (or the linker can't find it).  pkg_add it.  But, 
you might want to take this opportunity to upgrade and install apache2 
from ports.


--
Kyle George



Re: x4100

2007-12-27 Thread Kyle George

On Thu, 27 Dec 2007, Marco Peereboom wrote:


Ok got my x4100 out of storage.  What was the mpi issue again that
someone was seeing?

Sorry for the broadcast but I couldn't find that email.


I think this is the thread you're looking for:

http://marc.info/?l=openbsd-misc&m=119623820305056&w=2

--
Kyle George



Re: Dell poweredge sc440 / broadcom bcm5754 / 5787

2007-02-01 Thread Kyle George

On Thu, 1 Feb 2007, Nathan Johnson wrote:


I ordered a new Dell SC440 , with the pentium D and the infamous
broadcom bcm5754 (or is it 5787?) .  I started off with OpenBSD 4.0
release, then noticed a kernel panic on reboot.  This was a consistent
repeatable problem, and after googling I noticed other people having
the same problem and some patches specific to this card in current.  I
am now on current (as of January 31) and and I receive no kernel
panics on reboot.  If I insert a live cable into the card, it ifconfig
bge0 will show that it detects a connection and sets the appropriate
media type.  However, this card will not actually work. I cannot
receive an ip address by calling dhclient bge0 , nor can I manually
assign it an IP address and ping it from another machine.  I have
tried manually setting media options, all manners of things and no
dice.  I installed a linksys lne100tx card using the dc driver just to
test and it works as expected.  Attached is copy of dmesg output.


I have a Dell SC420 that had problems routing interrupts for multiport 
NICs.  In 3.9 the system would stop responding when bringing the second 
em(4) interface up.  In 4.0-current, no lockups but the interface was 
unusable (like your situation above).  However, enabling acpi in -current 
fixes this.  From my experience, I'm guessing that these lower end Dell 
machines have broken old pci intr routing but working acpi.


It looks like -current fixed your panics, so try boot -c and enable acpi. 
I'm interrested in knowing if this fixes your problem.  But it might not 
be applicable to you since I couldn't see your dmesg.


[demime 1.01d removed an attachment of type application/octet-stream 
which had a name of dmesg.out]


Paste dmesg instead of attaching.  http://www.openbsd.org/mail.html.

--
Kyle George



Re: Problem connecting to internet through DSL

2007-03-12 Thread Kyle George

On Mon, 12 Mar 2007, sac wrote:


I have only one machine through with I'm trying to connect to the internet
via the ADSL2 router.

bce0: flags=8a43 mtu 1500
   lladdr 00:0f:b0:bd:4a:51
   groups: egress
   media: Ethernet autoselect (100baseTX full-duplex)
   status: active
   inet 192.168.1.3 netmask 0xff00 broadcast 192.168.1.255
   inet6 fe80::20f:b0ff:febd:4a51%bce0 prefixlen 64 scopeid 0x1

I followed the instructions in:
http://www.openbsd.com/faq/faq6.html

But somehow I'm not able to ping my gateway.
Is there anything I missed out?


Are you sure your gateway (dsl modem) is 192.168.1.1?  A lot of dsl modems 
are configured to act as bridges and require PPPoE, etc. running on the 
host (in this case, your OpenBSD machine).


--
Kyle George



Re: Important OpenBSD errata

2007-03-19 Thread Kyle George

On Sat, 17 Mar 2007, Karel Kulhavy wrote:


What about Charlie Root testing something remotely through cron and then


Ok, I'll bite.  This is not hard.  Here's something I did real quick. 
Use at your own risk.  Replace XXX with your closest ftp mirror from 
http://www.openbsd.org/ftp.html.  Read the comments.


As root:

patch -p0 < [extract patch from below my sig]
mkdir -m 755 /var/errata
chown root:wheel /etc/errata
chmod 644 /etc/errata

sh /etc/errata to test as non-root.  You can forego the patch to 
/etc/daily and run as needed standalone, otherwise root will get daily 
errata output emails.


--
Kyle George

--- /usr/src/etc/daily  Tue Dec  6 15:18:56 2005
+++ /etc/daily  Sun Mar 18 00:52:35 2007
@@ -20,8 +20,13 @@
rm -f ${TMP}
exit 1
 }
+OUT2=`mktemp /tmp/_errata.XX` || {
+rm -f ${TMP}
+rm -f ${OUT}
+exit 1
+}

-trap 'rm -f $TMP $OUT' 0 1 15
+trap 'rm -f $TMP $OUT $OUT2' 0 1 15

 echo ""
 echo "Removing scratch and junk files:"
@@ -174,3 +179,9 @@
 if [ -s $OUT ]; then
 mail -s "`hostname` daily insecurity output" root < $OUT
 fi
+
+sh /etc/errata 2>&1 > $OUT2
+if [ -s $OUT2 ]; then
+mail -s "`hostname` daily errata output" root < $OUT2
+fi
+
--- /usr/src/etc/changelist Tue Dec 27 23:57:28 2005
+++ /etc/changelist Mon Mar 19 13:58:18 2007
@@ -27,6 +27,7 @@
 /etc/dhcpd.interfaces
 /etc/disktab
 /etc/distfile
+/etc/errata
 /etc/ethers
 /etc/exports
 /etc/fbtab
--- /dev/null   Mon Mar 19 15:33:55 2007
+++ /etc/errata Mon Mar 19 15:20:10 2007
@@ -0,0 +1,146 @@
+#!/bin/sh -
+#
+# Check for available/changed OpenBSD errata.
+#
+# Description and Usage:
+#
+#   Replace ftp.openbsd.org/pub/OpenBSD with your favorite mirror from
+#   the list: http://www.openbsd.org/ftp.html.
+#
+#   Check for available errata by looking at the errata X.Y.tar.gz from
+#   the OpenBSD ftp site (or preferrably, a mirror).  Also check for
+#   errata that may have been revised since first issued or applied.
+#   This works by comparing the listing of /var/errata and the contents
+#   of non-empty patch files in /var/errata to the available errata in 
+#   the errata archive.

+#
+#   Let ${PNNN} be the three digit patch number and ${PNAME} be the
+#   patch filename:  After applying a patch or to ignore a particular
+#   erratum, cp the patch to /var/errata, cp the patch to
+#   /var/errata/${PNNN}, touch /var/errata/${PNAME}, or touch
+#   /var/errata/${PNNN}.
+#
+#   Example: After applying erratum 010 for 4.0, cp 010_m_dup1.patch
+#   to /var/errata, cp 010_m_dup1.patch to /var/errata/010, touch
+#   /var/errata/010_m_dup1.patch, or touch /var/errata/010 to indicate
+#   that erratum 010 has been applied.
+# 
+#   It's strongly recommended to copy the full patch so this script can

+#   detect future patch revisions.
+#
+# Caveats:
+#
+#   Dependent on the structure and location of X.Y.tar.gz.
+#   Does not check for errata from the ports collection.
+#   Does not handle errata that do not have associated .patch files.
+#   Remember to remove /var/errata/* after upgrading.
+#
+# Copyright (c) 2007 Kyle George <[EMAIL PROTECTED]>
+#
+# Permission to use, copy, modify, and distribute this software for any
+# purpose with or without fee is hereby granted, provided that the above
+# copyright notice and this permission notice appear in all copies.
+#
+# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
+
+# Cleanup temporaries
+cleanup()
+{
+  test -f ${ERRATA_TGZ_TMP_FILE} && \
+rm -f ${ERRATA_TGZ_TMP_FILE}
+  test -d ${ERRATA_TGZ_TMP_DIR} && \
+test $(dirname ${ERRATA_TGZ_TMP_DIR}) = "/tmp" && \
+  rm -Rf ${ERRATA_TGZ_TMP_DIR}
+}
+
+# Terminate from error
+error()
+{
+  if [ X"$1" != X"" ] ; then
+echo error: $1
+  else
+echo error: unexpected error
+  fi
+  exit 1
+}
+
+# Setup: Build file/path names/URLs and make temporary files/directories
+
+trap cleanup 0 1 2 3 13 15
+
+ERRATA_DIR=/var/errata
+ERRATA_TGZ_URL=ftp://XXX/pub/OpenBSD/patches/$(uname -r).tar.gz
+ERRATA_TGZ_TMP_DIR=$(mktemp -d /tmp/_errata_tgz_tmp_dir.XX) || error
+ERRATA_TGZ_TMP_FILE=$(mktemp /tmp/_errata_tgz_tmp_file.XX) || error
+
+# Make ERRATA_DIR if it doesn't exist
+
+if [ ! -d ${ERRATA_DIR} ] ; then
+  mkdir -m 755 ${ERRATA_DIR} || \
+error "could not make errata directory"
+fi
+
+# Downloa

Re: zaurus bootstrapping

2007-03-22 Thread Kyle George

On Thu, 22 Mar 2007, Nick ! wrote:


On 3/22/07, Chris Kuethe <[EMAIL PROTECTED]> wrote:


think long and hard before you trash the partition table. hint: you
don't want to use the whole disk for openbsd.


I don't? I mean, I know to save the first few sectors for the
partition table, but isn't the rest fair game?


I don't have one of these, but I believe he was talking about the question 
the install script asks.  In other words, say no to "use the whole disk 
for OpenBSD" (unless you're confident you don't need to use what comes on 
it right out of the box ever again).  Read INSTALL.zaurus.


--
Kyle George



Re: Not getting much bandwidth through the firewall

2007-03-28 Thread Kyle George

On Wed, 28 Mar 2007, Watson Crick wrote:

I've got OpenBSD 4.0 (release) on a laptop setup up as a router between 
2 subnets, and providing internet access through a 3rd nic to a DSL 
modem. The problem is the bandwidth between the two subnets.  I'm only 
getting a maximum of about 500 KB/s between two 100mbit cards. Top shows 
~70% interrupt (~29% idle) while these transfers are going on. I don't 
know what the bottleneck is in the system.  Are the Linksys PCMCIA nics 
crappy? Did I screw something else up?


Try http://www.openbsd.org/faq/faq6.html#Tuning.

Increase net.inet.tcp.{send,recv}space.

Try this before worrying about your hardware.

--
Kyle George



Re: using spamd to block outbound spam

2007-04-13 Thread Kyle George

On Fri, 13 Apr 2007, Paolo Supino wrote:

 The webapp does talk to a real mail server: on localhost (IIS6 SMTP 
service). When a spammers abuses the webapp the email is actually sent via 
the local mail server and not directly from the webapp to all the mail 
servers on the Internet. Rate limiting isn't an option because emails must be 
out the door within a very short time frame from the moment a set of events 
is triggered in the webapp.


You could:

1) Make them fix the code

2) Uninstall the IIS SMTP service and make them change the code to send 
through a trusted host that can rate limit, filter, etc.


3) http://support.microsoft.com/kb/308161, see "smart host"

(2) and (3) would let you configure an MTA to filter this mess.  The best 
option is for them to fix their code AND use (2) or (3).  It makes sense 
to have untrusted applications send through the network's MTA(s) and to 
put the machine behind pf blocking outgoing port 25.  You don't want to 
get blacklisted.  Also, code that's letting this happen likely has many 
other problems.  I'd isolate it.


--
Kyle George



Re: order

2007-05-08 Thread Kyle George

On Tue, 8 May 2007, Paolo Supino wrote:

 Does anyone know how I can contact Austin@ except emails? My CDs and book 
have yet to arrive (preorderd on the day orders were opened) and I'm not 
getting any feedback/reaction via email :-(


I placed my order on 4/27 (4.1, another tshirt, some posters).  I haven't 
received it, nor has my CC been charged.  When I ordered 4.0 I got a 
shipping confirmation email really fast the next day, but not this time. 
I sent an email a few days ago but haven't heard back.  I hope all is 
well.


--
Kyle George



Re: OpenOffice 2.2.0 packages for -current ?

2007-05-10 Thread Kyle George

On Thu, 10 May 2007, Jakub Glazik wrote:

I'm playing with -current to see if it fits my needs for desktop usage, but 
building OOo on my own (24gig of free space?) isn't possible on my laptop ;-)


Has anyone got packages with OOo for -current?


Like the ftp site?  Yes.  Look in snapshots/packages.

--
Kyle George



xl(4) "reset didn't complete" on 3.9 GENERIC

2006-08-15 Thread Kyle George
Has anyone ever seen "reset didn't complete" from the xl(4) driver?  I
have two 3Com 3c905 cards and I am getting this for both.

Could this indicate bad cards?  I googled and search the archives but
didn't come up with anything.  I've tried it with both cards in and then
each one individually and got the same message in both situations.

dmesg showing only one of the cards inserted to follow.  Computer is a
Dell PowerEdge SC420.

Regards,

-- 
Kyle George
[EMAIL PROTECTED]

OpenBSD 3.9 (GENERIC) #617: Thu Mar  2 02:26:48 MST 2006
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) 4 CPU 2.80GHz ("GenuineIntel" 686-class) 2.80
GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CF
LUSH,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,CNXT-ID
real mem  = 526544896 (514204K)
avail mem = 473415680 (462320K)
using 4278 buffers containing 26431488 bytes (25812K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 02/06/06, BIOS32 rev. 0 @
0xffe90
apm0 at bios0: Power Management spec V1.2
apm0: APM get power status: unknown error code? (83)
apm0: flags 30102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf/0x1
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfeb00/240 (13 entries)
pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82801FB LPC" rev 0x00)
pcibios0: PCI bus #4 is the last bus
bios0: ROM list: 0xc/0x9800! 0xc9800/0x800 0xca000/0x2000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel E7221 MCH Host" rev 0x04
ppb0 at pci0 dev 1 function 0 "Intel E7221 PCIE" rev 0x04
pci1 at ppb0 bus 1
em0 at pci1 dev 0 function 0 "Intel PRO/1000 PT (82571EB)" rev 0x06: irq
11, add
ress 00:15:17:0b:cf:6c
em1 at pci1 dev 0 function 1 "Intel PRO/1000 PT (82571EB)" rev 0x06: irq
3, addr
ess 00:15:17:0b:cf:6d
vga1 at pci0 dev 2 function 0 "Intel E7221 Video" rev 0x04: aperture at
0xdff800
00, size 0x800
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ppb1 at pci0 dev 28 function 0 "Intel 82801FB PCIE" rev 0x03
pci2 at ppb1 bus 2
bge0 at pci2 dev 0 function 0 "Broadcom BCM5751" rev 0x01, BCM5750 A1
(0x4001):
irq 11, address 00:11:11:cc:8a:37
brgphy0 at bge0 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0
ppb2 at pci0 dev 28 function 1 "Intel 82801FB PCIE" rev 0x03
pci3 at ppb2 bus 3
ppb3 at pci0 dev 30 function 0 "Intel 82801BA AGP" rev 0xd3
pci4 at ppb3 bus 4
xl0 at pci4 dev 1 function 0 "3Com 3c905C 100Base-TX" rev 0x78: irq 10xl0:
reset
 didn't complete
, address 00:0a:5e:64:50:f5
exphy0 at xl0 phy 24: 3Com internal media interface
xl0: reset didn't complete
ichpcib0 at pci0 dev 31 function 0 "Intel 82801FB LPC" rev 0x03: PM
disabled
pciide0 at pci0 dev 31 function 1 "Intel 82801FB IDE" rev 0x03: DMA,
channel 0 c
onfigured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0:  SCSI0
5/cdrom r
emovable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
pciide1 at pci0 dev 31 function 2 "Intel 82801FR SATA" rev 0x03: DMA,
channel 0
configured to native-PCI, channel 1 configured to native-PCI
pciide1: using irq 5 for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: 
wd0: 16-sector PIO, LBA48, 152627MB, 312581808 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
wd1 at pciide1 channel 1 drive 0: 
wd1: 16-sector PIO, LBA, 76293MB, 15625 sectors
wd1(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 5
ichiic0 at pci0 dev 31 function 3 "Intel 82801FB SMBus" rev 0x03: irq 10
iic0 at ichiic0
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: 
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
biomask f765 netmask ff6d ttymask ffef
pctr: user-level cycle counter enabled
dkcsum: wd0 matches BIOS drive 0x80
dkcsum: wd1 matches BIOS drive 0x81
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302



em(4) Intel PRO/1000PT Dual Port

2006-08-17 Thread Kyle George
On Tue, 15 Aug 2006, jared r r spiegel wrote:

>   it's onboard; i don't use that NIC anymore in favour of the em(4).

Speaking of em(4), does the Intel PRO/1000PT dual-port PCIe card work on
3.9 i386?

This (http://archives.neohapsis.com/archives/openbsd/2006-07/0389.html)
dmesg shows it working (presumably) on amd64, but the parent seems to
indicate that it does not work.  However, it's listed in the em(4) man
page.

I tried to use this card.  em0 worked fine.  But as soon as I would plug
into em1 the whole machine would freeze.  No panic, just frozen.  The
dmesg below shows one such boot with a lot of other devices stil in the
machine.  I also tried it stripped down and with all onboard devices
(bge0, com0, lpt0) disabled in the bios with the same result.

-- 
Kyle George
[EMAIL PROTECTED]

Dell PowerEdge SC420:

OpenBSD 3.9 (GENERIC) #617: Thu Mar  2 02:26:48 MST 2006
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) 4 CPU 2.80GHz ("GenuineIntel" 686-class) 2.80
GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CF
LUSH,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,CNXT-ID
real mem  = 526544896 (514204K)
avail mem = 473415680 (462320K)
using 4278 buffers containing 26431488 bytes (25812K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 02/06/06, BIOS32 rev. 0 @
0xffe90
apm0 at bios0: Power Management spec V1.2
apm0: APM get power status: unknown error code? (83)
apm0: flags 30102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf/0x1
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfeb00/240 (13 entries)
pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82801FB LPC" rev 0x00)
pcibios0: PCI bus #4 is the last bus
bios0: ROM list: 0xc/0x9800! 0xc9800/0x2800
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel E7221 MCH Host" rev 0x04
ppb0 at pci0 dev 1 function 0 "Intel E7221 PCIE" rev 0x04
pci1 at ppb0 bus 1
em0 at pci1 dev 0 function 0 "Intel PRO/1000 PT (82571EB)" rev 0x06: irq
11, add
ress xx:xx:xx:xx:xx:xx
em1 at pci1 dev 0 function 1 "Intel PRO/1000 PT (82571EB)" rev 0x06: irq
3, addr
ess xx:xx:xx:xx:xx:xx
vga1 at pci0 dev 2 function 0 "Intel E7221 Video" rev 0x04: aperture at
0xdff800
00, size 0x800
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ppb1 at pci0 dev 28 function 0 "Intel 82801FB PCIE" rev 0x03
pci2 at ppb1 bus 2
bge0 at pci2 dev 0 function 0 "Broadcom BCM5751" rev 0x01, BCM5750 A1
(0x4001):
irq 11, address xx:xx:xx:xx:xx:xx
brgphy0 at bge0 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0
ppb2 at pci0 dev 28 function 1 "Intel 82801FB PCIE" rev 0x03
pci3 at ppb2 bus 3
ppb3 at pci0 dev 30 function 0 "Intel 82801BA AGP" rev 0xd3
pci4 at ppb3 bus 4
skc0 at pci4 dev 1 function 0 "D-Link Systems DGE-560T_2" rev 0x11,
Marvell Yuko
n Lite (0x9): irq 10
sk0 at skc0 port A, address xx:xx:xx:xx:xx:xx
eephy0 at sk0 phy 0: Marvell 88E1011 Gigabit PHY, rev. 5
skc1 at pci4 dev 2 function 0 "D-Link Systems DGE-560T_2" rev 0x11,
Marvell Yuko
n Lite (0x9): irq 3
sk1 at skc1 port A, address xx:xx:xx:xx:xx:xx
eephy1 at sk1 phy 0: Marvell 88E1011 Gigabit PHY, rev. 5
ichpcib0 at pci0 dev 31 function 0 "Intel 82801FB LPC" rev 0x03: PM
disabled
pciide0 at pci0 dev 31 function 1 "Intel 82801FB IDE" rev 0x03: DMA,
channel 0 c
onfigured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0:  SCSI0
5/cdrom r
emovable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
pciide1 at pci0 dev 31 function 2 "Intel 82801FR SATA" rev 0x03: DMA,
channel 0
configured to native-PCI, channel 1 configured to native-PCI
pciide1: using irq 5 for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: 
wd0: 16-sector PIO, LBA48, 152627MB, 312581808 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
wd1 at pciide1 channel 1 drive 0: 
wd1: 16-sector PIO, LBA, 76293MB, 15625 sectors
wd1(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 5
ichiic0 at pci0 dev 31 function 3 "Intel 82801FB SMBus" rev 0x03: irq 10
iic0 at ichiic0
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: 
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
biomask f765 netmask ff6d ttymask ffef
pctr: user-level cycle counter enabled
dkcsum: wd0 matches BIOS drive 0x80
dkcsum: wd1 matches BIOS drive 0x81
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302



Re: Sometimes OpenBSD "forgets" the disklabel

2006-08-23 Thread Kyle George
On Wed, 23 Aug 2006, Andreas Maus wrote:

[snip]

> I have a ccd containing two disks: Sometimes after a reboot the system
> is can not build ccd0 because wd1 doesn't have a correcte disklabel. I
> can set it manually (disklabel -E wd1) to: Does anyone knows whats wrong
> or what I should do the fix this behaviour?

See: http://inglorion.net/documents/tutorials/ccd
See: http://morgenes.shire.sytes.net/~inglorion/documents/tutorials/ccd

Assuming you don't have any bad disks, I think you are forgetting that the
disklabels on wd0, wd1 are different than the disklabel that is needed on
ccd0.

I don't see your fstab.  Are you trying to mount ccd0c?

Treat ccd0 like it's it's own disk; like how you would treat a physical
disk.

See below for my 3.9 ccd configuration which is working fine.

-- 
Kyle George
Director of Software Engineering
Hi-Mark Software
e: [EMAIL PROTECTED]
e: [EMAIL PROTECTED]

-- # disklabel wd0:
   # Inside MBR partition 3: type A6 start 63 size 312576642
   # /dev/rwd0c:
   type: ESDI
   disk: ESDI/IDE disk
   label: WDC WD1600JS-55N
   flags:
   bytes/sector: 512
   sectors/track: 63
   tracks/cylinder: 16
   sectors/cylinder: 1008
   cylinders: 16383
   total sectors: 312581808
   rpm: 3600
   interleave: 1
   trackskew: 0
   cylinderskew: 0
   headswitch: 0   # microseconds
   track-to-track seek: 0  # microseconds
   drivedata: 0

   16 partitions:
   # sizeoffset  fstype [fsize bsize  cpg]
 a:  1468044963  4.2BSD   2048 16384  328 # Cyl 0*- 
14563
 b:   4194288  14680512swap   # Cyl 14564 - 
18724
 c: 312581808 0  unused  0 0  # Cyl 0 
-310100
 d: 125828640  18874800  4.2BSD   2048 16384   16 # Cyl 18725 
-143554
 e:  10486224 144703440  4.2BSD   2048 16384  328 # Cyl 143555 
-153957

-- # disklabel wd1:
   # Inside MBR partition 3: type A6 start 63 size 156248127
   # /dev/rwd1c:
   type: ESDI
   disk: ESDI/IDE disk
   label: Maxtor 6Y080M0
   flags:
   bytes/sector: 512
   sectors/track: 63
   tracks/cylinder: 16
   sectors/cylinder: 1008
   cylinders: 16383
   total sectors: 15625
   rpm: 3600
   interleave: 1
   trackskew: 0
   cylinderskew: 0
   headswitch: 0   # microseconds
   track-to-track seek: 0  # microseconds
   drivedata: 0

   16 partitions:
   # sizeoffset  fstype [fsize bsize  cpg]
 a:  1468044963  4.2BSD   2048 16384  328 # Cyl 0*- 
14563
 b:   4194288  14680512swap   # Cyl 14564 - 
18724
 c: 15625 0  unused  0 0  # Cyl 0 
-155009*
 d: 125828640  18874800  4.2BSD   2048 16384   16 # Cyl 18725 
-143554
 e:  10486224 144703440  4.2BSD   2048 16384   16 # Cyl 143555 
-153957

-- # cat /etc/ccd.conf:
   ccd0 16 CCDF_MIRROR /dev/wd0d /dev/wd1d

-- # disklabel ccd0:
   # /dev/rccd0c:
   type: ccd
   disk: ccd
   label: default label
   flags:
   bytes/sector: 512
   sectors/track: 16
   tracks/cylinder: 1
   sectors/cylinder: 16
   cylinders: 7864290
   total sectors: 125828640
   rpm: 3600
   interleave: 1
   trackskew: 0
   cylinderskew: 0
   headswitch: 0   # microseconds
   track-to-track seek: 0  # microseconds
   drivedata: 0

   16 partitions:
   # sizeoffset  fstype [fsize bsize  cpg]
 a:  41943040 0  4.2BSD   2048 16384 2420 # Cyl 0 
-2621439
 c: 125828640 0  unused  0 0  # Cyl 0 
-7864289
 d:  41943040  41943040  4.2BSD   2048 16384 2420 # Cyl 2621440 
-5242879
 e:  41942560  83886080  4.2BSD   2048 16384 2420 # Cyl 5242880 
-7864289

-- # cat /etc/fstab:
   /dev/wd0a / ffs rw,softdep 1 1
   /dev/wd1a /altroot ffs xx 0 0
   /dev/wd0e /tmp ffs rw,nodev,nosuid,softdep 1 2
   /dev/ccd0e /home ffs rw,nodev,nosuid,softdep 1 2
   /dev/ccd0a /usr ffs rw,nodev,softdep 1 2
   /dev/ccd0d /var ffs rw,nodev,nosuid,softdep 1 2



Re: Opinion of MySQL 5.xx on OpenBSD 3.9...

2006-09-07 Thread Kyle George
On Thu, 7 Sep 2006, Jacob Yocom-Piatt wrote:

> i too was "unlucky" until i read some posts on misc@ several months
> back. adding
> _mysql:\
> :datasize=1024M:\
> :maxproc=4096:\
> :openfiles-cur=2048:\
> :openfiles-max=8192:\
> :stacksize-cur=16M:\
> :tc=default:

Besides /etc/login.conf changes, ulimit, and sysctl kern.maxfiles, I
believe there is also an "open-files-limit" setting that can be placed in
my.cnf.

Not exactly related, but there's also a bug I've experienced on 3.9 with
DBD::mysql.  See: http://rt.cpan.org/Public/Bug/Display.html?id=20868

-- 
Kyle George
[EMAIL PROTECTED]



Re: low through-put on bge cards OBSD 4.0 & 3.9

2006-10-30 Thread Kyle George

On Mon, 30 Oct 2006, Dag Richards wrote:


I can not seem to get more that ~43 megabytes per second through
the bge cards on these boxes.  This is the unencrypted speed
with the cards attached by x-over cable or on a 2950 switch with only
these two boxes attached.

[snip]

Any suggestions?


Try bumping net.inet.tcp.recvspace and net.inet.tcp.sendspace.

http://www.openbsd.org/faq/faq6.html#Tuning

--
Kyle George
[EMAIL PROTECTED]



Re: subversion with mod_dav_svn

2006-10-31 Thread Kyle George

On Tue, 31 Oct 2006, Pete Vickers wrote:

Anybody got subversion running well under OpenBSD with the http/webdav 
transport ? It seems to require apache2 amongst a whole shed load of other 
dependancies. Google throws up nothing less than 4 years old, so really just 
after any experiences to shortcut my legwork.


I have it running on 3.9.  Works great.  Yes, as a downside subversion 
does require apache2 in order to use mod_dav_svn.  If you're willing to 
forego mod_dav_svn, you can do just svn:// or svn+ssh:// with svnserve 
without having to build apache2.


Most of the dependencies (berkeley db, neon, python for make check) can be 
added from the packages collection.  There really aren't that many 
dependencies.


After that, build apache2.

After that, get the subversion 1.4.0 tarball.  You won't need the -deps 
tarball if you've done everything else right.  In my case, I configured 
with:


export LDFLAGS=-L/usr/local/lib
export APACHEBIN=/usr/local/apache2/bin
./configure --with-neon=/usr/local --with-apxs=$APACHEBIN/apxs \
  --with-apr=$APACHEBIN/apr-1-config \
  --with-apr-util=$APACHEBIN/apu-1-config --with-ssl --with-zlib \
  --with-berkeley-db
make && make check && make install

Note that if you have previously installed an older version of subversion 
you might have to [re]move the existing libsvn* binaries [1] [2].


Also, with 1.4.0 there's a typo in build-outputs.mk (I think).  One of the 
target man pages is wrong (svnversion.1 should be svnsync.1 or something 
like that, search the svn list archives).  Easily fixed with a simple 
edit.


Then just configure apache2 to use subversion and allow access to your 
repositories.  Read the apache and svn docs for that.


[1] http://subversion.tigris.org/servlets/ReadMsg?listName=dev&msgNo=120899
[2] http://subversion.tigris.org/servlets/ReadMsg?listName=dev&msgNo=15509

--
Kyle George



Re: crash on 4.0 (but no ddb)

2006-11-05 Thread Kyle George

On Sun, 5 Nov 2006, Stephen Takacs wrote:


I upgraded my laptop yesterday, and this afternoon I returned to find an
interesting surprise:  the screen was blank, and the keyboard completely
unresponsive (even the CapsLock key LED didn't toggle).  Unfortunately
the logs don't say much.  I hard-reset the machine at 13:25.  Here are
the only log entries immediately before then:

[snip]

Any idea what else I can do to troubleshoot this?  My dmesg follows...


Maybe add sysctl ddb.console=1 to rc.securelevel so if it happens again 
you can try breaking into ddb with ctrl-alt-esc.


--
Kyle George



Re: crash on 4.0 (but no ddb)

2006-11-05 Thread Kyle George

On Sun, 5 Nov 2006, Stephen Takacs wrote:


On Sun, Nov 05, 2006 at 03:12:33PM -0500, Kyle George wrote:

Maybe add sysctl ddb.console=1 to rc.securelevel so if it happens again
you can try breaking into ddb with ctrl-alt-esc.


Thanks!  I'll add that, reboot, and we shall see...


Actually, what I should have said was uncomment the ddb.console=1 line in 
sysctl.conf.  That's where it should go.  It will work in either place 
though.


--
Kyle George