PF - load balance/round-robin/multiple ports

2007-09-15 Thread Adam PAPAI

Hello List,

I'd like to do a similar thing like this:

web_servers = { 10.0.0.10, 10.0.0.11, 10.0.0.13 }

rdr on $ext_if proto tcp from any to any port 80 - $web_servers \
round-robin sticky-address


But I'd like to define multiple ports and I'd like to loop through the 
ports.



So like this: (but of course this is not working)
web_ports = { 88, 81, 82 }
web_server = { 192.168.1.1 }

rdr on $ext_if proto tcp from any to any port 80 - $web_server port 
$web_ports round-robin sticky-address


Is it possible to do something like this? I'd like to run 3 or more http 
servers on the same host on different ports, and I'd like to redirect 
the request received to port 80 to a random port from the $web_ports list.


Thanks in advance

--
Adam PAPAI
D i g i t a l Influence
http://www.digitalinfluence.hu
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735 (Hungary)



apache + php

2007-07-11 Thread Adam PAPAI
 at mainbus0: apid 13 pa 0xfec01000, version 11, 16 pins
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 ServerWorks CNB20LE Host rev 0x06
pchb1 at pci0 dev 0 function 1 ServerWorks CNB20LE Host rev 0x06
pci1 at pchb1 bus 1
ahc0 at pci1 dev 3 function 0 Adaptec AIC-7892 U160 rev 0x02: apic 13 
int 12 (irq 9)

scsibus0 at ahc0: 16 targets
ahc0: target 0 using 8bit transfers
ahc0: target 0 using asynchronous transfers
sd0 at scsibus0 targ 0 lun 0: IBM-ESXS, ST336605LC !#, B247 SCSI3 
0/direct fixed

sd0: 34715MB, 29550 cyl, 4 head, 601 sec, 512 bytes/sec, 71096640 sec total
ahc0: target 1 using 8bit transfers
ahc0: target 1 using asynchronous transfers
sd1 at scsibus0 targ 1 lun 0: IBM-PSG, ST39175LC !#, 0430 SCSI2 
0/direct fixed

sd1: 8678MB, 11721 cyl, 5 head, 303 sec, 512 bytes/sec, 17774160 sec total
safte0 at scsibus0 targ 8 lun 0: IBM, FTlV1 S2, 0 SCSI2 3/processor fixed
vga1 at pci0 dev 1 function 0 S3 Savage 4 rev 0x04
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
fxp0 at pci0 dev 2 function 0 Intel 8255x rev 0x08, i82559: apic 13 
int 11 (irq 10), address 00:02:55:54:52:8e

inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
fxp1 at pci0 dev 10 function 0 Intel 8255x rev 0x08, i82559: apic 13 
int 9 (irq 10), address 00:02:55:54:52:8f

inphy1 at fxp1 phy 1: i82555 10/100 PHY, rev. 4
piixpm0 at pci0 dev 15 function 0 ServerWorks OSB4 rev 0x50: SMBus 
disabled

pciide0 at pci0 dev 15 function 1 ServerWorks OSB4 IDE rev 0x00: DMA
atapiscsi0 at pciide0 channel 0 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: TEAC, CD-224E, 2.7B SCSI0 5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 2
ohci0 at pci0 dev 15 function 2 ServerWorks OSB4/CSB5 USB rev 0x04: 
apic 14 int 7 (irq 7), version 1.0, legacy support

usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: ServerWorks OHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
isa0 at mainbus0
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
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
pccom2 at isa0 port 0x3e8/8 irq 5: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
ahc0: target 0 using 16bit transfers
ahc0: target 0 synchronous at 80.0MHz DT, offset = 0x3f
dkcsum: sd0 matches BIOS drive 0x80
ahc0: target 1 using 16bit transfers
ahc0: target 1 synchronous at 40.0MHz, offset = 0xf
dkcsum: sd1 matches BIOS drive 0x81
root on sd0a
rootdev=0x400 rrootdev=0xd00 rawdev=0xd02
WARNING: / was not properly unmounted
arp: attempt to add entry for 10.5.5.5 on fxp0 by 00:03:ba:11:db:58 on fxp1
arsenic[4.1][wooh]

Thanks in advance



--
Adam PAPAI
D i g i t a l Influence
http://www.digitalinfluence.hu
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735 (Hungary)



Re: DNS, bind9, and other

2007-03-19 Thread Adam PAPAI

JOHN LUCKEY wrote:

Anyone have or know of a good beginner's tutorial on how to
setup/configure a openBSD box to do DNS on a local network?
The more concrete/cookbook the examples, the better.


bind is part of the base system @ OpenBSD (default install).

These manuals should help.

man named
man named.conf
BIND 9 Adminstrators Reference Manual.

Google for them.


--
Adam PAPAI
D i g i t a l Influence
http://www.digitalinfluence.hu
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735 (Hungary)



When will php5-gd-5.1.4-no_x11.tgz be fixed?

2007-02-07 Thread Adam PAPAI
It's really hard to install php5-gd-5.1.4-no_x11.tgz on a server without 
xbase40.tgz...


astatine[wooh] sudo pkg_add php5-gd-5.1.4-no_x11.tgz
Can't install php5-gd-5.1.4-no_x11.tgz: lib not found freetype.13.1
Even by looking in the dependency tree:
gettext-0.14.5p1, jpeg-6bp3, expat-2.0.0, t1lib-5.1.0p0, 
php5-core-5.1.4p1, libiconv-1.9.2p3, png-1.2.12p0, libxml-2.6.26

Maybe it's in a dependent package, but not tagged with @lib ?
(check with pkg_info -K -L)
If you are still running 3.6 packages, update them.

I do not wan't to install Xlibs on my box.

When will it be fixed?

Thanks in advance

--
Adam PAPAI
D i g i t a l Influence
http://www.digitalinfluence.hu
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735 (Hungary)
Phone: +49 176-67264167 (Germany)



httpd, Unable to fork new process - Resource question

2007-01-28 Thread Adam PAPAI
, Ultra-DMA mode 5
ichiic0 at pci0 dev 31 function 3 Intel 82801GB SMBus rev 0x01: irq 11
iic0 at ichiic0
adt0 at iic0 addr 0x2e: emc6d10x (ADT7460) rev 68
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
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask ff7d netmask ff7d ttymask 
pctr: user-level cycle counter enabled
dkcsum: wd0 matches BIOS drive 0x80
dkcsum: wd1 matches BIOS drive 0x81
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302

--
Adam PAPAI
D i g i t a l Influence
http://www.digitalinfluence.hu
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735 (Hungary)
Phone: +49 176-67264167 (Germany)



Re: httpd, Unable to fork new process - Resource question

2007-01-28 Thread Adam PAPAI

Adam PAPAI wrote:

Hi,

On my box (3.9) I get these error messages in /var/www/logs/error_log

[Sun Jan 28 11:13:30 2007] [error] (35)Resource temporarily unavailable: 
fork: Unable to fork new process



Damn, it work's but if I start it as sudo apachectl start, it inherits 
my limits, which is still 64 for maxproc.


Solved.

--
Adam PAPAI
D i g i t a l Influence
http://www.digitalinfluence.hu
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735 (Hungary)
Phone: +49 176-67264167 (Germany)



Re: Bug in egrep?

2006-09-07 Thread Adam PAPAI

Otto Moerbeek wrote:

On Thu, 7 Sep 2006, AndrC)s wrote:


egrep shouldn't find anything, you are searching for the string  in
some text here, clearly, it isn't there.


Nah, an empty search pattern should match any line, as defined by SU
and the man page. The only problem is if the -x option takes
precendence or not. SU does not say a word about that.

If anybody has access to a Solaris machine, I like to know what the
test does there.


But the other grep in the Solaris says:

cnoc[spsy] echo some text here | /usr/xpg4/bin/egrep -x ; echo $status

cnoc[spsy]

So nothing.

--
Adam PAPAI
D i g i t a l Influence
http://www.digitalinfluence.hu
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735 (Hungary)
Phone: +49 176-67264167 (Germany)



Re: Bug in egrep?

2006-09-07 Thread Adam PAPAI

Otto Moerbeek wrote:

On Thu, 7 Sep 2006, AndrC)s wrote:


egrep shouldn't find anything, you are searching for the string  in
some text here, clearly, it isn't there.


Nah, an empty search pattern should match any line, as defined by SU
and the man page. The only problem is if the -x option takes
precendence or not. SU does not say a word about that.

If anybody has access to a Solaris machine, I like to know what the
test does there.


cnoc[spsy] uname -a
SunOS cnoc 5.8 Generic_117350-20 sun4u sparc SUNW,Sun-Blade-1500
cnoc[spsy] echo some text here | egrep -x  ; echo $status
egrep: illegal option -- x
usage: egrep [ -bchilnsv ] [ -e exp ] [ -f file ] [ strings ] [ file ] ...
cnoc[spsy]

No -x option.

--
Adam PAPAI
D i g i t a l Influence
http://www.digitalinfluence.hu
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735 (Hungary)
Phone: +49 176-67264167 (Germany)



Re: PCMCIA Wireless recommendation

2006-09-03 Thread Adam PAPAI

Harpalus a Como wrote:

I just purchased an Acer 3624WXCi laptop, and I discovered that OpenBSD does
not recognize the built-in wireless adapter. I want to purchase a
well-supported, quality wireless card, but I have been unable to find enough
information on this. Does anybody have any recommendations for a
well-supported PCMCIA wireless card that supports a/b/g, and has good range?
Many thanks in advance.


Buffalo WLI-CB-B11 is working perfectly but only in a/b mode. This is a 
very sensitive card, so I hope you'll like it.


--
Adam PAPAI
D i g i t a l Influence
http://www.digitalinfluence.hu
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735 (Hungary)
Phone: +49 176-67264167 (Germany)



Re: Prompted for password even though ssh keys are setup

2006-08-25 Thread Adam PAPAI

Greg Thomas wrote:

I've got a little backup script piping dump to ssh to my backup server
rice, and I've got my keys setup:

=
[EMAIL PROTECTED]:/home/ethant# uname -a
OpenBSD grits 3.9 GENERIC#107 i386
[EMAIL PROTECTED]:/home/ethant# ssh rice
Last login: Fri Aug 25 00:14:42 2006 from grits
OpenBSD 4.0-beta (GENERIC) #1083: Mon Aug 21 21:24:02 MDT 2006


This means you can login with RSA key auth as root.



[EMAIL PROTECTED]:/home/ethant# cat test.sh
#!/bin/sh
/sbin/dump -0auf - /dev/rwd0a | gzip | \
  ssh [EMAIL PROTECTED] cat  /grits/$(date +%Y%m%d)_root.dump.gz

[EMAIL PROTECTED]:/home/ethant# sudo test.sh
 DUMP: Date of this level 0 dump: Fri Aug 25 00:23:42 2006
 DUMP: Date of last level 0 dump: the epoch
 DUMP: Dumping /dev/rwd0a (/) to standard output
 DUMP: mapping (Pass I) [regular files]
 DUMP: mapping (Pass II) [directories]
 DUMP: estimated 39523 tape blocks.
 DUMP: Volume 1 started at: Fri Aug 25 00:23:42 2006
 DUMP: dumping (Pass III) [directories]
 DUMP: dumping (Pass IV) [regular files]
[EMAIL PROTECTED]'s password:


It seems you only have pubkey for the [EMAIL PROTECTED] and not for [EMAIL PROTECTED] 
:) Please verify your pubkey in your .ssh/authorized_keys for user: ethant.


--
Adam PAPAI
D i g i t a l Influence
http://www.digitalinfluence.hu
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735 (Hungary)
Phone: +49 176-67264167 (Germany)



getmicrouptime/microuptime undefined reference to `microuptime'

2006-07-29 Thread Adam PAPAI

Hi,

I'm lookin for a solution on getting the system uptime via syscall.

I tried to use the microuptime/getmicrouptime but every time I intended 
to compile it, I got the following error:


/tmp//ccy16835.o(.text+0x20): In function `main':
: undefined reference to `microuptime'
collect2: ld returned 1 exit status

I included the appropriate headers:
#include stdio.h
#include sys/time.h

I didn't find other funtions to get the uptime for a system. Did I miss 
something? (library or something)


Thanks in advance

--
Adam PAPAI
D i g i t a l Influence
http://www.digitalinfluence.hu
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735 (Hungary)
Phone: +49 176-67264167 (Germany)



Re: getmicrouptime/microuptime undefined reference to `microuptime'

2006-07-29 Thread Adam PAPAI

Adam PAPAI wrote:

Hi,

I'm lookin for a solution on getting the system uptime via syscall.


Hm. It seems sysctl(3) could tell me the uptime.

#include sys/param.h
#include sys/sysctl.h

Thanks anyway :)

--
Adam PAPAI
D i g i t a l Influence
http://www.digitalinfluence.hu
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735 (Hungary)
Phone: +49 176-67264167 (Germany)



Re: X not found

2006-07-05 Thread Adam PAPAI

Lawrence Horvath wrote:

so how do you install that, i was thinking it would just be
# pkg_add /home/music/xbase39.tgz
Can't resolve /home/music/xbase39.tgz


gunzip, tar.

--
Adam PAPAI
D i g i t a l Influence
http://www.digitalinfluence.hu
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735 (Hungary)
Phone: +49 176-67264167 (Germany)



Re: Ports and BSD.MP question

2006-07-02 Thread Adam PAPAI

Gabriel George POPA wrote:




  Neah, Mozilla crashed again. What's the problem:
- the port?
- the libraries?
- ME?
   Did this happened to other people too? On what OpenBSD 
versions? How did they solve this?


I must say yes. :) Sometimes firefox crashs. What pages are related? Are 
there javascripts on the websites? Or so many pictures? Have you 
installed extensions or plugins? If yes, list of them.


--
Adam PAPAI
D i g i t a l Influence
http://www.digitalinfluence.hu
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735 (Hungary)
Phone: +49 176-67264167 (Germany)



Re: BSD.MP question

2006-07-01 Thread Adam PAPAI

Gabriel George POPA wrote:

   Hello,

  I have an Intel P4 processor (with HyperThreading) and I am using a 
bsd.mp kernel. Should I use the bare bsd kernel?
I've noticed that a lot of desktop applications are crashing (Mozilla, 
for example). Could this be the cause (MP instead of bare?)?
Servers don't crash. They act normally. But Gtk applications really 
generate a lot of problems. I used ports compiled by me (you know,
no pkg_add, but make install in the ports collection tree). But I 
replaced all libraries with versions offered by ftp sites. I'm using
standard configuration for OpenBSD 3.8. What could be the cause? Why so 
many desktop applications (in KDE, GNOME, Gtk apps etc.)

crash?


Just switch HT off and use the bsd instead of the bsd.mp.

--
Adam PAPAI
D i g i t a l Influence
http://www.digitalinfluence.hu
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735 (Hungary)
Phone: +49 176-67264167 (Germany)



Re: automatically connect to wireless network

2006-06-27 Thread Adam PAPAI
On Wed, June 28, 2006 6:45, Juan Luis Moyano said:
 Hi guys, is there any script or some package that lets me connect my
 obsd box automatically to an unsecured wireless AP? If so, is it
 possible for the connection to be made to the one that has the best
 signal strength? TIA.

Just read your wireless driver's manual.

eg.:

The following hostname.if(5) example creates a host-based access point on
boot:

inet 192.168.1.1 255.255.255.0 NONE media autoselect
mediaopt hostap nwid my_net chan 11


-- 
Adam PAPAI
D i g i t a l Influence
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735 (Hungary)
Phone: +49 176-67264167 (Germany)



Re: Updating 3.9

2006-04-20 Thread Adam PAPAI
Hutger H. said:
 Hello Folks,

 I've got a question about OpenBSD 3.9 update ... I have a firewall
 running 3.9 release and I'd like to know the best away to keep the
 system updated, such as debian does using APT. Any suggestions?


1. Check every day/hour/minute the www.openbsd.org/errata.html page.

or

2. Use -CURRENT and run a script including pkg_add -u usually and mail
yourself the output. If there are new updates for the packages available,
you can just install them.

or

3. Compile your OpenBSD system from CVS, but this is not recomended. The
best way is to follow the releases. They are good as they can be. :)

But

I guess OpenBSD is a system, you don't have to upgrade every day/week like
Gentoo or Debian Linux. So if you need some new, you could use -CURRENT as
I mentioned above, but I don't think, a firewall needs to be updated every
week.

Best regards.


-- 
Adam PAPAI
D i g i t a l Influence
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735 (Hungary)
Phone: +49 176-67264167 (Germany)



Re: pf and detection of non-resolvable ip numbers

2006-04-13 Thread Adam Papai
Michael Schmidt said:
 Hello,

 reading several man pages did give no answer to this:
 Is there a way within pf that pf can detect especially those ip numbers
 which do not belong to a hostname, in other words which are not
 resolvable to hostnames?

 The reason why I am asking is that I want to catch especially these
 connections.

I don't think so.

Just try to imagine how many packets/sec are running through the pf.
If pf tries to resolv all these hostname your system's load would be in 
the sky... and your net would be damnly slow.

This is why pf uses static ip addresses for the rules.

-- 
Adam PAPAI
D i g i t a l Influence
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735



xSeries 335 GENERIC.MP kernel panic

2006-03-18 Thread Adam PAPAI

Hello misc,

My xSeries 335 Dual Xeon 2.0 Ghz server has kernel panic when the load 
is heavy. (e.g.: 4-5).


OpenBSD 3.8
GENERIC.MP
just installed a few minutes ago.

The trace output:

panic: fp_save ipi didn't
Stopped at  Debugger+0x4:   leave
ddb{0}trace
Debugger(1,d187f800,e9b62f6c, d187f800, d187f800) at Debugger +0x4
panic(d0558f6d, d0448e28,8,283,d0348405) at panic+0x63
npxsave_proc(d7b8fa58,1,1,1) at npxsave_proc+0xb1
npxdna_xmm(d0684be0) at npxdna_xmm+0x103
ddb{0}


My last (top), (cannot copy ps output sorry ;/) output is:

load averages:  4.96,  3.51,  2.20 


  14:45:55
70 processes:  2 running, 66 idle, 2 on processor
CPU0 states: 24.6% user,  0.0% nice, 69.7% system,  0.0% interrupt, 5.8% 
idle
CPU1 states: 28.5% user,  0.0% nice, 57.5% system,  0.0% interrupt, 
14.0% idle

Memory: Real: 25M/133M act/tot  Free: 871M  Swap: 0K/512M used/tot
   STATEWAIT TIMECPU COMMAND

19673 root  -60 1224K 1668K sleep/0  piperd   0:02  2.98% cvs
 5784 root  290 2080K 3116K onproc/1 -0:01  1.81% ssh
30186 root  -60  308K  540K sleep/1  piperd   0:00  0.20% sed
14693 root  100  688K  832K sleep/0  wait 0:00  0.10% make
27097 root  180  624K  468K sleep/1  pause0:00  0.10% sh
 5411 root  -60  456K  568K sleep/0  piperd   0:00  0.05% sed
20610 root  180  420K  296K sleep/0  pause0:00  0.05% sh
 7811 wooh   20  804K 1516K sleep/1  select   0:03  0.00% screen
13953 wooh   20 3176K 1432K sleep/0  select   0:01  0.00% sshd
27167 _postgre   20 2204K 2832K idle select   0:00  0.00% postgres
 2104 wooh  180  496K  492K idle pause0:00  0.00% ksh
31268 wooh  180  596K  492K sleep/0  pause0:00  0.00% ksh
13648 root   20  468K 1136K idle select   0:00  0.00% sshd
11835 _ntp   20  344K  564K sleep/0  poll 0:00  0.00% ntpd
 6875 root   20 3196K 2096K idle netio0:00  0.00% sshd
11611 _syslogd   20  524K  548K sleep/1  poll 0:00  0.00% syslogd
20637 root   20  316K  280K idle poll 0:00  0.00% dhclient
23778 root  100  768K 1104K idle wait 0:00  0.00% make
12342 root   20  976K  988K sleep/1  select   0:00  0.00% sendmail
21982 root  100  596K 1044K idle wait 0:00  0.00% make
  694 root  100  628K 1004K sleep/0  wait 0:00  0.00% make
 2787 wooh  180  612K  472K idle pause0:00  0.00% ksh
24181 _postgre   20 2248K 1500K sleep/0  select   0:00  0.00% postgres
19209 wooh  180  576K  500K idle pause0:00  0.00% ksh
 5873 root  100  664K 1016K idle wait 0:00  0.00% make
 1529 root  100  500K  780K idle wait 0:00  0.00% make

Any suggestion?

--
Adam PAPAI
D i g i t a l Influence
http://www.digitalinfluence.hu
Phone: +36 30 33-55-735
E-mail: [EMAIL PROTECTED]



raidFrame creating error: sd0(mpt0:0:0): Check Condition (error 0x70) on opcode 0x28

2006-03-15 Thread Adam PAPAI
 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask 0 netmask 0 ttymask 0
pctr: user-level cycle counter enabled
Kernelized RAIDframe activated
cd0(atapiscsi0:0:0): Check Condition (error 0x70) on opcode 0x0
SENSE KEY: Not Ready
 ASC/ASCQ: Medium Not Present
dkcsum: sd0 matches BIOS drive 0x80
dkcsum: sd1 matches BIOS drive 0x81
root on sd0a
rootdev=0x400 rrootdev=0xd00 rawdev=0xd02


--
Adam PAPAI
D i g i t a l Influence
http://www.digitalinfluence.hu
Phone: +36 30 33-55-735
E-mail: [EMAIL PROTECTED]



Re: raidFrame creating error: sd0(mpt0:0:0): Check Condition (error 0x70) on opcode 0x28

2006-03-15 Thread Adam PAPAI

Greg Oster wrote:

Adam PAPAI writes:


Hello misc,

I have an IBM xSeries 335 machine with Dual Xeon processor and 2x73GB 
SCSI Seagate Barracuda 10K rpm disc. I run OpenBSD 3.8 on it.


When I'm creating the raid array (raidctl -iv raid0), I get the 
following error message:


sd0(mpt0:0:0): Check Condition (error 0x70) on opcode 0x28
SENSE KEY: Media Error
 INFO: 0x224c10c (VALID flag on)
 ASC/ASCQ: Read Retries Exhausted
 SKSV: Actual Retry Count: 63
raid0: IO Error.  Marking /dev/sd0d as failed.
raid0: node (Rod) returned fail, rolling backward
Unable to verify raid1 parity: can't read stripe.
Could not verify parity.



Is this early in the initialization or late in the initialization?

Try doing:

 dd if=/dev/rsd0d of=/dev/null bs=10m 

and see if you get the same error message...  



# dd if=/dev/rsd0d of=/dev/null bs=10m
6977+1 records in
6977+1 records out
73160687104 bytes transferred in 1043.771 secs (70092636 bytes/sec)
# dd if=/dev/rsd1d of=/dev/null bs=10m
6977+1 records in
6977+1 records out
73160687104 bytes transferred in 1027.051 secs (71233712 bytes/sec)
#

This means no hdd error.. Then probably the raidFrame has the problem I 
guess..


I have to use /altroot on /dev/sd1a then, or is there a patch for 
raidframe to fix this?




--
Adam PAPAI
D i g i t a l Influence
http://www.digitalinfluence.hu
Phone: +36 30 33-55-735
E-mail: [EMAIL PROTECTED]



Re: raidFrame creating error: sd0(mpt0:0:0): Check Condition (error 0x70) on opcode 0x28

2006-03-15 Thread Adam PAPAI

Greg Oster wrote:

Adam PAPAI writes:

When I'm creating the raid array (raidctl -iv raid0), I get the 
following error message:


sd0(mpt0:0:0): Check Condition (error 0x70) on opcode 0x28
   SENSE KEY: Media Error
INFO: 0x224c10c (VALID flag on)
ASC/ASCQ: Read Retries Exhausted
SKSV: Actual Retry Count: 63
raid0: IO Error.  Marking /dev/sd0d as failed.
raid0: node (Rod) returned fail, rolling backward
Unable to verify raid1 parity: can't read stripe.
Could not verify parity.




This means no hdd error..



Well... no hdd error for this set of reads... Hm  What if you 
push both drives at the same time:


 dd if=/dev/rsd0d of=/dev/null bs=10m 
 dd if=/dev/rsd1d of=/dev/null bs=10m 

?   (Were the drives warm when you did this test, and/or when the 
original media errors were reported?  Does a 'raidctl -iv raid0' work 
now or does it still trigger an error? )




Then probably the raidFrame has the problem I guess..



RAIDframe doesn't know anything about SCSI controllers or SCSI errors... 
all it knows about are whatever VOP_STRATEGY() happens to return to 
it from the underlying driver... 



I have to use /altroot on /dev/sd1a then, or is there a patch for 
raidframe to fix this?



There is no patch for RAIDframe to fix this.  There is either a 
problem with the hardware (most likely), some sort of BIOS 
configuration issue (is it negotiating the right speed for the 
drive?), or (less likely) a mpt driver issue.  Once you figure out 
what the real problem is and fix it, RAIDframe will work just fine :) 


Later...

Greg Oster



After reboot my dmesg end:

rootdev=0x400 rrootdev=0xd00 rawdev=0xd02
Hosed component: /dev/sd0d.
raid0: Ignoring /dev/sd0d.
raid0: Component /dev/sd1d being configured at row: 0 col: 1
 Row: 0 Column: 1 Num Rows: 1 Num Columns: 2
 Version: 2 Serial Number: 100 Mod Counter: 27
 Clean: No Status: 0
/dev/sd1d is not clean !
raid0 (root)raid0: no disk label
raid0: Error re-writing parity!

dd if=/dev/rsd0d of=/dev/null bs=10m 
dd if=/dev/rsd1d of=/dev/null bs=10m 

was successfully ended.

# raidctl -iv raid0 


Parity Re-Write status:

After this, my dmesg end:

rootdev=0x400 rrootdev=0xd00 rawdev=0xd02
Hosed component: /dev/sd0d.
raid0: Ignoring /dev/sd0d.
raid0: Component /dev/sd1d being configured at row: 0 col: 1
 Row: 0 Column: 1 Num Rows: 1 Num Columns: 2
 Version: 2 Serial Number: 100 Mod Counter: 27
 Clean: No Status: 0
/dev/sd1d is not clean !
raid0 (root)raid0: no disk label
raid0: Error re-writing parity!
raid0: no disk label
raid0: Error re-writing parity!

This is the same with the 36GB and 73GB as well.

What else should I check?

--
Adam PAPAI
D i g i t a l Influence
http://www.digitalinfluence.hu
Phone: +36 30 33-55-735
E-mail: [EMAIL PROTECTED]



Re: raidFrame creating error: sd0(mpt0:0:0): Check Condition (error 0x70) on opcode 0x28

2006-03-15 Thread Adam PAPAI

Greg Oster wrote:

Adam PAPAI writes:


After reboot my dmesg end:

rootdev=0x400 rrootdev=0xd00 rawdev=0xd02
Hosed component: /dev/sd0d.
raid0: Ignoring /dev/sd0d.
raid0: Component /dev/sd1d being configured at row: 0 col: 1
 Row: 0 Column: 1 Num Rows: 1 Num Columns: 2
 Version: 2 Serial Number: 100 Mod Counter: 27
 Clean: No Status: 0
/dev/sd1d is not clean !
raid0 (root)raid0: no disk label
raid0: Error re-writing parity!

dd if=/dev/rsd0d of=/dev/null bs=10m 
dd if=/dev/rsd1d of=/dev/null bs=10m 

was successfully ended.

# raidctl -iv raid0 



wha does 'raidctl -s raid0' say?  It probably says that 'sd0d' is 
failed.  You can't initialize parity with 'raidctl -iv' on a set with 
a failed component.  You can do 'raidctl -vR /dev/sd1d raid0' to get 
it to reconstruct back onto the failed component.  After that you can 
do a 'raidctl -iv' (though by that point it's strictly not necessary).


Interesting. I tried with 3 full reinstall and all raidctl -iv raid0 
fails, but with raidctl -vR /dev/sd0d solved the problem.


But why? Will it be good from now? I'm fraid the raid will collapse 
again. I hope not.


I going to continue the setup on my server. Thanks anyway. I hope I 
won't get more errors...



--
Adam PAPAI
D i g i t a l Influence
http://www.digitalinfluence.hu
Phone: +36 30 33-55-735
E-mail: [EMAIL PROTECTED]



Slow SCSI HDD (HW RAID) on Dual Xeon

2006-03-13 Thread Adam Papai
Hi misc,

I've got a problem with the SCSI read/write speed under 3.8.
It has LSILOGIC HW raid adapter running raid1.

The time dd test shows:

astatine[wooh] time dd if=/dev/zero of=/home/wooh/output bs=1m count=1024
1024+0 records in
1024+0 records out
1073741824 bytes transferred in 411.637 secs (2608466 bytes/sec)
7m12.01s real 0m0.00s user 0m5.62s system
astatine[wooh] time dd if=/dev/zero of=/home/wooh/output2 bs=1m count=1024
1024+0 records in
1024+0 records out
1073741824 bytes transferred in 411.235 secs (2611012 bytes/sec)
7m11.66s real 0m0.00s user 0m5.42s system
astatine[wooh]

This is very slow ;/ How can I increse i/o speed?

Any suggestions?

It runs bsd.mp 3.8

My dmesg is here:
OpenBSD 3.8 (GENERIC.MP) #298: Sat Sep 10 15:51:54 MDT 2005
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Xeon(TM) CPU 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,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,CNXT-ID
real mem  = 1073168384 (1048016K)
avail mem = 972587008 (949792K)
using 4278 buffers containing 5376 bytes (52500K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(fb) BIOS, date 06/09/05, BIOS32 rev. 0 @ 0xfd7d1
pcibios0 at bios0: rev 2.1 @ 0xf/0x
pcibios0: PCI BIOS has 8 Interrupt Routing table entries
pcibios0: PCI Exclusive IRQs: 9 10 11 15
pcibios0: PCI Interrupt Router at 000:15:0 (ServerWorks CSB5 SouthBridge
rev 0x00)
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc/0x8000 0xc8000/0x4000
mainbus0: Intel MP Specification (Version 1.4) (IBM ENSW TURQUIOSESMP)
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 99 MHz
cpu1 at mainbus0: apid 6 (application processor)
cpu1: Intel(R) Xeon(TM) CPU 2.00GHz (GenuineIntel 686-class)
cpu1: FPU,CX8,APIC,CNXT-ID
mainbus0: bus 0 is type PCI
mainbus0: bus 1 is type PCI
mainbus0: bus 2 is type PCI
mainbus0: bus 3 is type ISA
ioapic0 at mainbus0: apid 14 pa 0xfec0, version 11, 16 pins
ioapic1 at mainbus0: apid 13 pa 0xfec01000, version 11, 16 pins
ioapic2 at mainbus0: apid 12 pa 0xfec02000, version 11, 16 pins
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 ServerWorks CMIC_LE Host rev 0x13
pchb1 at pci0 dev 0 function 1 ServerWorks CMIC_LE Host rev 0x00
pchb2 at pci0 dev 0 function 2 vendor ServerWorks, unknown product
0x rev 0x00
pci1 at pchb2 bus 1
mpt0 at pci1 dev 1 function 0 Symbios Logic 53c1030 rev 0x07: apic 13
int 6 (irq 9)
mpt0: sending FW Upload request to IOC (size: 36, img size: 69956)
mpt0: IM support: 4
scsibus0 at mpt0: 16 targets
sd0 at scsibus0 targ 0 lun 0: LSILOGIC, 1030 IM IM, 1000 SCSI2 0/direct
fixed
sd0: 34678MB, 34678 cyl, 16 head, 128 sec, 512 bytes/sec, 71020544 sec total
mpt0: target 0 Synchronous at 40MHz width 8bit offset 63 QAS 0 DT 0 IU 0
vga1 at pci0 dev 1 function 0 ATI Rage XL rev 0x27
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pchb3 at pci0 dev 15 function 0 ServerWorks CSB5 SouthBridge rev 0x93
pci2 at pchb3 bus 3
pciide0 at pci0 dev 15 function 1 ServerWorks CSB5 IDE rev 0x93: DMA
atapiscsi0 at pciide0 channel 1 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: TEAC, CD-224E, 2.9B SCSI0 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 2
ohci0 at pci0 dev 15 function 2 ServerWorks OSB4/CSB5 USB rev 0x05: apic
14 int 11 (irq 11), version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: ServerWorks OHCI root hub, rev 1.00/1.00, addr 1
uhub0: 4 ports with 4 removable, self powered
pcib0 at pci0 dev 15 function 3 ServerWorks CSB5 PCI rev 0x00
pchb4 at pci0 dev 17 function 0 ServerWorks CIOBX2 rev 0x03
pchb5 at pci0 dev 17 function 2 ServerWorks CIOBX2 rev 0x03
pci3 at pchb5 bus 2
bge0 at pci3 dev 1 function 0 Broadcom BCM5703X rev 0x02, BCM5703 A2
(0x1002): apic 13 int 8 (irq 10) address 00:09:6b:8c:51:9e
brgphy0 at bge0 phy 1: BCM5703 10/100/1000baseT PHY, rev. 2
bge1 at pci3 dev 2 function 0 Broadcom BCM5703X rev 0x02, BCM5703 A2
(0x1002): apic 13 int 9 (irq 11) address 00:09:6b:8c:51:9f
brgphy1 at bge1 phy 1: BCM5703 10/100/1000baseT PHY, rev. 2
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
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
sysbeep0 at pcppi0
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask 0 netmask 0 ttymask 0
pctr: user-level cycle counter enabled
dkcsum: sd0 matches BIOS drive 0x80
root on sd0a
rootdev=0x400 rrootdev=0xd00 rawdev=0xd02


-- 
Adam PAPAI
D i g i t a l Influence
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735



Re: Slow SCSI HDD (HW RAID) on Dual Xeon

2006-03-13 Thread Adam Papai
Srebrenko Sehic said:
 You're lucky that your RAID1 array even works, since integrated
 mirroring (IM) is currently not supported by mpt(4) driver. If it
 works, it is slow like hell.

 If you want speed, remove the RAID1 array and run with 2 normal disks.

 On 3/13/06, Adam Papai [EMAIL PROTECTED] wrote:
 Hi misc,

 I've got a problem with the SCSI read/write speed under 3.8.
 It has LSILOGIC HW raid adapter running raid1.


That means I have to use the raidframe. Thanks anyway..

-- 
Adam PAPAI
D i g i t a l Influence
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735



filesystem full problem

2006-02-17 Thread Adam Papai
Hello list,

I've run into a problem.

My /var reached the 105% disk usage. I've deleted 1.5G from /var but the
df shows me still 2Gb.

du -csh /var shows 38M

What can I do? I tried: sync but nothin happens. The programs can't write
to /var so it intiditaces a little deffect..

What's the solution? Only the reboot?



# df
Filesystem  512-blocks  Used Avail Capacity  Mounted on
/dev/raid0a 401820 6816431356818%/
/dev/raid0d 512636 8487000 0%/tmp
/dev/raid0e4124572   4123548   -205204   105%/var
/dev/raid0f8253052472556   7367844 6%/usr
/dev/raid0g  138961100  75632652  5638039657%/home

# du -csh /var/
38.1M   /var/
38.1M   total


-- 
Adam PAPAI
D i g i t a l Influence
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735



Re: filesystem full problem [SOLVED]

2006-02-17 Thread Adam PAPAI

Jared Solomon wrote:

sudo rm -rf /var/porn


The problem was:

_after_ deleting '/var/porn' the df -h showed me still 105% disk usage 
... fstat and pkill smbd solved the problem. ;)


--
Adam PAPAI
D i g i t a l Influence
http://www.digitalinfluence.hu
Phone: +36 30 33-55-735
E-mail: [EMAIL PROTECTED]



pkg_add package very slow

2006-01-21 Thread Adam PAPAI

Hi

I've got a problem with pkg_add. I usually install 1-2 OpenBSD system a 
week. Some of them has got problem with pkg_add.


For example pkg_add -vv screen-4.0.2.tgz takes 10 minutes.

And it's abnormal. What can I do to speed up this slowliness? I guess 
probably must be wrong with the perl.


--
Adam PAPAI
D i g i t a l Influence
http://www.digitalinfluence.hu
Phone: +36 30 33-55-735
E-mail: [EMAIL PROTECTED]



Re: Text Editor

2005-09-12 Thread Adam PAPAI

Joco Salvatti wrote:

Hi all.

I'd like to know if anyone can tell me a good text editor that runs under X
environment. I'd like to know a good one, since there is no OpenOffice port to
OpenBSD.



gedit/kedit/kate and so on..

Or abiword for *.doc and rtf and so on.

Or my favourite: vi/vim/gvim ;)

--
Adam PAPAI
D i g i t a l Influence
Phone: +36 30 33-55-735
E-mail: [EMAIL PROTECTED]



Re: ath(4) DWL-G650 - ath0: no valid channels for regdomain NONE

2005-09-04 Thread Adam Papai

Eric Dillenseger wrote:


Just a remark, in /etc/horname.if you don't write the 'up' keyword.
Otherwise, I don't see what's wrong. Once the card is configured, can
you post a ifconfig -a output? First, remove hostname.ath?, reboot and
try to configure only with ifconfig, if there's an error, ifconfig
should say something.

You can monitor the DHCP requests with tcpdump.

Is the access point filtering mac adresses?



Hi Eric.

The router don't filter mac-addresses.

When I attach the card I see this in dmesg:

ath0 at cardbus0 dev 0 function 0 Atheros Communications, Inc., 
AR5001--, Wireless LAN Reference Card: irq 5
ath0: AR5212 7.9 phy 4.5 rf2112 5.6 rf2112 5.6, NONE, address 
00:11:95:93:eb:53


After this I have to set up nwid and mode and media for it.

# ifconfig ath0 nwid asuka media autoselect mode autoselect chan 1
# ifconfig ath0
ath0: flags=8822BROADCAST,NOTRAILERS,SIMPLEX,MULTICAST mtu 1500
lladdr 00:11:95:93:eb:53
media: IEEE802.11 autoselect
status: no network
ieee80211: nwid asuka chan 1

if I try to set up a static ip then I type:

# ifconfig ath0 192.168.1.2
ath0: flags=8863UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:11:95:93:eb:53
media: IEEE802.11 autoselect (DS1 mode 11b)
status: no network
ieee80211: nwid asuka chan 1
inet 192.168.1.2 netmask 0xff00 broadcast 192.168.1.255
inet6 fe80::211:95ff:fe93:eb53%ath0 prefixlen 64 scopeid 0x7

But the card status is no network and I can't ping  192.168.1.1 ( wlan 
router ip ). I changed the router mode B only so the G mode couldn't 
be the problem.


If I set ath0 the way like this:

#ifconfig ath0 192.168.1.2 mode autoselect mediaopt hostap chan 1 nwid asuka

#ifconfig ath0
ath0: flags=8863UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:11:95:93:eb:53
media: IEEE802.11 autoselect hostap (autoselect mode 11b hostap)
status: active
ieee80211: nwid asuka chan 1 bssid 00:11:95:93:eb:53
inet6 fe80::211:95ff:fe93:eb53%ath0 prefixlen 64 scopeid 0x7
inet 192.168.1.2 netmask 0xff00 broadcast 192.168.1.255

Now it's running in host AP mode, but neither kismet nor airsnort sees 
it's broadcasted ssid. This is the only case when ifconfig shows me 
status: active.


In that case, when I try to get ip by typing: dhclient ath0 after 
setting up nwid, chan, mode the result is:


# ifconfig ath0 mode autoselect chan 1 nwid asuka 

# ifconfig ath0 


ath0: flags=8822BROADCAST,NOTRAILERS,SIMPLEX,MULTICAST mtu 1500
lladdr 00:11:95:93:eb:53
media: IEEE802.11 autoselect
status: no network
ieee80211: nwid asuka chan 1
# dhclient ath0 


DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 1
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 1
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 1
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 1
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 2
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 3
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
#ifconfig ath0
ath0: flags=8863UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:11:95:93:eb:53
media: IEEE802.11 autoselect (DS1 mode 11b)
status: no network
ieee80211: nwid asuka chan 1
inet6 fe80::211:95ff:fe93:eb53%ath0 prefixlen 64 scopeid 0x8

Yesterday I tried ad-hoc mode ( peer to peer ) between iBook and my 
laptop. But they didn't see each other. :/



# uname -a
OpenBSD larva.portable.wooh.hu 3.8 GENERIC#1 i386

It seems that I can't get this card to work.

So I don't have any idea. The AP works well with this card and 
Linux/madwifi.


--
Adam PAPAI
D i g i t a l Influence
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735



Re: ath(4) DWL-G650 - ath0: no valid channels for regdomain NONE

2005-09-04 Thread Adam Papai

Eric Dillenseger wrote:


I must say that I have no other idea.
This morning I tried another DWL-G520 and found it wouldn't work. The
card is correctly identified, configured with the hostname.if of the
other one, but no connection.

The only difference I found between the two is the revision and
firmware version.
I think that D-Link is changing too much things between revisions of
cards and the driver don't handle all revisions correctly. My cards
have the same chipset, but one is rev B2 and fw 3.1.6 and the other
B3/4.2.11. Both are DWL-G520 rebB, not G520+ (wich has a TI chipset).

Maybe your card is a bit to newly reviewed by D-Link to be properly
supported by the ath(4) driver.



Well then. I have another ath(4) card NetGear WG511T, but this card has 
hw problem. Fortunately it has warranty so probably the shop will change 
it.


Thanks anyway.

--
Adam PAPAI
D i g i t a l Influence
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735



Re: X kills console.

2005-09-04 Thread Adam Papai

Jan Johansson wrote:


Per your suggestion I tried typing blindly.

startx no reaction.

shutdown -r now no reaction.

cat process not viseable with ps -ax from ssh.

Ctrl-D a number of times but w stills says root is logged in
on console.

However I did notice that the keyboard leds do react to presses
of Capslock and Numlock.


Did you try:

start X from the C0

Then it'll change to vt5. When the console remains black, try to 
alt+ctrl+F1 and then startx or cat or whatever.


Sometimes it really freezes but no all time. I have a Clevo notebook 
with ATI 9600 and it happens 1-2 weeks but I can solve it by restarting X.


And what's more: When I use Dual monitor, and it happens, on the second 
monitor I can see wanly the console. And I can operate with it. I just 
type startx and the X comes back.



--
Adam PAPAI
D i g i t a l Influence
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735



Re: X kills console.

2005-09-03 Thread Adam Papai

Jan Johansson wrote:

Hello.

Leaving the X virtual console the second time make the console
die this happens both if I use Alt-Fn or exit X (both startx and
xdm).

Example:
Log in as root on console.
Type startx
When X has loaded choose exit in the fvwm menu.
Back at the prompt type startx again.
Again choose exit in the fvwm menu.
No the screen goes black and a second later the screen goes into
powersave mode.

Below is the X log from the first startup and then there is a
diff for the second startup and of course a dmesg.

Any clues to what could be wrong?



Never run X as root. What's happening if you try it as a user?


--
Adam PAPAI
D i g i t a l Influence
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735



Re: ath(4) DWL-G650 - ath0: no valid channels for regdomain NONE

2005-09-03 Thread Adam Papai

Eric Dillenseger wrote:

Well, here's how I set it up.

I modified the countrycode to fr, built a new kernel, and rebboted.

after that I saw the mac adress of ath0 in dmesg.

# then ifconfig ath0 ip mask media autoselect nwid ssid nwkey
wepkey mediaopt hostap chan 11 up
It worked so I set it in /etc/hostname.ath0

As I said before, the only working mode for me is 802.11b, if I force
a higher mode the card doesn't work. Have you tried with 'mode
autoselect' ?

Hope this helps.
Regards,


:(

I'm afraid something is wrong.

I set up to hostname.ath0 this:
dhcp NONE NONE NONE media autoselect nwid asuka chan 1 up
or
dhcp NONE NONE NONE media autoselect mode autoselect nwid asuka chan 1 up

But it didn't get dhcpoffer. I changed the router mode to MIXED, that 
means it serves B and G as wel.
As I can see you run your Wlan card as an AP? I want to use it as a 
client to associate with AP, so I omit mediaopt.
With Gentoo/madwifi-drivers it's working so the card is good, but I 
haven't got Linux..and  don't want to use ;]


If I set up the card like this:

inet ath0 192.168.1.2 0xff00 192.168.1.0 media autoselect mode 
autoselect nwid asuka chan 1 up


then it seems the card blinks correctly ( as I remember from NetGear 
WG511T ), but I can't ping the router or the other wlan machines on my 
network.


What should be the problem. I have no idea..:( I simply want to use it 
with dhcp. Any suggestions?


--
Adam PAPAI
D i g i t a l Influence
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735



Re: X kills console.

2005-09-03 Thread Adam Papai

Jan Johansson wrote:

Adam Papai [EMAIL PROTECTED] wrote:


Never run X as root. What's happening if you try it as a user?



The problem is exactly the same when running as an ordinary user.

I used root to rule out permission probems. Should have been more
clear on that sorry.



Ahh! I re-read your post. I know your problem. Sometimes ATI cards do 
this. I don't know why. But if you type startx again blind then your 
screen will probaby come back. It's the same with every Xorg and 
XFree86. Sometimes it happens to me as well.


--
Adam PAPAI
D i g i t a l Influence
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735



ath(4) DWL-G650 - ath0: no valid channels for regdomain NONE

2005-09-02 Thread Adam Papai

Did somebody fix this?

Or do somebody know a workaround?

I use 3.8-beta, but It didn't work with 3.7.

Every time I try to use I get the following message:


 ath0: no valid channels for regdomain NONE...

If  I changed /usr/src/sys/dev/ic/ar5xxx.c above:

RCS file: /cvs/src/sys/dev/ic/ar5xxx.c,v
retrieving revision 1.28
diff -r1.28 ar5xxx.c
116,117c116,117
 #if 0
 #define COUNTRYCODE 00
---
 #if 1
 #define COUNTRYCODE hu

Then I'll be able to set nwid, ip address and so on, without getting 
error, but the card doesn't work. :/ Only blinking..


Any suggestion/bugfix/workaround?

--
Adam PAPAI
D i g i t a l Influence
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735



Re: openbsd 3.7 pkg_add error

2005-09-02 Thread Adam Papai

[EMAIL PROTECTED] wrote:

hi
i am having trouble installing a few of the packages from 3.7
postgresql,aide,syslog-ng all pkg_add fine
but
LPRng,gawk,tcpcat all return with errors 
when i pkg_add LPRng it returns the following :-


pkg_add ftp://ftp.openbsd.org/pub/OpenBSD/3.7/packages/i386/LPRng-3.8.21p0.t
gz
Can't find 
ftp://ftp.openbsd.org/pub/OpenBSD/3.7/packages/i386/LPRng-3.8.21p0.tgz
/usr/sbin/pkg_add: 
ftp://ftp.openbsd.org/pub/OpenBSD/3.7/packages/i386/LPRng-3.8.21p0.tgz:Fatal 
error


$ pkgsh LPRng-3.8
LPRng-3.8.21p0.tgz
$ echo $PKG_PATH
ftp://ftp.de.openbsd.org/unix/OpenBSD/3.7/packages/i386/
$ alias pkgsh
pkgsh='echo nlist | ftp -a 
ftp://ftp.de.openbsd.org/unix/OpenBSD/3.7/packages/i386/ | sed '\''s/.*\ 
//g'\'' | grep -i'


Try to use other ftp servers.

--
Adam PAPAI
D i g i t a l Influence
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735



Re: Help!

2005-08-29 Thread Adam Papai

MySHOP wrote:

Hi Adam Papai ,

How can you make OpenBSD support 2 CPU.

GENERIC.MP ? or GENERIC?

Is it a command ?

Or I need install some package for GENERIC.MP ? or GENERIC?

I think OpenBSD install in computer and auto detect 1 or 2 cpu.

If P4-D or P4 HT then I can use GENERIC.MP ? or GENERIC?  for 2 CPU.



That means you have to get/compile a bsd.mp kernel. By the default 
install the bsd uses bsd.


http://www.openbsd.org/faq/faq8.html#SMP

Have fun :)


--
Adam PAPAI
D i g i t a l Influence
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735



Re: ASUS S8K motherboard + TSSTcorp, CD/DVDW problem [SOLVED]

2005-08-06 Thread Adam Papai

Jonathan Gray wrote:

On Fri, Aug 05, 2005 at 08:33:11PM +0200, Adam Papai wrote:


Hello misc@

Yesterday I tried to install an OpenBSD 3.7-RELEASE to an ASUS S8K 
motherboard. The install cd failed to boot, because I get the following 
error:


wd0 (pciide0:0:0): timeout
type: ata
c_bcount: 512
c_skip: 0
pciide0:0:0: bus-master DMA error: missing interrupt, status=0x21



You should no longer see this with your 661 board on -current.


Thanks. It seems to be working. Than I change to -CURRENT. :)

--
Adam PAPAI
D i g i t a l Influence
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735



ASUS S8K motherboard + TSSTcorp, CD/DVDW problem

2005-08-05 Thread Adam Papai

Hello misc@

Yesterday I tried to install an OpenBSD 3.7-RELEASE to an ASUS S8K 
motherboard. The install cd failed to boot, because I get the following 
error:


 wd0 (pciide0:0:0): timeout
type: ata
c_bcount: 512
c_skip: 0
pciide0:0:0: bus-master DMA error: missing interrupt, status=0x21

But it's okey.

I did this:

boot boot -c
UKC change wd
change (y/n) ? y
channel [-1] ? -1
flags [0] ? 0xff0
UKC quit

Then I could finished the install. Later I fetched the latest 
-rOPENBSD_3_7 src and compiled a new GENERIC kernel and I fixed the 
security alerts.


I used
config -e -u -o /bsd.new /bsd
UKC change wd
change (y/n) ? y
channel [-1] ? -1
flags [0] ? 0xff0
UKC quit

To boot.

But now, I cannot see cd0.
it's a TSSTcorp, CD/DVDW.

What should be the problem?

dmesg:
OpenBSD 3.7-stable (GENERIC) #0: Fri Aug  5 10:36:42 CEST 2005
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Celeron(R) CPU 2.40GHz (GenuineIntel 686-class) 2.41 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,

TM,SBF,PNI,MWAIT,CNXT-ID
real mem  = 200843264 (196136K)
avail mem = 176504832 (172368K)
using 2477 buffers containing 10145792 bytes (9908K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 10/29/04, BIOS32 rev. 0 @ 0xfdb10
pcibios0 at bios0: rev 2.1 @ 0xf/0x1
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf7760/192 (10 entries)
pcibios0: PCI Interrupt Router at 000:02:0 (SIS 85C503 System rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc/0xc000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 vendor SIS, unknown product 0x0661 rev 0x11
ppb0 at pci0 dev 1 function 0 SIS 648FX AGP rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 SIS 6330 VGA rev 0x00: aperture at 
0xc000, size 0x40

wsdisplay0 at vga1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 2 function 0 SIS 85C503 System rev 0x25
pciide0 at pci0 dev 2 function 5 SIS 5513 EIDE rev 0x00: 5597/5598: 
DMA, channel 0 wired to compatibility, channe

l 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: Maxtor 6B160P0
wd0: 16-sector PIO, LBA48, 156334MB, 320173056 sectors
wd0(pciide0:0:0): using PIO mode 4
pciide0: channel 1 disabled (no drives)
auich0 at pci0 dev 2 function 7 SIS 7012 AC97 rev 0xa0: irq 10, 
SiS7012 AC97

ac97: codec id 0x434d4983 (C-Media Electronics CMI9761A+)
audio0 at auich0
ohci0 at pci0 dev 3 function 0 SIS 5597/5598 USB rev 0x0f: irq 3, 
version 1.0, legacy support

usb0 at ohci0: USB revision 1.0
uhub1 at usb1
uhub1: SIS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
ehci0 at pci0 dev 3 function 2 SIS 7002 USB rev 0x00: irq 12
ehci0: EHCI version 1.0
ehci0: companion controllers, 3 ports each: ohci0 ohci1
usb2 at ehci0: USB revision 2.0
uhub2 at usb2
uhub2: SIS EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub2: single transaction translator
uhub2: 6 ports with 6 removable, self powered
sis0 at pci0 dev 4 function 0 SIS 900 10/100BaseTX rev 0x90: irq 11, 
address 00:0b:6a:b5:b7:a3

rlphy0 at sis0 phy 1: RTL8201L 10/100 PHY, rev. 1
dc0 at pci0 dev 10 function 0 Accton EN2242 rev 0x11: irq 10, address 
00:04:e2:33:91:d0

ukphy0 at dc0 phy 1: Generic IEEE 802.3u media interface
ukphy0: OUI 0x000749, model 0x0001, rev. 1
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 (mux 1 ignored for console): console keyboard, using 
wsdisplay0

pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
lm0 at isa0 port 0x290/8: W83697HF
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
biomask f36d netmask ff6d ttymask ffef
pctr: user-level cycle counter enabled
dkcsum: wd0 matched BIOS disk 80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302



--
Adam PAPAI
D i g i t a l Influence
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735



Problem with NFS, everything freeze

2005-07-27 Thread Adam Papai
Regards.

I've got a problem with nfs.

There are 2 servers. A and B.

On server A I export one dir and start nfsd, portmap, mountd.
On server B in mount A's exported dir.
I begin to copy approxymately 40Mb up to A from B.
At 30Mb the copy brokens and everything freeze on server B.
B replyes to ping but nothing else.

I waited 8 hours but nothing happened. I had to ask a restart for server B.

For the most part it always happens. But why?
Server A, B is OpenBSD 3.6 but I tried with 3.6-3.5 and the way around.
They always freeze.

I feel so uneasy..:/

The mount option was:

serverA:/dir/ /mnt/nfsnfs rw  0 0

How can I avoid the feeze? I want to use nfs, to omit scp ( daily mail
backups, sys backups and so on )

-- 
Adam Papai
D i g i t a l Influence
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735



Re: Problem with NFS, everything freeze

2005-07-27 Thread Adam Papai
Steven Manos said:
 are you running pf? are you scrubbing on an interface?


On server A there I use:

scrub in all

but not more special rules.

On server B I didn't use scrub, only some pass in rulez for ssh/smtp


-- 
Adam Papai
D i g i t a l Influence
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735



Re: Problem with NFS, everything freeze

2005-07-27 Thread Adam Papai
Steven Manos said:
 hey, yep, i made the same mistake first up too...


And did your system freeze as well like mine?

Thanks anyway. I'll try this at home with 2 test NFS servers. ( of course
with 2 openbsd )

I hope it will work. If not, I'll be sad.

-- 
Adam Papai
D i g i t a l Influence
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735



Re: Disable IPv6 on 3.7

2005-07-26 Thread Adam Papai
knitti said:
  What is it that you think you're gaining from this?

 A system without IPv6.

 you won't. you'll get a kernel without IPv6. and a broken system.

knitti's right.

But why do you so much against Ipv6?


-- 
Adam Papai
D i g i t a l Influence
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735



Eclipse + 3.7

2005-06-05 Thread Adam Papai

Regards.

Is anyone who could install Eclipse from ports or package?

I cannot install because jdk install always breaks. :/

pkg error:

# pkg_add -vvv eclipse-sdk-gtk2-3.0.1.tgz
parsing eclipse-sdk-gtk2-3.0.1
Dependencies for eclipse-sdk-gtk2-3.0.1 resolve to: apache-ant-1.6.2, 
jdk-1.4.2p0, gtk+2-2.4.14 (todo: jdk-1.4.2p0)

eclipse-sdk-gtk2-3.0.1:Can't find jdk-1.4.2p0
/usr/sbin/pkg_add: jdk-1.4.2p0:Fatal error

Thats okey because jdk-1.4.2p0 doesn't exists in 3.7 package list.

But from ports jdk breaks here:


Linking launcher...
/usr/ports/devel/jdk/1.4/w-jdk-1.4.2p0/control/build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/product/libjvm.so: 
warning: vsprintf() is often misused, please use vsnprintf()
/usr/ports/devel/jdk/1.4/w-jdk-1.4.2p0/control/build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/product/libjvm.so: 
warning: strcpy() is almost always misused, please use strlcpy()

launcher.o(.text+0x6a9): In function `SetClassPath':
/usr/ports/devel/jdk/1.4/w-jdk-1.4.2p0/hotspot/src/os/bsd/launcher/java.c:295: 
warning: sprintf() is often misused, please use snprintf()

launcher.o(.text+0x1348): In function `SetJavaCommandLineProp':
/usr/ports/devel/jdk/1.4/w-jdk-1.4.2p0/hotspot/src/os/bsd/launcher/java.c:721: 
warning: strcat() is almost always misused, please use strlcat()
/usr/lib/libstdc++.so.38.0: undefined reference to 
`_Unwind_Resume_or_Rethrow'

/usr/lib/libstdc++.so.38.0: undefined reference to `_Unwind_Resume'
/usr/lib/libstdc++.so.38.0: undefined reference to `_Unwind_RaiseException'
collect2: ld returned 1 exit status
gmake[3]: *** [gamma] Error 1
gmake[3]: Leaving directory 
`/usr/ports/devel/jdk/1.4/w-jdk-1.4.2p0/control/build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/product'

gmake[2]: *** [the_vm] Error 2
gmake[2]: Leaving directory 
`/usr/ports/devel/jdk/1.4/w-jdk-1.4.2p0/control/build/bsd-i586/hotspot-i586/tmp/bsd_i486_compiler2/product'

gmake[1]: *** [product] Error 2
gmake[1]: Leaving directory 
`/usr/ports/devel/jdk/1.4/w-jdk-1.4.2p0/control/build/bsd-i586/hotspot-i586/tmp'

gmake: *** [product] Error 2
*** Error code 2

Any suggestion?

--
Adam Papai
Digital Influence Inc.
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735



Re: howto clean disks ?

2005-05-31 Thread Adam Papai

Ed White wrote:

Hi,

I'm going to give away some old hard disks and I'm planning to 
delete/overwrite all the data on them. Is there any tool to make this 
automagically ?


Thanks.




dd if=/dev/zero of=DEVICE_you_want_to_erase

--
Adam Papai
Digital Influence Inc.
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735



Re: Burn Testing

2005-05-24 Thread Adam Papai

Gaby vanhegan wrote:

On 24 May 2005, at 16:00, Gaby vanhegan wrote:

Is there a similar burn-testing app that I can run on OpenBSD to test 
the stability of the machines over a 12 day period?



I should have mentioned that there will be a prize* for the most 
creative suggestion.


Gaby.

*There is no actual prize


Run john. It really uses CPU.


--
Adam Papai
Digital Influence Inc.
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735



Re: IMAP servers

2005-05-22 Thread Adam Papai

Gaby vanhegan wrote:

Hi,

What IMAP servers do people use for email access?  I use Dovecot at the 
moment under 3.6, as it supports SSL, Maildir and mbox, but it has some 
problems with indexes.  I used to use the stock imapd that came with 
OpenBSD, but that didn't handle Maildir.  I'm considering courier-imap, 
but I thought that it didn't have a great security track-record (I may 
be wrong here).


What do you use to do IMAP under OpenBSD?


I use Courier-imap with ssl support under OpenBSD 3.6 with Amavisd-new 
 ClamAv  SpamAssassin  postfix.


--
Adam Papai
Digital Influence Inc.
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735



PF TCP Synproxy

2005-05-20 Thread Adam Papai
Regards.
I have a problem with pf synproxy.
I set up:
pass in on fxp0 proto tcp from any to $server_ip port www flags S/SA 
synproxy state

pfctl -f /etc/pf.conf
After this, when I want to connect to my webserver I get this for:
pfctl -s a | grep self
self tcp server-ip:80 - my-ip:43264   PROXY:DST
self tcp server-ip:80 - my-ip:56885   PROXY:DST
And it doesn't want to connect. Only Loading page..
Release OpenBSD 3.6.
Any suggestion? In my 3.5 box it's working.
--
Adam Papai
Digital Influence Inc.
E-mail: [EMAIL PROTECTED]


How can I set default crypt to md5?

2005-05-13 Thread Adam Papai
How can I set the crypt_default to md5 or blf or whatever?
On FreeBSD I can do set it in /etc/auth.conf
Thanks.
--
Adam Papai
Digital Influence Inc.
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735


kernel: integer divide fault trap, code=0 release 3.7

2005-05-05 Thread Adam PAPAI
Regards.
I tried to upgrade my 3.6 OpenBSD to 3.7.
I tried to upgrade from CD, but the kernel faulted.
dmesg results:

umass0: DATAFB Flash Reader, rev 2.00/11.25, addr 2
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets
sd0 at scsibus targ 1 lun 0: Generic, STORAGE DEVICE, 1125 SCSI0 
0/direct removable
sd0: drive offline
sd1 at scsibus targ 1 lun 1. Generic, STORAGE DEVICE, 1125 SCSI0 
0/direct removable
sd1: drive offline
sd2 at scsibus targ 1 lun 2: Generic, STORAGE DEVICE, 1125 SCSI0 
0/direct removable
sd2: drive offline
sd3 at scsibus targ 1 lun 3: Generic, STORAGE DEVICE, 1125 SCSI0 
0/direct removable
sd3: drive offline
dkcsum: wd0 matched BIOS disk 80
kernel: integer divide fault trap, code=0
Stopped at	ststrategy+0x44	divl	0x28(%edi),%eax
ddb

I have IDE HDD. wd0. OpenBSD 3.6 on boot dmesg says:
umass0: DATAFB Flash Reader, rev 2.00/11.25, addr 2
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets
sd0 at scsibus targ 1 lun 0: Generic, STORAGE DEVICE, 1125 SCSI0 
0/direct removable
Automatic boot in progress...

And everyting goes well with 3.6. Only 3.7 faults.
Any suggestions?
--
Adam Papai


Re: kernel: integer divide fault trap, code=0 release 3.7

2005-05-05 Thread Adam PAPAI
Adam PAPAI wrote:
Regards.
I tried to upgrade my 3.6 OpenBSD to 3.7.
kernel: integer divide fault trap, code=0
Stopped atsdstrategy+0x44divl0x28(%edi),%eax
ddb
I forgot to send the trace output:
ddbtrace
sdstrategy(d6a972e4,1,2000,d05bba80,0) at sdstrategy+0x44
dkcsumattach(d056c378,3,d06defa0,d02012fa,1fdf) at dkcsumattach+0x124
diskconf(1fdf,897ff,d05d,0,0) at diskconf+0xb
main(0,0,0,0,0) at main+0x666
ddb
--
Adam Papai