Re: limiting outbound throughput from an IP using altq

2006-12-15 Thread Stuart Henderson
On 2006/12/14 16:33, rootrider wrote:
 Traffic is being assigned to the nick_int queue, and inbound
 (from the internet to the lan) traffic is being limited... to my
 surprise. That doesn't even make any sense to me.

Use the same name for queues on each interface, e.g.

  altq on $ext_if cbq bandwidth 950Kb queue { nick, other }
queue nick on $ext_ifbandwidth 1% priority 1 cbq
queue other on $ext_if   bandwidth 99%  priority 7 cbq(default, borrow)

  altq on $int_if cbq bandwidth 8Mb queue { nick, other }
queue nick on $int_ifbandwidth 1% priority 1 cbq
queue other on $int_if   bandwidth 99% priority 7 cbq(default)

'pass...keep state queue foo_in' rules mean that packets matching the
state (i.e. in _both_ directions) are assigned to queue foo_in, which is
not what you want. Using 'queue..on $if1' and 'queue...on $if2' creates
two queues with the same name so that a single 'pass' rule assigns
packets to the queue for whichever interface is relevant.

(thanks to Henning on the pf mailing list for the tip about this).



Re: openbsd 4.0 ralink problem low operation range

2006-12-15 Thread Sepherosa Ziehau

On 12/14/06, earx [EMAIL PROTECTED] wrote:

ralink is the worst radio chipset in term of radio performance
but the best documented for driver :(


I probably missed something here, except for some Linux drivers, I
didn't remember Ralink had released any formal documents about its
MACs and RFs.  Please point out, if I am wrong here, and please post
the URL of the best document if possible.  Thanks.

Best Regards,
sephe

--
Live Free or Die



Re: Home networking for an amateur

2006-12-15 Thread Andy Hayward

Erik,


From dhcp.conf:


subnet 192.168.0.0 netmask 255.255.255.0

subnet 192.168.1.0 netmask 255.255.255.0

Wouldn't netmask 255.255.0.0 work better?

-- ach



Re: openbsd 4.0 ralink problem low operation range

2006-12-15 Thread Damien Miller
So far for all you people who have complained about lousy ral(4)
range or reception, only one of you has posted a dmesg (and even it was
incomplete) and none of you have posted your interface config.

Don't let this interrupt your complain-fest, but if you want to move
beyond whinging and start trying to figure out what the bad performing
cards have in common then you know what you have to do...

-d

On Fri, 15 Dec 2006, Anis Kadri wrote:

 I have experienced the same problems with both ath(4) and ral(4) (minipci
 cards). I tried to use different modes (B  G) and different settings
 (channels, ..) and using an external antenna but the performance's still
 lossy :-/
 for ral(4): g mode doesn't work very well for me (packet loss, ...) so i'm
 sticking with b mode
 for ath(4): changing the mode just causes the kernel to crash :/ so i used b
 mode as well.
 
 I don't know if ath(4) works better than ral(4) for some of you. I heard it
 has a better radio chipset but it is not documented.
 
 On 12/15/06, pedro la peu [EMAIL PROTECTED] wrote:
 
  http://www.netgate.com/info/miniPCI/2511MPPLUS/2511MP_PLUS_Spec.pdf
  Receive sensitivity: -89dBm to -91dBm.
 
  http://soekris.kd85.com/pdf/ralabg.pdf
  Receive sensitivity: -70dBm to -84dBm.



Samsung (SH-S182M) DVD/CD-R burn/read-back issue

2006-12-15 Thread patrick ~
Greetings,

Early October I bought this Samsung DVD/CD burner [1]
(OEM) from newegg.  I put in a computer I was going
to put 4.0 on.

After installing 4.0 and updating source with cvs
-rOPENBSD_4_0 I made a release.  I attempted to burn
a CD so I can use for upgrading my other i386 systems
as well.

I built cdrtools from ports.  After burning a CD-R
I couldn't boot from it.  I tried another CD-R and
same problem.  Tried yet a 3rd one and had the same
problem.

I mounted the CD and I could list contents of the
CD, but couldn't read back contents of any of the
files.

e.g.,

  $ cat /mnt/cd/4.0/i386/CKSUM
  cat: /mnt/cd/4.0/i386/CKSUM: Input/output error

(also see tail of dmesg [2])

I got curious.  I took the ISO image I used to burn
the CD-R to a 3.9 box I have and used it to burn a
CD-R and that one works just fine.

I thought maybe something wrong with the burner.
Called newegg they sent me a new one after I sent
mine back.  It took me a while but I finally got
motivated enough to go through the same exercise
over again.  But have the same exact problem.  I
burn a CD-R but unable to read-back data.


I'd appreciate any ideas anyone may have on this.
Otherwise, I'm tossing this item and getting me
another non-Samsung equivalent.

TIA,
--patrick



[1] SAMSUNG|SH-S182M
http://www.newegg.com/Product/Product.asp?Item=N82E16827151136

[2]
OpenBSD 4.0-stable (GENERIC) #0: Wed Dec 13 02:11:04 PST 2006
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Sempron(tm) Processor 2600+ (AuthenticAMD 686-class, 128KB L2
cache) 1.61 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2
real mem  = 536375296 (523804K)
avail mem = 481329152 (470048K)
using 4256 buffers containing 26923008 bytes (26292K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(6b) BIOS, date 04/08/05, BIOS32 rev. 0 @ 0xfa120,
SMBIOS rev. 2.2 @ 0xf (34 entries)
bios0: http://www.abit.com.tw/ NF8/NF8-V (nVidia nForce3 250GB)
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 70102 dobusy 1 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf/0xc4b4
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfc380/288 (16 entries)
pcibios0: bad IRQ table checksum
pcibios0: PCI BIOS has 17 Interrupt Routing table entries
pcibios0: PCI Exclusive IRQs: 3 5 10 11 12
pcibios0: no compatible PCI ICU found
pcibios0: Warning, unable to fix up PCI interrupt routing
pcibios0: PCI bus #2 is the last bus
bios0: ROM list: 0xc/0x8000 0xc8000/0x4000! 0xcc000/0x800
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 NVIDIA nForce3 250 PCI Host rev 0xa1
pcib0 at pci0 dev 1 function 0 NVIDIA nForce3 250 ISA rev 0xa2
nviic0 at pci0 dev 1 function 1 NVIDIA nForce3 250 SMBus rev 0xa1
iic0 at nviic0
unknown at iic0 addr 0x2e not configured
iic1 at nviic0
ohci0 at pci0 dev 2 function 0 NVIDIA nForce3 250 USB rev 0xa1: irq 12,
version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: NVIDIA OHCI root hub, rev 1.00/1.00, addr 1
uhub0: 4 ports with 4 removable, self powered
ohci1 at pci0 dev 2 function 1 NVIDIA nForce3 250 USB rev 0xa1: irq 10,
version 1.0, legacy support
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: NVIDIA OHCI root hub, rev 1.00/1.00, addr 1
uhub1: 4 ports with 4 removable, self powered
ehci0 at pci0 dev 2 function 2 NVIDIA nForce3 250 USB2 rev 0xa2: irq 11
usb2 at ehci0: USB revision 2.0
uhub2 at usb2
uhub2: NVIDIA EHCI root hub, rev 2.00/1.00, addr 1
uhub2: 8 ports with 8 removable, self powered
nfe0 at pci0 dev 5 function 0 NVIDIA nForce3 LAN rev 0xa2: irq 12, address
00:50:8d:7c:06:8c
ciphy0 at nfe0 phy 1: Cicada CS8201 10/100/1000TX PHY, rev. 3
auich0 at pci0 dev 6 function 0 NVIDIA nForce3 250 AC97 rev 0xa1: irq 3,
nForce3 AC97
ac97: codec id 0x414c4780 (Avance Logic ALC658 rev 0)
ac97: codec features 20 bit DAC, 18 bit ADC, No 3D Stereo
audio0 at auich0
pciide0 at pci0 dev 8 function 0 NVIDIA nForce3 250 IDE rev 0xa2: DMA,
channel 0 configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: IC35L120AVVA07-0
wd0: 16-sector PIO, LBA, 117799MB, 241252607 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: TSSTcorp, CD/DVDW SH-S182M, SB02 SCSI0 5/cdrom
removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
pciide1 at pci0 dev 10 function 0 NVIDIA nForce3 250 SATA rev 0xa2: DMA
pciide1: using irq 11 for native-PCI interrupt
ppb0 at pci0 dev 11 function 0 NVIDIA nForce3 250 AGP rev 0xa2
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 ATI Rage 128 Pro TF rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
ppb1 at pci0 dev 14 function 0 NVIDIA nForce3 250 PCI-PCI rev 0xa2
pci2 at ppb1 bus 2
xl0 at pci2 dev 7 function 0 3Com 3c905C 100Base-TX rev 

samba and ldap

2006-12-15 Thread Dr. Harry Knitter
I have set up samba and openldap. Openldap was populated with smbldap-tools.
Either samba and openldap run fine and I can access my samba shares from a 
Windows client in a peer-to-peer connection. The logs show me that the 
authentication is done via ldap.
However, when I try to add a Windows box to the samba domain I get the error 
message Username not found on my Windows client. The logs show that 
authentication of administrator (root) succeeds.
The machine account is added to the ldap when trying to join the machine to 
the domain, however, only as posixAccount. It seems to me that the second 
step, i.e. adding the sambaSAMAcount to this machine (posix) account is not 
successful.
Does somebody have any hints for me how to get my clients into the samba 
domain?

Thanks

Harry



Re: samba and ldap

2006-12-15 Thread Antoine Jacoutot

On Fri, 15 Dec 2006, Dr. Harry Knitter wrote:

Does somebody have any hints for me how to get my clients into the samba
domain?


Congratulations, you won the what the hell does it have to do with 
OpenBSD price!


When you have an OpenBSD related problem, do you go ask on samba mailing 
lists... no!


--
Antoine



Re: OpenBSD in the news in germany

2006-12-15 Thread Michael
Timo Schoeler schrieb:
 just wanted to tell that in the next issue (January 2007; will be
 available from Dec 14th) of the german magazine iX [0] there's an
 article on the release of OpenBSD 4.0.
 
 It covers new features in OpenBSD 4.0 as well as some ethical issues wrt
 blobs.
 
 [0] -- http://www.heise.de/ix/

Direkt link to the article:
http://www.heise.de/ix/artikel/2007/01/074/

 - Michael



Re: openbsd 4.0 ralink problem low operation range

2006-12-15 Thread [EMAIL PROTECTED]
Damien, no problem, thanks for your help ! Thomas

complete dmesg

OpenBSD 4.0 (GENERIC) #1107: Sat Sep 16 19:15:58 MDT 2006
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Celeron(R) M processor 800MHz (GenuineIntel 686-class, 0KB L2 
zcpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,Freal 
mem  = 234385408 (228892K)
avail mem = 206086144 (201256K)
using 2886 buffers containing 11821056 bytes (11544K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(62) BIOS, date 10/25/05, BIOS32 rev. 0 @ 0xfaa80, 
SM)apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 70102 dobusy 1 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf/0xdf84
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfde80/240 (13 entries)
pcibios0: PCI Exclusive IRQs: 5 7 10 11 12
pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82801DBM LPC rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc/0xd400! 0xd/0x8000!
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 82852GM Hub-PCI rev 0x02
Intel 82852GM Memory rev 0x02 at pci0 dev 0 function 1 not configured
Intel 82852GM Configuration rev 0x02 at pci0 dev 0 function 3 not configured
vga1 at pci0 dev 2 function 0 Intel 82852GM AGP rev 0x02: aperture at 
0xd8wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
Intel 82852GM AGP rev 0x02 at pci0 dev 2 function 1 not configured
uhci0 at pci0 dev 29 function 0 Intel 82801DB USB rev 0x02: irq 10
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1 Intel 82801DB USB rev 0x02: irq 7
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2 Intel 82801DB USB rev 0x02: irq 12
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 29 function 7 Intel 82801DB USB rev 0x02: irq 5
usb3 at ehci0: USB revision 2.0
uhub3 at usb3
uhub3: Intel EHCI root hub, rev 2.00/1.00, addr 1
uhub3: 6 ports with 6 removable, self powered
ppb0 at pci0 dev 30 function 0 Intel 82801BA AGP rev 0x82
pci1 at ppb0 bus 1
rl0 at pci1 dev 0 function 0 Realtek 8139 rev 0x10: irq 10, address 
00:30:18:8rlphy0 at rl0 phy 0: RTL internal PHY
rl1 at pci1 dev 1 function 0 Realtek 8139 rev 0x10: irq 11, address 
00:30:18:7rlphy1 at rl1 phy 0: RTL internal PHY
ral0 at pci1 dev 2 function 0 Ralink RT2561S rev 0x00: irq 12, address 
00:14:3ral0: MAC/BBP RT2561C, RF RT2527
ichpcib0 at pci0 dev 31 function 0 Intel 82801DB LPC rev 0x02
pciide0 at pci0 dev 31 function 1 Intel 82801DB IDE rev 0x02: DMA, channel 0 
ypciide0: channel 0 disabled (no drives)
wd0 at pciide0 channel 1 drive 0: Hitachi XX.V.3.4.0.0
wd0: 1-sector PIO, LBA, 122MB, 250368 sectors
wd0(pciide0:1:0): using PIO mode 2
ichiic0 at pci0 dev 31 function 3 Intel 82801DB SMBus rev 0x02: irq 11
iic0 at ichiic0
auich0 at pci0 dev 31 function 5 Intel 82801DB AC97 rev 0x02: irq 11, ICH4 
AC7ac97: codec id 0x56494161 (VIA Technologies VT1612A)
ac97: codec features headphone, 18 bit DAC, 18 bit ADC, KS Waves 3D
audio0 at auich0
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: PC speaker
spkr0 at pcppi0
it0 at isa0 port 0x290/8: IT87
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom0: console
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pccom2: irq 5 already in use
biomask ffe5 netmask ffe5 ttymask ffe7
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302

ralconfig

/sbin/ifconfig ral0 192.168.1.2 netmask 255.255.255.248 nwid test2 mediaopt 
ibss
i tried also
/sbin/ifconfig ral0 192.168.1.2 netmask 255.255.255.248 nwid test2 media DS11 
mode 11b mediaopt ibss

tcpdump -n -i ral0 -y IEEE802_11_RADIO shows

1. boxes with a distance of 1 Meter
19:57:33.394495 802.11: beacon, ssid (test2), rates, ds, ibss, erp, xrates, 
radiotap v0, chan 1, 11g, signal 84dB
19:57:33.599274 802.11: beacon, ssid (test2), rates, ds, ibss, erp, xrates, 
radiotap v0, chan 1, 11g, signal 84dB
19:57:33.804199 802.11: beacon, ssid (test2), rates, ds, ibss, erp, xrates, 
radiotap v0, chan 1, 11g, signal 47dB
19:57:34.009060 802.11: beacon, ssid (test2), rates, ds, ibss, erp, xrates, 
radiotap v0, chan 1, 11g, signal 47dB

2. boxes with a distance of 5 Meter
20:00:50.139430 802.11: beacon, ssid (test2), rates, ds, ibss, erp, xrates, 
radiotap v0, chan 

Re: Home networking for an amateur

2006-12-15 Thread Damon McMahon

At 09:22 PM 12/14/2006 +0100, Erik Wikstrvm wrote:


I've get an box laying in my basement running OpenBSD 3.7 (probably  
should upgrade that some time but I've never taken the time) acting  
as gateway for both wired and wireless networks. Everything has  
been working flawlessly except one thing; I can not access  
computers on the wireless network from the wired one or vice versa.  
This has not been much of a problem since I'm mostly connecting via  
the wired network but now my mother has gotten herself a laptop and  
she wishes to be able to access another computer to print. Most  
computers (are not mine) and run Windows.


I have three NICs in the box, two rl(4) and one ath(4), rl1 is  
connected to the Internet and rl0 and ath0 are the local networks.  
As I understand things I need to bridge the two local NICs somehow  
to be able to access computers on both networks seamlessly, however  
I recall trying that once but with no success. Obviously I did  
something wrong, so I'd hope that someone might be able to explain  
to me how to set up the network.


I've put copies of all files I thought might be of relevance on the  
web at http://www.chalmers.it/~eriwik/obsd/


Thanks for your time



Hello Eric,

Check the print server to which your mum is attempting to send her  
document isn't filtering packets to 137/udp (Windows name resolution)  
and/or 139/tcp (Windows file/print sharing).


Since your wired (192.168.0.0/24) and wireless (192.168.1.0/24)  
networks are on different subnets this would be the default behaviour  
for the Windows XP native firewall, for example - it will block  
anything from 192.168.1.0/24 since Windows thinks anything outside of  
192.168.0.0/24 is the big, bad internet.


I have a similar home network configuration to yours [except I have  
IPsec on the wireless interface which complicates things a  
little ;-) ] and i ran into exactly the same problem.


I found the simplest solution in the end was to manually reconfigure  
the Windows XP firewall to accept connections from the other subnet.  
As that's outside the scope of this list I won't elaborate but you're  
welcome to contact me off-list if you require assistance.


You can also use a pf NAT rule to translate the source address, i.e...

	# make packets from your wireless subnet 192.168.1.0/24 look like  
they're coming from 192.168.0.1

nat on rl0 from ath0:network to rl0:network - rl0

	# make packets from your wired subnet 192.168.0.0/24 look like  
they're coming from 192.168.1.1

nat on ath0 from ral0:network to ath0:network - ath0

...but it's very kludgy :-(

Best wishes,
Damon



Re: Home networking for an amateur

2006-12-15 Thread viq

On 15/12/06, Chris C. [EMAIL PROTECTED] wrote:

On Friday 15 December 2006 06:00, Darrin Chandler wrote:
 On Thu, Dec 14, 2006 at 07:09:22PM -0800, Greg Thomas wrote:
  On 12/14/06, L. V. Lammert [EMAIL PROTECTED] wrote:
  At 09:22 PM 12/14/2006 +0100, Erik Wikstrvm wrote:
  I've get an box laying in my basement running OpenBSD 3.7 (probably
   should upgrade that some time but I've never taken the time) acting as
   gateway for both wired and wireless networks. Everything has been
   working flawlessly except one thing; I can not access computers on the
   wireless network from the wired one or vice versa. This has not been
   much of a problem since I'm mostly connecting via the wired network
   but now my mother has gotten herself a laptop and she wishes to be
   able to access another computer to print. Most computers (are not
   mine) and run Windows.
  
  Your wireless router is probably blocking port 139 (Windows SMB) -
   standard practice. Go to the router configuration page and unblock.
 
  I didn't know that OpenBSD had a router configuration page.
  Unfortunately I've looked at his pf.conf for a little bit now and in
  my caffeine deprived state I don't see anything preventing access
  between rl0 and ath0.
 
  A little detail from the OP on how he is trying to reach the other
  computers would help.  Can he ping by IP?  Can he ping by name?  Is
  his mother trying to print via name or IP address?

 I can't see anything obviously wrong, either. Then again I'm about 2
 seconds away from falling asleep. tcpdump pflog0 and ping tests seems
 like a good place to start.

I'm pretty new to pf, but isn't

nat on rl1 from ath0:network to any - (rl1)
nat on rl1 from rl0:network to any - (rl1)

his problem?
In my understanding this will also nat connections from ath0 to rl0.


That's why my nat rules include:
no nat on $ext_if from $wlan_if to $int_if
no nat on $ext_if from $int_if to $wlan_if
nat on $ext_if from !($ext_if) - ($ext_if:0)
(NAT rules are first match wins)

--
Greetings
Chris





--
viq



Re: samba and ldap

2006-12-15 Thread Dr. Harry Knitter
Am Freitag, 15. Dezember 2006 14:03 schrieb Vijay Sankar:
 Did you add the workstation account using smbldap-adduser -w?

my entry for adding machine accounts in smb.conf is

add machine script = /usr/local/sbin/smbldap-useradd -w %u

smbldap-adduser does not exist in my smbldap-tools


 Here is the result from an ldapsearch for a workstation in a domain
 called FORETELL. The PDC is a samba server (running on OpenBSD, setup
 using only packages from the OpenBSD CD or downloaded from
 ftp://mirror.arcticnetwork.ca/pub/OpenBSD/). and I use samba-ldap

 ldapsearch for workstation FTL37

 # ldapsearch -x -W -D cn=Manager,dc=foretell,dc=ca cn=ftl37$
 Enter LDAP Password:
 # extended LDIF
 #
 # LDAPv3
 # base  with scope subtree
 # filter: cn=ftl37$
 # requesting: ALL
 #

 # ftl37$, Computers, foretell.ca
 dn: uid=ftl37$,ou=Computers,dc=foretell,dc=ca
 objectClass: top
 objectClass: inetOrgPerson
 objectClass: posixAccount
 objectClass: sambaSamAccount
 cn: ftl37$
 sn: ftl37$
 uid: ftl37$
 uidNumber: 1006
 gidNumber: 515
 homeDirectory: /dev/null
 loginShell: /bin/false
 description: Computer
 gecos: Computer
 sambaSID: S-1-5-21-263555819-462812047-1274083732-5000
 sambaPrimaryGroupSID: S-1-5-21-263555819-462812047-1274083732-5001
 displayName: Virtual Machine - FTL37
 sambaPwdMustChange: 2147483647
 sambaPasswordHistory:
 
  
 sambaAcctFlags: [UW ]
 sambaPwdCanChange: 1164913523
 sambaNTPassword: 
 sambaPwdLastSet: 1164913523

 # search result
 search: 2
 result: 0 Success

 # numResponses: 2
 # numEntries: 1


here is the mine:

ldapsearch -x -W -D cn=admin,dc=knitter,dc=privat cn=notebook$
Enter LDAP Password:
# extended LDIF
#
# LDAPv3
# base  with scope subtree
# filter: cn=notebook$
# requesting: ALL
#

# notebook$, Computers, knitter.privat
dn: uid=notebook$,ou=Computers,dc=knitter,dc=privat
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: posixAccount
cn: notebook$
sn: notebook$
uid: notebook$
uidNumber: 1002
gidNumber: 515
homeDirectory: /dev/null
loginShell: /bin/false
description: Computer
gecos: Computer

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1


This entry was created when I tried to join this client to the domain.

What I still do not understand is, why no sambaSAMaccount can be created.
I assume this is related to the unix-password mapping. On Linux systems I have 
done this several times. However there the authentication is done via pam and 
nsswitch, which seem not to be available in OpenBSD.

Harry



Re: samba and ldap

2006-12-15 Thread Vijay Sankar
Did you add the workstation account using smbldap-adduser -w?

Here is the result from an ldapsearch for a workstation in a domain
called FORETELL. The PDC is a samba server (running on OpenBSD, setup
using only packages from the OpenBSD CD or downloaded from
ftp://mirror.arcticnetwork.ca/pub/OpenBSD/). and I use samba-ldap

ldapsearch for workstation FTL37

# ldapsearch -x -W -D cn=Manager,dc=foretell,dc=ca cn=ftl37$
Enter LDAP Password:
# extended LDIF
#
# LDAPv3
# base  with scope subtree
# filter: cn=ftl37$
# requesting: ALL
#

# ftl37$, Computers, foretell.ca
dn: uid=ftl37$,ou=Computers,dc=foretell,dc=ca
objectClass: top
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: sambaSamAccount
cn: ftl37$
sn: ftl37$
uid: ftl37$
uidNumber: 1006
gidNumber: 515
homeDirectory: /dev/null
loginShell: /bin/false
description: Computer
gecos: Computer
sambaSID: S-1-5-21-263555819-462812047-1274083732-5000
sambaPrimaryGroupSID: S-1-5-21-263555819-462812047-1274083732-5001
displayName: Virtual Machine - FTL37
sambaPwdMustChange: 2147483647
sambaPasswordHistory:

 
sambaAcctFlags: [UW ]
sambaPwdCanChange: 1164913523
sambaNTPassword: 
sambaPwdLastSet: 1164913523

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1


On Fri, 2006-15-12 at 11:30 +0100, Dr. Harry Knitter wrote:
 I have set up samba and openldap. Openldap was populated with smbldap-tools.
 Either samba and openldap run fine and I can access my samba shares from a 
 Windows client in a peer-to-peer connection. The logs show me that the 
 authentication is done via ldap.
 However, when I try to add a Windows box to the samba domain I get the error 
 message Username not found on my Windows client. The logs show that 
 authentication of administrator (root) succeeds.
 The machine account is added to the ldap when trying to join the machine to 
 the domain, however, only as posixAccount. It seems to me that the second 
 step, i.e. adding the sambaSAMAcount to this machine (posix) account is not 
 successful.
 Does somebody have any hints for me how to get my clients into the samba 
 domain?
 
 Thanks
 
 Harry
 
-- 
Vijay Sankar, M.Eng., P.Eng.
ForeTell Technologies Limited
59 Flamingo Avenue, Winnipeg, MB, Canada R3J 0X6
Phone: 204 885 9535, E-Mail: [EMAIL PROTECTED]



Re: openbsd 4.0 ralink problem low operation range

2006-12-15 Thread Henrik Hellerstedt
On Fri, Dec 15, 2006 at 08:51:33PM +1100, Damien Miller wrote:
 So far for all you people who have complained about lousy ral(4)
 range or reception, only one of you has posted a dmesg (and even it was
 incomplete) and none of you have posted your interface config.

 Don't let this interrupt your complain-fest, but if you want to move
 beyond whinging and start trying to figure out what the bad performing
 cards have in common then you know what you have to do...

 -d



Sorry for not posting a full dmesg the first time :\


$ cat /etc/hostname.ral0
inet 10.30.30.1 255.255.255.0 NONE
!ifconfig ral0 media autoselect mode 11g mediaopt hostap chan 2 nwid wideopen

OpenBSD 4.0-stable (GENERIC) #1: Mon Dec  4 22:21:43 CET 2006
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Geode(TM) Integrated Processor by National Semi (Geode by NSC 
586-class) 267 MHz
cpu0: FPU,TSC,MSR,CX8,CMOV,MMX
cpu0: TSC disabled
real mem  = 133787648 (130652K)
avail mem = 114647040 (111960K)
using 1658 buffers containing 6791168 bytes (6632K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 20/50/29, BIOS32 rev. 0 @ 0xf7840
pcibios0 at bios0: rev 2.0 @ 0xf/0x1
pcibios0: pcibios_get_intr_routing - function not supported
pcibios0: PCI IRQ Routing information unavailable.
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc8000/0x9000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 Cyrix GXm PCI rev 0x00
sis0 at pci0 dev 6 function 0 NS DP83815 10/100 rev 0x00, DP83816A: irq 10, 
address 00:00:24:c6:12:e8
nsphyter0 at sis0 phy 0: DP83815 10/100 PHY, rev. 1
sis1 at pci0 dev 7 function 0 NS DP83815 10/100 rev 0x00, DP83816A: irq 10, 
address 00:00:24:c6:12:e9
nsphyter1 at sis1 phy 0: DP83815 10/100 PHY, rev. 1
sis2 at pci0 dev 8 function 0 NS DP83815 10/100 rev 0x00, DP83816A: irq 10, 
address 00:00:24:c6:12:ea
nsphyter2 at sis2 phy 0: DP83815 10/100 PHY, rev. 1
ral0 at pci0 dev 14 function 0 Ralink RT2561 rev 0x00: irq 11, address 
00:08:a1:9c:32:f9
ral0: MAC/BBP RT2661B, RF RT2527
gscpcib0 at pci0 dev 18 function 0 NS SC1100 ISA rev 0x00
gpio0 at gscpcib0: 64 pins
NS SC1100 SMI rev 0x00 at pci0 dev 18 function 1 not configured
pciide0 at pci0 dev 18 function 2 NS SCx200 IDE rev 0x01: DMA, channel 0 
wired to compatibility, channel 1 wir
ed to compatibility
wd0 at pciide0 channel 0 drive 0: SanDisk SDCFB-1024
wd0: 4-sector PIO, LBA, 977MB, 2001888 sectors
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2
geodesc0 at pci0 dev 18 function 5 NS SC1100 X-Bus rev 0x00: iid 6 revision 3 
wdstatus 0
ohci0 at pci0 dev 19 function 0 Compaq USB OpenHost rev 0x08: irq 5, version 
1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Compaq OHCI root hub, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
isa0 at gscpcib0
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
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
nsclpcsio0 at isa0 port 0x2e/2: NSC PC87366 rev 9: GPIO VLM TMS
gpio1 at nsclpcsio0: 29 pins
gscsio0 at isa0 port 0x15c/2: SC1100 SIO rev 1:
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom0: console
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
biomask f3e5 netmask ffe5 ttymask ffe7
pctr: no performance counters in CPU
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302


-- 
Henrik



Re: samba and ldap

2006-12-15 Thread Vijay Sankar
Sorry, I meant to write smbldap-useradd.

FWIW, all I had to do were the following three steps:

1) added an OpenBSD user account called FTL37$
2) smbldap-useradd -w FTL37$
3) did a smbpasswd -a FTL37$

Currently I am using samba-3.0.21bp3-ldap and samba-docs-3.0.21b
packages on OpenBSD 3.9. 

Relying solely on documentation that comes with the OpenBSD packages was
what helped me solve the various problems I had with Samba and OpenLDAP.
I found the smb-docs package immensely helpful. 


On Fri, 2006-15-12 at 14:56 +0100, Dr. Harry Knitter wrote:
 Am Freitag, 15. Dezember 2006 14:03 schrieb Vijay Sankar:
  Did you add the workstation account using smbldap-adduser -w?
 
 my entry for adding machine accounts in smb.conf is
 
 add machine script = /usr/local/sbin/smbldap-useradd -w %u
 
 smbldap-adduser does not exist in my smbldap-tools
 
 
  Here is the result from an ldapsearch for a workstation in a domain
  called FORETELL. The PDC is a samba server (running on OpenBSD, setup
  using only packages from the OpenBSD CD or downloaded from
  ftp://mirror.arcticnetwork.ca/pub/OpenBSD/). and I use samba-ldap
 
  ldapsearch for workstation FTL37
 
  # ldapsearch -x -W -D cn=Manager,dc=foretell,dc=ca cn=ftl37$
  Enter LDAP Password:
  # extended LDIF
  #
  # LDAPv3
  # base  with scope subtree
  # filter: cn=ftl37$
  # requesting: ALL
  #
 
  # ftl37$, Computers, foretell.ca
  dn: uid=ftl37$,ou=Computers,dc=foretell,dc=ca
  objectClass: top
  objectClass: inetOrgPerson
  objectClass: posixAccount
  objectClass: sambaSamAccount
  cn: ftl37$
  sn: ftl37$
  uid: ftl37$
  uidNumber: 1006
  gidNumber: 515
  homeDirectory: /dev/null
  loginShell: /bin/false
  description: Computer
  gecos: Computer
  sambaSID: S-1-5-21-263555819-462812047-1274083732-5000
  sambaPrimaryGroupSID: S-1-5-21-263555819-462812047-1274083732-5001
  displayName: Virtual Machine - FTL37
  sambaPwdMustChange: 2147483647
  sambaPasswordHistory:
  
   
  sambaAcctFlags: [UW ]
  sambaPwdCanChange: 1164913523
  sambaNTPassword: 
  sambaPwdLastSet: 1164913523
 
  # search result
  search: 2
  result: 0 Success
 
  # numResponses: 2
  # numEntries: 1
 
 
 here is the mine:
 
 ldapsearch -x -W -D cn=admin,dc=knitter,dc=privat cn=notebook$
 Enter LDAP Password:
 # extended LDIF
 #
 # LDAPv3
 # base  with scope subtree
 # filter: cn=notebook$
 # requesting: ALL
 #
 
 # notebook$, Computers, knitter.privat
 dn: uid=notebook$,ou=Computers,dc=knitter,dc=privat
 objectClass: top
 objectClass: person
 objectClass: organizationalPerson
 objectClass: inetOrgPerson
 objectClass: posixAccount
 cn: notebook$
 sn: notebook$
 uid: notebook$
 uidNumber: 1002
 gidNumber: 515
 homeDirectory: /dev/null
 loginShell: /bin/false
 description: Computer
 gecos: Computer
 
 # search result
 search: 2
 result: 0 Success
 
 # numResponses: 2
 # numEntries: 1
 
 
 This entry was created when I tried to join this client to the domain.
 
 What I still do not understand is, why no sambaSAMaccount can be created.
 I assume this is related to the unix-password mapping. On Linux systems I 
 have 
 done this several times. However there the authentication is done via pam and 
 nsswitch, which seem not to be available in OpenBSD.
 
 Harry
 
-- 
Vijay Sankar, M.Eng., P.Eng.
ForeTell Technologies Limited
59 Flamingo Avenue, Winnipeg, MB, Canada R3J 0X6
Phone: 204 885 9535, E-Mail: [EMAIL PROTECTED]



Any experiences with HP hw.product=ProLiant DL365 and DL385 G2?

2006-12-15 Thread Reyk Floeter
hi,

i'm looking for OpenBSD test reports on the new HP ProLiant DL365 and
DL385 G2 series servers (the new opteron servers, not the intel
stuff).  i'm trying to get demo boxes but this will unfortunately take
some more time... :(.

i would appreciate to get a dmesg, please contact me if you have
access to one of these products.

thanks in advance,
reyk



Re: Any experiences with HP hw.product=ProLiant DL365 and DL385 G2?

2006-12-15 Thread Gustavo Rios

I am interested too! If possible, let me know what feedback you got.

thanks in advance.

best regards.

On 12/15/06, Reyk Floeter [EMAIL PROTECTED] wrote:

hi,

i'm looking for OpenBSD test reports on the new HP ProLiant DL365 and
DL385 G2 series servers (the new opteron servers, not the intel
stuff).  i'm trying to get demo boxes but this will unfortunately take
some more time... :(.

i would appreciate to get a dmesg, please contact me if you have
access to one of these products.

thanks in advance,
reyk




Re: samba and ldap

2006-12-15 Thread Dr. Harry Knitter
Am Freitag, 15. Dezember 2006 15:26 schrieb Vijay Sankar:
 Sorry, I meant to write smbldap-useradd.

 FWIW, all I had to do were the following three steps:

 1) added an OpenBSD user account called FTL37$
 2) smbldap-useradd -w FTL37$
 3) did a smbpasswd -a FTL37$


With the normal users this is a practicable way and works for me too. However 
creating a machine account when joining the domain with a client does not 
work at all. At least in my case.


 Currently I am using samba-3.0.21bp3-ldap and samba-docs-3.0.21b
 packages on OpenBSD 3.9.

I have the same packages on OpenBSD 4.0


 Relying solely on documentation that comes with the OpenBSD packages was
 what helped me solve the various problems I had with Samba and OpenLDAP.
 I found the smb-docs package immensely helpful.

Believe me, I have read a lot in the documentation, however didn4t find any 
solution. Under Linux I already have set up several machines as samba PDCs 
with Openldap. However, authentication there works in a totally different way 
(pam and nsswitch).

Harry



Re: Home networking for an amateur

2006-12-15 Thread L. V. Lammert
On Thu, 14 Dec 2006, Greg Thomas wrote:

 On 12/14/06, L. V. Lammert [EMAIL PROTECTED] wrote:
  On Thu, 14 Dec 2006, Greg Thomas wrote:
 
   On 12/14/06, L. V. Lammert [EMAIL PROTECTED] wrote:
At 09:22 PM 12/14/2006 +0100, Erik Wikstrvm wrote:
Your wireless router is probably blocking port 139 (Windows SMB) - 
standard
practice. Go to the router configuration page and unblock.
   
  
   I didn't know that OpenBSD had a router configuration page.
  
  It doesn't. A 'Wireless Router' is the box with the antennas.
 

 Where does he mention 'Wireless Router'?  He appears to have ath in an
 OpenBSD box.

 Greg

Bummer - missed that one! Never even considered it myself, ..

Lee



Re: Any experiences with HP hw.product=ProLiant DL365 and DL385 G2?

2006-12-15 Thread Reyk Floeter
hi,

On Fri, Dec 15, 2006 at 12:50:18PM -0300, Gustavo Rios wrote:
 I am interested too! If possible, let me know what feedback you got.
 

i got one report for the DL385 G2, which seems to share the same new
platform as the DL365 and DL385 G2.

it uses the new dual port bnx(4) gigabit chipset instead of bge(4) as
found in the older proliant servers, dmesg attached.

reyk

OpenBSD 4.0-current (GENERIC.MP) #4: Thu Oct 12 17:02:39 CEST 2006
[EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2146889728 (2096572K)
avail mem = 1834868736 (1791864K)
using 22937 buffers containing 214896640 bytes (209860K) of memory
mainbus0 (root)
bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xee000 (150 entries)
bios0: HP ProLiant DL585 G2
ipmi0 at mainbus0: version 2.0 interface KCS iobase 0xca2/2 spacing 1
mainbus0: Intel MP Specification (Version 1.4)
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Dual-Core AMD Opteron(tm) Processor 8218, 2612.33 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB 64b/line 
16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: apic clock running at 200MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Dual-Core AMD Opteron(tm) Processor 8218, 2612.04 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB 64b/line 
16-way L2 cache
cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu1: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Dual-Core AMD Opteron(tm) Processor 8218, 2612.04 MHz
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu2: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB 64b/line 
16-way L2 cache
cpu2: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu2: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Dual-Core AMD Opteron(tm) Processor 8218, 2612.04 MHz
cpu3: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu3: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB 64b/line 
16-way L2 cache
cpu3: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu3: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu4 at mainbus0: apid 4 (application processor)
cpu4: Dual-Core AMD Opteron(tm) Processor 8218, 2612.04 MHz
cpu4: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu4: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB 64b/line 
16-way L2 cache
cpu4: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu4: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu5 at mainbus0: apid 5 (application processor)
cpu5: Dual-Core AMD Opteron(tm) Processor 8218, 2612.04 MHz
cpu5: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu5: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB 64b/line 
16-way L2 cache
cpu5: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu5: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu6 at mainbus0: apid 6 (application processor)
cpu6: Dual-Core AMD Opteron(tm) Processor 8218, 2612.04 MHz
cpu6: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu6: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB 64b/line 
16-way L2 cache
cpu6: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu6: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu7 at mainbus0: apid 7 (application processor)
cpu7: Dual-Core AMD Opteron(tm) Processor 8218, 2612.04 MHz
cpu7: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu7: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB 64b/line 
16-way L2 cache
cpu7: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu7: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
mpbios: bus 0 is type PCI   
mpbios: bus 1 is type PCI   
mpbios: bus 2 is type PCI  

855 chipset resolution + general bad behaviour of an FJS Lifebook P7010 laptop

2006-12-15 Thread Vim Visual

Hi Fred,

thanks for the information about xorg.conf... I was really wondering
how comes xorg can work without .conf It's the first time in my
7-years-unix life that I see this.

Unfortunately your email came too late, after I had already spent some
2 hours configuring per hand xorg.conf... now it's done

In any case I don't understand what is going on because 915resolution
doesn't find out the
mode:

-
915resolution -l | grep 1280x768
-

yields nothing. The compiled c patch (see thread 855 chipset
resolution) is not working either...

Another funny thing is that suddenly today the CPU was very hot and
the fans going crazy. I made a top and

--
load averages:  1.26,  0.58,  0.25 15:23:41
46 processes:  1 running, 44 idle, 1 on processor
CPU states: 57.4% user,  0.0% nice, 42.6% system,  0.0% interrupt,  0.0% idle
Memory: Real: 99M/214M act/tot  Free: 780M  Swap: 0K/3584M used/tot

 PID USERNAME PRI NICE  SIZE   RES STATEWAIT TIMECPU COMMAND
14336 root  640  624K 1748K run  -0:38 82.57% gdm-binary
2426 pau20 6096K   14M sleeppoll 0:01  1.03% gnome-terminal
--

gdm is using 82.57% of the CPU?!??!

I don't know what the problem is... I would like to believe that the
problem is THIS laptop. I have never seen anything like that in the
crashbox, an ibm 43...

And in general everything is about 15% slower than with linux... I
notice that even when deleting lines outside of X. Why is that?

I haven't installed tons of things; just some 12 packages.

Today I installed the gimp and it's crashing all the time

-
(gimp:5968): GLib-CRITICAL **: g_convert: assertion `str != NULL' failed

(gimp:5968): GLib-CRITICAL **: g_convert: assertion `str != NULL' failed

(gimp:5968): GLib-CRITICAL **: g_convert: assertion `str != NULL' failed

(gimp:5968): GLib-CRITICAL **: g_convert: assertion `str != NULL' failed

(gimp:5968): GLib-CRITICAL **: g_convert: assertion `str != NULL' failed

(gimp:5968): GLib-CRITICAL **: g_convert: assertion `str != NULL' failed

(gimp:5968): GLib-CRITICAL **: g_convert: assertion `str != NULL' failed

(gimp:5968): GLib-CRITICAL **: g_convert: assertion `str != NULL' failed

(gimp:5968): GLib-CRITICAL **: g_convert: assertion `str != NULL' failed

(gimp:5968): GLib-CRITICAL **: g_convert: assertion `str != NULL' failed

(gimp:5968): GLib-CRITICAL **: g_convert: assertion `str != NULL' failed
zsh: 5968 segmentation fault  gimp


(no, it doesn't have anything to do with zsh... it's the same with ksh)

Another point:

firefox (1.5.0.x) is _crashing_ very often... and I couldn't fix
totally the anti-aliasing thing explained in the faqs

Bouuuf...

No, if you use o'bsd for a server you don't need the gimp, of course!
But I want o'bsd for a desktop and I don't feel like chopping a region
of a png file with vi, even if it'd possible in principle...

all this is very frustrating...

well, wireless is working... but that's a blobish thing... not so happy

I think I'm going to drop it... and it's really VERY frustrating... I
was starting to play with pf and it's just amazing

Cheers,

Pau



The Xorg X server doesn't need an xorg.conf to run - it probes, and try
to work out the right answer on startup.  An xorg.conf would be useful
if the result server doesn't fulfill your requirements for some reason,
ie your hardware is incorrectly setup, or you want to run an unusual set up.

HTH

Fred
--
OpenBSD on the Zaurus C3200
http://www.crowsons.net/puters/zaurus.php




Re: openbsd 4.0 ralink problem low operation range

2006-12-15 Thread Jonathan Gray
On Fri, Dec 15, 2006 at 04:14:14PM +0800, Sepherosa Ziehau wrote:
 On 12/14/06, earx [EMAIL PROTECTED] wrote:
 ralink is the worst radio chipset in term of radio performance
 but the best documented for driver :(
 
 I probably missed something here, except for some Linux drivers, I
 didn't remember Ralink had released any formal documents about its
 MACs and RFs.  Please point out, if I am wrong here, and please post
 the URL of the best document if possible.  Thanks.
 
 Best Regards,
 sephe

Documentation for Ralink is not on a website but rather a
explain why you're interested and they'll send it to you basis.



Investigating struct if_data.ifi_link_state

2006-12-15 Thread Moritz Grimm

Hi,


not long ago, duplex information was added to if_link_state. Today, I 
took a closer look and it looks like my


sk0 at skc0 port A, address 00:11:95:ff:28:1d
eephy0 at sk0 phy 0: Marvell 88E1011 Gigabit PHY, rev. 3

does not set it to  2, even though SIOCGIFMEDIA's output contains 
IFM_FDX (full-duplex). So the driver probably knows about this 
information already ... Is not setting if_link_state properly on 
purpose? Or is it work in progress and will it change later? Did I find 
a buglet?



Moritz



HP Server

2006-12-15 Thread Gustavo Rios

Dear list members,

i am searching for reports from ones running openbsd 4.0 on the
followig hardware:

0) HP Proliant 320 G5
1) HP Proliant 320s
2) HP Proliant 360 G5
3) Dell PowerEdge 860
4) Dell PowerEdge 1950
5) IBM eSystem x306m
6) IBM System X3550


Are they fully supported Network/RAID/SCSI/etc (i mean rock solid
operation under very high stress load?) Could you send me a dmesg?

Thanks in advance



Re: Home networking for an amateur

2006-12-15 Thread Brian Candler
On Thu, Dec 14, 2006 at 09:22:47PM +0100, Erik Wikstr?m wrote:
 I have three NICs in the box, two rl(4) and one ath(4), rl1 is connected 
 to the Internet and rl0 and ath0 are the local networks. As I understand 
 things I need to bridge the two local NICs somehow to be able to access 
 computers on both networks seamlessly, however I recall trying that once 
 but with no success.

You shouldn't have to do that. One subnet on 192.168.0.x and the other
on 192.168.1.x should still be able to route IP between the two.

The only thing which won't work is that broadcasts on one network won't be
seen by machines on the other network. Limiting broadcast scope in this way
is generally considered A Good Thing [TM]. However, Windows machines in
their most basic mode of operation rely on broadcasts to find each other in
the 'network neighborhood'

If this is your problem, then you can fix it by installing a WINS server, a
local DNS server with dynamic updates, or by using the LMHOSTS file on each
Windows box to hardcode the NetBIOS name to IP address mappings.

Don't ask me how to do that - I don't grok Windows :-)

But the first thing you need to do is to see if a machine on 192.168.0.x can
ping a machine on 192.168.1.y. If they can't, then you have a deeper problem
than that - probably pf rules.

 I've put copies of all files I thought might be of relevance on the web 
 at http://www.chalmers.it/~eriwik/obsd/

I can't see anything obviously wrong, but if your machines can't ping
between the two subnets, a simple test would be to empty out your pf ruleset
(which obviously will stop your local machines from communicating with the
Internet because of the lack of nat, but would demonstrate whether they can
then ping each other directly)

As you say, another solution would be to bridge rl0 and ath0, and run your
home LAN as a single subnet. See man brconfig and bridgename.if

HTH,

Brian.



Re: HP Server

2006-12-15 Thread Jason Dixon

On Dec 15, 2006, at 1:56 PM, Gustavo Rios wrote:


Dear list members,

i am searching for reports from ones running openbsd 4.0 on the
followig hardware:

0) HP Proliant 320 G5
1) HP Proliant 320s
2) HP Proliant 360 G5
3) Dell PowerEdge 860
4) Dell PowerEdge 1950
5) IBM eSystem x306m
6) IBM System X3550


Are they fully supported Network/RAID/SCSI/etc (i mean rock solid
operation under very high stress load?) Could you send me a dmesg?


I sent a reply to the list earlier this week regarding the PE860.


--
Jason Dixon
DixonGroup Consulting
http://www.dixongroup.net



dhclient clobbers default route, even though configured not to

2006-12-15 Thread James Herbert (Lists)

Hi misc!

I have a home router which is connected to a DSL line as its primary 
connection, with static IPs and the like. I have a secondary cable 
connection with a dynamic IP, and I have to use dhcp to get the IP for 
this link.


I have the following in my dhclient.conf:

send host-name paladin;
supersede host-name paladin;
supersede routers 212.208.87.225;
supersede domain-name-servers 10.0.0.1;
request subnet-mask, broadcast-address;

After boot, my routing table shows:

$ route -n show -inet
Routing tables

Internet:
DestinationGatewayFlagsRefs  UseMtu 
Interface

default213.208.87.225 UGS 9   985236  -   fxp0
10.0.0/24  link#2 UC  50  -   fxp1
10.0.0.1   00:90:27:77:19:c0  UHLc1 1428  -   lo0
10.0.0.10  00:50:8d:e9:2f:f1  UHLc112174  -   fxp1
10.0.0.12  00:20:ed:b2:96:da  UHLc0   695982  -   fxp1
10.0.0.14  00:10:b5:0b:63:e3  UHLc0   14  -   fxp1
10.0.0.64  00:a0:d1:b8:ca:69  UHLc1   117289  -   fxp1
127/8  127.0.0.1  UGRS00  33224   lo0
127.0.0.1  127.0.0.1  UH  5   29  33224   lo0
213.208.87.224/29  link#1 UC  10  -   fxp0
213.208.87.225 00:14:7f:1a:dd:e2  UHLc1   10  -   fxp0
213.208.87.227 127.0.0.1  UGHS00  33224   lo0
213.208.87.228 127.0.0.1  UGHS00  33224   lo0
213.208.87.229 127.0.0.1  UGHS00  33224   lo0
213.208.87.230 127.0.0.1  UGHS00  33224   lo0
224/4  127.0.0.1  URS 00  33224   lo0
$

Then, I run dhclient.

$ sudo dhclient fxp2
Password:
DHCPREQUEST on fxp2 to 255.255.255.255 port 67
DHCPREQUEST on fxp2 to 255.255.255.255 port 67
DHCPACK from 10.225.144.1
bound to 82.10.215.207 -- renewal in 49967 seconds.
$

All internet connectivity is lost.

Routing table:

$ route -n show -inet
Routing tables

Internet:
DestinationGatewayFlagsRefs  UseMtu 
Interface

10.0.0/24  link#2 UC  60  -   fxp1
10.0.0.1   00:90:27:77:19:c0  UHLc0 1428  -   lo0
10.0.0.10  00:50:8d:e9:2f:f1  UHLc112926  -   fxp1
10.0.0.12  00:20:ed:b2:96:da  UHLc1   706520  -   fxp1
10.0.0.14  00:10:b5:0b:63:e3  UHLc0   18  -   fxp1
10.0.0.64  link#2 UHLc1   117289  -   fxp1
10.0.0.100 00:12:17:c2:8a:30  UHLc01  -   fxp1
82.10.212/22   link#3 UC  00  -   fxp2
82.10.215.207  127.0.0.1  UGHS00  33224   lo0
127/8  127.0.0.1  UGRS00  33224   lo0
127.0.0.1  127.0.0.1  UH  6   29  33224   lo0
213.208.87.224/29  link#1 UC  10  -   fxp0
213.208.87.225 00:14:7f:1a:dd:e2  UHLc0   10  -   fxp0
213.208.87.227 127.0.0.1  UGHS00  33224   lo0
213.208.87.228 127.0.0.1  UGHS00  33224   lo0
213.208.87.229 127.0.0.1  UGHS00  33224   lo0
213.208.87.230 127.0.0.1  UGHS00  33224   lo0
224/4  127.0.0.1  URS 00  33224   lo0
$

I have to issue the following command to restore connectivity:

$ sudo route add default `cat /etc/mygate`
add net default: gateway 213.208.87.225
$

Can anyone offer any advice?

Cheers

James



Re: dhclient clobbers default route, even though configured not to

2006-12-15 Thread Wijnand Wiersma

What release are you running?
I don't have supersede rules in my config but my request line is the
same. It works for a firewall with 3 dsl lines with 2 dhcp interfaces.

I had it working on 3.9 and 4.0.

Regards,
Wijnand



ARCNet Support

2006-12-15 Thread Zachary Miscikoski
I know many of you will laugh at this, but is there any ARCNet support under
OpenBSD?



Marvell 88SX6041 sata support

2006-12-15 Thread Kenneth Bogert
Hello misc,

I was recently tasked with creating a firewall for our production
servers and workgroup.  The server I was given has a Supermicro H8DAR-T
motherboard, with a Marvell 88SX6041 SATA controller.

http://www.supermicro.com/Aplus/motherboard/Opteron/8132/H8DAR-T.cfm

I'd like to install OpenBSD on the server, it would be a good fit.  But
I need a driver for the SATA controller.  I see that FreeBSD has had one
(though I don't know the quality) since around January.  Are there any
plans to port this driver?

Anything I can do to help?  I can provide testing and information at
least.  I know c, but not enough to port the driver myself.

Any help would be appreciated,

-
kdb



Re: dhclient clobbers default route, even though configured not to

2006-12-15 Thread James Herbert (Lists)

Wijnand Wiersma wrote:

What release are you running?
I don't have supersede rules in my config but my request line is the
same. It works for a firewall with 3 dsl lines with 2 dhcp interfaces.

I had it working on 3.9 and 4.0.

Regards,
Wijnand



Sorry, I'm running 4.0-stable. Here's my dmesg:

OpenBSD 4.0-stable (GENERIC) #0: Mon Nov 27 00:42:48 GMT 2006
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium II (GenuineIntel 686-class, 512KB L2 cache) 349 MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR

real mem  = 267939840 (261660K)
avail mem = 236662784 (231116K)
using 3296 buffers containing 13500416 bytes (13184K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 10/02/98, BIOS32 rev. 0 @ 
0xfdb70, SMBIOS rev. 2.1 @ 0xf0d40 (44 entries)

bios0: Gateway GP6-350
pcibios0 at bios0: rev 2.1 @ 0xf/0x1
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf7220/176 (9 entries)
pcibios0: PCI Interrupt Router at 000:07:0 (Intel 82371FB ISA rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc/0x8000 0xc8000/0x1800 0xc9800/0x1000 0xca800/0x1000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 82443BX AGP rev 0x03
ppb0 at pci0 dev 1 function 0 Intel 82443BX AGP rev 0x03
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 NVIDIA/SGS-Thomson Velocity128 rev 0x22
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 7 function 0 Intel 82371AB PIIX4 ISA rev 0x02
pciide0 at pci0 dev 7 function 1 Intel 82371AB IDE rev 0x01: DMA, 
channel 0 wired to compatibility, channel 1 wired to compatibility

wd0 at pciide0 channel 0 drive 0: Maxtor 2F040L0
wd0: 16-sector PIO, LBA, 39205MB, 80293248 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 disabled (no drives)
uhci0 at pci0 dev 7 function 2 Intel 82371AB USB rev 0x01: irq 10
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
piixpm0 at pci0 dev 7 function 3 Intel 82371AB Power rev 0x02: polling
iic0 at piixpm0
unknown at iic0 addr 0x4e not configured
eap0 at pci0 dev 12 function 0 Ensoniq AudioPCI97 rev 0x04: irq 9
ac97: codec id 0x43525903 (Cirrus Logic CS4297 rev 3)
ac97: codec features headphone, 18 bit DAC, 18 bit ADC, No 3D Stereo
audio0 at eap0
midi0 at eap0: AudioPCI MIDI UART
fxp0 at pci0 dev 13 function 0 Intel 8255x rev 0x08, i82559: irq 11, 
address 00:d0:b7:29:32:66

inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
fxp1 at pci0 dev 14 function 0 Intel 8255x rev 0x08, i82559: irq 9, 
address 00:90:27:77:19:c0

inphy1 at fxp1 phy 1: i82555 10/100 PHY, rev. 4
fxp2 at pci0 dev 15 function 0 Intel 8255x rev 0x08, i82559: irq 5, 
address 00:d0:b7:0b:4a:78

inphy2 at fxp2 phy 1: i82555 10/100 PHY, rev. 4
Broadcom BCM4306 rev 0x03 at pci0 dev 16 function 0 not configured
isa0 at pcib0
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
midi1 at pcppi0: PC speaker
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom0: console
biomask f54d netmask ff6d ttymask ffef
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302



Re: dhclient clobbers default route, even though configured not to

2006-12-15 Thread Jeroen Massar
James Herbert (Lists) wrote:
 Hi misc!

 I have a home router which is connected to a DSL line as its primary
 connection, with static IPs and the like. I have a secondary cable
 connection with a dynamic IP, and I have to use dhcp to get the IP for
 this link.

 I have the following in my dhclient.conf:

 send host-name paladin;
 supersede host-name paladin;
 supersede routers 212.208.87.225;
 supersede domain-name-servers 10.0.0.1;
 request subnet-mask, broadcast-address;
[..]
 $ sudo route add default `cat /etc/mygate`
 add net default: gateway 213.208.87.225
 $

 Can anyone offer any advice?

Don't use DHCP ;)

nah, you could at least add the route add default... snippet into a
separate file and use 'script /etc/dhclient.restore-gw' or something to
make sure that you keep your gateway set. dhclient can unfortunately be
pretty annoying sometimes. supersede should do the trick indeed; what
you might want to change is the 'request' line and add 'routers' there.
It might be that dhclient doesn't want to give your default route as it
was not requested.

Btw watch out with scripts, if they fail to execute properly, dhclient
will nicely loop and keep on requesting new addresses, most likely
causing the pool on the server side to run empty (at least that happened
to me that last time ;)

Greets,
 Jeroen

[demime 1.01d removed an attachment of type application/pgp-signature which had 
a name of signature.asc]



Re: OpenBSD/amd64 on VMware = sloooooow?

2006-12-15 Thread Brian Keefer

On Dec 12, 2006, at 11:46 PM, Brian Keefer wrote:

OK, so just to be clear I'm not a terribly clever person.  I have  
no idea what I should be looking for to diagnose this issue.  It's  
entirely possible that I have something configured stupidly/wrong,  
etc or that the answer is right in front of me, but I wouldn't  
know.  I've done a little googling and all I came up with was:

http://archives.neohapsis.com/archives/openbsd/2005-11/1349.html
which went completely un-answered (at least on-list).

The OP and I conversed off-list a few weeks ago and he mentioned  
that the situation is still the same for him (same as I'm seeing).   
Summary:

- 64bit host OS (SLES 9) running on 2 dual-core Opteron 265s
- VMware Server 1.0.1 build 29996
- OpenBSD/i386 works fine
- OpenBSD/amd64 is slow as hell
- MP/UP kernel makes no difference
- one CPU or two CPUs makes no difference

I've tried 4.0-release, then a snapshot from a few weeks ago, now  
running with -current GENERIC.MP kernel (as of last night).  That  
kernel took about 22 hours to build, BTW--that's slower than my  
SPARCstation 5.  Right now it's churning away on make depend for  
GENERIC (UP) and it's been doing so for over 128 minutes.


Does anyone have *any* idea why compiling would be so slow on this  
setup?  Services respond fairly quickly (ssh, etc) but running make  
or cc takes ages.  Usually the load is around 1.3 or so when  
building something, but on occasion it spikes to 16 or more for no  
apparent reason.


I'd love to collect any relevant information that could help  
diagnose the problem.  What I got so far is some output from vmstat  
(system has been up for about 3hrs, most of that trying to make  
depend for amd64/GENERIC).  I have no idea what I'm talking about,  
but should syscalls be over 174 million in 3 hrs?  What about over  
1 million interrupts?


vmstat -i
interrupt   total rate
irq0/clock2323579  198
irq0/ipi   659552   56
irq14/pciide098020
irq18/em075210
irq1/pckbc0  32740
Total 3003728  255

vmstat -s
   4096 bytes per page
  92994 pages managed
  60024 pages free
  12862 pages active
   3646 pages inactive
  0 pages being paged out
  2 pages wired
  0 pages zeroed
  4 pages reserved for pagedaemon
  6 pages reserved for kernel
 131117 swap pages
  0 swap pages in use
 217870 total anon's in system
 206486 free anon's
 592955 page faults
 625470 traps
  14762 interrupts
 177426 cpu context switches
  17746 fpu context switches
1281121 software interrupts
  174821427 syscalls
  0 pagein operations
  0 swap ins
  0 swap outs
890 forks
  9 forks where vmspace is shared
 13 kernel map entries
  0 number of times the pagedaemon woke up
  0 revolutions of the clock hand
  0 pages freed by pagedaemon
  0 pages scanned by pagedaemon
  0 pages reactivated by pagedaemon
  0 busy pages found by pagedaemon
 484013 total name lookups
cache hits (87% pos + 9% neg) system 0% per-directory
deletions 0%, falsehits 0%, toolong 0%
  0 select collisions

dmesg:
OpenBSD 4.0-current (GENERIC.MP) #0: Tue Dec 12 19:00:05 PST 2006
[EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/ 
GENERIC.MP

real mem = 401141760 (391740K)
avail mem = 331026432 (323268K)
using 9844 buffers containing 40321024 bytes (39376K) of memory
mainbus0 (root)
bios0 at mainbus0: SMBIOS rev. 2.31 @ 0xe0010 (45 entries)
bios0: VMware, Inc. VMware Virtual Platform
acpi at mainbus0 not configured
mainbus0: Intel MP Specification (Version 1.4)
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Dual Core AMD Opteron(tm) Processor 265, 1985.19 MHz
cpu0:  
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE3 
6,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB  
64b/line 16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully  
associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully  
associative

cpu0: apic clock running at 66MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Dual Core AMD Opteron(tm) Processor 265, 1838.56 MHz
cpu1:  
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE3 
6,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB  
64b/line 16-way L2 cache
cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully  
associative
cpu1: DTLB 32 4KB entries fully associative, 8 4MB entries fully  
associative

mpbios: bus 0 is type PCI
mpbios: bus 1 is type PCI
mpbios: bus 2 is type ISA
ioapic0 at 

Moving a 100GB directory tree with lots of hardlinks

2006-12-15 Thread Matthias Bertschy

OpenBSD 3.7 - i386
Pentium 4 3GHz - 1GB RAM - 2GB swap

Hello list,

For the past 3 weeks, I have been working on a difficult problem: moving 
a backuppc (http://backuppc.sourceforge.net/) pool from a RAID0 to a big 
disk, in order to free the RAID0 before rebuilding a RAID5.


The RAID0 has one partition, its size is 2112984700 blocks (512-blocks), 
roughly 1008GB, which is close to the maximum allowed by ffs. The big 
disk is 300GB.


I need to move 96GB of data which are, due to backuppc design, full of 
hardlinks!


So far, I have tried to use:
   1) dd: impossible because the partitions cannot be the same size 
(and the RAID5 won't be the same size as the RAID0)
   2) pax -rw: after transferring almost 70GB, it bails out with a 
Segmentation fault
   3) tar to archive: after something like 60GB, it complains with some 
file name too long errors
   4) gtar to archive (from package gtar-1.15.1p0-static.tgz): ends up 
with a gtar: memory exhauted error

   5) dump to file: successful but
   5') restore from file: stops even before starting due to a no 
memory for entry table error (there is still a lot of unused memory and 
swap - and no ulimit)


Any help is appreciated because I really don't know what to do next.

Matthias Bertschy
Echo Technologies SA



Re: samba and ldap

2006-12-15 Thread Bolke de Bruin
[EMAIL PROTECTED] wrote:

 Am Freitag, 15. Dezember 2006 15:26 schrieb Vijay Sankar:

 Sorry, I meant to write smbldap-useradd.

 

 FWIW, all I had to do were the following three steps:

 

 1) added an OpenBSD user account called FTL37$

 2) smbldap-useradd -w FTL37$

 3) did a smbpasswd -a FTL37$

 

 

 With the normal users this is a practicable way and works for me too.

 However creating a machine account when joining the domain with a

 client does not work at all. At least in my case.

 

 

 Currently I am using samba-3.0.21bp3-ldap and samba-docs-3.0.21b

 packages on OpenBSD 3.9.

 

 I have the same packages on OpenBSD 4.0

 

 

 Relying solely on documentation that comes with the OpenBSD packages

 was what helped me solve the various problems I had with Samba and

 OpenLDAP. I found the smb-docs package immensely helpful.

 

 Believe me, I have read a lot in the documentation, however didn4t

 find any solution. Under Linux I already have set up several machines

 as samba PDCs with Openldap. However, authentication there works in a

 totally different way (pam and nsswitch).

 

 Harry



Did you check the logs? I remember an issue with the password chat of samba 
that fails some sanity checks from OpenBSD. Something along the lines of Who 
are you?, which has something to do with the uid/gid it is executed under.



It has been a while I tried this so I might be completely off.



Regards,

Bolke




Re: Moving a 100GB directory tree with lots of hardlinks

2006-12-15 Thread Tim Pushor
Have you tried using cpio in passthrough mode? I've used CPIO on big 
systems before with success, although admittedly not on OpenBSD ..


Matthias Bertschy wrote:

OpenBSD 3.7 - i386
Pentium 4 3GHz - 1GB RAM - 2GB swap

Hello list,

For the past 3 weeks, I have been working on a difficult problem: 
moving a backuppc (http://backuppc.sourceforge.net/) pool from a RAID0 
to a big disk, in order to free the RAID0 before rebuilding a RAID5.


The RAID0 has one partition, its size is 2112984700 blocks 
(512-blocks), roughly 1008GB, which is close to the maximum allowed by 
ffs. The big disk is 300GB.


I need to move 96GB of data which are, due to backuppc design, full of 
hardlinks!


So far, I have tried to use:
   1) dd: impossible because the partitions cannot be the same size 
(and the RAID5 won't be the same size as the RAID0)
   2) pax -rw: after transferring almost 70GB, it bails out with a 
Segmentation fault
   3) tar to archive: after something like 60GB, it complains with 
some file name too long errors
   4) gtar to archive (from package gtar-1.15.1p0-static.tgz): ends up 
with a gtar: memory exhauted error

   5) dump to file: successful but
   5') restore from file: stops even before starting due to a no 
memory for entry table error (there is still a lot of unused memory 
and swap - and no ulimit)


Any help is appreciated because I really don't know what to do next.

Matthias Bertschy
Echo Technologies SA




Re: Moving a 100GB directory tree with lots of hardlinks

2006-12-15 Thread Andreas Maus

Hi.

Just a wild guess ...
Do you tried rsync?
(Although I don't know how rsync deals with _hard_ links).

HTH,

Andreas.


On 12/15/06, Matthias Bertschy [EMAIL PROTECTED] wrote:

OpenBSD 3.7 - i386
Pentium 4 3GHz - 1GB RAM - 2GB swap

Hello list,

For the past 3 weeks, I have been working on a difficult problem: moving
a backuppc (http://backuppc.sourceforge.net/) pool from a RAID0 to a big
disk, in order to free the RAID0 before rebuilding a RAID5.

The RAID0 has one partition, its size is 2112984700 blocks (512-blocks),
roughly 1008GB, which is close to the maximum allowed by ffs. The big
disk is 300GB.

I need to move 96GB of data which are, due to backuppc design, full of
hardlinks!

So far, I have tried to use:
1) dd: impossible because the partitions cannot be the same size
(and the RAID5 won't be the same size as the RAID0)
2) pax -rw: after transferring almost 70GB, it bails out with a
Segmentation fault
3) tar to archive: after something like 60GB, it complains with some
file name too long errors
4) gtar to archive (from package gtar-1.15.1p0-static.tgz): ends up
with a gtar: memory exhauted error
5) dump to file: successful but
5') restore from file: stops even before starting due to a no
memory for entry table error (there is still a lot of unused memory and
swap - and no ulimit)

Any help is appreciated because I really don't know what to do next.

Matthias Bertschy
Echo Technologies SA





--
Hobbes : Shouldn't we read the instructions?
Calvin : Do I look like a sissy?



Re: Moving a 100GB directory tree with lots of hardlinks

2006-12-15 Thread Andy Hayward

On 12/15/06, Andreas Maus [EMAIL PROTECTED] wrote:

Just a wild guess ...
Do you tried rsync?
(Although I don't know how rsync deals with _hard_ links).


rsync --archive --hard-links ...

-- ach



Re: spam story

2006-12-15 Thread Craig Skinner
On Thu, Dec 14, 2006 at 09:39:12AM -0700, Bob Beck wrote:
   Actually, come to think of it, if I could get away with it, I'd
 change the dumb shit's email to another address. give him a week to
 tell his friends it has moved, and then add him as as a greytrap
 address. they you use his stupidity in adding himself to every spammer
 on the planet's top 10 to your advantage. 
 
   But that depends if you can get away with forcing him to change
 his email.
 

Tell him his account went over quota due to the spam and this damaged
the disk sector that his mail spool is on, so you have to change the
address to repair the disk. As if he'll know total BS when he sees it.



Re: dhclient clobbers default route, even though configured not to

2006-12-15 Thread Otto Moerbeek
On Fri, 15 Dec 2006, James Herbert (Lists) wrote:

I can use supersede routers to add an alternative route, as long as the
gw that I'm using is reachable.

-Otto



Re: Moving a 100GB directory tree with lots of hardlinks

2006-12-15 Thread Otto Moerbeek
On Fri, 15 Dec 2006, Matthias Bertschy wrote:

 OpenBSD 3.7 - i386
 Pentium 4 3GHz - 1GB RAM - 2GB swap
 
 Hello list,
 
 For the past 3 weeks, I have been working on a difficult problem: moving a
 backuppc (http://backuppc.sourceforge.net/) pool from a RAID0 to a big disk,
 in order to free the RAID0 before rebuilding a RAID5.
 
 The RAID0 has one partition, its size is 2112984700 blocks (512-blocks),
 roughly 1008GB, which is close to the maximum allowed by ffs. The big disk is
 300GB.
 
 I need to move 96GB of data which are, due to backuppc design, full of
 hardlinks!
 
 So far, I have tried to use:
1) dd: impossible because the partitions cannot be the same size (and the
 RAID5 won't be the same size as the RAID0)
2) pax -rw: after transferring almost 70GB, it bails out with a
 Segmentation fault

Please get me a gdb trace! Run gdb /sbin/pax pax.core and then bt.

I want to know where the seg fault occurs.

-Otto

3) tar to archive: after something like 60GB, it complains with some file
 name too long errors
4) gtar to archive (from package gtar-1.15.1p0-static.tgz): ends up with a
 gtar: memory exhauted error
5) dump to file: successful but
5') restore from file: stops even before starting due to a no memory for
 entry table error (there is still a lot of unused memory and swap - and no
 ulimit)
 
 Any help is appreciated because I really don't know what to do next.
 
 Matthias Bertschy
 Echo Technologies SA



Re: Moving a 100GB directory tree with lots of hardlinks

2006-12-15 Thread Andreas Maus

Ahhh I was enlightened by you and Andy Hayward ;)

If it is memory consumption is the problem, adding a swapfile
via swapon could help.

Andreas.

On 12/15/06, Jaye Mathisen [EMAIL PROTECTED] wrote:

You might need to compile a kernel with a large default
data segment size, make sure tmp has enough room, or
set TMPDIR/TEMPDIR for restore.

Dump/resture should DTRT.

rsync -H will as well, but again, going back to needing lots of memory to
store all that hardlink info...

On Fri, Dec 15, 2006 at 11:04:25PM +0100, Andreas Maus wrote:
 Hi.

 Just a wild guess ...
 Do you tried rsync?
 (Although I don't know how rsync deals with _hard_ links).

 HTH,

 Andreas.


 On 12/15/06, Matthias Bertschy [EMAIL PROTECTED]
 wrote:
 OpenBSD 3.7 - i386
 Pentium 4 3GHz - 1GB RAM - 2GB swap
 
 Hello list,
 
 For the past 3 weeks, I have been working on a difficult problem: moving
 a backuppc (http://backuppc.sourceforge.net/) pool from a RAID0 to a big
 disk, in order to free the RAID0 before rebuilding a RAID5.
 
 The RAID0 has one partition, its size is 2112984700 blocks (512-blocks),
 roughly 1008GB, which is close to the maximum allowed by ffs. The big
 disk is 300GB.
 
 I need to move 96GB of data which are, due to backuppc design, full of
 hardlinks!
 
 So far, I have tried to use:
 1) dd: impossible because the partitions cannot be the same size
 (and the RAID5 won't be the same size as the RAID0)
 2) pax -rw: after transferring almost 70GB, it bails out with a
 Segmentation fault
 3) tar to archive: after something like 60GB, it complains with some
 file name too long errors
 4) gtar to archive (from package gtar-1.15.1p0-static.tgz): ends up
 with a gtar: memory exhauted error
 5) dump to file: successful but
 5') restore from file: stops even before starting due to a no
 memory for entry table error (there is still a lot of unused memory and
 swap - and no ulimit)
 
 Any help is appreciated because I really don't know what to do next.
 
 Matthias Bertschy
 Echo Technologies SA
 
 


 --
 Hobbes : Shouldn't we read the instructions?
 Calvin : Do I look like a sissy?


 !DSPAM:45831ea2743981250431860!





--
Hobbes : Shouldn't we read the instructions?
Calvin : Do I look like a sissy?



ftp-proxy multiple instances

2006-12-15 Thread Technical Support
Dear friends,

I have a question about the ftp-proxy. Anyone can help me?

Situation:
* clients behind a NAT needs access to external FTP servers
* clients on the Internet need access to my internal FTP server
* OBSD 4.0 (NAT)

Accordingly to the document http://www.openbsd.org/faq/pf/ftp.html, I can 
protect an FTP server as well as allow clients to FTP out from behind the 
firewall. The document say that I need two instances of ftp-proxy, but does 
not explain how to configure.

Is it really possible to create two instances using the rc.conf.local file? 
I tried to, but the rc creates only the last instance.

My rc.conf.local is:
ftpproxy_flags = -R 10.10.10.1 -p 21 -b 192.168.0.1
ftpproxy_flags = 

Thanks
Marcello Cruz 



Re: Moving a 100GB directory tree with lots of hardlinks

2006-12-15 Thread Otto Moerbeek
On Fri, 15 Dec 2006, Matthias Bertschy wrote:

5) dump to file: successful but
5') restore from file: stops even before starting due to a no memory for
 entry table error (there is still a lot of unused memory and swap - and no
 ulimit)

ulimit for memory usage is never unlimited. Look at ulimit -a. Check
the data size listed. To enlarge, change login.conf settings for
datasize-max and datasize-cur and don't forget to re-login. 

The pax problem you are hitting could very well be memory-related too. 

As a workaround, you might want to try to not copy the complete tree
in one go, but copy the various subirs separately. Or would that destroy
the hardlink structure?

-Otto



Re: Moving a 100GB directory tree with lots of hardlinks

2006-12-15 Thread Jaye Mathisen
You might need to compile a kernel with a large default
data segment size, make sure tmp has enough room, or
set TMPDIR/TEMPDIR for restore.

Dump/resture should DTRT. 

rsync -H will as well, but again, going back to needing lots of memory to 
store all that hardlink info...

On Fri, Dec 15, 2006 at 11:04:25PM +0100, Andreas Maus wrote:
 Hi.
 
 Just a wild guess ...
 Do you tried rsync?
 (Although I don't know how rsync deals with _hard_ links).
 
 HTH,
 
 Andreas.
 
 
 On 12/15/06, Matthias Bertschy [EMAIL PROTECTED] 
 wrote:
 OpenBSD 3.7 - i386
 Pentium 4 3GHz - 1GB RAM - 2GB swap
 
 Hello list,
 
 For the past 3 weeks, I have been working on a difficult problem: moving
 a backuppc (http://backuppc.sourceforge.net/) pool from a RAID0 to a big
 disk, in order to free the RAID0 before rebuilding a RAID5.
 
 The RAID0 has one partition, its size is 2112984700 blocks (512-blocks),
 roughly 1008GB, which is close to the maximum allowed by ffs. The big
 disk is 300GB.
 
 I need to move 96GB of data which are, due to backuppc design, full of
 hardlinks!
 
 So far, I have tried to use:
 1) dd: impossible because the partitions cannot be the same size
 (and the RAID5 won't be the same size as the RAID0)
 2) pax -rw: after transferring almost 70GB, it bails out with a
 Segmentation fault
 3) tar to archive: after something like 60GB, it complains with some
 file name too long errors
 4) gtar to archive (from package gtar-1.15.1p0-static.tgz): ends up
 with a gtar: memory exhauted error
 5) dump to file: successful but
 5') restore from file: stops even before starting due to a no
 memory for entry table error (there is still a lot of unused memory and
 swap - and no ulimit)
 
 Any help is appreciated because I really don't know what to do next.
 
 Matthias Bertschy
 Echo Technologies SA
 
 
 
 
 -- 
 Hobbes : Shouldn't we read the instructions?
 Calvin : Do I look like a sissy?
 
 
 !DSPAM:45831ea2743981250431860!



Re: HP Server

2006-12-15 Thread Per-Olov Sjoholm
On Fridayen den 15 December 2006 19:56, Gustavo Rios wrote:
 Dear list members,

 i am searching for reports from ones running openbsd 4.0 on the
 followig hardware:

 0) HP Proliant 320 G5
 1) HP Proliant 320s
 2) HP Proliant 360 G5
 3) Dell PowerEdge 860
 4) Dell PowerEdge 1950
 5) IBM eSystem x306m
 6) IBM System X3550


 Are they fully supported Network/RAID/SCSI/etc (i mean rock solid
 operation under very high stress load?) Could you send me a dmesg?

 Thanks in advance

We have no more than 6 Dell 1950 servers running OpenBSD 4.0 with the LSI SAS 
raid controller setup in a mirror for the OS. Really good server. IPMI OK. 
The built in Broadcom (bnx) work OK. This is a rock solid server.
Attach a dmesg as you asked...



OpenBSD 4.0-stable (GENERIC) #0: Wed Nov 22 23:05:29 CET 2006
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Xeon(R) CPU 5130 @ 2.00GHz (GenuineIntel 686-class) 2 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,TM2,CX16
real mem  = 2146697216 (2096384K)
avail mem = 1950093312 (1904388K)
using 4256 buffers containing 107438080 bytes (104920K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 06/21/06, BIOS32 rev. 0 @ 0xffe90, 
SMBIOS rev. 2.4 @ 0x7ffbc000 (62 entries)
bios0: Dell Inc. PowerEdge 1950
pcibios0 at bios0: rev 2.1 @ 0xf/0x1
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfade0/368 (21 entries)
pcibios0: PCI Interrupt Router at 000:31:0 (Intel 6321ESB LPC rev 0x00)
pcibios0: PCI bus #16 is the last bus
bios0: ROM list: 0xc/0x9000! 0xc9000/0x5200 0xec000/0x4000!
ipmi0 at mainbus0: version 2.0 interface KCS iobase 0xca8/8 spacing 4
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 5000X Host rev 0x12
ppb0 at pci0 dev 2 function 0 Intel 5000 PCIE rev 0x12
pci1 at ppb0 bus 6
ppb1 at pci1 dev 0 function 0 Intel 6321ESB PCIE rev 0x01
pci2 at ppb1 bus 7
ppb2 at pci2 dev 0 function 0 Intel 6321ESB PCIE rev 0x01
pci3 at ppb2 bus 8
ppb3 at pci3 dev 0 function 0 ServerWorks PCIE-PCIX rev 0xc2
pci4 at ppb3 bus 9
bnx0 at pci4 dev 0 function 0 Broadcom BCM5708 rev 0x11: irq 5, address 
00:15:c5:e9:d5:08
brgphy0 at bnx0 phy 1: BCM5708C 10/100/1000baseT PHY, rev. 5
ppb4 at pci2 dev 1 function 0 Intel 6321ESB PCIE rev 0x01
pci5 at ppb4 bus 10
ppb5 at pci1 dev 0 function 3 Intel 6321ESB PCIE-PCIX rev 0x01
pci6 at ppb5 bus 11
ppb6 at pci0 dev 3 function 0 Intel 5000 PCIE rev 0x12
pci7 at ppb6 bus 1
ppb7 at pci7 dev 0 function 0 Intel IOP333 PCIE-PCIX rev 0x00
pci8 at ppb7 bus 2
mfi0 at pci8 dev 14 function 0 Dell PERC 5 rev 0x00: irq 6
mfi0: logical drives 1, version 5.0.1-0030, 256MB RAM
scsibus0 at mfi0: 1 targets
sd0 at scsibus0 targ 0 lun 0: DELL, PERC 5/i, 1.00 SCSI3 0/direct fixed
sd0: 69376MB, 69376 cyl, 64 head, 32 sec, 512 bytes/sec, 142082048 sec total
ppb8 at pci7 dev 0 function 2 Intel IOP333 PCIE-PCIX rev 0x00
pci9 at ppb8 bus 3
ppb9 at pci0 dev 4 function 0 Intel 5000 PCIE rev 0x12
pci10 at ppb9 bus 12
em0 at pci10 dev 0 function 0 Intel PRO/1000 PT (82571EB) rev 0x06: irq 5, 
address 00:15:17:15:16:b4
em1 at pci10 dev 0 function 1 Intel PRO/1000 PT (82571EB) rev 0x06: irq 11, 
address 00:15:17:15:16:b5
ppb10 at pci0 dev 5 function 0 Intel 5000 PCIE rev 0x12
pci11 at ppb10 bus 13
ppb11 at pci0 dev 6 function 0 Intel 5000 PCIE rev 0x12
pci12 at ppb11 bus 14
em2 at pci12 dev 0 function 0 Intel PRO/1000 PT (82571EB) rev 0x06: irq 5, 
address 00:15:17:15:16:b2
em3 at pci12 dev 0 function 1 Intel PRO/1000 PT (82571EB) rev 0x06: irq 11, 
address 00:15:17:15:16:b3
ppb12 at pci0 dev 7 function 0 Intel 5000 PCIE rev 0x12
pci13 at ppb12 bus 15
pchb1 at pci0 dev 16 function 0 Intel 5000 Error Reporting rev 0x12
pchb2 at pci0 dev 16 function 1 Intel 5000 Error Reporting rev 0x12
pchb3 at pci0 dev 16 function 2 Intel 5000 Error Reporting rev 0x12
pchb4 at pci0 dev 17 function 0 Intel 5000 Reserved rev 0x12
pchb5 at pci0 dev 19 function 0 Intel 5000 Reserved rev 0x12
pchb6 at pci0 dev 21 function 0 Intel 5000 FBD rev 0x12
pchb7 at pci0 dev 22 function 0 Intel 5000 FBD rev 0x12
ppb13 at pci0 dev 28 function 0 Intel 6321ESB PCIE rev 0x09
pci14 at ppb13 bus 4
ppb14 at pci14 dev 0 function 0 ServerWorks PCIE-PCIX rev 0xc2
pci15 at ppb14 bus 5
bnx1 at pci15 dev 0 function 0 Broadcom BCM5708 rev 0x11: irq 5, address 
00:15:c5:e9:d5:06
brgphy1 at bnx1 phy 1: BCM5708C 10/100/1000baseT PHY, rev. 5
uhci0 at pci0 dev 29 function 0 Intel 6321ESB USB rev 0x09: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1 Intel 6321ESB USB rev 0x09: irq 10
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2 Intel 6321ESB USB rev 0x09: irq 11
usb2 at 

Re: ARCNet Support

2006-12-15 Thread Reyk Floeter
On Fri, Dec 15, 2006 at 04:07:24PM -0500, Zachary Miscikoski wrote:
 I know many of you will laugh at this, but is there any ARCNet support under
 OpenBSD?
 

from http://www.openbsd.org/cgi-bin/cvsweb/src/sys/net/Attic/if_arcsubr.c:

Revision 1.24, Tue Jul 18 11:52:12 2006 UTC (4 months, 4 weeks ago) by dlg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.23: +1 -1 lines
FILE REMOVED

get rid of arc network support. we have no users of it so this is dead
code. however, it is still cluttering up the kernel namespace a bit. it is
better gone.

ok claudio@



Re: dhcpd question

2006-12-15 Thread Emilio Perea
On Fri, Dec 15, 2006 at 10:47:32PM +, Craig Skinner wrote:
 Don't do that. DJB junk is not in ports for good reasons.

As far as I know, DJB software is not in ports because his opinions on
licensing and filesystem hierarchy are very different from Theo's (and
most everybody else's) not because it's junk.  There's no reason to
avoid it if you know what you are doing and do your homework.



Re: dhcpd question

2006-12-15 Thread Markus Bergkvist

I noticed no-one has suggested dnsmasq, any reason for that? Just curious.

/Markus


Craig Skinner wrote:

On Fri, Dec 15, 2006 at 12:04:15AM +0530, Siju George wrote:

long time back I did this on my firewalls

http://cr.yp.to/djbdns/install.html
http://cr.yp.to/djbdns/run-cache-x.html



Don't do that. DJB junk is not in ports for good reasons.

Bind is patched and chrooted in base. It wont take long to set up a
caching proxy resolver for a LAN. If you get stuck, just ask.




Re: Moving a 100GB directory tree with lots of hardlinks

2006-12-15 Thread Daniel A. Ramaley
Try something like this:

rsync -avvHR /source/. /destination

The -vv is optional, but will print a line for each file as it is being 
copied. If the copy is interrupted partway through, just run it again 
and it'll pick up where it left off. If you don't have rsync installed, 
look for it in packages or ports.

On Friday 15 December 2006 10:22, you wrote:
OpenBSD 3.7 - i386
Pentium 4 3GHz - 1GB RAM - 2GB swap

Hello list,

For the past 3 weeks, I have been working on a difficult problem:
 moving a backuppc (http://backuppc.sourceforge.net/) pool from a
 RAID0 to a big disk, in order to free the RAID0 before rebuilding a
 RAID5.

The RAID0 has one partition, its size is 2112984700 blocks
 (512-blocks), roughly 1008GB, which is close to the maximum allowed
 by ffs. The big disk is 300GB.

I need to move 96GB of data which are, due to backuppc design, full of
hardlinks!

So far, I have tried to use:
1) dd: impossible because the partitions cannot be the same size
(and the RAID5 won't be the same size as the RAID0)
2) pax -rw: after transferring almost 70GB, it bails out with a
Segmentation fault
3) tar to archive: after something like 60GB, it complains with
 some file name too long errors
4) gtar to archive (from package gtar-1.15.1p0-static.tgz): ends
 up with a gtar: memory exhauted error
5) dump to file: successful but
5') restore from file: stops even before starting due to a no
memory for entry table error (there is still a lot of unused memory
 and swap - and no ulimit)

Any help is appreciated because I really don't know what to do next.

Matthias Bertschy
Echo Technologies SA

-- 

Dan RamaleyDial Center 118, Drake University
Network Programmer/Analyst 2407 Carpenter Ave
+1 515 271-4540Des Moines IA 50311 USA



mixerctl issue on macppc

2006-12-15 Thread Ben Calvert
using the current snapshot from 12/14 on Macppc, using a Tibook 400,
using mixerctl to set the output volumes to 0 results in low volume,
instead of no volume.


$ mixerctl -a
outputs.select=speaker
outputs.speaker=0,0
outputs.headphones=0,0
source=cd
master=0,0

What else should I be looking at?

Thanks,

ben

-
   Calvin: Sometimes when I'm talking, my words can't keep up with my
thoughts. I wonder why we think faster than we speak.  Hobbes: Probably
so we can think twice.



Re: openbsd 4.0 ralink problem low operation range

2006-12-15 Thread Sepherosa Ziehau

On 12/16/06, Jonathan Gray [EMAIL PROTECTED] wrote:

On Fri, Dec 15, 2006 at 04:14:14PM +0800, Sepherosa Ziehau wrote:
 On 12/14/06, earx [EMAIL PROTECTED] wrote:
 ralink is the worst radio chipset in term of radio performance
 but the best documented for driver :(

 I probably missed something here, except for some Linux drivers, I
 didn't remember Ralink had released any formal documents about its
 MACs and RFs.  Please point out, if I am wrong here, and please post
 the URL of the best document if possible.  Thanks.

 Best Regards,
 sephe

Documentation for Ralink is not on a website but rather a
explain why you're interested and they'll send it to you basis.


Aha, thanks :-)

Best Regards,
sephe

--
Live Free or Die



Digital DEC VT-420 to give away

2006-12-15 Thread Jan Prunk

Hello !

Our company is doing a yearly cleanup. There are 4 Digital DEC VT-420
terminals for waste. The cleanup should happen sometime soon in the
next few weeks. So if anyone would like to get one of them please
contact me on my email, as I cannot store them for a long time, since
I don't have enough space in my apartment.

The terminals are in working condition, some of them even come with a keyboard.

You could pick them up FREE of charge in Ljubljana, Slovenia, or I
could ship them to you via POST, the charge is 40 Euros per shipment
for the countries inside EU.

Feel free to post this message to any other forums, where you think
that people would be interested. But please if you would like to get
any of the terminals, contact me on my email janprunk _at_ gmail _dot_
com as I don't monitor the mailing lists.

Kind regards,
Jan Prunk



DNS servers by OS?

2006-12-15 Thread stan
Can anyone point me to a source of information on the percentaged
of DNS servers by OS?

-- 
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)



Re: DNS servers by OS?

2006-12-15 Thread Darren Spruell

On 12/15/06, stan [EMAIL PROTECTED] wrote:

Can anyone point me to a source of information on the percentaged
of DNS servers by OS?


I don't know if there is a source of information for that, but this
suggests the high level breakdown pretty well:

http://mydns.bboy.net/survey/

DS



package update trouble

2006-12-15 Thread pmatulis
On a new 4.0 installation I am trying out the pkg_add update procedure for the 
first time and it is giving me grief.  Please look at the following output and 
let me know how the tool is finding the situation so ambiguous and also how I 
should proceed.

# pkg_add -vv -n -u clamav-0.88.5
Error from ftp://ftp.openbsd.org/pub/OpenBSD/4.0/packages/i386/:
Unknown command.
No need to update unzip-5.52
No need to update lha-1.14i.ac20050924
No need to update curl-7.15.4
No need to update zoo-2.10.1p1
No need to update gmp-4.1.4p0
Candidates for updating clamav-0.88.5 - clamav-0.88.6 clamav-0.88.5 
clamav-0.88.4
Ambiguous: clamav-0.88.5 could be clamav-0.88.4 clamav-0.88.5 clamav-0.88.6
No need to update arc-5.21op0
No need to update bzip2-1.0.3
Cannot find updates for unarj-2.43 unrar-3.54p0

TIA,

Peter



console switching problem from desktop

2006-12-15 Thread Denny White

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


There are actually 2 problems. First one is, when using
ctrl-alt-f1  so forth, it goes to the other console fine,
but when I try to switch back, all I see on the screen is
the output from the underlying x rather than the desktop.
The other problem is, when I'm on the desktop in an xterm
window, it's as though the settings in .profile like my
aliases I have setup, aren't recognized, like they're not
in the current environment settings. I never had anything
like this happen when running 3.9. Now, on 4.0, I did a
clean install, started having the problem, moved to stable,
now current. Problem is still there. Right now I have 2
extra consoles configured in rc.local.conf but it was the
same before I added them. I thought I had sent this message
2 days ago, but it never showed up in my daily mail, so, if
it did go through  I didn't get it for some reason, sorry.
Also, I did read everything I could think of  google all
over, trying to find some info on this problem. I've worked
on it for 2 days now, but I'm just not getting anywhere.
Don't know if it'll help, but I'm including some system info
below. It's a big message, but I tried to include anything I
could think of that'd help.
- ---

OpenBSD 4.0-current (GENERIC) #2: Thu Dec 14 03:37:12 CST 2006
 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium III (GenuineIntel 686-class) 802 MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
real mem  = 268005376 (261724K)
avail mem = 236601344 (231056K)
using 3302 buffers containing 13524992 bytes (13208K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(f4) BIOS, date 07/19/02, BIOS32 rev. 0 @ 0xfb140, 
SMBIOS rev. 2.3 @ 0xf0800 (35 entries)
bios0: Concentric 1234
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 70102 dobusy 1 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf/0xdf84
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdef0/112 (5 entries)
pcibios0: PCI Exclusive IRQs: 9 10 11
pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82371SB ISA rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc/0x8000 0xc8000/0x800
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 82815 Hub rev 0x04
ppb0 at pci0 dev 30 function 0 Intel 82801BA AGP rev 0x05
pci1 at ppb0 bus 1
vga1 at pci1 dev 5 function 0 3DFX Interactive Voodoo3 rev 0x01
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
fxp0 at pci1 dev 8 function 0 Intel 82562 rev 0x03, i82562: irq 11, address 
00:01:80:0b:76:77
inphy0 at fxp0 phy 1: i82562ET 10/100 PHY, rev. 0
xl0 at pci1 dev 10 function 0 3Com 3c905C 100Base-TX rev 0x78: irq 11, 
address 00:01:03:1a:2f:21
bmtphy0 at xl0 phy 24: Broadcom 3C905C internal PHY, rev. 7
ichpcib0 at pci0 dev 31 function 0 Intel 82801BA LPC rev 0x05
pciide0 at pci0 dev 31 function 1 Intel 82801BA IDE rev 0x05: DMA, channel 0 
wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: WDC WD400BB-00AUA1
wd0: 16-sector PIO, LBA, 38166MB, 78165360 sectors
wd1 at pciide0 channel 0 drive 1: WDC WD300BB-00AUA1
wd1: 16-sector PIO, LBA, 28629MB, 58633344 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 4
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: HP, CD-Writer+ 9500b, 1.06 SCSI0 5/cdrom 
removable
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2
uhci0 at pci0 dev 31 function 2 Intel 82801BA USB rev 0x05: irq 10
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
ichiic0 at pci0 dev 31 function 3 Intel 82801BA SMBus rev 0x05: irq 9
iic0 at ichiic0
uhci1 at pci0 dev 31 function 4 Intel 82801BA USB rev 0x05: irq 11
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
auich0 at pci0 dev 31 function 5 Intel 82801BA AC97 rev 0x05: irq 9, ICH2 AC97
ac97: codec id 0x41445360 (Analog Devices AD1885)
ac97: codec features headphone, Analog Devices Phat Stereo
audio0 at auich0
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
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
lm0 at isa0 port 0x290/8: W83627HF
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 

Dual-boot with Vista

2006-12-15 Thread Steve Shockley
Has anyone successfully gotten Vista to dual-boot with OpenBSD using 
bcdedit?  I found EasyBCD which will transfer control to Grub, but it 
seems I shouldn't have to load Grub to boot OpenBSD.




Re: package update trouble

2006-12-15 Thread pmatulis
- Original Message -
From: Daniel Ouellet [EMAIL PROTECTED]
Date: Friday, December 15, 2006 11:17 pm
Subject: Re: package update trouble
To: [EMAIL PROTECTED]
Cc: misc@openbsd.org

 [EMAIL PROTECTED] wrote:
  On a new 4.0 installation I am trying out the pkg_add update 
 procedure for the first time and it is giving me grief.  
 Please look at the following output and let me know how the tool 
 is finding the situation so ambiguous and also how I should proceed.
  
  # pkg_add -vv -n -u clamav-0.88.5
  Error from ftp://ftp.openbsd.org/pub/OpenBSD/4.0/packages/i386/:
  Unknown command.
  No need to update unzip-5.52
  No need to update lha-1.14i.ac20050924
  No need to update curl-7.15.4
  No need to update zoo-2.10.1p1
  No need to update gmp-4.1.4p0
  Candidates for updating clamav-0.88.5 - clamav-0.88.6 clamav-
 0.88.5 clamav-0.88.4
  Ambiguous: clamav-0.88.5 could be clamav-0.88.4 clamav-0.88.5 
 clamav-0.88.6
 
 man pkg_add:
 
   -
 i   Switch on interactive 
 mode.  pkg_add may ask questions to the
user if faced with difficult decisions.
 
 
 There is multiple version available and pkg_add doesn't know 
 witch one 
 you want, so use the interactive mode to specify that. You will 
 just 
 have to answer the question when it come up.

Fair enough.  I tried it and I got a list of available packages.  It is a 
little confusing because the output is carping about the candidate being 
ambiguous -not what version the candidate should be updated to.  Anyways, it 
still gives me:

Cannot find updates for unarj-2.43 unrar-3.54p0

I installed both by ports (using an old install script for automating some 
stuff; I guess back then these two did not exist as packages).  Strangely, 
pkg_info shows unarj but not unrar.   Any comments?

Peter



Re: package update trouble

2006-12-15 Thread Antti Harri

On Fri, 15 Dec 2006, [EMAIL PROTECTED] wrote:


Cannot find updates for unarj-2.43 unrar-3.54p0

I installed both by ports (using an old install script for automating some 
stuff; I guess back then these two did not exist as packages).  Strangely, 
pkg_info shows unarj but not unrar.   Any comments?


Their license doesn't permit this. You must update
these from ports-tree.

--
Antti Harri



Re: package update trouble

2006-12-15 Thread Daniel Ouellet

[EMAIL PROTECTED] wrote:

- Original Message -
From: Daniel Ouellet [EMAIL PROTECTED]
Date: Friday, December 15, 2006 11:17 pm
Subject: Re: package update trouble
To: [EMAIL PROTECTED]
Cc: misc@openbsd.org


[EMAIL PROTECTED] wrote:
On a new 4.0 installation I am trying out the pkg_add update 
procedure for the first time and it is giving me grief.  
Please look at the following output and let me know how the tool 
is finding the situation so ambiguous and also how I should proceed.

# pkg_add -vv -n -u clamav-0.88.5
Error from ftp://ftp.openbsd.org/pub/OpenBSD/4.0/packages/i386/:
Unknown command.
No need to update unzip-5.52
No need to update lha-1.14i.ac20050924
No need to update curl-7.15.4
No need to update zoo-2.10.1p1
No need to update gmp-4.1.4p0
Candidates for updating clamav-0.88.5 - clamav-0.88.6 clamav-

0.88.5 clamav-0.88.4
Ambiguous: clamav-0.88.5 could be clamav-0.88.4 clamav-0.88.5 

clamav-0.88.6

man pkg_add:

  -
i   Switch on interactive 
mode.  pkg_add may ask questions to the

   user if faced with difficult decisions.


There is multiple version available and pkg_add doesn't know 
witch one 
you want, so use the interactive mode to specify that. You will 
just 
have to answer the question when it come up.


Fair enough.  I tried it and I got a list of available packages.  It is a 
little confusing because the output is carping about the candidate being 
ambiguous -not what version the candidate should be updated to.  Anyways, it 
still gives me:

Cannot find updates for unarj-2.43 unrar-3.54p0

I installed both by ports (using an old install script for automating some 
stuff; I guess back then these two did not exist as packages).  Strangely, 
pkg_info shows unarj but not unrar.   Any comments?

Peter



Google

http://www.google.com/search?hl=enq=unarj+%2BopenbsdbtnG=Google+Search

give you the 4th one from the list here:

http://archives.neohapsis.com/archives/openbsd/2006-11/0885.html

Quote:

Both unarj and unrar are dependencies of ClamAV, but they are not licensed
for binary download. They must be built from ports.

See FAQ 15.4.3.

So, build it, then install it.



Re: dhcpd question

2006-12-15 Thread Siju George

On 12/16/06, Craig Skinner [EMAIL PROTECTED] wrote:

On Fri, Dec 15, 2006 at 12:04:15AM +0530, Siju George wrote:

 long time back I did this on my firewalls

 http://cr.yp.to/djbdns/install.html
 http://cr.yp.to/djbdns/run-cache-x.html


Don't do that. DJB junk is not in ports for good reasons.

Bind is patched and chrooted in base. It wont take long to set up a
caching proxy resolver for a LAN. If you get stuck, just ask.



Thankyou so much Craig for the offer :-)
infact i did plan to switch over to bind with 4.0
haven't upgraded to 4.0 because I was waiting for a new machine and
when it arrived I fell sick and am taking rest at home :-)

Thankyou so much again

kin regards

Siju



Re: package update trouble

2006-12-15 Thread Daniel Ouellet

[EMAIL PROTECTED] wrote:

On a new 4.0 installation I am trying out the pkg_add update procedure for the 
first time and it is giving me grief.  Please look at the following output and 
let me know how the tool is finding the situation so ambiguous and also how I 
should proceed.

# pkg_add -vv -n -u clamav-0.88.5
Error from ftp://ftp.openbsd.org/pub/OpenBSD/4.0/packages/i386/:
Unknown command.
No need to update unzip-5.52
No need to update lha-1.14i.ac20050924
No need to update curl-7.15.4
No need to update zoo-2.10.1p1
No need to update gmp-4.1.4p0
Candidates for updating clamav-0.88.5 - clamav-0.88.6 clamav-0.88.5 
clamav-0.88.4
Ambiguous: clamav-0.88.5 could be clamav-0.88.4 clamav-0.88.5 clamav-0.88.6


man pkg_add:

 -i   Switch on interactive mode.  pkg_add may ask questions to the
  user if faced with difficult decisions.


There is multiple version available and pkg_add doesn't know witch one 
you want, so use the interactive mode to specify that. You will just 
have to answer the question when it come up.


Best,

Daniel



Re: console switching problem from desktop

2006-12-15 Thread Jeremy Huiskamp

On 15-Dec-06, at 8:42 PM, Denny White wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


There are actually 2 problems. First one is, when using
ctrl-alt-f1  so forth, it goes to the other console fine,
but when I try to switch back, all I see on the screen is
the output from the underlying x rather than the desktop.


http://www.openbsd.org/faq/faq7.html#SwitchConsole



Re: vim Easy Mode Broken?

2006-12-15 Thread Chris Kuethe

On 12/15/06, Jim Razmus [EMAIL PROTECTED] wrote:

So something definitely changed with vim between the 3.9 and 4.0
releases.  I'm digging into the vim cvs history for clues along with our
ports tree for clues.


3.9 shipped with Vim 6.4.6, 4.0 had Vim 7.0.42. Lots of stuff changed
between Vim6 and Vim7

CK

--
GDB has a 'break' feature; why doesn't it have 'fix' too?