Re: IBM ServeRAID support [OpenBSD installs on IBM Netfinity 4500R)
Quoting Alexander Yurchenko : > as some of you might know the ips(4) driver aimed to support IBM > ServeRAID SATA/SCSI controllers was here starting from 4.1. but due to > a > nasty bug in the code it was not enabled on any install media. > > the snap from the feb 11 contains the updated ips driver with that bug > fixed and various other improvements. read the man page to see what > controllers are supported. the driver enabled on the installation cd. > [cut] > -- > Alexander Yurchenko > Thanks for your work on this, Alexander. As per our private emails, the snapshot of the 11th panics on this, machine but the snapshot of the 14th does not. 4.4 and below would not configure/install. IBM ServeRAID-4L, RAID-1 with 2x18.2Gb drives (divided into 2 logical drives.) dmesg below, apologies for any copy-and-paste mess. OpenBSD 4.5-beta (GENERIC) #1682: Sat Feb 14 16:03:26 MST 2009 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel Pentium III ("GenuineIntel" 686-class) 732 MHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE real mem = 939065344 (895MB) avail mem = 899510272 (857MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 09/20/01, BIOS32 rev. 0 @ 0xfd2c1 mpbios0 at bios0: Intel MP Specification 1.4 cpu0 at mainbus0: apid 1 (boot processor) cpu0: apic clock running at 132MHz mpbios0: bus 0 is type PCI mpbios0: bus 1 is type PCI mpbios0: bus 2 is type PCI mpbios0: bus 3 is type PCI mpbios0: bus 4 is type PCI mpbios0: bus 5 is type ISA ioapic0 at mainbus0: apid 14 pa 0xfec0, version 11, 16 pins ioapic1 at mainbus0: apid 15 pa 0xfec01000, version 11, 16 pins pcibios0 at bios0: rev 2.1 @ 0xf/0x pcibios0: PCI BIOS has 11 Interrupt Routing table entries pcibios0: PCI Interrupt Router at 000:15:0 ("ServerWorks OSB4" rev 0x00) pcibios0: PCI bus #0 is the last bus bios0: ROM list: 0xc/0xa000 0xca000/0x3400 pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 "ServerWorks CNB20LE Host" rev 0x05 pchb1 at pci0 dev 0 function 1 "ServerWorks CNB20LE Host" rev 0x05 pci1 at pchb1 bus 1 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) pcn0 at pci0 dev 2 function 0 "AMD 79c970 PCnet-PCI" rev 0x44, Am79c975, rev 4: apic 15 int 11 (irq 11), address 00:02:55 :91:df:6c ukphy0 at pcn0 phy 30: Generic IEEE 802.3u media interface, rev. 0: OUI 0x1a, model 0x0036 ips0 at pci0 dev 9 function 0 "IBM ServeRAID" rev 0x00: apic 15 int 0 (irq 10) ips0: ServeRAID 4L, firmware 6.10.70, bios 6.10.80, 64 CCBs, 2 units scsibus0 at ips0: 2 targets, initiator 2 sd0 at scsibus0 targ 0 lun 0: SCSI2 0/direct fixed sd0: 8678MB, 512 bytes/sec, 17772544 sec total sd1 at scsibus0 targ 1 lun 0: SCSI2 0/direct fixed sd1: 8679MB, 512 bytes/sec, 17774592 sec total sis0 at pci0 dev 10 function 0 "NS DP83815 10/100" rev 0x00, DP83815D: apic 15 int 2 (irq 15), address 00:09:5b:07:2d:15 nsphyter0 at sis0 phy 0: DP83815 10/100 PHY, rev. 1 piixpm0 at pci0 dev 15 function 0 "ServerWorks OSB4" rev 0x4f: 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, initiator 7 cd0 at scsibus1 targ 0 lun 0: ATAPI 5/cdrom removable cd0(pciide0:0:0): using PIO mode 4, DMA mode 2 ohci0 at pci0 dev 15 function 2 "ServerWorks OSB4/CSB5 USB" rev 0x04: apic 14 int 9 (irq 9), version 1.0, legacy support usb0 at ohci0: USB revision 1.0 uhub0 at usb0 "ServerWorks OHCI root hub" rev 1.00/1.00 addr 1 isa0 at mainbus0 isadma0 at isa0 com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 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: spkr0 at pcppi0 lpt0 at isa0 port 0x378/4 irq 7 npx0 at isa0 port 0xf0/16: reported by CPUID; 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 mtrr: Pentium Pro MTRR support softraid0 at root root on sd0a swap on sd0b dump on sd0b Thanks again.
Re: IBM ServeRAID support [OpenBSD installs on IBM Netfinity 4500R)
Quoting richardtoo...@paradise.net.nz: > Quoting Alexander Yurchenko : > > > as some of you might know the ips(4) driver aimed to support IBM > > ServeRAID SATA/SCSI controllers was here starting from 4.1. but due > to > > a > > nasty bug in the code it was not enabled on any install media. > > > > the snap from the feb 11 contains the updated ips driver with that > bug > > fixed and various other improvements. read the man page to see what > > controllers are supported. the driver enabled on the installation cd. > > > [cut] > > -- > > Alexander Yurchenko > > [blah] Thanks again for your work on this, Alexander. I have run out of test machines; for the archives here are the results: IBM Netfinity 4500R, ServeRAID 3L - boots, installer sees drive IBM Netfinity 4500R, ServeRAID 4L - 6.x BIOS, works & can install IBM Netfinity 4500R, ServeRAID 4L - 7.10.x BIOS, works & can install IBM eServer x342, ServeRAID 4Mx - 7.10.x BIOS, need to disable ACPI, boots, installer sees drive Thanks.
Re: Unfortunate dot was ... missing
Quoting Jean-Francois : > All, > > I just forget the dot !! in the 'rm -r ./dev' so I have no /dev anymore > on my server box. > One can tell me if this is possible to backup the system without freshh > install ? > This is a i386 4.4 OpenBSD. One could eventually send me a way or > another the full /dev in case this option actually works ? > > Thanks > JF > Doesn't help you at all, apart from knowing that you are not alone ... http://en.wikipedia.org/wiki/The_UNIX-HATERS_Handbook Page 22 of the downloadable PDF of the book ...
Re: dvd-rw as user?
Quoting OpenBSD : > Hello > > Could somebody please tell me how to use a dvd-rw as user? > I'am trying to install Slackware using qemu, and the dvd does not work > properly, it works well as root. > I've tried adding the user to operator group, users group, and declaring > it at fstab without optimum results. > > BTW, when i try to open the file manager as root, it say "the > conversation with su have fail"; how can i correct this? > > OS: amd64, desktop: kde, OpenBSD version: 4.4 > > -- > OpenBSD > Did you search the archives? http://marc.info/?l=openbsd-misc&w=2&r=1&s=conversation&q=b
Re: OpenBSD server with samba and openldap
Quoting Paul M : > I recall seeing in the samba docs that setting the account info in > samba could optionally also add the entries on the unix side - meaning > you only need to set set it once. I'm hazy on the details, perhaps look > into alternatives to using LDAP. When I've done this I've always > entered them separately. > > One unrelated point I'd like to make is performance - I've found > really annoying connection delays, particularly with word and excel. > Transfer rates are ok, it's opening and saving files that's an > issue. > Extensive googling and I could make it tolerable at best. As this is > for a client, it's proved to be an embarasment. I would dearly love to > find I'm doing something wrong, and I expect that I will, but my > advice would be to check it out without committing yourself, if > that's possible. > I did find one article on the net that said that all bsd's suffer > performance issues with samba,[cut] Have you got a link? Maybe it was fixed/improved by this? http://www.vnode.ch/fixing_seekdir [end-cut] and the Samba docs do seem to be > completely linux-centric. > I'll check out the link below. > > > paul > > > On 14/05/2009, at 8:25 PM, BSD nuub wrote: > > > Dear misc@ readers, > > I'm planning to set up a OpenBSD 4.5 based server serving a local > > network with Windows XP based client computers. > > There's no mention of this in the OpenBSD faq, but I found a nice > > guide that seems to be pretty recent and up-to-date. > > > > http://www.kernel-panic.it/openbsd/pdc/pdc4.html > > On this page, there's something that bothers me: > > > > "Please note that, though Samba account information will be stored in > > LDAP, smbd(8) will still obtain the user's UNIX account information > > via the standard C library calls, such as getpwnam() (see > > documentation); unfortunately, OpenBSD's standard C libraries don't > > support LDAP, thus forcing us to define Samba users also as local > Unix > > accounts." > > > > "This means a little more work for the system administrator, who will > > need to define users twice, but won't affect the overall system > > security since Unix users won't need to be able to logon to the > > system." > > > > > > Now, I'm thinking that this problem maybe can be solved with this: > > http://openbsd.rutgers.edu/bsdauth/ > > + > > http://openports.se/sysutils/login_ldap > > ? > > > > Anyone else already done this in a better/smarter way? > > > > Thanks for your time! > > /bsdnuub
Re: freetds and iodbc to access Microsoft SQL Server 2005
Quoting Vijay Sankar : > I am trying to access a database hosted on a Microsoft SQL Server 2005 > using FreeTDS and iodbc from OpenBSD 4.5 -stable (also tried OpenBSD > -current as of today). Unfortunately none of the documents I have read > so far or the various trials/tests have helped. I can use tsql and > access the SQL Server but I am not able to use iodbcadm-gtk to add a DSN > > etc. [cut] > I hope the list can give me any advice or pointers on what is the best > way to access data from a SQL Server 2005 database from OpenBSD > > Thanks very much, > > Vijay I cannot give you a direct answer, but what do you mean by "the best way to access data from a SQL Server 2005 database?" What are you trying to do - the *best* way may be determined by that. Do you have to use FreeDTS or iODBC? Or is that just something you have tried? Is there anything in one of the languages that might help (PHP, Perl, Tcl?) Maybe not (doesn't seem to be anything directly ported, so you might need to do a bit of work here), but might be another avenue to explore, depending on what you are trying to do. If you are only needing to SELECT, then it might be easier to knock up a web service or similar on a Windows box and return the data as XML or whatever (not exactly neat, but better than nothing at all - again, depends on what you need to achieve here.) Not sure if SQL Server 2005 has any built-in web service style stuff. HTH.
Re: PHP SQLite connection in OpenBSD
Quoting "Bentley, Dain" : > Hello all, I'm trying to connect to a sqlite database with PHP and I'm > having > an issue of "driver not found". I've installed php from packages and and > have > installed the php_sqlite package and configured the module for apache. > The PDO driver seems to be installed as evidenced by my php info page: > > SQLite support enabled > PECL Module version 2.0-dev $Id: sqlite.c 298697 2010-04-28 12:10:10Z > iliaa $ > SQLite Library 2.8.17 > SQLite Encoding iso8859 > > PDO drivers sqlite2 > > Here is the code I am using to attempt to connect > try { > // connect to SQLite from PDO database > $dbh = new PDO("sqlite:/bandwith/stats.db"); > > } > catch(PDOException $e) > { > echo $e->getMessage();//this getMessage throws an exception if any > > } > ?> > > Does the code work OUTSIDE of Apache? php-5.3 your-script.php Have you considered chroot? http://www.openbsd.org/faq/faq10.html#httpdchroot HTH
Re: PHP SQLite connection in OpenBSD
Quoting "Bentley, Dain" : > Thanks for the help. I'm getting a different error now: > SQLSTATE[HY000] [1] unable to open database: /path/to/db > > Can't seem to find much on this error. Something from the PHP website > about > having to recompile PHP from source but it's an old thread and I'd > rather not > use non-packaged third party tools if I can help it. > And have you tried using the file from sqlite command line to check all OK with sqlite & the database file? $ sqlite /path/to/db > > > From: joshua stein [j...@openbsd.org] > Sent: Tuesday, December 13, 2011 6:08 PM > To: Bentley, Dain > Subject: Re: PHP SQLite connection in OpenBSD > > > PDO drivers sqlite2 > > > > Here is the code I am using to attempt to connect > > > try { > > // connect to SQLite from PDO database > > $dbh = new PDO("sqlite:/bandwith/stats.db"); > > you have sqlite2 installed, but the "sqlite" pdo prefix is for > sqlite 3 databases. > > try opening "sqlite2:/bandwith/stats.db".
Re: PHP SQLite connection in OpenBSD
Quoting richardtoo...@paradise.net.nz: > Quoting "Bentley, Dain" : > > > Thanks for the help. I'm getting a different error now: > > SQLSTATE[HY000] [1] unable to open database: /path/to/db > > > > Can't seem to find much on this error. Something from the PHP website > > about > > having to recompile PHP from source but it's an old thread and I'd > > rather not > > use non-packaged third party tools if I can help it. > > > > And have you tried using the file from sqlite command line to check all > OK with > sqlite & the database file? > > $ sqlite /path/to/db > Got to be something you've done - works fine here for me ... Built a 4.9 i386 box, installed same packages as you ... No need to build anything or configure anything. # cd /tmp/ # sqlite test.db SQLite version 2.8.17 Enter ".help" for instructions sqlite> CREATE TABLE apple (apple_id INTEGER); sqlite> INSERT INTO apple (apple_id) VALUES(44); sqlite> SELECT * FROM apple; 44 sqlite> # php test.php Array ( [apple_id] => 44 [0] => 44 ) # cat /tmp/test.php query("SELECT * FROM apple"); foreach ($res as $r) { print_r($r); } ?> HTH. > > > > > > From: joshua stein [j...@openbsd.org] > > Sent: Tuesday, December 13, 2011 6:08 PM > > To: Bentley, Dain > > Subject: Re: PHP SQLite connection in OpenBSD > > > > > PDO drivers sqlite2 > > > > > > Here is the code I am using to attempt to connect > > > > > try { > > > // connect to SQLite from PDO database > > > $dbh = new PDO("sqlite:/bandwith/stats.db"); > > > > you have sqlite2 installed, but the "sqlite" pdo prefix is for > > sqlite 3 databases. > > > > try opening "sqlite2:/bandwith/stats.db".
.libs files (e.g. .libs-samba-3.0.37p1) when upgrading
Hi, guys. Just curious about these files and what they are for ... So I upgrade from a snapshot, set my PKG_PATH, and do pkg_add -ui I see stuff like ... Feb 7 09:01:46 puffy pkg_add: Added .libs1-samba-3.0.37p1+.libs1-samba-3.5.6p4+samba-3.6.1p0->samba-3.6.1p1 And I have that (internal) package: $ pkg_info -A | grep samba .libs-samba-3.0.37p1 Stub libraries for .libs1-samba-3.0.37p1 .libs-samba-3.5.6p4 Stub libraries for .libs1-samba-3.5.6p4 gvfs-smb-1.10.1 samba module for GVFS samba-3.6.1p1 SMB and CIFS client and server for UNIX I'm using Samba 3.6 - so do I still need those stub libraries for 3.0.37 and 3.5.6? Thanks.
Audio ports - stuttering - fixed with sndiod -r 48000 -b 7680 -z 1920
Hi, guys. I'm not sure if this is an issue, because the defaults might be best for a normal/base install, just asking if this is as expected. This is my desktop/development box. I've got a snapshot of 30th Jan and a set of ports from soon after. OpenBSD 5.1-beta (GENERIC.MP) #172: Mon Jan 30 16:30:40 MST 2012 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP Rhythmbox and Gnome mplayer stuttering a bit playing mp3s ... especially if I Alt-Tab to Firefox & Thunderbird (and do a bit of work in them.) If I remove hands from keyboard, no stuttering. I remembered seeing this post ("important audio settings to test") http://comments.gmane.org/gmane.os.openbsd.tech/27483 And the below (from that post) makes my problems go away: # sndiod -r 48000 -b 7680 -z 1920 $ pkg_info | grep mplayer gecko-mediaplayer-1.0.5p1 gnome-mplayer browser media plugin gmtk-1.0.5p1gnome-mplayer toolkit gnome-mplayer-1.0.5p3 GTK+/GNOME frontend for MPlayer mplayer-20110309p12 movie player supporting many formats $ pkg_info | grep box rhythmbox-2.95 integrated music management application for GNOME $ pkg_info | grep Mozilla firefox-9.0.1 Mozilla web browser lightning-1.0beta9v0 Mozilla Thunderbird calendar extension mozilla-dicts-en-GB-1.3 en-GB dictionary for Mozilla spidermonkey-1.9.2.16p2v0 Mozilla C implementation of JavaScript thunderbird-9.0.1 Mozilla e-mail, rss and usenet client Thanks.
Re: Audio ports - stuttering - fixed with sndiod -r 48000 -b 7680 -z 1920
Quoting richardtoo...@paradise.net.nz: > Hi, guys. > > I'm not sure if this is an issue, because the defaults might be best for > a > normal/base install, just asking if this is as expected. > > This is my desktop/development box. I've got a snapshot of 30th Jan and > a set > of ports from soon after. > > OpenBSD 5.1-beta (GENERIC.MP) #172: Mon Jan 30 16:30:40 MST 2012 > dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP > > Rh ythmbox and Gnome mplayer stuttering a bit playing mp3s ... > especially if I > Alt-Tab to Firefox & Thunderbird (and do a bit of work in them.) If I > remove > hands from keyboard, no stuttering. > > I remembered seeing this post ("important audio settings to test") > > http://comments.gmane.org/gmane.os.openbsd.tech/27483 > > And the below (from that post) makes my problems go away: > > # sndiod -r 48000 -b 7680 -z 1920 > > $ pkg_info | grep mplayer > gecko-mediaplayer-1.0.5p1 gnome-mplayer browser media plugin > gmtk-1.0.5p1 gnome-mplayer toolkit > gnome-mplayer-1.0.5p3 GTK+/GNOME frontend for MPlayer > mplayer-20110309p12 movie player supporting many formats > $ pkg_info | grep box > rhythmbox-2.95 integrated music management application for GNOME > $ pkg_info | grep Mozilla > firefox-9.0.1 Mozilla web browser > lightning-1.0beta9v0 Mozilla Thunderbird calendar extension > mozilla-dicts-en-GB-1.3 en-GB dictionary for Mozilla > spidermonkey-1.9.2.16p2v0 Mozilla C implementation of JavaScript > thunderbird-9.0.1 Mozilla e-mail, rss and usenet client > > Thanks. > > Sorry, full dmesg ... OpenBSD 5.1-beta (GENERIC.MP) #172: Mon Jan 30 16:30:40 MST 2012 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP cpu0: Intel(R) Pentium(R) 4 CPU 2.80GHz ("GenuineIntel" 686-class) 2.80 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,NXE,LONG,SSE3,MWAIT,DS-CPL,CNXT-ID,CX16,xTPR real mem = 1063346176 (1014MB) avail mem = 1035837440 (987MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 05/24/05, BIOS32 rev. 0 @ 0xffe90, SMBIOS rev. 2.3 @ 0xf0450 (72 entries) bios0: vendor Dell Inc. version "A01" date 05/24/2005 bios0: Dell Inc. OptiPlex GX520 acpi0 at bios0: rev 2 acpi0: sleep states S0 S1 S3 S4 S5 acpi0: tables DSDT FACP SSDT APIC BOOT ASF! MCFG HPET acpi0: wakeup devices VBTN(S4) PCI0(S5) PCI4(S5) PCI2(S5) PCI3(S5) PCI1(S5) PCI5(S5) PCI6(S5) MOU_(S3) USB0(S3) USB1(S3) USB2(S3) USB3(S3) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: apic clock running at 199MHz cpu1 at mainbus0: apid 1 (application processor) cpu1: Intel(R) Pentium(R) 4 CPU 2.80GHz ("GenuineIntel" 686-class) 2.80 GHz cpu1: 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,NXE,LONG,SSE3,MWAIT,DS-CPL,CNXT-ID,CX16,xTPR ioapic0 at mainbus0: apid 8 pa 0xfec0, version 20, 24 pins ioapic0: misconfigured as apic 0, remapped to apid 8 acpimcfg0 at acpi0 addr 0xf000, bus 0-255 acpihpet0 at acpi0: 14318179 Hz acpiprt0 at acpi0: bus 4 (PCI4) acpiprt1 at acpi0: bus 2 (PCI2) acpiprt2 at acpi0: bus 3 (PCI3) acpiprt3 at acpi0: bus 1 (PCI1) acpiprt4 at acpi0: bus -1 (PCI5) acpiprt5 at acpi0: bus -1 (PCI6) acpiprt6 at acpi0: bus 0 (PCI0) acpicpu0 at acpi0 acpicpu1 at acpi0 acpibtn0 at acpi0: VBTN bios0: ROM list: 0xc/0xa800! 0xca800/0x2000! 0xcc800/0x3800 pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 "Intel 82945G Host" rev 0x02 ppb0 at pci0 dev 1 function 0 "Intel 82945G PCIE" rev 0x02: apic 8 int 16 pci1 at ppb0 bus 1 vga1 at pci0 dev 2 function 0 "Intel 82945G Video" rev 0x02 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) intagp0 at vga1 agp0 at intagp0: aperture at 0xd000, size 0x1000 inteldrm0 at vga1: apic 8 int 16 drm0 at inteldrm0 "Intel 82945G Video" rev 0x02 at pci0 dev 2 function 1 not configured ppb1 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x01: apic 8 int 16 pci2 at ppb1 bus 2 bge0 at pci2 dev 0 function 0 "Broadcom BCM5751" rev 0x01, BCM5750 A1 (0x4001): apic 8 int 16, address 00:12:3f:5b:f1:18 brgphy0 at bge0 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0 ppb2 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x01: apic 8 int 17 pci3 at ppb2 bus 3 uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x01: apic 8 int 21 uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x01: apic 8 int 22 uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x01: apic 8 int 18 uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x01: apic 8 int 23 ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x01: apic 8 int 21 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1 ppb3 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xe1 pci4 at ppb3 bus 4 auich0 at pc
Re: Audio ports - stuttering - fixed with sndiod -r 48000 -b 7680 -z 1920
Quoting Alexandre Ratchov : > On Wed, Feb 08, 2012 at 01:45:03PM +1300, richardtoo...@paradise.net.nz > wrote: > > Hi, guys. > > > > I'm not sure if this is an issue, because the defaults might be best > for a > > normal/base install, just asking if this is as expected. > > > > This is my desktop/development box. I've got a snapshot of 30th Jan > and a set > > of ports from soon after. > > > > OpenBSD 5.1-beta (GENERIC.MP) #172: Mon Jan 30 16:30:40 MST 2012 > > dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP > > > > Rhythmbox and Gnome mplayer stuttering a bit playing mp3s ... > especially if I > > Alt-Tab to Firefox & Thunderbird (and do a bit of work in them.) If I > remove > > hands from keyboard, no stuttering. > > > > I remembered seeing this post ("important audio settings to test") > > > > http://comments.gmane.org/gmane.os.openbsd.tech/27483 > > > > And the below (from that post) makes my problems go away: > > > > # sndiod -r 48000 -b 7680 -z 1920 > > > > > Thanks! Have you tried "-b1920 -z480" and "-b3840 -z960", if not, > could you try them and see whether they fix audio? > > If possible, while stuttering occurs could you type: > > audioctl play.errors > Hi, Alexandre. Everything I tried was stuttering today ... then realised it worked better if I restarted Rhythmbox *after* each sndiod command. 8-) My "testing" is Rhythmbox playing MP3s with FF 9.0.1 & TB 9.0.1 also running. Mostly loading web pages, scrolling down web pages, switching tabs. On some of the "heavier" pages FF is taking 30%+ of one CPU. So ... not too good ... $ sndiod -b1920 -z480 $ audioctl play.errors play.errors=0 $ audioctl play.errors; sleep 5; audioctl play.errors play.errors=5760 play.errors=7680 $ audioctl play.errors; sleep 5; audioctl play.errors play.errors=14880 play.errors=23520 $ audioctl play.errors; sleep 5; audioctl play.errors play.errors=30240 play.errors=32640 $ audioctl play.errors; sleep 5; audioctl play.errors play.errors=36480 play.errors=39360 ... better ... $ sndiod -b3840 -z960 $ audioctl play.errors play.errors=0 $ audioctl play.errors; sleep 5; audioctl play.errors play.errors=960 play.errors=960 $ audioctl play.errors; sleep 5; audioctl play.errors play.errors=2880 play.errors=2880 $ audioctl play.errors; sleep 5; audioctl play.errors play.errors=5760 play.errors=5760 $ audioctl play.errors; sleep 5; audioctl play.errors play.errors=5760 play.errors=6720 $ audioctl play.errors; sleep 5; audioctl play.errors play.errors=8640 play.errors=8640 $ audioctl play.errors; sleep 5; audioctl play.errors play.errors=9600 play.errors=9600 ... best (if FF is flat out I might get a stutter or two, but for normal use all good.) $ sndiod -b7680 -z1920 $ audioctl play.errors play.errors=0 $ audioctl play.errors play.errors=0 $ audioctl play.errors; sleep 5; audioctl play.errors play.errors=0 play.errors=0 $ audioctl play.errors; sleep 5; audioctl play.errors play.errors=0 play.errors=0 $ audioctl play.errors; sleep 5; audioctl play.errors play.errors=0 play.errors=0 $ audioctl play.errors; sleep 5; audioctl play.errors play.errors=0 play.errors=0 Thanks. > and see whether the counter increases during stuttering? > > thanks! > > -- Alexandre
Re: Recovery after newfs_msdos
Quoting JFS : > Hello, > > Sorry for that question however > > I have made a newfs_msdos on the wrong USB sticker which contained jpeg > > and mov files. > Since nothing has been done on that disk afterwards, do we have any mean > > to recover the datas ? Maybe try http://en.wikipedia.org/wiki/Photorec Never used it myself. And there might be better answers, so wait and see! > > Thanks, > > Jean-Frangois
Re: About Xen: maybe a reiterative question but ..
Quoting "Douglas A. Tutty" <[EMAIL PROTECTED]>: > Problem: in your analogy, there is some limit to the number of bad guys > before they become obvious to local law-enforcement. In the computer > case, best to consider the number of bad guys unlimited; you can only > limit the _rate_ at which they try to attack via the net (physical > security is back to the car analogy; how many datacentres do you need). > > Answer to your question: > > 4 cars, all dummies. > > Dress the diplomats up as cleaning staff and send them via public > transit. > > This is where the analogy breaks down. The safety of the ambasidors > relies on secrecy; if its blown, the bad guys will know which car the > good guys are in and will blow it up. If it secrecy remains tight, they > won't know your plans whatever they are. > > Doug. > I would have thought this is further evidence of the analogy not being too bad. You are relying on secrecy - if that is blown, you're screwed across the board - all four ambassadors. So for virtualisation, you are relying on the separate application domains being partitioned off from each other - and if that is blown, you're screwed across the board again. In both cases, the failure could be malicious (bad guy tortures the maid for information / hacker gets into system) or accidental (toxic leak on subway / some interaction between guest process and host triggers previously undiscovered bug.) But instead of going all James Bond-ish - I could have said is having all your eggs in one basket more secure?
Re: identifying sparse files and get ride of them trick available?
Quoting Daniel Ouellet <[EMAIL PROTECTED]>: > Only two things here. > > 1. "you have to identify your sparse file in advance." > > That is the question. Look at the title. > Hi, Daniel. Did you look at the Perl script I sent? [code] use strict; use warnings; use File::Find; sub process_file { my $f=$File::Find::name; (my $dev,my $ino,my $mode,my $nlink,my $uid,my $gid,my $rdev,my $size,my $atime,my $mtime,my $ctime,my $blksize,my $blocks) =stat($f); if ($blocks * 512 < $size) { print "\t$f => SZ: $size BLSZ: $blksize BLKS: $blocks \n"; print "\t" . -s $f; print "\n"; } } find(\&process_file,("/home/sparse-files")); [/code] Change the "/home/sparse-files" to a directory that has sparse files, and see if it works - it should only list files where size is less than blocks * 512 (and according to Otto, these are sparse files.) If this DOES work, it might be a building block or an approach that can be extended. Or it might be useless - only one way to find out. (P.S. - and I'm trying to be helpful here so PLEASE take it as that, not me being mean - "witch" is a person on a broomstick and "waist" is around your hips - you usually intend "which" and "waste" in your postings.)
Re: pfctl - show port numbers
Quoting Stuart Henderson <[EMAIL PROTECTED]>: > *seriously* unsupported: > > $ perl -pi -e s,etc/services,etc/sXrvices, < /sbin/pfctl > > ~/bin/pfctl-no-service-names > > your foot is > > : > > : > > : > > V > > this way > A longer winded version (same idea - Perl ... and no prizes for my code) use warnings; use strict; # Get the rules my $pfctl_rules=`pfctl -s rules`; # Get the known services open(SERVICES,"; # Pull out the TCP services my %services; foreach my $service (@services) { if ($service =~ /(.*?)[\s]*([0-9]{1,4})\/tcp/) { my $service_name=$1; my $service_port=$2; $services{$service_name}=$service_port; } } # Now go through the rules - if we find port = ccc then translate, otherwise # just print the pftcl line "as is" foreach my $pfctl_rule (split /\n/,$pfctl_rules) { if ($pfctl_rule =~ /(.*?)port = ([\D]*?)([\s].*)/) { my $look_up=""; if (exists $services{$2}) { $look_up=$services{$2}; } print "$1port = $2($look_up)$3\n"; } else { print "$pfctl_rule\n"; } } Sample (manually altered, obviously): # perl pfrules.pl block drop log all pass out quick on XXX1 inet proto tcp from (XXX1) to NNN.NNN.NNN.NNN port = ssh(22) flags S/SA keep state pass proto udp from any to any port = domain(53) keep state pass in log on XXX0 inet proto tcp from any to 127.0.0.1 port = 8021 flags S/SA keep state pass in on XXX0 inet proto tcp from any to NNN.NNN.NNN.NNN port = www(80) flags S/SA keep state pass in on XXX0 inet proto tcp from any to NNN.NNN.NNN.NNN port = https(443) flags S/SA keep state
Help with Seagate STT3401A tape drive
Hi, all. I've finally found some time to try and get a tape drive - Seagate STT3401A (now Certance/Quantum) - working on a Dell SC440. I've not used tapes before, found plenty on Google, but I cannot get anything to work as documented. Most of the commands seem to fail for me (OpenBSD 4.2 CD release with errata patches on i386.) For example, I insert the tape (Travan 40GB - 20GB/40GB - preformatted cartridge), wait a few seconds, and then: mt rewind will log this (/var/log/messages): /bsd: wdc_atapi_intr: warning: reading only 255 of 256 bytes Or: tar cvf /dev/nrst0 AFile.zip Shows this on the console: AFile.zip tar: Failed write to archive volume: 1: Invalid argument tar: Waiting for tape drive close to complete...done. And this in /var/log/messages: last message repeated 2 times /bsd: st0(atapiscsi1:0:0): Check Condition (error 0x70) on opcode 0xa /bsd: SENSE KEY: Illegal Request /bsd: ASC/ASCQ: Illegal Function (Should 20 00, 24 00, or 26 00) I've tried using dd; using /dev/nrst0; a different tape; etc. with much the same output. I've Googled for a couple of hours and I am none the wiser - is it something to do with the tape drive not being a SCSI device (it appears to be ATAPI, and therefore using the atapiscsi adapter?) Am I doing something very basically wrong or is this just not going to work? Thanks. dmesg follows: OpenBSD 4.2 (GENERIC) #0: Mon Dec 3 15:35:59 NZDT 2007 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel(R) Pentium(R) D CPU 3.00GHz ("GenuineIntel" 686-class) 3 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,S SE3,MWAIT,DS-CPL,EST,CNXT-ID,CX16,xTPR real mem = 1071722496 (1022MB) avail mem = 1028661248 (981MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 07/03/07, BIOS32 rev. 0 @ 0xffe90, SMBIOS rev. 2.3 @ 0xf0450 (63 entries) bios0: vendor Dell Inc. version "1.4.1 " date 07/03/2007 bios0: Dell Inc. PowerEdge SC440 apm0 at bios0: Power Management spec V1.2 apm0: AC on, battery charge unknown apm0: flags 30102 dobusy 0 doidle 1 pcibios0 at bios0: rev 2.1 @ 0xf/0x1 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfed10/256 (14 entries) pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82801GH LPC" rev 0x00) pcibios0: PCI bus #5 is the last bus bios0: ROM list: 0xc/0x9000 0xc9000/0x2000! 0xcb000/0x1000 cpu0 at mainbus0 cpu0: Enhanced SpeedStep disabled by BIOS pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 "Intel E7230 MCH" rev 0x00 ppb0 at pci0 dev 1 function 0 "Intel E7230 PCIE" rev 0x00 pci1 at ppb0 bus 1 ppb1 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x01 pci2 at ppb1 bus 2 ppb2 at pci0 dev 28 function 4 "Intel 82801G PCIE" rev 0x01 pci3 at ppb2 bus 3 em0 at pci3 dev 0 function 0 "Intel PRO/1000 PT (82572EI)" rev 0x06: irq 11, address 00:15:17:3d:36:64 ppb3 at pci0 dev 28 function 5 "Intel 82801G PCIE" rev 0x01 pci4 at ppb3 bus 4 bge0 at pci4 dev 0 function 0 "Broadcom BCM5754" rev 0x02, BCM5754/5787 A2 (0xb002): irq 10, address 00:1d:09:09:81:81 brgphy0 at bge0 phy 1: BCM5787 10/100/1000baseT PHY, rev. 0 uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x01: irq 9 uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x01: irq 5 uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x01: irq 3 uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x01: irq 10 ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x01: irq 9 usb0 at ehci0: USB revision 2.0 uhub0 at usb0: Intel EHCI root hub, rev 2.00/1.00, addr 1 ppb4 at pci0 dev 30 function 0 "Intel 82801BA AGP" rev 0xe1 pci5 at ppb4 bus 5 vga1 at pci5 dev 7 function 0 "ATI ES1000" rev 0x02 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) ichpcib0 at pci0 dev 31 function 0 "Intel 82801GB LPC" rev 0x01: PM disabled pciide0 at pci0 dev 31 function 1 "Intel 82801GB IDE" rev 0x01: DMA, channel 0 configured to compatibility, channel 1 configur ed to compatibility atapiscsi0 at pciide0 channel 0 drive 0 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: SCSI0 5/cdrom removable atapiscsi1 at pciide0 channel 0 drive 1 scsibus1 at atapiscsi1: 2 targets st0 at scsibus1 targ 0 lun 0: SCSI2 1/sequential removable cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 st0(pciide0:0:1): using PIO mode 3 pciide0: channel 1 ignored (disabled) pciide1 at pci0 dev 31 function 2 "Intel 82801GB SATA" rev 0x01: DMA, channel 0 configured to native-PCI, channel 1 configured to native-PCI pciide1: using irq 5 for native-PCI interrupt wd0 at pciide1 channel 0 drive 0: wd0: 16-sector PIO, LBA48, 476940MB, 976773168 sectors wd1 at pciide1 channel 0 drive 1: wd1: 16-sector PIO, LBA48, 476940MB, 976773168 sectors wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5 wd1(pciide1:0:1): using PIO mode 4, Ultra-DMA mode 5 ichiic0 at pci0 dev 31 function 3 "Intel
Re: httpd slowdown issues
Quoting Chris Tankersley <[EMAIL PROTECTED]>: > I have a development web server set up for httpd, mysql5 and php5 that > has all of a sudden started randomly pausing. After some testing > (removing PHP modules, httpd conf settings, etc) it seems that simply > loading PHP is what is causing the issue. If I remove it from httpd > then serving static HTML is fine. With PHP enabled I get issues with > slow rendering of PHP content, slow CLI scripts (another sign it is > just PHP itself), and when I do a 'apachectl stop' the box will hang > for up to 60 seconds before responding again. I updated to the newest > 4.3-stable last week to see if that would help but to no avail. > > I have loaded everything from Packages and there is nothing from Ports > or hand compiled on the box. My 4.1-stable box has not encountered any > issues such as this though it is slated to be updated to 4.3 as soon > as some new hardware comes in. > > Any other info that is needed, just let me know. Hi, Chris. Does *any* PHP script - even just show the problem? I think you are saying so above, but just to confirm. Trying to narrow it down to the smallest problem script. > > [EMAIL PROTECTED] pkg_info > apr-1.2.11p1 Apache Portable Runtime > apr-util-1.2.10p0 companion library to APR > autoconf-2.61p1 automatically configure source code on many Un*x > platforms > curl-7.17.1 get files from FTP, Gopher, HTTP or HTTPS servers > db-4.6.21 Berkeley DB package, revision 4 > femail-0.97p0 simple SMTP client > gettext-0.16.1 GNU gettext > jpeg-6bp3 IJG's JPEG compression utilities > libiconv-1.9.2p5 character set conversion library > libidn-1.1 internationalized string handling > libltdl-1.5.22p3 GNU libtool system independent dlopen wrapper > libmcrypt-2.5.7p1 interface to access block/stream encryption > algorithms > libxml-2.6.30 XML parsing library > mhash-0.9.1p1 strong hash library > mod_dav-1.0.3p5 class 1 and 2 DAV server for the Apache webserver > monit-4.10.1p0 monitoring and managing daemons utility > mysql-client-5.0.51a multithreaded SQL database (client) > mysql-server-5.0.51a multithreaded SQL database (server) > nano-2.0.7 Pico editor clone with enhancements > neon-0.26.2 HTTP and WebDAV client library, with C interface > p5-DBD-mysql-4.005 MySQL drivers for the Perl DBI > p5-DBI-1.59 unified perl interface for database access > p5-Net-Daemon-0.43 extension for portable daemons > p5-PlRPC-0.2018p0 module for writing rpc servers and clients > pear-1.5.0p1 base classes for common PHP tasks > pear-utils-1.5.0p0 utilities for managing pear extensions > pecl-APC-3.0.15 Alternative PHP Cache > php5-core-5.2.5p2 server-side HTML-embedded scripting language > php5-curl-5.2.5 curl URL library extensions for php5 > php5-extensions-5.2.5 informational package about PHP5 extensions > php5-gd-5.2.5-no_x11 image manipulation extensions for php5 > php5-mbstring-5.2.5 multibyte characters extensions for php5 > php5-mcrypt-5.2.5 mcrypt encryption/decryption extensions for php5 > php5-mysql-5.2.5 mysql database access extensions for php5 > php5-mysqli-5.2.5 mysql database access extensions for php5 > png-1.2.22 library for manipulating PNG images > python-2.5.2 interpreted object-oriented programming language > rsync-2.6.9 mirroring/synchronization over low bandwidth links > screen-4.0.3p1 multi-screen window manager > subversion-1.4.4 subversion revision control system > t1lib-5.1.0p1 Type 1 rasterizer library for UNIX/X11 > vim-7.1.244p0-no_x11 vi clone, many additional features > wget-1.10.2p1 retrieve files from the web via HTTP, HTTPS and FTP > > Chris
Re: httpd slowdown issues
Quoting Chris Tankersley <[EMAIL PROTECTED]>: [cut] > >> I have a development web server set up for httpd, mysql5 and php5 > that > >> has all of a sudden started randomly pausing. After some testing > >> (removing PHP modules, httpd conf settings, etc) it seems that > simply > >> loading PHP is what is causing the issue. [cut] > Yes, even going down to something as little as World'; ?> has a 5-10 second response time. [cut] So ... 1. anything in the httpd error log (/var/www/logs/error_log?) 2. if you run the test script above from the command line, same problem (that is, is it a problem with PHP, or PHP within Apache?) 3. does php -i on the command line show anything useful or the same slowdown? 4. seems strange that it was all working until recently - *anything* changed recently on the box, however unrelated it might seem? Any network changes (DNS?), patches applied? Disk space OK? Anything unhappy in the logs? I'm running on a similar-ish set-up and have no slow-down issues: # pkg_info gettext-0.16.1 GNU gettext libiconv-1.9.2p5character set conversion library libxml-2.6.30 XML parsing library mysql-client-5.0.51a multithreaded SQL database (client) mysql-server-5.0.51a multithreaded SQL database (server) p5-DBD-mysql-4.005 MySQL drivers for the Perl DBI p5-DBI-1.59 unified perl interface for database access p5-Net-Daemon-0.43 extension for portable daemons p5-PlRPC-0.2018p0 module for writing rpc servers and clients php5-core-5.2.5p2 server-side HTML-embedded scripting language php5-mysql-5.2.5mysql database access extensions for php5 popt-1.7p0 getopt(3)-like library with a number of enhancements samba-3.0.28SMB and CIFS client and server for UNIX unzip-5.52 extract, list & test files in a ZIP archive vim-7.1.244p0-no_x11 vi clone, many additional features # uname -a OpenBSD blah.blah.blah 4.3 GENERIC#698 i386
Re: Changing From headers in mail on a whim?
Quoting "Aaron W. Hsu" <[EMAIL PROTECTED]>: > Hey all, > > I was looking at mail(1) and wondering if there was any way to get > control over the other headers? I haven't checked the source yet, but I > couldn't find any documentation on adjusting the from headers on a whim > in mail. I send mail to some people from differing addresses, and I'd > prefer to be able to do this easily in mail when I need to. I am find > with doing a little sendmail magic if that's what is required. > Unfortunately, the information I found on the web assumed a mail > version > that had slightly more options than does the OpenBSD version. > Any problem just using sendmail? Maybe I missed your point entirely. $ sendmail -t [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Test This was a test. . $ More here .. http://www.modwest.com/help/kb10-84.html ... and in Google.
Re: Upgrading OpenBSD
Quoting "Richards, Toby" : > Will pkg_add -ui upgrade between major releases, such as php 5.2.x => > 5.3.x? > When I upgraded OpenBSD 4.9 => 5.0, there was a huge issue because > it supported both PHP 5.2.x AND 5.3.x. I'd have loved to seamlessly > upgraded to 5.3.x, but the support of both made it nearly > impossible. PHP 5.2.x and PHP 5.3.x are different streams of PHP - you can't assume that a PHP 5.2.x code base will work on 5.3. http://www.php.net/manual/en/migration53.incompatible.php So, no, something major like that needs a bit of thinking, regardless of OS. You'd be up the creek without a paddle if your X hundred websites based on some PHP 5.2 feature stopped working with PHP 5.3, wouldn't you? I've been upgrading FreeBSD and OpenBSD for the last few years (base + ports/packages) and both have been absolutely rock solid ... sometimes there's a little more thinking required on the administrator's part first - the system can't guess your intentions. You want to be on MySQL 5.1 or 5.5? PHP 5.4? Apache 2.4? I don't want the upgrade making those choices for me ... > > > Respectfully Submitted, > R. Toby Richards > Network Administrator > Superior Court of California > In and for the County of San Luis Obispo > (805) 781-4150 > > From: Mike Erdely [m...@erdelynet.com] > Sent: Monday, May 21, 2012 7:05 PM > To: Richards, Toby > Cc: misc@openbsd.org > Subject: Re: Upgrading OpenBSD > > On Mon, May 21, 2012 at 9:43 PM, Richards, Toby > wrote: > > OpenBSD does have an Upgrade > > option, but does it upgrade the installed packages? > > pkg_add -
Re: Upgrading OpenBSD
Quoting "Richards, Toby" : > Okay, let's compare upgrading OpenBSD 4.9 + Nginx + PHP 5.2.x to > OpenBSD 5.0 + Nginx + PHP 5.3.x vice upgrading > Windows 2003 + IIS 6 + ASPDotNet 3.5 to Windows 2008 + > IIS 7.0 + ASPDotNet 4.0. Errmm, apples and oranges comparison here. Everything on your Microsoft platform is from errr, one supplier, Microsoft. Imagine you used PostgreSQL and ColdFusion with Apache running on Windows ... and then upgraded Windows. Would ColdFusion upgrade? PostgreSQL? Or let's go back a few years ... would classic ASP automatically upgrade to VB.Net? Sounds like you like the walled garden approach and it works for you. So might be best to stick to it. > > In my experience, the MicroEvil Upgrade works without breaking > any of my web apps. The OpenBSD upgrade gets confused about > Nginx versions and PHP versions. Maybe it gets less confused > if I happen to know about some system variable that describes > the version of PHP that I want. > > Granted: I do hold an MCSE certification, but I don't need it. > The upgrade just works. Well... despite occasional BSOD's ;) > > I really *really* want to go the BSD path, but it seems > so much more difficult. > > Respectfully Submitted, > R. Toby Richards > Network Administrator > Superior Court of California > In and for the County of San Luis Obispo > (805) 781-4150 > > From: Kenneth R Westerback [kwesterb...@rogers.com] > Sent: Monday, May 21, 2012 8:01 PM > To: Richards, Toby > Cc: misc@openbsd.org > Subject: Re: Upgrading OpenBSD > > On Mon, May 21, 2012 at 06:43:19PM -0700, Richards, Toby wrote: > > While my question involves other BSD's as well as Linux systems, I am > > asking this here because OpenBSD's philosophy is the most attractive > > to me. > > > > I've got about 50 servers to manage. OpenBSD does have an Upgrade > > option, but does it upgrade the installed packages? As far as I can > > tell, it does not. I do very much appreciate the technology that has > > come from the OpenBSD project, yet it seems to me that most *free* > > operating systems do not fully support an upgrade path. I can't > [fully] > > upgrade from one OpenBSD release to another (unless following STABLE > > gets me from one RELEASE to another, but AFAIK it does not). I cannot > > seamlessly upgrade from Free/PC-BSD 8.x to 9.x. Instead I must > > re-install from scrach. The same goes for CentOS/RHEL 5.x to 6.x, and > > for every version of Mint Linux. > > Not really sure what you mean by 'fully' upgrade. Doing the normal > upgrade and then 'pkg_add -ui' does it all for me. It does not > magically upgrade database structures, etc. of course, but what > does? > > > > > The two major commercial operating systems (considered to be evil by > > the FOSS community) easily upgrade from one version to the next. > That's > > important in a real-life production environment. In 2001, I upgraded > > 200 workstations and 7 servers from Windows NT 4.0 to Windows 2000 > > without incident. I've had similar experience with all subsiquent > > MicroEvil systems. I do hate MicroEvil, but I can make only limited > > conclusions regarding the upgrade paths of other operating systems: > > > > 1) Your project exists only for the sake of doing the project, and > for > > the technologies that it produces (such as OpenSSH). > > True, but not relevant to your case I think. > > > > > 2) Folks are expected to install a version of OpenBSD, but not > upgrade > > because there's no reason to fix something that isn't broken. > > Something is *always* broken. OpenBSD *strongly* recommends upgrading > every six months with every release. We give strong impetus for this > by not supporting more than 1 release back. We *expect* everyone to > be keeping up. > > > > > 3) OpenBSD is only for organizations who have so few servers or so > many > > IT folks that re-installing everything from scratch is not inviably > > cumbersome. > > Untrue. Many organizations have large number of OpenBSD boxes. A > full manual 'official method' upgrade (including a few hundred > packages!) usually takes me less than twenty minutes, including > backing up the old and new configuration (a.k.a. /etc, /var) > information. Certain *vastly* less time than it ever takes me or > those I watch (giggling) to upgrade any version of Windows and the > packages thereon. And that's including full bore enterprise situations > with outsourcing 'experts', SCM (or whatever MS calls it these > days), multi-gigabit network everywhere, etc. > > There are various automated install tools out there too, but not > (yet) officially part of the release. > > > > > 4) I am oblivious to some upgrade path technique for FOSS operating > > systems. > > Merely lacking experience I'd say. > > Ken > > > > > Please enlighten me. > > > > Respectfully Submitted, > > R. Toby Richards > > Network Administrator > > Superior Court of California > > In and for the County of San Luis Obispo > > (805
Re: Fresh install of 5.1 doesn't allow me to creat user but after install I can.
Quoting cody chandler : > Hello, > > OpenBSD 5.1 -Release. 4 installs tested. During install when it first > asks do I want to creat a user. It does not allow me to creat the user > name > II00I00II. But after the install I can use useradd or adduser and am > able > to login with the user. Another issue I came accross. In the sudoers > file > I have 2 names under root and not using the wheel group but using the > name > for sudoers. The 2nd name works but this name "II00I00II" does not work > with sudo. Is there a reason for this to not work as expected? To > clairify the name is capital i's with number 0's. > Same sort of thing bit me when using periods in the user name: http://old.nabble.com/Installer-adding-user---doesn%27t-allow-periods-in-user-name-td30129803.html The installer is more strict about the permitted user names. See also man adduser. > Thanks > Cody
Re: Fresh install of 5.1 doesn't allow me to creat user but after install I can.
Quoting cody chandler : > Hello, > > On Tue, Jun 26, 2012 at 4:29 PM, wrote: > > > Quoting cody chandler : > > > > > Hello, > > > > > > OpenBSD 5.1 -Release. 4 installs tested. During install when it > first > > > asks do I want to creat a user. It does not allow me to creat the > user > > > name > > > II00I00II. But after the install I can use useradd or adduser and > am > > > able > > > to login with the user. Another issue I came accross. In the > sudoers > > > file > > > I have 2 names under root and not using the wheel group but using > the > > > name > > > for sudoers. The 2nd name works but this name "II00I00II" does not > work > > > with sudo. Is there a reason for this to not work as expected? To > > > clairify the name is capital i's with number 0's. > > > > > > > Same sort of thing bit me when using periods in the user name: > > > > > > > http://old.nabble.com/Installer-adding-user---doesn%27t-allow-periods-in-user-name-td30129803.html > > > > The installer is more strict about the permitted user names. > > > > See also man adduser. > > > I did check the man page before asking in email. > > Per the man page of "adduser(8)" > > RESTRICTIONS > username > It is recommended that login names contain only lowercase > characters and digits. They may also contain uppercase > characters, non-leading hyphens, periods, underscores, and a > trailing `$'. > > Thats what throws me off. The username I tried is "II00I00II" upper case > i > and number zero (0). Which are said to be of allowed per the man page. If you read what Ted says on the link I sent, he explains that older software expects user names in a certain format - the format that is recommended by adduser. Sorry it turned out to be a red herring for you - when I was caught out by this, the adduser man page helped me - it explained why I could do something in adduser and not the installer - adduser follows the "may" path, the installer follows the "recommended" path. Also in the link I sent, was the code from the installer (4.7) - and that shows what the installer was/is doing. HTH. > > > > > > > Thanks > > > Cody
Re: Fresh install of 5.1 doesn't allow me to creat user but after install I can.
Quoting richardtoo...@paradise.net.nz: > Quoting cody chandler : > > > Hello, > > > > On Tue, Jun 26, 2012 at 4:29 PM, > wrote: > > > > > Quoting cody chandler : > > > > > > > Hello, > > > > > > > > OpenBSD 5.1 -Release. 4 installs tested. During install when it > > first > > > > asks do I want to creat a user. It does not allow me to creat the > > user > > > > name > > > > II00I00II. But after the install I can use useradd or adduser and > > am > > > > able > > > > to login with the user. Another issue I came accross. In the > > sudoers > > > > file > > > > I have 2 names under root and not using the wheel group but using > > the > > > > name > > > > for sudoers. The 2nd name works but this name "II00I00II" does > not > > work > > > > with sudo. Is there a reason for this to not work as expected? To > > > > clairify the name is capital i's with number 0's. > > > > > > > > > > Same sort of thing bit me when using periods in the user name: > > > > > > > > > > > > http://old.nabble.com/Installer-adding-user---doesn%27t-allow-periods-in-user-name-td30129803.html > > > > > > The installer is more strict about the permitted user names. > > > > > > See also man adduser. > > > > > I did check the man page before asking in email. > > > > Per the man page of "adduser(8)" > > > > RESTRICTIONS > > username > > It is recommended that login names contain only lowercase > > characters and digits. They may also contain uppercase > > characters, non-leading hyphens, periods, underscores, and a > > trailing `$'. > > > > Thats what throws me off. The username I tried is "II00I00II" upper > case > > i > > and number zero (0). Which are said to be of allowed per the man > page. > > If you read what Ted says on the link I sent, he explains that older > software > expects user names in a certain format - the format that is recommended > by adduser. > > Sorry it turned out to be a red herring for you - when I was caught out > by this, > the adduser man page helped me - it explained why I could do something > in > adduser and not the installer - adduser follows the "may" path, the > installer > follows the "recommended" path. > > Also in the link I sent, was the code from the installer (4.7) - and > that shows > what the installer was/is doing. On re-reading the code ... to be 100% correct, it is implementing the recommended part (lowercase a-z, 0-9) but additionally allows underscores (in the 4.7 version that I looked at.) I think I've muddied the waters enough, back to lurking! > > HTH. > > > > > > > > > > > Thanks > > > > Cody
Re: OpenBSD's webpage desing
Quoting Pablo Velasco Fernández : > I mean.. A modern style. > El 26/06/2012 23:55, "Miod Vallat" escribió: > > > > Hi. I was loolong the FreeBSD web page. And its a cool page with a > cool > > > desing. Maybe OpenBSD should change their own page to a most > "visual" web > > > page. ( Its only my opinion ) What do you think? > > > > Last time I checked, you could use eyes to browse the OpenBSD > website. > > Why do you consider it non-visual? > > > > Miod > > I'd prefer the (small) team of developers to work on the code.
Re: OpenBSD's webpage desing
Quoting Matthew Dempsky : > On Tue, Jun 26, 2012 at 3:24 PM, wrote: > > I'd prefer the (small) team of developers to work on the code. > > Well, that's a false dichotomy: not all OpenBSD committers work on the > code. A handful work primarily on maintaining the website and/or > documentation, because that's an important job too. > > Fair enough, I am not a developer, so it was entirely my 2c. I'm sure there are a lot of people who pop up and offer to do stuff but when the going gets tough and not much fun, they melt away like snowflakes. I've seen it in a number of organisations - lots of ideas, not enough implementers (if there's such a word.) I appreciate OpenBSD and the work that goes into it and I would like to contribute more than I do - but my time is short, and there are other things I'd like to do more ... choices, choices!
Re: userdel -p option - FAQ/man page issue?
Quoting William Boshuck : > On Thu, Sep 15, 2011 at 12:05:55PM +0200, Tomas Bodzar wrote: > > On Thu, Sep 15, 2011 at 11:57 AM, Tomas Bodzar > > > wrote: > > > On Thu, Sep 15, 2011 at 11:28 AM, Richard Toohey > > > wrote: > > >> That last sentence - sounds exactly like what I need - so I try > it: > > >> > > >> # userdel -p testuser > > >> usage: userdel -D [-p preserve-value] > > >> B B B userdel [-prv] user > > >> > > > I'm on current. Anyway strange that -v switch doesn't provide > verbose > > > output in fact and that information in password file was not > preserved > > > in fact. User disappeared somewhere, but where :-) Files are in > place > > > as you can see. > > > > > > > > >$ sudo rm -rf /home/test/ > > $ userdel -D > > preserve false > > $ userdel -p true > > usage: userdel -D [-p preserve-value] > > userdel [-prv] user > > This should be 'userdel -D -p true' > according to userdel(8). > I don't mean it rudely, but where do you see that in userdel(8)? USERDEL(8) OpenBSD System Manager's Manual USERDEL(8) NAME userdel - remove a user from the system SYNOPSIS userdel -D [-p preserve-value] userdel [-prv] user The second form suggests that I should be able to do ... userdel -p user ... doesn't it? (And that is also what the I think the FAQ is telling me.) Thanks. > 'userdel -p true user' also works > if preserve has not been set to > true (one way or another), which > is perhaps not obvious from the > syopsis.
Re: Re : Php script using adodb cannot connect to mysql when executed in chroot /var/www
Quoting Mik J : > > De : "richardtoo...@paradise.net.nz" > > > > OpenBSD 3.9? Or 4.9? > My mistake, yes it's OpenBSD 4.9 > > Have you tried connecting to 127.0.0.1 rather than localhost? (That won't be why you are getting the Fatal error: Call to undefined function mysql_pconnect(), though.) Why don't you remove ADODB from the equation? Strip it down to the smallest example of it not working, and then build up from there. Does ... ... work? > > Quoting Mik J > : > > > >> Hello everyone, > >> > >> My problem is that I > cannot execute a php script in CLI. This > >> test script is supposed to > connect to mysql and retrieve some simple > >> results > >> Systeme: OpenBSD 3.9 > >> Packages installed: php5-core-5.2.17, > >> php5-extensions-5.2.17, > >> > php5-gd-5.2.17, php5-mysql-5.2.17, php5-snmp-5.2.17, > >> > mysql-server-5.1.54p3, mysql-client-5.1.54p0 > >> > >> Preparation > >> > - > >> mysqld is started like this > >> # > /usr/local/bin/mysqld_safe --user=_mysql > >> --pid-file=/var/mysql/mysql.pid & > >> > >> I have configured /etc/my.cnf in my base > >> system like this > >> > [mysqld] > >> socket = /var/www/var/run/mysql/mysql.sock > >> Once mysqld is > started I have the mysql.sock created in > >> /var/www/var/run/mysql > >> # ls > /var/www/var/run/mysql/ > >> mysql.sock > >> > >> I hard linked it to > /var/run/mysql/ > >> # > >> ln /var/www/var/run/mysql/mysql.sock > /var/run/mysql/mysql.sock > >> > >> I have > >> downloaded adodb5 and placed it > in /var/www, then adapted this code for > >> test > >> purpose > >> >> > include('../adodb5/adodb.inc.php'); > >> $conn = > >> > &ADONewConnection('mysql'); > >> $conn->PConnect('localhost','cacti','cac > > > tipw','cactidb'); > >> $sql = 'select > >> hostname,description from host;'; > >> > $recordSet = &$conn->Execute($sql); > >> if > >> (!$recordSet) > >> print > $conn->ErrorMsg(); > >> else > >> while (!$recordSet->EOF) { > >> print > $recordSet->fields[0].' > > '.$recordSet->fields[1].''; > >> > >> > $recordSet->MoveNext(); > >> } > >> $recordSet->Close(); > >> $conn->Close(); > >> > ?> > > > >> > >> > >> I also > >> copied /etc/my.cnf in /var/www/etc but changed > the path for the client > >> [client] > >> socket = /var/run/mysql/mysql.sock > >> > >> > >> The tests > >> - > >> Case 1: The script is ran without any > chroot consideration => Works > >> # > >> /usr/local/bin/php > /var/www/htdocs/adotest.php > >> 127.0.0.1 System11.1.1.1 > >> System2 > >> > >> Case 2: The script is ran through the apache chrooted server > >> using > the url http://localhost/adotest.php => Works > >> 127.0.0.1 System1 > >> > 1.1.1.1 > >> System2 > >> > >> Case 3: The script is ran in command line and > simulates a user > >> running it in the chroot (/var/www) => Fails > >> # > /usr/sbin/chroot /var/www > >> /bin/php /htdocs/adotest.php > >> PHP Fatal > error: Call to undefined function > >> mysql_pconnect() in > /adodb5/drivers/adodb-mysql.inc.php on line 383 > >> Fatal > >> error: Call to > undefined function mysql_pconnect() in > >> /adodb5/drivers/adodb-mysql.inc.php > on line 383 > >> Note that: the adotest.php > >> script was able to include > /adodb5/drivers/adodb-mysql.inc.php > >> > >> > >> I thought > >> that maybe there > is something wrong with connecting to mysql > >> inside the > >> chroot so I > copied the mysql client inside the chroot > >> (/var/www) and the > >> > associated dynamic libraries. > >> > >> But everything worked when I tried to > connect > >> to the database > >> # /bin/mysql -u cacti -p > >> Enter password: > >> Welcome to the MySQL > >> monitor. Commands end with ; or \g. > >> Your > MySQL connection id is 6 > >> > >> > >> I've > >> searched for a long time and I > have no clue why it's working when the > >> script > >> is executed by Apache > and not working when executed in cli inside > >> chroot > >> /var/www. Does > anyone have an idea on how to solve this ? > >> > >> If you want to test > >> > just download adodb5 and place it in /var/www > >> > > > http://sourceforge.net/projects/adodb/files/adodb-php5-only/adodb-514-for-php > >> 5/adodb514.zip/download > >> Place the php script adotest.php in > /var/www/htdocs > >> Thank you
Re: Re : Php script using adodb cannot connect to mysql when executed in chroot /var/www
Quoting richardtoo...@paradise.net.nz: > Quoting Mik J : > > > > De : "richardtoo...@paradise.net.nz" > > > > > > > > OpenBSD 3.9? Or 4.9? > > My mistake, yes it's OpenBSD 4.9 > > > > > > Have you tried connecting to 127.0.0.1 rather than localhost? > I suggest this because ... http://openbsd.org/faq/faq10.html#httpdchroot Name Resolution: httpd(8) inside the chroot(2) will NOT be able to use the system /etc/hosts or /etc/resolv.conf. Therefore, if you have applications which require name resolution, you will need to populate /var/www/etc/hosts and/or /var/www/etc/resolv.conf in the chroot(2) environment. Note that some applications expect the resolution of "localhost" to work. > (That won't be why you are getting the Fatal error: Call to undefined > function > mysql_pconnect(), though.) > > Why don't you remove ADODB from the equation? Strip it down to the > smallest > example of it not working, and then build up from there. > > Does ... > > connect'); ?> > > ... work? > > > > Quoting Mik J > > : > > > > > >> Hello everyone, > > >> > > >> My problem is that I > > cannot execute a php script in CLI. This > > >> test script is supposed to > > connect to mysql and retrieve some simple > > >> results > > >> Systeme: OpenBSD 3.9 > > >> Packages installed: php5-core-5.2.17, > > >> php5-extensions-5.2.17, > > >> > > php5-gd-5.2.17, php5-mysql-5.2.17, php5-snmp-5.2.17, > > >> > > mysql-server-5.1.54p3, mysql-client-5.1.54p0 > > >> > > >> Preparation > > >> > > - > > >> mysqld is started like this > > >> # > > /usr/local/bin/mysqld_safe --user=_mysql > > >> --pid-file=/var/mysql/mysql.pid & > > >> > > >> I have configured /etc/my.cnf in my base > > >> system like this > > >> > > [mysqld] > > >> socket = /var/www/var/run/mysql/mysql.sock > > >> Once mysqld is > > started I have the mysql.sock created in > > >> /var/www/var/run/mysql > > >> # ls > > /var/www/var/run/mysql/ > > >> mysql.sock > > >> > > >> I hard linked it to > > /var/run/mysql/ > > >> # > > >> ln /var/www/var/run/mysql/mysql.sock > > /var/run/mysql/mysql.sock > > >> > > >> I have > > >> downloaded adodb5 and placed it > > in /var/www, then adapted this code for > > >> test > > >> purpose > > >> > >> > > include('../adodb5/adodb.inc.php'); > > >> $conn = > > >> > > &ADONewConnection('mysql'); > > >> $conn->PConnect('localhost','cacti','cac > > > > > tipw','cactidb'); > > >> $sql = 'select > > >> hostname,description from host;'; > > >> > > $recordSet = &$conn->Execute($sql); > > >> if > > >> (!$recordSet) > > >> print > > $conn->ErrorMsg(); > > >> else > > >> while (!$recordSet->EOF) { > > >> print > > $recordSet->fields[0].' > > > '.$recordSet->fields[1].''; > > >> > > >> > > $recordSet->MoveNext(); > > >> } > > >> $recordSet->Close(); > > >> $conn->Close(); > > >> > > ?> > > > > > >> > > >> > > >> I also > > >> copied /etc/my.cnf in /var/www/etc but changed > > the path for the client > > >> [client] > > >> socket = /var/run/mysql/mysql.sock > > >> > > >> > > >> The tests > > >> - > > >> Case 1: The script is ran without any > > chroot consideration => Works > > >> # > > >> /usr/local/bin/php > > /var/www/htdocs/adotest.php > > >> 127.0.0.1 System11.1.1.1 > > >> System2 > > >> > > >> Case 2: The script is ran through the apache chrooted server > > >> using > > the url http://localhost/adotest.php => Works > > >> 127.0.0.1 System1 > > >> > > 1.1.1.1 > > >> System2 > > >> > > >> Case 3: The script is ran in command line and > > simulates a user > > >> running it in the chroot (/var/www) => Fails > > >> # > > /usr/sbin/chroot /var/www > > >> /bin/php /htdocs/adotest.php > > >> PHP Fatal > > error: Call to undefined function > > >> mysql_pconnect() in > > /adodb5/drivers/adodb-mysql.inc.php on line 383 > > >> Fatal > > >> error: Call to > > undefined function mysql_pconnect() in > > >> /adodb5/drivers/adodb-mysql.inc.php > > on line 383 > > >> Note that: the adotest.php > > >> script was able to include > > /adodb5/drivers/adodb-mysql.inc.php > > >> > > >> > > >> I thought > > >> that maybe there > > is something wrong with connecting to mysql > > >> inside the > > >> chroot so I > > copied the mysql client inside the chroot > > >> (/var/www) and the > > >> > > associated dynamic libraries. > > >> > > >> But everything worked when I tried to > > connect > > >> to the database > > >> # /bin/mysql -u cacti -p > > >> Enter password: > > >> Welcome to the MySQL > > >> monitor. Commands end with ; or \g. > > >> Your > > MySQL connection id is 6 > > >> > > >> > > >> I've > > >> searched for a long time and I > > have no clue why it's working when the > > >> script > > >> is executed by Apache > > and not working when executed in cli inside > > >> chroot > > >> /var/www. Does > > anyone have an idea on how to solve this ? > > >> > > >> If you want to test > > >> > > just download adodb5 and place it in /var/www > > >> > > > > > > http://sourceforge.net/projects/adodb/files/adodb-php5-onl
Re: post-Altq
Quoting "Wesley M." : > Hi, > > What's about the post-Altq ? > > See here : > http://bsdly.blogspot.com/2011/07/anticipating-post-altq-world.html > > Does > someone have any news about that? > You need to read undeadly.org http://undeadly.org/cgi?action=article&sid=20111027082217&mode=expanded&count=5 > Cheers, > > Wesley.
Re: OpenBSD insecure OS?
Quoting carlos albino garcia grijalba : > I foud this: > http://allthatiswrong.wordpress.com/2010/01/20/the-insecurity-of-openbsd/ > > so ? > > _ > Hotmail: Trusted email with Microsofts powerful SPAM protection. > https://signup.live.com/signup.aspx?id=60969 > > Your twin has already been on this list, so the trolling is rather wasted: http://marc.info/?l=openbsd-misc&m=126412951221902&w=2
Re: State of multiprocessing and multithreading in OpenBSD
Quoting Juan Miscaro : > On 5 May 2010 14:09, Marco Peereboom wrote: > > On Wed, May 05, 2010 at 02:00:17PM +0200, Benny L?fgren wrote: > >> Jan Stary wrote: > >>> On May 04 22:15:09, Juan Miscaro wrote: > What is the current state of multiprocessing and multithreading in > OpenBSD? B Also, what applications are multithreaded? B In > particular, > someone told me that pf is "garbage" because it is not > multithreaded? ... cut ... > However, I'm not sure why there was so much talk of steaming piles of > shit; shit that contains less peanuts and corn niblets; "bunch of > crap"; and STFU/GTFO. > > I have been using OpenBSD for many years and I was just trying to > learn more about these issues so as to be in a better position to > promote/defend the OS. I'm not a troll and I don't know why there is > so much rudeness. > You've told the developers that their work has been described as "garbage" and you wonder why you get a rude response? You couldn't have phrased it in a less inflammatory way? "Someone" told me my Atari ST was "garbage" and their Amiga was better. Ford is better than Holden, vim is better than Emacs, MySQL is better than PostgreSQL, FreeBSD is better than OpenBSD, Windows is better than Linux, etc., etc., etc., etc., etc. Don't listen to the someones - you've got to try stuff for yourself. > -- > /jm
bge - man page - 4.8 - incorrect diagnostics list?
Hi, guys. I'm learning about PCI and started looking at the bge driver. I grepped on an error message that I found in the bge man page to find the bge source file, but grep didn't find it in if_bge.c, but did find it in lge.c. Is the man page incorrect for bge, or have I missed something (cluesticks, please!)? If it is incorrect, I'll give a go at making a patch, but just assuming at this point that I've missed something. bge man snippet ... DIAGNOSTICS (1) bge%d: can't find mem space A fatal initialization error has occurred. (2) bge%d: couldn't map interrupt A fatal initialization error has occurred. (3) bge%d: no memory for jumbo buffer queue! The driver failed to allocate memory for jumbo frames during initialization. (4) bge%d: watchdog timeout The device has stopped responding to the network, or there is a problem with the network connection (cable). The numbers in parenthesis are mine, for reference. I can see (1) and (2) in the source code, but not (3). (4) is close but not the same - "watchdog timeout -- resetting" - in the bge source. I'm looking at 4.8 release with patches, /usr/src/sys/dev/pci/if_bge.c (but same list is online for 4.9) It seems to be exactly the same diagnostics list as for lge, but I can find all those messages in the lge source. # grep printf if_bge.c #define DPRINTF(x) do { if (bgedebug) printf x; } while (0) #define DPRINTFN(n,x) do { if (bgedebug >= (n)) printf x; } while (0) printf("%s: nvram read timed out\n", sc->bge_dev.dv_xname); printf("%s: eeprom read timed out\n", sc->bge_dev.dv_xname); printf("%s: PHY read timed out\n", sc->bge_dev.dv_xname); printf("%s: PHY read timed out\n", sc->bge_dev.dv_xname); printf("%s: unable to create dmamap for slot %d\n", printf("%s: unable to create dmamap for slot %d\n", printf("%s: can't alloc txdmamap_pool_entry\n", printf("%s: buffer manager failed to start\n", printf("%s: flow-through queue init failed\n", printf("%s: host coalescing engine failed to idle\n", (1)printf(": can't find mem space\n"); (2)printf(": couldn't map interrupt\n"); printf(", "); printf("unknown ASIC (0x%x)", sc->bge_chipid); printf("%s (0x%x)", br->br_name, sc->bge_chipid); printf(": failed to read station address\n"); printf(": can't alloc rx buffers\n"); printf(": can't map dma buffers (%lu bytes)\n", printf(": can't create dma map\n"); printf(": failed to read media type\n"); printf(": couldn't establish interrupt"); printf(" at %s", intrstr); printf("\n"); printf(": %s, address %s\n", intrstr, ether_sprintf(sc->arpcom.ac_enaddr)); printf("%s: no PHY found!\n", sc->bge_dev.dv_xname); printf("%s: reset timed out\n", sc->bge_dev.dv_xname); printf("%s: firmware handshake timed out\n", printf("%s: initialization failure\n", sc->bge_dev.dv_xname); printf("%s: 5705 A0 chip failed to load RX ring\n", (4)printf("%s: watchdog timeout -- resetting\n", sc->bge_dev.dv_xname); # grep printf if_lge.c #define DPRINTF(x) if (lgedebug) printf x #define DPRINTFN(n,x) if (lgedebug >= (n)) printf x printf("%s: EEPROM read timed out\n", sc->sc_dv.dv_xname); printf("%s: PHY read timed out\n", sc->sc_dv.dv_xname); printf("%s: PHY write timed out\n", sc->sc_dv.dv_xname); printf("%s: reset never completed\n", sc->sc_dv.dv_xname); printf("%s: chip is in D%d power mode " printf(": can't map i/o space\n"); (1)printf(": can't map mem space\n"); (2)printf(": couldn't map interrupt\n"); printf(": couldn't establish interrupt"); printf(" at %s", intrstr); printf("\n"); printf(": %s", intrstr); printf(", address %s\n", ether_sprintf(eaddr)); printf("%s: can't alloc rx buffers\n", sc->sc_dv.dv_xname); printf("%s: can't map dma buffers (%d bytes)\n", printf("%s: can't create dma map\n", sc->sc_dv.dv_xname); printf("%s: jumbo buffer allocation failed\n", printf("%s: no PHY found!\n", sc->sc_dv.dv_xname); printf("%s: can't alloc rx buffers\n", sc->sc_dv.dv_xname); printf("%s: can't map dma buffers (%d bytes)\n", printf("%s: can't create dma map\n", sc->sc_dv.dv_xname); printf("%s: can't load dma map\n", sc->sc_dv.dv_xname); (3)
Re: bge - man page - 4.8 - incorrect diagnostics list?
Quoting Stuart Henderson : > On 2011-03-18, richardtoo...@paradise.net.nz > wrote: > > Hi, guys. > > > > I'm learning about PCI and started looking at the bge driver. > > > > I grepped on an error message that I found in the bge man page to find > the bge > > source file, but grep didn't find it in if_bge.c, but did find it in > lge.c. > > > > Is the man page incorrect for bge, or have I missed something > (cluesticks, please!)? > > bge's jumbo buffer allocator was removed, bge(4) uses MCLGETI instead > now which means you don't need a big pre-allocated wedge of kernel > memory > to hold buffers for jumbo frames which you probably never use. > > so, the "no memory for jumbo buffer queue" can be removed from the > manual. > > OK, the patch you've all been waiting for ... hopefully nothing gets mangled ... Thanks. # cvs -d anon...@anoncvs.spacehopper.org:/cvs diff -u bge.4 Index: bge.4 === RCS file: /cvs/src/share/man/man4/bge.4,v retrieving revision 1.50 diff -u -r1.50 bge.4 --- bge.4 9 Jul 2010 07:10:55 - 1.50 +++ bge.4 22 Mar 2011 18:57:36 - @@ -193,10 +193,7 @@ A fatal initialization error has occurred. .It "bge%d: couldn't map interrupt" A fatal initialization error has occurred. -.It "bge%d: no memory for jumbo buffer queue!" -The driver failed to allocate memory for jumbo frames during -initialization. -.It "bge%d: watchdog timeout" +.It "bge%d: watchdog timeout -- resetting" The device has stopped responding to the network, or there is a problem with the network connection (cable). .El
Re: rdist times out but will not die
Quoting "Steven R. Gerber" : > Original Message > Subject: Re: rdist times out but will not die > Date: Thu, 24 Mar 2011 21:49:01 +1300 > From: Richard Toohey > To: Steven R. Gerber > CC: t...@openbsd.org > > On 24/03/2011, at 4:06 PM, Steven R. Gerber wrote: > > > On 3/20/2011 2:07 PM, Steven R. Gerber wrote: > >> I want to do local/remote mirror/backup (or should that be > local-mirror > >> / offsite-backup). > >> So a two-part question: > >> 1. Even if there is a timeout, shouldn't the job/process exit? > >> > * > > * > >> rdist@thedump: thedump: /mnt/mirror2/public/read_only/movies: chown > from > >> rdist:operator to cdripper:operator > >> rdist@thedump: thedump: > >> /mnt/mirror2/public/read_only/movies/The_Thomas_Crown_Affair_1999: > chown > >> from rdist:operator to root:operator > >> rdist@thedump: > >> > /mnt/stripe2/public/read_only/movies/The_Thomas_Crow > n_Affair_1999/THOMAS_CROW > N_AFFAIR_16X9.md5: > >> updating > >> rdist@thedump: > >> > /mnt/stripe2/public/read_only/movies/The_Thomas_Crow > n_Affair_1999/THOMAS_CROW > N_AFFAIR_16X9.iso: > >> installing > >> rdist@thedump: LOCAL ERROR: Response time out > >> rdist@thedump: updating of rdist@thedump finished > >> $ ps -ax|grep rdist > >> 26025 ?? I 0:00.00 tee /var/log/rdist/2011-03-20 > >> 11059 ?? I 0:00.01 rdist -f /etc/Distfile > >> 28446 ?? I 0:22.99 rdist: update rdist@thedump (rdist) > >> 7795 ?? I 1:10.32 ssh -l rdist thedump r > >> 13045 p0 S+ 0:00.00 grep rdist > >> > * > > * > >> 2. I know that they happen from time to time. How can I > avoid/prevent > >> timeouts? The default is 900 sec AKA 15 min? How can this happen > >> between two local machines? > > How big is the file? So, how big is the file that it times out on? More than 2Gb? Guess so if a movie file? I might be barking up the wrong tree, but it will take you two seconds to see if there's anything in this > 2Gb idea and if I'm wrong, move on. Regardless of that, yes, put more debugging on - might give you some more clues. OpenBSD helps those who help themselves. > > Sure it is not *something* like this? > > https://www-304.ibm.com/support/docview.wss?uid=isg1IY85396 > > client.c > > 869 /* > 870 * Parse size > 871 */ > 872 size = (off_t) strtol(cp, (char **)&cp, 10); > > *Maybe* that strtol() should be strtoll()? > > Anyway, don't I think tech@ is necessarily the list for this - misc@ or > file a > bug. > > And/or keep debugging & digging - the source is all there! > > HTH. > > >> > >> Thanks. > >> > >> > >> > > > > Sorry to reply to myself, but I really need help with this. > > The movies always timeout via rdist. If I transfer the movies myself > > via sftp then there are no timeouts. > > The processes continue to accumulate everyday unless I manually kill > them. > > I know that I am missing something. Should I edit /etc/daily to turn > on > > debugging? > > > > Please/Thanks.
Re: rdist times out but will not die
Quoting "Steven R. Gerber" : > On 3/24/2011 2:36 PM, richardtoo...@paradise.net.nz wrote: > > Quoting "Steven R. Gerber" : > > > >> Original Message > >> Subject: Re: rdist times out but will not die > >> Date: Thu, 24 Mar 2011 21:49:01 +1300 > >> From: Richard Toohey > >> To: Steven R. Gerber > >> CC: t...@openbsd.org > >> > >> On 24/03/2011, at 4:06 PM, Steven R. Gerber wrote: > >> > >>> On 3/20/2011 2:07 PM, Steven R. Gerber wrote: > I want to do local/remote mirror/backup (or should that be > >> local-mirror > / offsite-backup). > So a two-part question: > 1. Even if there is a timeout, shouldn't the job/process exit? > > >> * > >> > >> * > rdist@thedump: thedump: /mnt/mirror2/public/read_only/movies: > chown > >> from > rdist:operator to cdripper:operator > rdist@thedump: thedump: > /mnt/mirror2/public/read_only/movies/The_Thomas_Crown_Affair_1999: > >> chown > from rdist:operator to root:operator > rdist@thedump: > > >> /mnt/stripe2/public/read_only/movies/The_Thomas_Crow > >> n_Affair_1999/THOMAS_CROW > >> N_AFFAIR_16X9.md5: > updating > rdist@thedump: > > >> /mnt/stripe2/public/read_only/movies/The_Thomas_Crow > >> n_Affair_1999/THOMAS_CROW > >> N_AFFAIR_16X9.iso: > installing > rdist@thedump: LOCAL ERROR: Response time out > rdist@thedump: updating of rdist@thedump finished > $ ps -ax|grep rdist > 26025 ?? I 0:00.00 tee /var/log/rdist/2011-03-20 > 11059 ?? I 0:00.01 rdist -f /etc/Distfile > 28446 ?? I 0:22.99 rdist: update rdist@thedump (rdist) > 7795 ?? I 1:10.32 ssh -l rdist thedump r > 13045 p0 S+ 0:00.00 grep rdist > > >> * > >> > >> * > 2. I know that they happen from time to time. How can I > >> avoid/prevent > timeouts? The default is 900 sec AKA 15 min? How can this happen > between two local machines? > >> > >> How big is the file? > > > > So, how big is the file that it times out on? > > > > More than 2Gb? Guess so if a movie file? > > > > I might be barking up the wrong tree, but it will take you two seconds > to see if > > there's anything in this > 2Gb idea and if I'm wrong, move on. > > > > Regardless of that, yes, put more debugging on - might give you some > more clues. > > > > OpenBSD helps those who help themselves. > Richard, > Thanks for the help. > I had already read the IBM note 'LOCAL ERROR: response time out' (from > 2006). (Google is not my enemy?) > I had already checked: the file is >2GB (4.4GB). > I ASSUMED that I can't the only who has tried to push large files with > rdist. I searched the OpenBSD list archives (mine go back to 2006) and > found nothing significant/useful. Maybe I missed something? > I immediately moved to the misc list per your suggestion. > I did a (manual) run of rdist with "-D" and got similar results -- I am > still analyzing those messages. > I usually do not compile OpenBSD, so it will take a while to review the > rdist source code (client.c?). Thanks ... never assume anything, eh? 8-) If your files are > 2Gb, then that IBM link seems to be spot on, and answers (maybe) number 2 on your list - why would you get a timeout on a local transfer (if hardware related, you'd expect sftp to fail, or there to be other noticeable issues)? I've not used rdist before, but I don't mind having a look now that I know your files are > 2Gb. But going to be a quiet (ha!) evening project, so no promises (and maybe someone else will blow the theory out of the water and provide a different answer/fix.) The IBM note suggests that both client & server need to be amended, IF I am on the right track. This is all purely speculative on my part, but it does SEEM to match what you are seeing, doesn't it? Thanks. > > Thanks again. > > >> > >> Sure it is not *something* like this? > >> > >> https://www-304.ibm.com/support/docview.wss?uid=isg1IY85396 > >> > >> client.c > >> > >> 869 /* > >> 870 * Parse size > >> 871 */ > >> 872 size = (off_t) strtol(cp, (char **)&cp, 10); > >> > >> *Maybe* that strtol() should be strtoll()? > >> > >> Anyway, don't I think tech@ is necessarily the list for this - misc@ > or > >> file a > >> bug. > >> > >> And/or keep debugging & digging - the source is all there! > >> > >> HTH. > >> > > Thanks. > > > > >>> > >>> Sorry to reply to myself, but I really need help with this. > >>> The movies always timeout via rdist. If I transfer the movies > myself > >>> via sftp then there are no timeouts. > >>> The processes continue to accumulate everyday unless I manually > kill > >> them. > >>> I know that I am missing something. Should I edit /etc/daily to > turn > >> on > >>> debugging? > >>> > >>> Please/Thanks.
Re: rdist times out but will not die
Quoting "Steven R. Gerber" : > On 3/24/2011 4:33 PM, richardtoo...@paradise.net.nz wrote: > > Quoting "Steven R. Gerber" : > > > >> On 3/24/2011 2:36 PM, richardtoo...@paradise.net.nz wrote: > >>> Quoting "Steven R. Gerber" : > >>> > Original Message > Subject: Re: rdist times out but will not die > Date: Thu, 24 Mar 2011 21:49:01 +1300 > From: Richard Toohey > To: Steven R. Gerber > CC: t...@openbsd.org > > On 24/03/2011, at 4:06 PM, Steven R. Gerber wrote: > > > On 3/20/2011 2:07 PM, Steven R. Gerber wrote: > >> I want to do local/remote mirror/backup (or should that be > local-mirror > >> / offsite-backup). > >> So a two-part question: > >> 1. Even if there is a timeout, shouldn't the job/process exit? > >> > * > > * > >> rdist@thedump: thedump: /mnt/mirror2/public/read_only/movies: > >> chown > from > >> rdist:operator to cdripper:operator > >> rdist@thedump: thedump: > >> > /mnt/mirror2/public/read_only/movies/The_Thomas_Crown_Affair_1999: > chown > >> from rdist:operator to root:operator > >> rdist@thedump: > >> > /mnt/stripe2/public/read_only/movies/The_Thomas_Crow > n_Affair_1999/THOMAS_CROW > N_AFFAIR_16X9.md5: > >> updating > >> rdist@thedump: > >> > /mnt/stripe2/public/read_only/movies/The_Thomas_Crow > n_Affair_1999/THOMAS_CROW > N_AFFAIR_16X9.iso: > >> installing > >> rdist@thedump: LOCAL ERROR: Response time out > >> rdist@thedump: updating of rdist@thedump finished > >> $ ps -ax|grep rdist > >> 26025 ?? I 0:00.00 tee /var/log/rdist/2011-03-20 > >> 11059 ?? I 0:00.01 rdist -f /etc/Distfile > >> 28446 ?? I 0:22.99 rdist: update rdist@thedump (rdist) > >> 7795 ?? I 1:10.32 ssh -l rdist thedump r > >> 13045 p0 S+ 0:00.00 grep rdist > >> > * > > * > >> 2. I know that they happen from time to time. How can I > avoid/prevent > >> timeouts? The default is 900 sec AKA 15 min? How can this happen > >> between two local machines? > > How big is the file? > >>> > >>> So, how big is the file that it times out on? > >>> > >>> More than 2Gb? Guess so if a movie file? > >>> > >>> I might be barking up the wrong tree, but it will take you two > seconds > >> to see if > >>> there's anything in this > 2Gb idea and if I'm wrong, move on. > >>> > >>> Regardless of that, yes, put more debugging on - might give you > some > >> more clues. > >>> > >>> OpenBSD helps those who help themselves. > >> Richard, > >> Thanks for the help. > >> I had already read the IBM note 'LOCAL ERROR: response time out' > (from > >> 2006). (Google is not my enemy?) > >> I had already checked: the file is >2GB (4.4GB). > >> I ASSUMED that I can't the only who has tried to push large files > with > >> rdist. I searched the OpenBSD list archives (mine go back to 2006) > and > >> found nothing significant/useful. Maybe I missed something? > >> I immediately moved to the misc list per your suggestion. > >> I did a (manual) run of rdist with "-D" and got similar results -- I > am > >> still analyzing those messages. > >> I usually do not compile OpenBSD, so it will take a while to review > the > >> rdist source code (client.c?). > > > > Thanks ... never assume anything, eh? 8-) > > > > If your files are > 2Gb, then that IBM link seems to be spot on, and > answers > > (maybe) number 2 on your list - why would you get a timeout on a local > transfer > > (if hardware related, you'd expect sftp to fail, or there to be other > noticeable > > issues)? > > > > I've not used rdist before, but I don't mind having a look now that I > know your > > files are > 2Gb. But going to be a quiet (ha!) evening project, so no > promises > > (and maybe someone else will blow the theory out of the water and > provide a > > different answer/fix.) > > > > The IBM note suggests that both client & server need to be amended, IF > I am on > > the right track. > > > > This is all purely speculative on my part, but it does SEEM to match > what you > > are seeing, doesn't it? > > > > Thanks. > [SNIP] > > You are right on it! Thanks! > Not to be greedy, but ... > What do you think of the other issue that rdist logs a "finished" > message but does not exit? > > Thanks. > > More guessing (I'm already out on a limb ... the branch is about to break) ... "something" is unhappy because of the time out? What messages are in the debug output - do you see "finish() called" as per the code in common.c below? What's the rest of the message(s)? What happens if you move all the > 2Gb files out the way temporarily and re-run (obviously I don't know how practical this is)? Does it finish normally? Or if that doesn't suit, how about creating a te
Re: rdist times out but will not die
Quoting "Steven R. Gerber" : > On 3/24/2011 5:00 PM, richardtoo...@paradise.net.nz wrote: > > Quoting "Steven R. Gerber" : > > > >> On 3/24/2011 4:33 PM, richardtoo...@paradise.net.nz wrote: > >>> Quoting "Steven R. Gerber" : > >>> > On 3/24/2011 2:36 PM, richardtoo...@paradise.net.nz wrote: > > Quoting "Steven R. Gerber" : > > > >> Original Message > >> Subject: Re: rdist times out but will not die > >> Date: Thu, 24 Mar 2011 21:49:01 +1300 > >> From: Richard Toohey > >> To: Steven R. Gerber > >> CC: t...@openbsd.org > >> > >> On 24/03/2011, at 4:06 PM, Steven R. Gerber wrote: > >> > >>> On 3/20/2011 2:07 PM, Steven R. Gerber wrote: > I want to do local/remote mirror/backup (or should that be > >> local-mirror > / offsite-backup). > So a two-part question: > 1. Even if there is a timeout, shouldn't the job/process exit? > > >> * > >> > >> * > rdist@thedump: thedump: /mnt/mirror2/public/read_only/movies: > chown > >> from > rdist:operator to cdripper:operator > rdist@thedump: thedump: > > >> /mnt/mirror2/public/read_only/movies/The_Thomas_Crown_Affair_1999: > >> chown > from rdist:operator to root:operator > rdist@thedump: > > >> /mnt/stripe2/public/read_only/movies/The_Thomas_Crow > >> n_Affair_1999/THOMAS_CROW > >> N_AFFAIR_16X9.md5: > updating > rdist@thedump: > > >> /mnt/stripe2/public/read_only/movies/The_Thomas_Crow > >> n_Affair_1999/THOMAS_CROW > >> N_AFFAIR_16X9.iso: > installing > rdist@thedump: LOCAL ERROR: Response time out > rdist@thedump: updating of rdist@thedump finished > $ ps -ax|grep rdist > 26025 ?? I 0:00.00 tee /var/log/rdist/2011-03-20 > 11059 ?? I 0:00.01 rdist -f /etc/Distfile > 28446 ?? I 0:22.99 rdist: update rdist@thedump (rdist) > 7795 ?? I 1:10.32 ssh -l rdist thedump r > 13045 p0 S+ 0:00.00 grep rdist > > >> * > >> > >> * > 2. I know that they happen from time to time. How can I > >> avoid/prevent > timeouts? The default is 900 sec AKA 15 min? How can this > happen > between two local machines? > >> > >> How big is the file? > > > > So, how big is the file that it times out on? > > > > More than 2Gb? Guess so if a movie file? > > > > I might be barking up the wrong tree, but it will take you two > >> seconds > to see if > > there's anything in this > 2Gb idea and if I'm wrong, move on. > > > > Regardless of that, yes, put more debugging on - might give you > >> some > more clues. > > > > OpenBSD helps those who help themselves. > Richard, > Thanks for the help. > I had already read the IBM note 'LOCAL ERROR: response time out' > >> (from > 2006). (Google is not my enemy?) > I had already checked: the file is >2GB (4.4GB). > I ASSUMED that I can't the only who has tried to push large files > >> with > rdist. I searched the OpenBSD list archives (mine go back to 2006) > >> and > found nothing significant/useful. Maybe I missed something? > I immediately moved to the misc list per your suggestion. > I did a (manual) run of rdist with "-D" and got similar results -- > I > >> am > still analyzing those messages. > I usually do not compile OpenBSD, so it will take a while to > review > >> the > rdist source code (client.c?). > >>> > >>> Thanks ... never assume anything, eh? 8-) > >>> > >>> If your files are > 2Gb, then that IBM link seems to be spot on, > and > >> answers > >>> (maybe) number 2 on your list - why would you get a timeout on a > local > >> transfer > >>> (if hardware related, you'd expect sftp to fail, or there to be > other > >> noticeable > >>> issues)? > >>> > >>> I've not used rdist before, but I don't mind having a look now that > I > >> know your > >>> files are > 2Gb. But going to be a quiet (ha!) evening project, so > no > >> promises > >>> (and maybe someone else will blow the theory out of the water and > >> provide a > >>> different answer/fix.) > >>> > >>> The IBM note suggests that both client & server need to be amended, > IF > >> I am on > >>> the right track. > >>> > >>> This is all purely speculative on my part, but it does SEEM to > match > >> what you > >>> are seeing, doesn't it? > >>> > >>> Thanks. > >> [SNIP] > >> > >> You are right on it! Thanks! > >> Not to be greedy, but ... > >> What do you think of the other issue that rdist logs a "finished" > >> message but does not exit? > >> > >> Thanks. > >> > >> > > More guessing (I'm already out on a limb ... the branch is about t
Re: relayd.conf and multiple webservers on the inside
Quoting Fernando Clvarez : > Hi, > > Is there any way to enable a reverse proxy using relayd to redirect web > requests to different webservers depending on the http header? > > To clarify: (Internet) 1 IP address -> OpenBSD Box -> 2 Web servers > (LAN) > If I point to www.server1.com be redirected to webserver 1, and if I go > to > www.server2.com be redirected to webserver2, using the same IP on both > domain names. > > As relayd.conf protocol section filters to one destination, and relay > section then applies only one defined protocol, I have no idea on how > to > achieve this. Don't think so, no. Things might have moved on since this from Stuart, so I'd love to be told I'm wrong! http://marc.info/?l=openbsd-misc&m=126278061325299&w=2 > > Thank you in advance,
Re: Like OpenBSD? Like to see new stuff happening? You really need to order a CD today :)
Quoting Stuart VanZee : > > Tshirt sales from Canada (the computer shop / https.openbsd.org) and > > from the UK (openbsdeurope.com) fund the project just like the mugs, > > the CD's, posters, etc.. > > > > Nice to know, I also was of the mistaken belief that the T-Shirt sales > didn't benefit the project (it is what I heard). Same here ... http://marc.info/?l=openbsd-cvs&m=120735755821256&w=2 "The OpenBSD project does not receive any proceeds from tshirt, posters, doll or book sales." Whatever; the current situation has been clarified, and I'll do what I can. > Now that I know, I > will be buying me some T-Shirts! AND at least one hoodie! Hmm... and > maybe a coffee mug. > > Thank you all for your wonderful work on OpenBSD. > > s > > OpenBSD, Making me look like a freakin genious to my bosses since 3.6
ifconfig iwi0 scan -> iwi0: fatal firmware error
Hi, guys. I hit this one today (OpenBSD 4.9 release, IBM T42 laptop) and couldn't find any answers in Google. [Sorry this is a bit long-winded, wanted to include hopefully relevant material.] The closest answer from Google seemed to be this [1] - but not *exactly* what I'm seeing. Suspend & resume are fine; no reboots required to make things work again. I looked at Antoine's article about OpenBSD in a corporate environment [2] and thought I'd like to get a list of wireless networks as per his screenshot [3]. I assumed that this was scraped from the output of "ifconfig iwi0 scan", and my troubles began ... I'm connecting with iwi0, all good. Used this: # ifconfig iwi0 nwid toohey wpakey yaddayadda # dhclient iwi0 And we're OK: $ ifconfig iwi0 iwi0: flags=8843 mtu 1500 lladdr 00:16:6f:41:65:72 priority: 4 groups: wlan egress media: IEEE802.11 autoselect (OFDM48) status: active ieee80211: nwid toohey chan 11 bssid 00:1c:10:fb:45:b1 47dB wpakey wpaprotos wpa1,wpa2 wpaakms psk wpaciphers tkip,ccmp wpagroupcipher tkip 100dBm inet6 fe80::216:6fff:fe41:6572%iwi0 prefixlen 64 scopeid 0x2 inet 192.168.1.108 netmask 0xff00 broadcast 192.168.1.255 $ ping www.google.co.nz PING www.l.google.com (203.97.30.147): 56 data bytes 64 bytes from 203.97.30.147: icmp_seq=0 ttl=61 time=44.015 ms --- www.l.google.com ping statistics --- 2 packets transmitted, 1 packets received, 50.0% packet loss round-trip min/avg/max/std-dev = 44.015/44.015/44.015/0.000 ms I wonder what other wireless networks are out there, so I run: # ifconfig iwi0 scan iwi0: flags=8843 mtu 1500 lladdr 00:16:6f:41:65:72 priority: 4 groups: wlan egress media: IEEE802.11 autoselect (OFDM48) status: active ieee80211: nwid toohey chan 11 bssid 00:1c:10:fb:45:b1 48dB wpakey <> wpaprotos wpa1,wpa2 wpaakms psk wpaciphers tkip,ccmp wpagroupcipher tkip 100dBm nwid www.eol.co.nz chan 9 bssid 00:18:25:11:8f:00 27dB 54M privacy,short_preamble nwid toohey chan 11 bssid 00:1c:10:fb:45:b1 50dB 54M privacy,short_slottime,apsd nwid 0x00 chan 6 bssid e8:39:df:fe:55:1d 27dB 54M privacy,short_slottime inet 192.168.1.108 netmask 0xff00 broadcast 192.168.1.255 I get back what looks like valid information, but the wireless indicator light on my laptop is out (or frozen solid on.) Can't ping Google. Error message on console about fatal firmware error. # tail /var/log/messages May 29 19:10:56 puffy /bsd: mtrr: Pentium Pro MTRR support May 29 19:10:56 puffy /bsd: vscsi0 at root May 29 19:10:56 puffy /bsd: scsibus1 at vscsi0: 256 targets May 29 19:10:56 puffy /bsd: softraid0 at root May 29 19:10:56 puffy /bsd: root on wd0a swap on wd0b dump on wd0b May 29 19:10:56 puffy savecore: no core dump May 29 19:15:48 puffy dhclient[25551]: routehandler: interface address deleted May 29 19:16:11 puffy /bsd: iwi0: fatal firmware error May 29 20:00:02 puffy syslogd: restart May 29 20:46:46 puffy /bsd: iwi0: fatal firmware error # ping www.google.co.nz ping: unknown host: www.google.co.nz # ifconfig iwi0 iwi0: flags=8802 mtu 1500 lladdr 00:16:6f:41:65:72 priority: 4 groups: wlan egress media: IEEE802.11 autoselect status: no network ieee80211: nwid toohey wpakey <> wpaprotos wpa1,wpa2 wpaakms psk wpaciphers tkip,ccmp wpagroupcipher tkip 100dBm inet6 fe80::216:6fff:fe41:6572%iwi0 prefixlen 64 scopeid 0x2 inet 192.168.1.108 netmask 0xff00 broadcast 192.168.1.255 # ifconfig iwi0 up # ping www.google.co.nz PING www.l.google.com (203.97.30.147): 56 data bytes 64 bytes from 203.97.30.147: icmp_seq=0 ttl=61 time=44.531 ms --- www.l.google.com ping statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 44.531/44.531/44.531/0.000 ms I fix with: # ifconfig iwi0 up All fine ... until the next time I do the scan. I've tried in a couple of locations. I've checked I've got the latest firmware. Obviously easy enough to work around, but ... why? Just a firmware bug & end of story? Any better solution or something I'm doing wrong / missing? Thanks. [1] http://marc.info/?l=openbsd-misc&m=128905270613474&w=2 [2] http://www.undeadly.org/cgi?action=article&sid=20110420080633 [3] http://undeadly.org/misc/201104/gnome1.png dmesg: OpenBSD 4.9 (GENERIC) #671: Wed Mar 2 07:09:00 MST 2011 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel(R) Pentium(R) M processor 1.70GHz ("GenuineIntel" 686-class) 1.70 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,SBF,EST,TM2 real mem = 1609527296 (1534MB) avail mem = 1573064704 (1500MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 10/
Re: HP laptops again
Quoting "Peter N. M. Hansteen" : > Jan Stary writes: > > >> Actually a test with up to the second -current would be helpful to > get a > >> baseline where we are at with this machine. > > > > What is the "second -current"? > > "up to the second" -- as fresh as physically possible That's what hyphens are for - so "up-to-the-second" would show that the words are related. > > - p > -- > Peter N. M. Hansteen, member of the first RFC 1149 implementation team > http://bsdly.blogspot.com/ http://www.bsdly.net/ http://www.nuug.no/ > "Remember to set the evil bit on all malicious network traffic" > delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.
Re: Ports isn't working for me...
Quoting Bryan Irvine : > try a make clean first? > > On Wed, Sep 30, 2009 at 1:03 PM, Chris > wrote: > > Hi, > > > > I'm using obsd4.5, following current. I installed php5 using ports. > > I realized that I forgot to include something in the compile options. > > I went back to add it, and now it won't reinstall. > > > > I added "--enable-mbstring" to the compile flags in the make file. I > > then execute a "make install" It does nothing. Just gives me back my > > prompt. So I uninstall the existing php "make uninstall". I cleaned > > up all the files it told me to, then I try a "make install" and I get > > this: > > > > > > # make install > > ===> Installing php5-core-5.2.10 from /usr/ports/packages/amd64/all/ > > Can't install php5-core-5.2.10 because of conflicts > > (partial-php5-core-5.2.10) > > /usr/sbin/pkg_add: php5-core-5.2.10:Fatal error > > *** Error code 1 > > > > Stop in /usr/ports/www/php5/core (line 1457 of > > /usr/ports/infrastructure/mk/bsd.port.mk). > > > > > > > > I tried doing "make clean && make config && make build && make > > install" and it still doesn't work. > > > > Nothing I try will get this thing to install again! It takes like 3 > > hours to compile here, and I'm losing a lot of time I don't have. > > > > Can someone give me a hand? > > > > Thanks. > > > > Chris "I'm using obsd4.5, following current" You are either using 4.5 OR -current - you cannot do both (well, you can if you know what you are doing.) "Installing php5-core-5.2.10" 5.2.10 is in -current; 5.2.8 is for 4.5, unless you backported the changes from -current? HTH.
Re: Ports isn't working for me...
Quoting Chris : > Hi, > > I'm using obsd4.5, following current. I installed php5 using ports. > I realized that I forgot to include something in the compile options. > I went back to add it, and now it won't reinstall. > > I added "--enable-mbstring" to the compile flags in the make file. I > then execute a "make install" It does nothing. Just gives me back my > prompt. So I uninstall the existing php "make uninstall". I cleaned > up all the files it told me to, then I try a "make install" and I get > this: > > > # make install > ===> Installing php5-core-5.2.10 from /usr/ports/packages/amd64/all/ > Can't install php5-core-5.2.10 because of conflicts > (partial-php5-core-5.2.10) > /usr/sbin/pkg_add: php5-core-5.2.10:Fatal error > *** Error code 1 > > Stop in /usr/ports/www/php5/core (line 1457 of > /usr/ports/infrastructure/mk/bsd.port.mk). > > > > I tried doing "make clean && make config && make build && make > install" and it still doesn't work. > > Nothing I try will get this thing to install again! It takes like 3 > hours to compile here, and I'm losing a lot of time I don't have. > > Can someone give me a hand? > > Thanks. > > Chris > > Error message: Can't install php5-core-5.2.10 because of conflicts (partial-php5-core-5.2.10) Have you tried: pkg_delete partial-php5-core-5.2.10 ... to get pass that error message?
Re: 4.6 reboots x336 ibm server(s)
Quoting FRLinux : > Hello, > > I have several IBM x series 336 servers and attempted to upgrade them > today. My usual way is to use a build server which makes a release for > my servers. It went well on that server (which is the only one not > being an IBM x336, that will teach me...) so decided to deploy the new > build to the IBM servers. > > When applied and i issued a reboot, the server rebooted after locking > at this line: > > "Intel E7520 Error Reporting" rev 0x0c at pci0 dev 0 function 1 not > configured > ppb0 at pci0 dev 2 function 0 "Intel E7520 PCIE" rev 0x0c > > At this stage, server reboots and its BIOS issues the following: > re-booting due to unexpected NMI at : > > Now, I have tested my build and the official 4.6 ISO which both show > exactly the same behavior. Thinking it might have been a system issue, > I tried 3 other servers which ALL reported the same NMI issue. That > leads me to believe that my systems do not have a hardware issue (as > the NMI message would imply). > > So, it looks like something in the 4.6 kernel code triggers that > behavior and I can test many things and provide output, please let me > know where I can start. > [cut] I've seen the same on IBM x346 - install goes fine, reboot, and then it does not want to play nice. Also got the unexpected NMI at : message. (This was a clean install, not an upgrade, so don't know if 4.5 works on this box or not.) Thanks.
Re: Installing OpenBSD on SSD drives
Quoting Jean-Frangois SIMON : [cut] > The error actually appears wjile installing xfont46.tgz which is very > very > slow. It is normal speed util that particular file . > errors : many "atascsi_atapi_cmd_done, timeout" > one "d0(ahci0:3:0): Check Condition (error 0x70) on opcode 0x28 > SENSE KEY: Illegal Request" Are you installing from CD - is the CD medium and the CD/DVD drive definitely good? It might be a dumb question, but is it DEFINITELY the SSD at fault here? Thanks.
Re: help please, my real memory is disappearing
Quoting MK : > Hello, > > maybe you still recall about problem with ftpd memory allocation I > posted > here few days before. Since then I tried to do more "research" and found > > same issue on two different HW boxes both with OpenBSD 4.5 and OpenBSD > 4.6. > To summarize it, I found that built-in ftpd server takes too much memory > > while clients are downloading files and this memory is not freed neither > > when downloads are finished nor when I kill ftpd. What's more, top, ps, > > vmstat does not show by which process is memory allocated. All I can see > > during ftp downloads initiated by clients it's just decreasing free > memory > and increasing allocated memory from top command output. After few > minutes > of downloading I lost about 800MB real memory. Allocated memory shown by > top > command is a part of real memory behind the "/". This should be > something > like allocated memory which is not currently used if I'm not mistaken. > > Although I'm not sure if this could be intentional behavior I have three > > main questions: > > 1. Is it normal that memory is not freed after I kill ftpd daemon? > 2. Is it normal ftpd can take about 800MB of real memory while serving > GET > requests? (only 1 client is able to consume that portion of memory) > 3. Is it normal that this memory seems to be lost from the system? It's > not > visible as allocated by some process. > > Thank you for your help. > MK > > I cannot reproduce here - artificial tests on a box running as a desktop, so take the figures with a pinch of salt; but if there was an issue with the stock ftpd I'd expect to see something? i386 4.6 with errata patches. # /usr/libexec/ftpd -D # ftp localhost Memory: Real: 272M/661M act/tot Free: 1338M Swap: 0K/251M used/tot Get 459Mb file 1/2 way Memory: Real: 273M/667M act/tot Free: 1332M Swap: 0K/251M used/tot DoneMemory: Real: 273M/659M act/tot Free: 1340M Swap: 0K/251M used/tot 150 Opening BINARY mode data connection for '32r2741.iso' (481689600 bytes). 100% |***| 459 MB01:08 226 Transfer complete. 200 NOOP command successful. 481689600 bytes received in 68.57 seconds (6.70 MB/s) Get it again ... 1/2 way Memory: Real: 273M/667M act/tot Free: 1332M Swap: 0K/251M used/tot DoneMemory: Real: 273M/667M act/tot Free: 1332M Swap: 0K/251M used/tot And again ... 70% Memory: Real: 273M/659M act/tot Free: 1340M Swap: 0K/251M used/tot DoneMemory: Real: 273M/663M act/tot Free: 1336M Swap: 0K/251M used/tot And again ... 1/2 way Memory: Real: 273M/667M act/tot Free: 1332M Swap: 0K/251M used/tot DoneMemory: Real: 273M/662M act/tot Free: 1337M Swap: 0K/251M used/tot Fifth time, this time with 2 clients getting the same file ... Before Memory: Real: 275M/667M act/tot Free: 1332M Swap: 0K/251M used/tot 1/2 way Memory: Real: 274M/666M act/tot Free: 1333M Swap: 0K/251M used/tot 70% Memory: Real: 274M/667M act/tot Free: 1332M Swap: 0K/251M used/tot DoneMemory: Real: 273M/662M act/tot Free: 1337M Swap: 0K/251M used/tot At the half-way mark ... PID USERNAME PRI NICE SIZE RES STATE WAIT TIMECPU COMMAND 23507 -50 620K 972K sleep biowait 0:09 0.93% ftpd 15892 root 20 1244K 848K sleep netio 0:06 0.63% ftp 23158 20 1236K 828K sleep netio 0:00 0.49% ftp 23359 -140 620K 944K sleep inode 0:00 0.44% ftpd Quit both ftp clients ... Memory: Real: 273M/662M act/tot Free: 1337M Swap: 0K/251M used/tot # ps waux | grep ftpd root 6424 0.0 0.0 568 836 ?? Is 3:49PM0:00.00 /usr/libexec/ftpd -D root 4008 0.0 0.0 444 804 p1 S+ 4:04PM0:00.00 grep ftpd # kill 6424 # ps waux | grep ftpd root 32390 0.0 0.0 484 4 p1 R+ 4:05PM0:00.00 grep ftpd (ksh) Memory: Real: 271M/662M act/tot Free: 1337M Swap: 0K/251M used/tot HTH.
Re: Installer adding user - doesn't allow periods in user name
Quoting Ted Unangst : > On Thu, Nov 4, 2010 at 3:55 AM, Richard Toohey > wrote: > > Entirely as a learning exercise - is there a technical reason, or > something > > that is inadvisable about using the period in the user name? > > All the software (besides just the installer) that doesn't like > usernames with dots or other funny letters in them. People have been > writing software for 40 years that "knows" what usernames look like. > > Thanks for the replies, guys. Time to unlearn a bad habit, then!