Re: Caps Lock key lags USB input for about a second under X

2009-06-30 Thread Matthew Dempsky
A few more details on this issue, after some further experimentation.

The Caps Lock key always works fine at the console; the problem I
reported only affects X.

My computer has a single USB keyboard (there are no PS/2 ports).

If I use "disable pckbd", then the keyboard continues to work fine at
the console, and the Caps Lock problem is resolved under X.  If I use
"disable ukbd", then the keyboard does not work at all at the console.
 (I couldn't run "startx", so I didn't bother to test X.)

To be able to use my keyboard for GRUB and boot(8), I have to enable
"USB Legacy" in my BIOS settings.  If I turn that off, the ehci BIOS
hand off timeout goes away, but both pckbd and ukbd still attach by
default (expected?), and the situation seems otherwise unchanged.

If I boot into Linux, I see a similar warning in its dmesg logs about
a possible BIOS bug because of the failed EHCI USB handoffs.  I'm
running the latest BIOS revision; I tried upgrading it to see if it
would fix the ehci(4) warning under OpenBSD, but it had no apparent
effect.  (Revert r1.16 of ehci_pci.c had no effect either.)


As far as I can tell, using "disable pckbd" is a sufficient workaround
to the problem.  However, seeing as the console is able to handle
having both pckbd0 and ukbd0 without Caps Lock problems, I would
expect X to be able to as well.


On Mon, Jun 29, 2009 at 9:04 PM, Matthew Dempsky wrote:
> On Mon, Jun 29, 2009 at 9:01 PM, Matthew Dempsky
wrote:
>> On my desktop, whenever I press the Caps Lock key while using X, all
>> USB input is lagged for about a second.  The Caps Lock light on my
>> keyboard does not change state until after this second, and all other
>> subsequent key presses and/or mouse movements are not registered until
>> after either.
>>
>> XXXxxxXX
>
> (Sorry, I unintentionally sent that message while testing the behavior.)
>
> So I can also press (e.g.) Caps Lock, x, x, x, Caps Lock, x, x, x,
> repeated several times within a second, and the result is the light
> blinks on and off once a second, and then finally all of the key input
> is registered.
>
> Below is my dmesg, and a copy of my xorg.conf, in case they help.
> This is under a fairly recent 4.6-beta snapshot.
>
> Thanks.
>
>
> OpenBSD 4.6-beta (GENERIC.MP) #55: Sat Jun 27 18:53:57 MDT 2009
>dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 3180863488 (3033MB)
> avail mem = 3072126976 (2929MB)
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe8590 (56 entries)
> bios0: vendor Intel Corp. version "IDG4510H.86A.0101.2009.0526.1006"
> date 05/26/2009
> bios0: Intel Corporation DG45ID
> acpi0 at bios0: rev 2
> acpi0: tables DSDT FACP APIC MCFG ASF! HPET
> acpi0: wakeup devices P0P1(S3) UAR1(S3) UAR3(S5) P0P2(S3) USB0(S3)
> USB1(S3) USB2(S3) EUSB(S3) USB3(S3) USB4(S3) USBE(S3) PEX0(S4)
> PEX1(S4) PEX2(S4) PEX3(S4) PEX4(S4) GBE_(S4) USB5(S3) PWRB(S5)
> 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 E8400 @ 3.00GHz, 3000.12 MHz
> cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,C
X16,xTPR,NXE,LONG
> cpu0: 6MB 64b/line 16-way L2 cache
> cpu0: apic clock running at 333MHz
> cpu1 at mainbus0: apid 1 (application processor)
> cpu1: Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz, 2999.66 MHz
> cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS
H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,SMX,EST,TM2,C
X16,xTPR,NXE,LONG
> cpu1: 6MB 64b/line 16-way L2 cache
> ioapic0 at mainbus0 apid 0 pa 0xfec0, version 20, 24 pins
> acpihpet0 at acpi0: 14318179 Hz
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus 1 (P0P2)
> acpiprt2 at acpi0: bus -1 (PEX0)
> acpiprt3 at acpi0: bus -1 (PEX1)
> acpiprt4 at acpi0: bus -1 (PEX2)
> acpiprt5 at acpi0: bus -1 (PEX3)
> acpiprt6 at acpi0: bus -1 (PEX4)
> acpicpu0 at acpi0:, C3, C2, C1, PSS
> acpicpu1 at acpi0:, C3, C2, C1, PSS
> acpibtn0 at acpi0: PWRB
> cpu0: Enhanced SpeedStep 2999 MHz: speeds: 2997, 1998 MHz
> pci0 at mainbus0 bus 0
> extent `pciio' (0x0 - 0x), flags=0
> 0xd000 - 0xe143
> 0xe150 - 0xe157
> 0xe160 - 0xe163
> 0xe170 - 0xe177
> 0xe180 - 0xe183
> 0xe190 - 0xe197
> 0xe1a0 - 0xe1a3
> 0xe1b0 - 0xe1b7
> 0xe1c0 - 0xe1c7
> 0x1 - 0x
> extent `pcimem' (0x0 - 0x), flags=0
> 0x0 - 0x9
> 0xe - 0xbdcf
> 0xc000 - 0xd062610f
> 0xfed1c000 - 0xfed1
> 0xff00 - 0x
> pchb0 at pci0 dev 0 function 0 "Intel G45 Host" rev 0x03
> vga1 at pci0 dev 2 function 0 "Intel G45 Video" rev 0x03
> wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> intagp0 at vga1
> agp0 at intagp0: aperture at 0xc000, size 0x1000
> inteldrm

Multiple IPSec-tunnels and load balancing

2009-06-30 Thread uw
Hi @misc,

maybe someone can give me some hints ;-)

I try to use an OpenBSD firewall with two ADSL links connected (dynamic
addresses!) to the internet. Now I want to establish two IPSec tunnels over
each link to a central VPN gateway (OpenBSD too).

Is it possible to load balance / failover the traffic over IPSec? If so,
should I use GIF for load balancing / routing?

Thanks in advance for anyones advice!

Regards Uwe

[demime 1.01d removed an attachment of type application/pgp-signature]



Re: Problems using ppp on my cell phone

2009-06-30 Thread Didier Wiroth

STeve Andre' wrote:

   I just found out that my ppp link via my T-Mobile
phone doesn't work.  Of course I found this out while
being outside without any other net connection.

   I haven't changed anything other than compiling
stuff.  This is a -current system on a Thinkpad W500
compiled on June 26th.  This has worked for years.

   What happens is that upon firing ppp up manually
I get the message "Working in interactive mode" which
I have never gotten before.  So far I haven't been able
to do anything with it other than a ^C.  I tried an
identical phone with my SIM; same results.

   Any ideas?

Thanks, STeve Andre'

Dmesg, copy of ppp.conf and usbdevs output below.
  


Hello,
Same here, I'm using a W500 too, I can't connect anymore:

/var/log/daemon output:
Jun 30 17:15:24 406334g pppd[8832]: pppd 2.3.5 started by dda, uid 1000
Jun 30 17:15:28 406334g pppd[8832]: Serial connection established.
Jun 30 17:15:29 406334g pppd[8832]: Using interface ppp0
Jun 30 17:15:29 406334g pppd[8832]: Connect: ppp0 <--> /dev/cuaU0
Jun 30 17:15:32 406334g pppd[8832]: Modem hangup
Jun 30 17:15:32 406334g pppd[8832]: Connection terminated.

/var/log/chat output:
Jun 30 17:15:25 406334g chat[4387]: timeout set to 120 seconds
Jun 30 17:15:25 406334g chat[4387]: abort on (BUSY)
Jun 30 17:15:25 406334g chat[4387]: abort on (ERROR)
Jun 30 17:15:25 406334g chat[4387]: abort on (NO CARRIER)
Jun 30 17:15:25 406334g chat[4387]: abort on (VOICE)
Jun 30 17:15:25 406334g chat[4387]: abort on (NO DIALTONE)
Jun 30 17:15:25 406334g chat[4387]: send (ATE1^M)
Jun 30 17:15:26 406334g chat[4387]: expect (OK)
Jun 30 17:15:26 406334g chat[4387]: ATE1^M^M
Jun 30 17:15:26 406334g chat[4387]: OK
Jun 30 17:15:26 406334g chat[4387]:  -- got it
Jun 30 17:15:26 406334g chat[4387]: send (AT+CGDCONT=1,"IP","web.pt.lu"^M)
Jun 30 17:15:26 406334g chat[4387]: expect (OK)
Jun 30 17:15:26 406334g chat[4387]: ^M
Jun 30 17:15:26 406334g chat[4387]: AT+CGDCONT=1,"IP","web.pt.lu"^M^M
Jun 30 17:15:26 406334g chat[4387]: OK
Jun 30 17:15:26 406334g chat[4387]:  -- got it
Jun 30 17:15:26 406334g chat[4387]: send (ATD*99***1#^M)
Jun 30 17:15:27 406334g chat[4387]: expect (CONNECT)
Jun 30 17:15:27 406334g chat[4387]: ^M
Jun 30 17:15:28 406334g chat[4387]: atd*99***1#^m~^...@!}!}!} 
}8}...@#}(}"}'}"}"}&} } } } }%}&^ZD)R^W~^M

Jun 30 17:15:28 406334g chat[4387]: CONNECT
Jun 30 17:15:28 406334g chat[4387]:  -- got it
Jun 30 17:15:28 406334g chat[4387]: send ()

I'm using pppd with another provider LUXGSM, but I can't connect anymore 
but it used to work perfectly.


I would really appreciate some help too.

Thanks a lot!
Didier

Here is my dmesg, scripts and usbdevs output:

OpenBSD 4.5-current (GENERIC.MP) #15: Thu Jun 18 09:58:42 MDT 2009
   t...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 3174764544 (3027MB)
avail mem = 3066490880 (2924MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (80 entries)
bios0: vendor LENOVO version "6FET70WW (3.00 )" date 04/17/2009
bios0: LENOVO 406334G
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SSDT ECDT APIC MCFG HPET SLIC BOOT ASF! SSDT 
TCPA 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) USB3(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: Intel(R) Core(TM)2 Duo CPU T9600 @ 2.80GHz, 2793.36 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,SMX,EST,TM2,CX16,xTPR,NXE,LONG

cpu0: 6MB 64b/line 16-way L2 cache
cpu0: apic clock running at 266MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU T9600 @ 2.80GHz, 2793.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,SMX,EST,TM2,CX16,xTPR,NXE,LONG

cpu1: 6MB 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 4 (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, 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 100 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model "42T4620" serial  3828 type LION oem 
"Panasonic"

acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
acpidock0 at acpi0: GDCK not docked (0)
cpu0: Enhanced SpeedStep 2793 MHz: speeds: 2801, 

Re: Problems using ppp on my cell phone

2009-06-30 Thread Didier Wiroth

Here is an output of pppd debugging
(if someone can help ... because this is chinese to me ;-((

Jun 30 18:26:55 406334g pppd[31216]: Serial connection established.
Jun 30 18:26:56 406334g pppd[31216]: Using interface ppp0
Jun 30 18:26:56 406334g pppd[31216]: Connect: ppp0 <--> /dev/cuaU0
Jun 30 18:26:56 406334g pppd[31216]: sent [LCP ConfReq id=0x2 0x426a5360> ]
Jun 30 18:26:56 406334g pppd[31216]: rcvd [LCP ConfReq id=0x2  
   ]
Jun 30 18:26:56 406334g pppd[31216]: sent [LCP ConfRej id=0x2  
]
Jun 30 18:26:56 406334g pppd[31216]: rcvd [LCP ConfAck id=0x2 0x426a5360> ]
Jun 30 18:26:59 406334g pppd[31216]: sent [LCP ConfReq id=0x2 0x426a5360> ]

Jun 30 18:26:59 406334g pppd[31216]: Modem hangup
Jun 30 18:26:59 406334g pppd[31216]: Connection terminated.


Didier Wiroth wrote:

STeve Andre' wrote:

   I just found out that my ppp link via my T-Mobile
phone doesn't work.  Of course I found this out while
being outside without any other net connection.

   I haven't changed anything other than compiling
stuff.  This is a -current system on a Thinkpad W500
compiled on June 26th.  This has worked for years.

   What happens is that upon firing ppp up manually
I get the message "Working in interactive mode" which
I have never gotten before.  So far I haven't been able
to do anything with it other than a ^C.  I tried an
identical phone with my SIM; same results.

   Any ideas?

Thanks, STeve Andre'

Dmesg, copy of ppp.conf and usbdevs output below.
  


Hello,
Same here, I'm using a W500 too, I can't connect anymore:

/var/log/daemon output:
Jun 30 17:15:24 406334g pppd[8832]: pppd 2.3.5 started by dda, uid 1000
Jun 30 17:15:28 406334g pppd[8832]: Serial connection established.
Jun 30 17:15:29 406334g pppd[8832]: Using interface ppp0
Jun 30 17:15:29 406334g pppd[8832]: Connect: ppp0 <--> /dev/cuaU0
Jun 30 17:15:32 406334g pppd[8832]: Modem hangup
Jun 30 17:15:32 406334g pppd[8832]: Connection terminated.

/var/log/chat output:
Jun 30 17:15:25 406334g chat[4387]: timeout set to 120 seconds
Jun 30 17:15:25 406334g chat[4387]: abort on (BUSY)
Jun 30 17:15:25 406334g chat[4387]: abort on (ERROR)
Jun 30 17:15:25 406334g chat[4387]: abort on (NO CARRIER)
Jun 30 17:15:25 406334g chat[4387]: abort on (VOICE)
Jun 30 17:15:25 406334g chat[4387]: abort on (NO DIALTONE)
Jun 30 17:15:25 406334g chat[4387]: send (ATE1^M)
Jun 30 17:15:26 406334g chat[4387]: expect (OK)
Jun 30 17:15:26 406334g chat[4387]: ATE1^M^M
Jun 30 17:15:26 406334g chat[4387]: OK
Jun 30 17:15:26 406334g chat[4387]:  -- got it
Jun 30 17:15:26 406334g chat[4387]: send 
(AT+CGDCONT=1,"IP","web.pt.lu"^M)

Jun 30 17:15:26 406334g chat[4387]: expect (OK)
Jun 30 17:15:26 406334g chat[4387]: ^M
Jun 30 17:15:26 406334g chat[4387]: AT+CGDCONT=1,"IP","web.pt.lu"^M^M
Jun 30 17:15:26 406334g chat[4387]: OK
Jun 30 17:15:26 406334g chat[4387]:  -- got it
Jun 30 17:15:26 406334g chat[4387]: send (ATD*99***1#^M)
Jun 30 17:15:27 406334g chat[4387]: expect (CONNECT)
Jun 30 17:15:27 406334g chat[4387]: ^M
Jun 30 17:15:28 406334g chat[4387]: atd*99***1#^m~^...@!}!}!} 
}8}...@#}(}"}'}"}"}&} } } } }%}&^ZD)R^W~^M

Jun 30 17:15:28 406334g chat[4387]: CONNECT
Jun 30 17:15:28 406334g chat[4387]:  -- got it
Jun 30 17:15:28 406334g chat[4387]: send ()

I'm using pppd with another provider LUXGSM, but I can't connect 
anymore but it used to work perfectly.


I would really appreciate some help too.

Thanks a lot!
Didier

Here is my dmesg, scripts and usbdevs output:

OpenBSD 4.5-current (GENERIC.MP) #15: Thu Jun 18 09:58:42 MDT 2009
   t...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 3174764544 (3027MB)
avail mem = 3066490880 (2924MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (80 entries)
bios0: vendor LENOVO version "6FET70WW (3.00 )" date 04/17/2009
bios0: LENOVO 406334G
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SSDT ECDT APIC MCFG HPET SLIC BOOT ASF! SSDT 
TCPA 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) USB3(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: Intel(R) Core(TM)2 Duo CPU T9600 @ 2.80GHz, 2793.36 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,SMX,EST,TM2,CX16,xTPR,NXE,LONG 


cpu0: 6MB 64b/line 16-way L2 cache
cpu0: apic clock running at 266MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU T9600 @ 2.80GHz, 2793.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,SMX,EST,TM2,CX16,xTPR,NXE,LONG 


cpu1: 6MB 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 acpi

Re: Multiple IPSec-tunnels and load balancing

2009-06-30 Thread Brian A. Seklecki
On Tue, 2009-06-30 at 11:15 +0200, u...@o3si.de wrote:
> Is it possible to load balance / failover the traffic over IPSec? If
> so,
> should I use GIF for load balancing / routing?

That's what Cisco DMVPN is, as far as I can tell.  Was just reading
about it.

You're talking about GRE tunnels to two intermediary facilities on the
way to a common 4th facility?  Assign the routes equal cost path
routing?

~BAS

> 
> Thanks in advance for anyones advice!



set require-order in pf.conf

2009-06-30 Thread frantisek holop
hi there,

now that set require-order is disabled by default,
is there a practical use for it?

isn't it now a 'useless knob'?

-f
-- 
friends are people you can be quiet with.



spamlogd(8) man page

2009-06-30 Thread frantisek holop
hi there,

i was wondering if it is a good idea to put actual hosts
into man pages as examples as in:

   EXT_IF = "fxp0"
   MAILHOSTS = "{129.128.11.10, 129.128.11.43}"
   pass in log on $EXT_IF inet proto tcp to $MAILHOSTS \
   port smtp
   pass out log on $EXT_IF inet proto tcp from $MAILHOSTS \
   to any port smtp

$ host 129.128.11.10
10.11.128.129.in-addr.arpa domain name pointer bofh.cns.ualberta.ca.

-f

ps. the SYNCHRONISATION section's last sentence is missing a full
stop.
-- 
time is the best teacher, unfortunately it kills all its students.



Re: set require-order in pf.conf

2009-06-30 Thread Henning Brauer
* frantisek holop  [2009-06-30 18:47]:
> now that set require-order is disabled by default,
> is there a practical use for it?
> isn't it now a 'useless knob'?

it will be very much useless soon, and then I'll enjoy removing it.

removing your own work is nice, isn't it? :)

revision 1.176
date: 2002/10/29 15:23:38;  author: henning;  state: Exp;  lines: +16 -2
introduce
  set require-order [yes|no]
default is yes.


-- 
Henning Brauer, h...@bsws.de, henn...@openbsd.org
BS Web Services, http://bsws.de
Full-Service ISP - Secure Hosting, Mail and DNS Services
Dedicated Servers, Rootservers, Application Hosting - Hamburg & Amsterdam



Re: set require-order in pf.conf

2009-06-30 Thread frantisek holop
hmm, on Tue, Jun 30, 2009 at 08:08:45PM +0200, Henning Brauer said that
> * frantisek holop  [2009-06-30 18:47]:
> > now that set require-order is disabled by default,
> > is there a practical use for it?
> > isn't it now a 'useless knob'?
> 
> it will be very much useless soon, and then I'll enjoy removing it.
> 
> removing your own work is nice, isn't it? :)

better be you who removes your own work than somebody else :]

(if you find some time, could you look at my other question
about the timeouts?  thanks)

-f
-- 
excellent day to have a rotten day.



Re: state key linking mismatch w/GRE, since 4.5

2009-06-30 Thread Pascal Lalonde
On Fri, Jun 12, 2009 at 05:56:43AM +0200, Henning Brauer wrote:
> * Pascal Lalonde  [2009-06-12 00:28]:
> > Jun 11 18:08:19 celeborn /bsd: pf: state key linking mismatch! dir=OUT,
> > if=bge0, stored af=2, a0: 10.136.192.199:30285, a1: 10.216.8.1:22,
> > proto=6, found af=2, a0: AAA.AAA.AAA.AAA, a1: BBB.BBB.BBB.BBB, proto=47.
> > Jun 11 18:08:21 celeborn /bsd: pf: state key linking mismatch! dir=OUT,
> > if=bge0, stored af=2, a0: 10.136.248.119:42137, a1: 10.137.0.130:993,
> > proto=6, found af=2, a0: AAA.AAA.AAA.AAA, a1: BBB.BBB.BBB.BBB, proto=47.
> 
> fixed in -current and no need to worry really

Small followup on this, for people who would happen to run in the same
problem.

We were just bitten by this issue. With our smaller VPN gateways (<10
flows with ESP/GRE), the extra logging didn't cause any issues. But once
we upgraded our main VPN endpoint (roughly 176 flows) to 4.5, seems it
didn't like the amount of printf()'s generated; the load would make it
unusuable, causing CARP flapping, with a very high (>80%) interrupt%.
Fortunately we still had our other node in 4.4 to fallback to.

I can confirm that on our test setup with a -current kernel, those messages
don't show up anymore.

In the meantime, we applied the following to let us control whether we
wish to see those warnings or not:


--- sys/net/pf.c.orig   Tue Jun 30 18:13:34 2009
+++ sys/net/pf.cTue Jun 30 18:44:00 2009
@@ -860,19 +860,22 @@
return (0);
else {
/* mismatch. must not happen. */
-   printf("pf: state key linking mismatch! dir=%s, "
-   "if=%s, stored af=%u, a0: ",
-   dir == PF_OUT ? "OUT" : "IN", kif->pfik_name, a->af);
-   pf_print_host(&a->addr[0], a->port[0], a->af);
-   printf(", a1: ");
-   pf_print_host(&a->addr[1], a->port[1], a->af);
-   printf(", proto=%u", a->proto);
-   printf(", found af=%u, a0: ", b->af);
-   pf_print_host(&b->addr[0], b->port[0], b->af);
-   printf(", a1: ");
-   pf_print_host(&b->addr[1], b->port[1], b->af);
-   printf(", proto=%u", b->proto);
-   printf(".\n");
+   if (pf_status.debug >= PF_DEBUG_MISC) {
+   printf("pf: state key linking mismatch! dir=%s, "
+   "if=%s, stored af=%u, a0: ",
+   dir == PF_OUT ? "OUT" : "IN", kif->pfik_name,
+   a->af);
+   pf_print_host(&a->addr[0], a->port[0], a->af);
+   printf(", a1: ");
+   pf_print_host(&a->addr[1], a->port[1], a->af);
+   printf(", proto=%u", a->proto);
+   printf(", found af=%u, a0: ", b->af);
+   pf_print_host(&b->addr[0], b->port[0], b->af);
+   printf(", a1: ");
+   pf_print_host(&b->addr[1], b->port[1], b->af);
+   printf(", proto=%u", b->proto);
+   printf(".\n");
+   }
return (-1);
}
 }


-- 
Pascal



Floating disk geometry

2009-06-30 Thread Sergey Yudin

Please can someone tell why disk geometry changed after install

in installation time on empty sd0:

Disk: sd0   geometry: 78753/2/911 [143638992 Sectors]
Offset: 0   Signature: 0x0
   Starting Ending LBA Info:
#: id  C   H   S -  C   H   S [   start:size ]
---
0: 00  0   0   0 -  0   0   0 [   0:   0 ] unused
1: 00  0   0   0 -  0   0   0 [   0:   0 ] unused
2: 00  0   0   0 -  0   0   0 [   0:   0 ] unused
3: 00  0   0   0 -  0   0   0 [   0:   0 ] unused

after install geometry shown as:

Disk: sd0   geometry: 8941/255/63 [143638992 Sectors]
Offset: 0   Signature: 0xAA55
   Starting Ending LBA Info:
#: id  C   H   S -  C   H   S [   start:size ]
---
0: 00  0   0   0 -  0   0   0 [   0:   0 ] unused
1: 00  0   0   0 -  0   0   0 [   0:   0 ] unused
2: 00  0   0   0 -  0   0   0 [   0:   0 ] unused
*3: A6  0  14  30 -   8931 181  48 [ 911:   143487055 ] OpenBSD

thanks a lot




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 Pentium II ("GenuineIntel" 686-class, 512KB L2 cache) 350 MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR

real mem  = 268005376 (255MB)
avail mem = 250855424 (239MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 09/30/98, BIOS32 rev. 0 @ 0xfd760
mpbios0 at bios0: Intel MP Specification 1.4
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 99MHz
mpbios0: bus 0 is type PCI  
mpbios0: bus 1 is type PCI  
mpbios0: bus 2 is type PCI  
mpbios0: bus 3 is type ISA  
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 11, 24 pins

pcibios0 at bios0: rev 2.1 @ 0xfd760/0x8a0
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdef0/240 (13 entries)
pcibios0: PCI Interrupt Router at 000:02:0 ("Intel 82371FB ISA" rev 0x00)
pcibios0: PCI bus #2 is the last bus
WARNING: can't reserve area for I/O APIC.
bios0: ROM list: 0xc/0x8000 0xc8000/0x5000 0xcd000/0x800
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443BX AGP" rev 0x02
intelagp0 at pchb0
agp0 at intelagp0: aperture at 0x1000, size 0x400
ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x02
pci1 at ppb0 bus 1
piixpcib0 at pci0 dev 2 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02
pciide0 at pci0 dev 2 function 1 "Intel 82371AB IDE" rev 0x01: DMA, 
channel 0 wired to compatibility, channel 1 wired to compatibility

pciide0: channel 0 ignored (disabled)
pciide0: channel 1 ignored (disabled)
uhci0 at pci0 dev 2 function 2 "Intel 82371AB USB" rev 0x01: apic 1 int 
19 (irq 11)

piixpm0 at pci0 dev 2 function 3 "Intel 82371AB Power" rev 0x02: SMI
iic0 at piixpm0
spdmem0 at iic0 addr 0x50: 128MB SDRAM ECC PC100CL3
spdmem1 at iic0 addr 0x51: 128MB SDRAM ECC PC100CL3
fxp0 at pci0 dev 3 function 0 "Intel 8255x" rev 0x05, i82558: apic 1 int 
16 (irq 9), address 00:c0:0d:00:94:4f

inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 0
vga1 at pci0 dev 4 function 0 "Cirrus Logic CL-GD5430" rev 0x22
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ppb1 at pci0 dev 5 function 0 "DEC 21150 PCI-PCI" rev 0x04
pci_intr_map: bus 0 dev 5 func 0 pin 1; line 9
pci_intr_map: no MP mapping found
pci_intr_map: bus 0 dev 5 func 0 pin 2; line 10
pci_intr_map: no MP mapping found
pci_intr_map: bus 0 dev 5 func 0 pin 3; line 9
pci_intr_map: no MP mapping found
pci_intr_map: bus 0 dev 5 func 0 pin 4; line 11
pci_intr_map: no MP mapping found
pci2 at ppb1 bus 2
ahc0 at pci2 dev 1 function 0 "Adaptec AIC-7890/1 U2" rev 0x00: apic 1 
int 17 (irq 10)

scsibus0 at ahc0: 16 targets, initiator 7
sd0 at scsibus0 targ 0 lun 0:  SCSI3 0/direct 
fixed

sd0: 70136MB, 512 bytes/sec, 143638992 sec total
ahc1 at pci2 dev 9 function 0 "Adaptec AIC-7890/1 U2" rev 0x00: apic 1 
int 17 (irq 10)

scsibus1 at ahc1: 16 targets, initiator 7
cd0 at scsibus1 targ 5 lun 0:  SCSI2 
5/cdrom removable
eap0 at pci0 dev 20 function 0 "Ensoniq AudioPCI97" rev 0x06: apic 1 int 
16 (irq 9)

ac97: codec id 0x83847609 (SigmaTel STAC9721/23)
ac97: codec features 18 bit DAC, 18 bit ADC, SigmaTel 3D
audio0 at eap0
midi0 at eap0: 
isa0 at piixpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi1 at pcppi0: 
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 

Re: Floating disk geometry

2009-06-30 Thread Tony Abernethy
Sergey Yudin wrote:
> 
> Please can someone tell why disk geometry changed after install
> 
> in installation time on empty sd0:
> 
> Disk: sd0   geometry: 78753/2/911 [143638992 Sectors]
I don't know what that is, or where it came from,
but I don't think any 80386-type pc-BIOS could handle that geometry.
sectors per track show 911 but the maximum is 63
Looks like the install changed ramdom garbage into something useable.
(subject of course to correction from people on this list 
  who actually know what they are talking about)

> Offset: 0   Signature: 0x0
> Starting Ending LBA Info:
>  #: id  C   H   S -  C   H   S [   start:size ]
> --
> -
>  0: 00  0   0   0 -  0   0   0 [   0: 
>   0 ] unused
>  1: 00  0   0   0 -  0   0   0 [   0: 
>   0 ] unused
>  2: 00  0   0   0 -  0   0   0 [   0: 
>   0 ] unused
>  3: 00  0   0   0 -  0   0   0 [   0: 
>   0 ] unused
> 
> after install geometry shown as:
> 
> Disk: sd0   geometry: 8941/255/63 [143638992 Sectors]
> Offset: 0   Signature: 0xAA55
> Starting Ending LBA Info:
>  #: id  C   H   S -  C   H   S [   start:size ]
> --
> -
>  0: 00  0   0   0 -  0   0   0 [   0: 
>   0 ] unused
>  1: 00  0   0   0 -  0   0   0 [   0: 
>   0 ] unused
>  2: 00  0   0   0 -  0   0   0 [   0: 
>   0 ] unused
> *3: A6  0  14  30 -   8931 181  48 [ 911:   
> 143487055 ] OpenBSD
> 
> thanks a lot
> 
> 
> 
> 
> 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 Pentium II ("GenuineIntel" 686-class, 512KB L2 
> cache) 350 MHz
> cpu0: 
> FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,
> PAT,PSE36,MMX,FXSR
> real mem  = 268005376 (255MB)
> avail mem = 250855424 (239MB)
> mainbus0 at root
> bios0 at mainbus0: AT/286+ BIOS, date 09/30/98, BIOS32 rev. 0 
> @ 0xfd760
> mpbios0 at bios0: Intel MP Specification 1.4
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: apic clock running at 99MHz
> mpbios0: bus 0 is type PCI  
> mpbios0: bus 1 is type PCI  
> mpbios0: bus 2 is type PCI  
> mpbios0: bus 3 is type ISA  
> ioapic0 at mainbus0: apid 1 pa 0xfec0, version 11, 24 pins
> pcibios0 at bios0: rev 2.1 @ 0xfd760/0x8a0
> pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdef0/240 (13 entries)
> pcibios0: PCI Interrupt Router at 000:02:0 ("Intel 82371FB 
> ISA" rev 0x00)
> pcibios0: PCI bus #2 is the last bus
> WARNING: can't reserve area for I/O APIC.
> bios0: ROM list: 0xc/0x8000 0xc8000/0x5000 0xcd000/0x800
> pci0 at mainbus0 bus 0: configuration mode 1 (bios)
> pchb0 at pci0 dev 0 function 0 "Intel 82443BX AGP" rev 0x02
> intelagp0 at pchb0
> agp0 at intelagp0: aperture at 0x1000, size 0x400
> ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x02
> pci1 at ppb0 bus 1
> piixpcib0 at pci0 dev 2 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02
> pciide0 at pci0 dev 2 function 1 "Intel 82371AB IDE" rev 0x01: DMA, 
> channel 0 wired to compatibility, channel 1 wired to compatibility
> pciide0: channel 0 ignored (disabled)
> pciide0: channel 1 ignored (disabled)
> uhci0 at pci0 dev 2 function 2 "Intel 82371AB USB" rev 0x01: 
> apic 1 int 
> 19 (irq 11)
> piixpm0 at pci0 dev 2 function 3 "Intel 82371AB Power" rev 0x02: SMI
> iic0 at piixpm0
> spdmem0 at iic0 addr 0x50: 128MB SDRAM ECC PC100CL3
> spdmem1 at iic0 addr 0x51: 128MB SDRAM ECC PC100CL3
> fxp0 at pci0 dev 3 function 0 "Intel 8255x" rev 0x05, i82558: 
> apic 1 int 
> 16 (irq 9), address 00:c0:0d:00:94:4f
> inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 0
> vga1 at pci0 dev 4 function 0 "Cirrus Logic CL-GD5430" rev 0x22
> wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> ppb1 at pci0 dev 5 function 0 "DEC 21150 PCI-PCI" rev 0x04
> pci_intr_map: bus 0 dev 5 func 0 pin 1; line 9
> pci_intr_map: no MP mapping found
> pci_intr_map: bus 0 dev 5 func 0 pin 2; line 10
> pci_intr_map: no MP mapping found
> pci_intr_map: bus 0 dev 5 func 0 pin 3; line 9
> pci_intr_map: no MP mapping found
> pci_intr_map: bus 0 dev 5 func 0 pin 4; line 11
> pci_intr_map: no MP mapping found
> pci2 at ppb1 bus 2
> ahc0 at pci2 dev 1 function 0 "Adaptec AIC-7890/1 U2" rev 
> 0x00: apic 1 
> int 17 (irq 10)
> scsibus0 at ahc0: 16 targets, initiator 7
> sd0 at scsibus0 targ 0 lun 0:  
> SCSI3 0/direct 
> fixed
> sd0: 70136MB, 512 bytes/sec, 143638992 sec total
> ahc1 at pci2 dev 9 function 0 "Adaptec AIC-7890/1 U2" rev 
> 0x00: apic 1 
> int 17 (irq 10)
> scsibus1 at ahc1: 16 targets, initiator 7
> cd0 at scsibus1 targ 5 lun 0:  SCSI2 
> 5/cdrom rem

Re: Floating disk geometry

2009-06-30 Thread Otto Moerbeek
On Wed, Jul 01, 2009 at 11:03:20AM +0600, Sergey Yudin wrote:

> Please can someone tell why disk geometry changed after install
>
> in installation time on empty sd0:
>
> Disk: sd0   geometry: 78753/2/911 [143638992 Sectors]
> Offset: 0   Signature: 0x0
>Starting Ending LBA Info:
> #: id  C   H   S -  C   H   S [   start:size ]
> ---
> 0: 00  0   0   0 -  0   0   0 [   0:   0 ] unused
> 1: 00  0   0   0 -  0   0   0 [   0:   0 ] unused
> 2: 00  0   0   0 -  0   0   0 [   0:   0 ] unused
> 3: 00  0   0   0 -  0   0   0 [   0:   0 ] unused

This is a garbage MBR. Look at the signature and the crazy geometry.

-Otto
>
> after install geometry shown as:
>
> Disk: sd0   geometry: 8941/255/63 [143638992 Sectors]
> Offset: 0   Signature: 0xAA55
>Starting Ending LBA Info:
> #: id  C   H   S -  C   H   S [   start:size ]
> ---
> 0: 00  0   0   0 -  0   0   0 [   0:   0 ] unused
> 1: 00  0   0   0 -  0   0   0 [   0:   0 ] unused
> 2: 00  0   0   0 -  0   0   0 [   0:   0 ] unused
> *3: A6  0  14  30 -   8931 181  48 [ 911:   143487055 ] OpenBSD
>
> thanks a lot
>
>
>
>
> 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 Pentium II ("GenuineIntel" 686-class, 512KB L2 cache) 350 MHz
> cpu0:  
> FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR
> real mem  = 268005376 (255MB)
> avail mem = 250855424 (239MB)
> mainbus0 at root
> bios0 at mainbus0: AT/286+ BIOS, date 09/30/98, BIOS32 rev. 0 @ 0xfd760
> mpbios0 at bios0: Intel MP Specification 1.4
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: apic clock running at 99MHz
> mpbios0: bus 0 is type PCI  mpbios0: bus 1 is type PCI  mpbios0: bus 2 is 
> type PCI  mpbios0: bus 3 is type ISA  ioapic0 at mainbus0: apid 1 pa 
> 0xfec0, version 11, 24 pins
> pcibios0 at bios0: rev 2.1 @ 0xfd760/0x8a0
> pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdef0/240 (13 entries)
> pcibios0: PCI Interrupt Router at 000:02:0 ("Intel 82371FB ISA" rev 0x00)
> pcibios0: PCI bus #2 is the last bus
> WARNING: can't reserve area for I/O APIC.
> bios0: ROM list: 0xc/0x8000 0xc8000/0x5000 0xcd000/0x800
> pci0 at mainbus0 bus 0: configuration mode 1 (bios)
> pchb0 at pci0 dev 0 function 0 "Intel 82443BX AGP" rev 0x02
> intelagp0 at pchb0
> agp0 at intelagp0: aperture at 0x1000, size 0x400
> ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x02
> pci1 at ppb0 bus 1
> piixpcib0 at pci0 dev 2 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02
> pciide0 at pci0 dev 2 function 1 "Intel 82371AB IDE" rev 0x01: DMA,  
> channel 0 wired to compatibility, channel 1 wired to compatibility
> pciide0: channel 0 ignored (disabled)
> pciide0: channel 1 ignored (disabled)
> uhci0 at pci0 dev 2 function 2 "Intel 82371AB USB" rev 0x01: apic 1 int  
> 19 (irq 11)
> piixpm0 at pci0 dev 2 function 3 "Intel 82371AB Power" rev 0x02: SMI
> iic0 at piixpm0
> spdmem0 at iic0 addr 0x50: 128MB SDRAM ECC PC100CL3
> spdmem1 at iic0 addr 0x51: 128MB SDRAM ECC PC100CL3
> fxp0 at pci0 dev 3 function 0 "Intel 8255x" rev 0x05, i82558: apic 1 int  
> 16 (irq 9), address 00:c0:0d:00:94:4f
> inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 0
> vga1 at pci0 dev 4 function 0 "Cirrus Logic CL-GD5430" rev 0x22
> wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> ppb1 at pci0 dev 5 function 0 "DEC 21150 PCI-PCI" rev 0x04
> pci_intr_map: bus 0 dev 5 func 0 pin 1; line 9
> pci_intr_map: no MP mapping found
> pci_intr_map: bus 0 dev 5 func 0 pin 2; line 10
> pci_intr_map: no MP mapping found
> pci_intr_map: bus 0 dev 5 func 0 pin 3; line 9
> pci_intr_map: no MP mapping found
> pci_intr_map: bus 0 dev 5 func 0 pin 4; line 11
> pci_intr_map: no MP mapping found
> pci2 at ppb1 bus 2
> ahc0 at pci2 dev 1 function 0 "Adaptec AIC-7890/1 U2" rev 0x00: apic 1  
> int 17 (irq 10)
> scsibus0 at ahc0: 16 targets, initiator 7
> sd0 at scsibus0 targ 0 lun 0:  SCSI3 0/direct  
> fixed
> sd0: 70136MB, 512 bytes/sec, 143638992 sec total
> ahc1 at pci2 dev 9 function 0 "Adaptec AIC-7890/1 U2" rev 0x00: apic 1  
> int 17 (irq 10)
> scsibus1 at ahc1: 16 targets, initiator 7
> cd0 at scsibus1 targ 5 lun 0:  SCSI2  
> 5/cdrom removable
> eap0 at pci0 dev 20 function 0 "Ensoniq AudioPCI97" rev 0x06: apic 1 int  
> 16 (irq 9)
> ac97: codec id 0x83847609 (SigmaTel STAC9721/23)
> ac97: codec features 18 bit DAC, 18 bit ADC, SigmaTel 3D
> audio0 at eap0
> midi0 at eap0: 
> isa0 at piixpcib0
> isadma0 at isa0
> com0 at isa0 por

Re: Floating disk geometry

2009-06-30 Thread Sergey Yudin

Please can someone tell why disk geometry changed after install

in installation time on empty sd0:

Disk: sd0   geometry: 78753/2/911 [143638992 Sectors]
Offset: 0   Signature: 0x0
   Starting Ending LBA Info:
#: id  C   H   S -  C   H   S [   start:size ]
---
0: 00  0   0   0 -  0   0   0 [   0:   0 ] unused
1: 00  0   0   0 -  0   0   0 [   0:   0 ] unused
2: 00  0   0   0 -  0   0   0 [   0:   0 ] unused
3: 00  0   0   0 -  0   0   0 [   0:   0 ] unused



This is a garbage MBR. Look at the signature and the crazy geometry.
  
no it is not a garbage.. It's just zero filled disk. Geometry detection 
process uses info from preexisting partition table?



-Otto
  

after install geometry shown as:

Disk: sd0   geometry: 8941/255/63 [143638992 Sectors]
Offset: 0   Signature: 0xAA55
   Starting Ending LBA Info:
#: id  C   H   S -  C   H   S [   start:size ]
---
0: 00  0   0   0 -  0   0   0 [   0:   0 ] unused
1: 00  0   0   0 -  0   0   0 [   0:   0 ] unused
2: 00  0   0   0 -  0   0   0 [   0:   0 ] unused
*3: A6  0  14  30 -   8931 181  48 [ 911:   143487055 ] OpenBSD

thanks a lot




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 Pentium II ("GenuineIntel" 686-class, 512KB L2 cache) 350 MHz
cpu0:  
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR

real mem  = 268005376 (255MB)
avail mem = 250855424 (239MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 09/30/98, BIOS32 rev. 0 @ 0xfd760
mpbios0 at bios0: Intel MP Specification 1.4
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 99MHz
mpbios0: bus 0 is type PCI  mpbios0: bus 1 is type PCI  mpbios0: bus 2 is 
type PCI  mpbios0: bus 3 is type ISA  ioapic0 at mainbus0: apid 1 pa 
0xfec0, version 11, 24 pins

pcibios0 at bios0: rev 2.1 @ 0xfd760/0x8a0
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdef0/240 (13 entries)
pcibios0: PCI Interrupt Router at 000:02:0 ("Intel 82371FB ISA" rev 0x00)
pcibios0: PCI bus #2 is the last bus
WARNING: can't reserve area for I/O APIC.
bios0: ROM list: 0xc/0x8000 0xc8000/0x5000 0xcd000/0x800
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443BX AGP" rev 0x02
intelagp0 at pchb0
agp0 at intelagp0: aperture at 0x1000, size 0x400
ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x02
pci1 at ppb0 bus 1
piixpcib0 at pci0 dev 2 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02
pciide0 at pci0 dev 2 function 1 "Intel 82371AB IDE" rev 0x01: DMA,  
channel 0 wired to compatibility, channel 1 wired to compatibility

pciide0: channel 0 ignored (disabled)
pciide0: channel 1 ignored (disabled)
uhci0 at pci0 dev 2 function 2 "Intel 82371AB USB" rev 0x01: apic 1 int  
19 (irq 11)

piixpm0 at pci0 dev 2 function 3 "Intel 82371AB Power" rev 0x02: SMI
iic0 at piixpm0
spdmem0 at iic0 addr 0x50: 128MB SDRAM ECC PC100CL3
spdmem1 at iic0 addr 0x51: 128MB SDRAM ECC PC100CL3
fxp0 at pci0 dev 3 function 0 "Intel 8255x" rev 0x05, i82558: apic 1 int  
16 (irq 9), address 00:c0:0d:00:94:4f

inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 0
vga1 at pci0 dev 4 function 0 "Cirrus Logic CL-GD5430" rev 0x22
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ppb1 at pci0 dev 5 function 0 "DEC 21150 PCI-PCI" rev 0x04
pci_intr_map: bus 0 dev 5 func 0 pin 1; line 9
pci_intr_map: no MP mapping found
pci_intr_map: bus 0 dev 5 func 0 pin 2; line 10
pci_intr_map: no MP mapping found
pci_intr_map: bus 0 dev 5 func 0 pin 3; line 9
pci_intr_map: no MP mapping found
pci_intr_map: bus 0 dev 5 func 0 pin 4; line 11
pci_intr_map: no MP mapping found
pci2 at ppb1 bus 2
ahc0 at pci2 dev 1 function 0 "Adaptec AIC-7890/1 U2" rev 0x00: apic 1  
int 17 (irq 10)

scsibus0 at ahc0: 16 targets, initiator 7
sd0 at scsibus0 targ 0 lun 0:  SCSI3 0/direct  
fixed

sd0: 70136MB, 512 bytes/sec, 143638992 sec total
ahc1 at pci2 dev 9 function 0 "Adaptec AIC-7890/1 U2" rev 0x00: apic 1  
int 17 (irq 10)

scsibus1 at ahc1: 16 targets, initiator 7
cd0 at scsibus1 targ 5 lun 0:  SCSI2  
5/cdrom removable
eap0 at pci0 dev 20 function 0 "Ensoniq AudioPCI97" rev 0x06: apic 1 int  
16 (irq 9)

ac97: codec id 0x83847609 (SigmaTel STAC9721/23)
ac97: codec features 18 bit DAC, 18 bit ADC, SigmaTel 3D
audio0 at eap0
midi0 at eap0: 
isa0 at piixpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port

Re: Floating disk geometry

2009-06-30 Thread Rod Whitworth
On Wed, 01 Jul 2009 12:26:30 +0600, Sergey Yudin wrote:

>no it is not a garbage.. It's just zero filled disk. Geometry detection 
>process uses info from preexisting partition table?
>
And the zero fill included the MBR making it garbage.

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

Rod/
/earth: write failed, file system is full
cp: /earth/creatures: No space left on device



Re: Floating disk geometry

2009-06-30 Thread Sergey Yudin
How to understand in installation time which geometry is "correct" for 
curent disk? What is the starting point for calculations? Number of sectors?

In which case, if you want to set it right, your best bet is to say
'No' to letting OpenBSD use the whole disk, then setting the correct
geometry by hand.

JMTC

  

Please can someone tell why disk geometry changed after install

in installation time on empty sd0:

Disk: sd0   geometry: 78753/2/911 [143638992 Sectors]
Offset: 0   Signature: 0x0
  Starting Ending LBA Info:
#: id  C   H   S -  C   H   S [   start:size ]

---
0: 00  0   0   0 -  0   0   0 [   0:   0 ] unused
1: 00  0   0   0 -  0   0   0 [   0:   0 ] unused
2: 00  0   0   0 -  0   0   0 [   0:   0 ] unused
3: 00  0   0   0 -  0   0   0 [   0:   0 ] unused



This is a garbage MBR. Look at the signature and the crazy geometry.

  

no it is not a garbage.. It's just zero filled disk. Geometry detection
process uses info from preexisting partition table?



   -Otto

  

after install geometry shown as:

Disk: sd0   geometry: 8941/255/63 [143638992 Sectors]
Offset: 0   Signature: 0xAA55
  Starting Ending LBA Info:
#: id  C   H   S -  C   H   S [   start:size ]

---
0: 00  0   0   0 -  0   0   0 [   0:   0 ] unused
1: 00  0   0   0 -  0   0   0 [   0:   0 ] unused
2: 00  0   0   0 -  0   0   0 [   0:   0 ] unused
*3: A6  0  14  30 -   8931 181  48 [ 911:   143487055 ]
OpenBSD

thanks a lot




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 Pentium II ("GenuineIntel" 686-class, 512KB L2 cache) 350 MHz
cpu0:
 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR
real mem  = 268005376 (255MB)
avail mem = 250855424 (239MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 09/30/98, BIOS32 rev. 0 @ 0xfd760
mpbios0 at bios0: Intel MP Specification 1.4
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 99MHz
mpbios0: bus 0 is type PCI  mpbios0: bus 1 is type PCI  mpbios0: bus 2 is
type PCI  mpbios0: bus 3 is type ISA  ioapic0 at mainbus0: apid 1 pa
0xfec0, version 11, 24 pins
pcibios0 at bios0: rev 2.1 @ 0xfd760/0x8a0
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdef0/240 (13 entries)
pcibios0: PCI Interrupt Router at 000:02:0 ("Intel 82371FB ISA" rev 0x00)
pcibios0: PCI bus #2 is the last bus
WARNING: can't reserve area for I/O APIC.
bios0: ROM list: 0xc/0x8000 0xc8000/0x5000 0xcd000/0x800
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443BX AGP" rev 0x02
intelagp0 at pchb0
agp0 at intelagp0: aperture at 0x1000, size 0x400
ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x02
pci1 at ppb0 bus 1
piixpcib0 at pci0 dev 2 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02
pciide0 at pci0 dev 2 function 1 "Intel 82371AB IDE" rev 0x01: DMA,
 channel 0 wired to compatibility, channel 1 wired to compatibility
pciide0: channel 0 ignored (disabled)
pciide0: channel 1 ignored (disabled)
uhci0 at pci0 dev 2 function 2 "Intel 82371AB USB" rev 0x01: apic 1 int
 19 (irq 11)
piixpm0 at pci0 dev 2 function 3 "Intel 82371AB Power" rev 0x02: SMI
iic0 at piixpm0
spdmem0 at iic0 addr 0x50: 128MB SDRAM ECC PC100CL3
spdmem1 at iic0 addr 0x51: 128MB SDRAM ECC PC100CL3
fxp0 at pci0 dev 3 function 0 "Intel 8255x" rev 0x05, i82558: apic 1 int
 16 (irq 9), address 00:c0:0d:00:94:4f
inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 0
vga1 at pci0 dev 4 function 0 "Cirrus Logic CL-GD5430" rev 0x22
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ppb1 at pci0 dev 5 function 0 "DEC 21150 PCI-PCI" rev 0x04
pci_intr_map: bus 0 dev 5 func 0 pin 1; line 9
pci_intr_map: no MP mapping found
pci_intr_map: bus 0 dev 5 func 0 pin 2; line 10
pci_intr_map: no MP mapping found
pci_intr_map: bus 0 dev 5 func 0 pin 3; line 9
pci_intr_map: no MP mapping found
pci_intr_map: bus 0 dev 5 func 0 pin 4; line 11
pci_intr_map: no MP mapping found
pci2 at ppb1 bus 2
ahc0 at pci2 dev 1 function 0 "Adaptec AIC-7890/1 U2" rev 0x00: apic 1
 int 17 (irq 10)
scsibus0 at ahc0: 16 targets, initiator 7
sd0 at scsibus0 targ 0 lun 0:  SCSI3 0/direct
 fixed
sd0: 70136MB, 512 bytes/sec, 143638992 sec total
ahc1 at pci2 dev 9 function 0 "Adaptec AIC-7890/1 U2" rev 0x00: apic 1
 int 17 (irq 10)
scsibus1 at ahc1: 16 targets, initiator 7
cd0 at scsibus1 targ 5 lun 0:  SCSI2
 5/cdrom removable
eap0 at pci0 dev 20 function 0 "Ensoniq AudioPCI97" rev 0x06: apic 1 int
 1

Re: Floating disk geometry

2009-06-30 Thread Sergey Yudin
no it is not a garbage.. It's just zero filled disk. Geometry detection 
process uses info from preexisting partition table?




And the zero fill included the MBR making it garbage.
  


so we must prepare MBR with 3rd party tools before OpenBSD installation?