Strange behaviour on OpenBSD 5.2 and usb disk
This is a DL360G3 running OpenBSD 5.2 . I can't use a WD My Passport USB disk, i get input/output error, here is what i got: # dmesg OpenBSD 5.2 (GENERIC) #0: Fri Dec 14 23:58:18 ART 2012 root@private:/u/system/src/sys/arch/i386/compile/GENERIC cpu0: Intel(R) Xeon(TM) CPU 3.06GHz (GenuineIntel 686-class) 3.07 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,CNXT-ID,xTPR real mem = 3220738048 (3071MB) avail mem = 3157274624 (3011MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 12/31/99, BIOS32 rev. 0 @ 0xf, SMBIOS rev. 2.3 @ 0xec000 (42 entries) bios0: vendor HP version P31 date 01/28/2004 bios0: HP ProLiant DL360 G3 acpi0 at bios0: rev 0 acpi0: sleep states S0 S4 S5 acpi0: tables DSDT FACP APIC SPCR acpi0: wakeup devices acpitimer0 at acpi0: 3579545 Hz, 32 bits acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: apic clock running at 133MHz cpu at mainbus0: not configured cpu at mainbus0: not configured cpu at mainbus0: not configured ioapic0 at mainbus0: apid 2 pa 0xfec0, version 11, 16 pins ioapic1 at mainbus0: apid 3 pa 0xfec01000, version 11, 16 pins ioapic2 at mainbus0: apid 4 pa 0xfec02000, version 11, 16 pins ioapic3 at mainbus0: apid 5 pa 0xfec03000, version 11, 16 pins acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 1 (PCI1) acpiprt2 at acpi0: bus 4 (PCI2) acpicpu0 at acpi0 acpitz0 at acpi0: critical temperature is 31 degC bios0: ROM list: 0xc/0x8000 0xc8000/0x4000 0xee000/0x2000! pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 ServerWorks CNB20-HE Host (GC-LE) rev 0x33 pchb1 at pci0 dev 0 function 1 ServerWorks CNB20-HE Host (GC-LE) rev 0x00 pchb2 at pci0 dev 0 function 2 ServerWorks CNB20-HE Host (GC-LE) rev 0x00 pci1 at pchb2 bus 1 bge0 at pci1 dev 2 function 0 Broadcom BCM5703X rev 0x02, BCM5702/5703 A2 (0x1002): apic 3 int 14, address 00:0f:20:96:8c:de brgphy0 at bge0 phy 1: BCM5703 10/100/1000baseT PHY, rev. 2 vga1 at pci0 dev 3 function 0 ATI Rage XL rev 0x27 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) ciss0 at pci0 dev 4 function 0 Compaq Smart Array 5i/532 rev.2 rev 0x01: apic 3 int 15 ciss0: 1 LD, HW rev 1, FW 2.36/2.36 scsibus0 at ciss0: 1 targets sd0 at scsibus0 targ 0 lun 0: COMPAQ, LOGICAL VOLUME, 2.36 SCSI0 0/direct fixed sd0: 17359MB, 512 bytes/sector, 35553120 sectors Compaq iLO rev 0x01 at pci0 dev 5 function 0 not configured Compaq iLO rev 0x01 at pci0 dev 5 function 2 not configured piixpm0 at pci0 dev 15 function 0 ServerWorks CSB5 rev 0x93: polling iic0 at piixpm0 spdmem0 at iic0 addr 0x50: 512MB DDR SDRAM registered ECC PC2100CL2.5 spdmem1 at iic0 addr 0x52: 512MB DDR SDRAM registered ECC PC2100CL2.5 spdmem2 at iic0 addr 0x54: 1GB DDR SDRAM registered ECC PC2100CL2.5 spdmem3 at iic0 addr 0x56: 1GB DDR SDRAM registered ECC PC2100CL2.5 pciide0 at pci0 dev 15 function 1 ServerWorks CSB5 IDE rev 0x93: DMA atapiscsi0 at pciide0 channel 0 drive 0 scsibus1 at atapiscsi0: 2 targets cd0 at scsibus1 targ 0 lun 0: TEQC0 0, TV=28E=C0 0 0 0, R.4F ATAPI 5/cdrom removable cd0(pciide0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 1 ohci0 at pci0 dev 15 function 2 ServerWorks OSB4/CSB5 USB rev 0x05: apic 2 int 10, version 1.0, legacy support pchb3 at pci0 dev 15 function 3 ServerWorks CSB5 LPC rev 0x00 pchb4 at pci0 dev 17 function 0 ServerWorks CIOB-X2 PCIX rev 0x05 pchb5 at pci0 dev 17 function 2 ServerWorks CIOB-X2 PCIX rev 0x05 pci2 at pchb5 bus 4 bge1 at pci2 dev 2 function 0 Broadcom BCM5703X rev 0x02, BCM5702/5703 A2 (0x1002): apic 3 int 13, address 00:0f:20:96:8c:e1 brgphy1 at bge1 phy 1: BCM5703 10/100/1000baseT PHY, rev. 2 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 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 pms0 at pckbc0 (aux slot) pckbc0: using irq 12 for aux slot wsmouse0 at pms0 mux 0 pcppi0 at isa0 port 0x61 spkr0 at pcppi0 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 umass0 at uhub0 port 4 configuration 1 interface 0 Western Digital My Passport 0748 rev 2.10/10.15 addr 2 umass0: using SCSI over Bulk-Only scsibus2 at umass0: 2 targets, initiator 0 sd1 at scsibus2 targ 1 lun 0: WD, My Passport 0748, 1015 SCSI4 0/direct fixed sd1: 953837MB, 512 bytes/sector, 1953458176 sectors ses0 at scsibus2 targ 1 lun 1: WD, SES Device, 1015 SCSI4 13/enclosure services fixed ses0: unable to read enclosure configuration vscsi0 at root scsibus3 at vscsi0: 256 targets softraid0 at root scsibus4 at softraid0: 256 targets root on sd0a
Re: Strange behaviour on OpenBSD 5.2 and usb disk
Kenneth R Westerback wrote: On Wed, Dec 19, 2012 at 05:23:55PM -0300, Marcos Laufer wrote: This is a DL360G3 running OpenBSD 5.2 . I can't use a WD My Passport USB disk, i get input/output error, here is what i got: # dmesg OpenBSD 5.2 (GENERIC) #0: Fri Dec 14 23:58:18 ART 2012 root@private:/u/system/src/sys/arch/i386/compile/GENERIC cpu0: Intel(R) Xeon(TM) CPU 3.06GHz (GenuineIntel 686-class) 3.07 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,CNXT-ID,xTPR real mem = 3220738048 (3071MB) avail mem = 3157274624 (3011MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 12/31/99, BIOS32 rev. 0 @ 0xf, SMBIOS rev. 2.3 @ 0xec000 (42 entries) bios0: vendor HP version P31 date 01/28/2004 bios0: HP ProLiant DL360 G3 acpi0 at bios0: rev 0 acpi0: sleep states S0 S4 S5 acpi0: tables DSDT FACP APIC SPCR acpi0: wakeup devices acpitimer0 at acpi0: 3579545 Hz, 32 bits acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: apic clock running at 133MHz cpu at mainbus0: not configured cpu at mainbus0: not configured cpu at mainbus0: not configured ioapic0 at mainbus0: apid 2 pa 0xfec0, version 11, 16 pins ioapic1 at mainbus0: apid 3 pa 0xfec01000, version 11, 16 pins ioapic2 at mainbus0: apid 4 pa 0xfec02000, version 11, 16 pins ioapic3 at mainbus0: apid 5 pa 0xfec03000, version 11, 16 pins acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 1 (PCI1) acpiprt2 at acpi0: bus 4 (PCI2) acpicpu0 at acpi0 acpitz0 at acpi0: critical temperature is 31 degC bios0: ROM list: 0xc/0x8000 0xc8000/0x4000 0xee000/0x2000! pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 ServerWorks CNB20-HE Host (GC-LE) rev 0x33 pchb1 at pci0 dev 0 function 1 ServerWorks CNB20-HE Host (GC-LE) rev 0x00 pchb2 at pci0 dev 0 function 2 ServerWorks CNB20-HE Host (GC-LE) rev 0x00 pci1 at pchb2 bus 1 bge0 at pci1 dev 2 function 0 Broadcom BCM5703X rev 0x02, BCM5702/5703 A2 (0x1002): apic 3 int 14, address 00:0f:20:96:8c:de brgphy0 at bge0 phy 1: BCM5703 10/100/1000baseT PHY, rev. 2 vga1 at pci0 dev 3 function 0 ATI Rage XL rev 0x27 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) ciss0 at pci0 dev 4 function 0 Compaq Smart Array 5i/532 rev.2 rev 0x01: apic 3 int 15 ciss0: 1 LD, HW rev 1, FW 2.36/2.36 scsibus0 at ciss0: 1 targets sd0 at scsibus0 targ 0 lun 0: COMPAQ, LOGICAL VOLUME, 2.36 SCSI0 0/direct fixed sd0: 17359MB, 512 bytes/sector, 35553120 sectors Compaq iLO rev 0x01 at pci0 dev 5 function 0 not configured Compaq iLO rev 0x01 at pci0 dev 5 function 2 not configured piixpm0 at pci0 dev 15 function 0 ServerWorks CSB5 rev 0x93: polling iic0 at piixpm0 spdmem0 at iic0 addr 0x50: 512MB DDR SDRAM registered ECC PC2100CL2.5 spdmem1 at iic0 addr 0x52: 512MB DDR SDRAM registered ECC PC2100CL2.5 spdmem2 at iic0 addr 0x54: 1GB DDR SDRAM registered ECC PC2100CL2.5 spdmem3 at iic0 addr 0x56: 1GB DDR SDRAM registered ECC PC2100CL2.5 pciide0 at pci0 dev 15 function 1 ServerWorks CSB5 IDE rev 0x93: DMA atapiscsi0 at pciide0 channel 0 drive 0 scsibus1 at atapiscsi0: 2 targets cd0 at scsibus1 targ 0 lun 0: TEQC0 0, TV=28E=C0 0 0 0, R.4F ATAPI 5/cdrom removable cd0(pciide0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 1 ohci0 at pci0 dev 15 function 2 ServerWorks OSB4/CSB5 USB rev 0x05: apic 2 int 10, version 1.0, legacy support pchb3 at pci0 dev 15 function 3 ServerWorks CSB5 LPC rev 0x00 pchb4 at pci0 dev 17 function 0 ServerWorks CIOB-X2 PCIX rev 0x05 pchb5 at pci0 dev 17 function 2 ServerWorks CIOB-X2 PCIX rev 0x05 pci2 at pchb5 bus 4 bge1 at pci2 dev 2 function 0 Broadcom BCM5703X rev 0x02, BCM5702/5703 A2 (0x1002): apic 3 int 13, address 00:0f:20:96:8c:e1 brgphy1 at bge1 phy 1: BCM5703 10/100/1000baseT PHY, rev. 2 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 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 pms0 at pckbc0 (aux slot) pckbc0: using irq 12 for aux slot wsmouse0 at pms0 mux 0 pcppi0 at isa0 port 0x61 spkr0 at pcppi0 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 umass0 at uhub0 port 4 configuration 1 interface 0 Western Digital My Passport 0748 rev 2.10/10.15 addr 2 umass0: using SCSI over Bulk-Only scsibus2 at umass0: 2 targets, initiator 0 sd1 at scsibus2 targ 1 lun 0: WD, My Passport 0748, 1015 SCSI4 0/direct fixed sd1: 953837MB, 512 bytes/sector, 1953458176 sectors ses0 at scsibus2 targ 1 lun 1: WD, SES Device, 1015 SCSI4 13
Re: OpenBSD hangs when i unplug USB disk
Marcos Ariel Laufer wrote: On 11/18/2012 12:35 PM, Paul de Weerd wrote: On Thu, Nov 15, 2012 at 01:04:02PM -0300, Marcos Laufer wrote: | I did this quite often a couple of weeks ago. Haven't tried for a | while (no need) and have upgraded to newer snaps a bunch of times | since. Tonight I'll confirm I can unplug safely on the latest snap. | | Thank you Paul, i look forward for the results of your testing tonight. Apologies for the late response; my Thursday plans got changed at the last minute. However, I've verified that unplugging works fine with the latest snapshot. So no regressions from my POV. Paul 'WEiRD' de Weerd Damn, why mine isn't working fine then? Do you have i386 or AMD? I'll try latest 5.1 and 5.2 tomorrow and see what happens. Ok , i've just tried it on a OpenBSD 5.1 and unplugging the USB works just fine, no crash, no freeze. The weird thing and i don't understand why, is that you guys had good results with old OpenBSD versions and i didn't. Regards, Marcos
Re: OpenBSD hangs when i unplug USB disk
Peter Hessler wrote: On 2012 Nov 20 (Tue) at 12:45:09 -0300 (-0300), Marcos Laufer wrote: :Ok , i've just tried it on a OpenBSD 5.1 and unplugging the USB works :just fine, no crash, no freeze. : :The weird thing and i don't understand why, is that you guys had good :results with old OpenBSD versions and i didn't. : No, nobody bothered with older versions. We run -current, or 5.1 at the latest. I'm sorry, but some people bothered, even asked me to send info because this worked with old versions of the OS to them and not to me. So i guess it has something to do with the firmware on the disk, i don't really know. But if it works on 5.1 then that's enough for me.
Re: OpenBSD hangs when i unplug USB disk
Kenneth R Westerback wrote: On Thu, Nov 15, 2012 at 12:48:03PM -0300, Marcos Laufer wrote: Kenneth R Westerback wrote: On Wed, Nov 14, 2012 at 04:22:20PM -0300, Marcos Laufer wrote: Hello, i'd like to inform a problem when dettaching an external 1TB USB disk drive , the system just freezes, i can't type anything. Also It stops responding to ping. If i don't unplug it then i can use the disk normally, i can copy and delete files with no problem. But as soon as i unplug the USB cord, the machine freezes. I've tested it on several machines, different OpenBSD versions starting from 4.3, i'm not asking for support, i know old OpenBSD versions are no longer supported, but this seemed pretty odd, i suppose that plugging and unplugging a USB disk should not cause any problems on any OS version. These are the lines on dmesg about this disk: Nov 14 16:00:31 hq /bsd: umass0 at uhub0 Nov 14 16:00:31 hq /bsd: port 5 configuration 1 interface 0 Western Digital My Passport 0748 rev 2.10/10.15 addr 2 Nov 14 16:00:31 hq /bsd: umass0: using SCSI over Bulk-Only Nov 14 16:00:31 hq /bsd: scsibus0 at umass0: 2 targets, initiator 0 Nov 14 16:00:31 hq /bsd: sd0 at scsibus0 targ 1 lun 0: WD, My Passport 0748, 1015 SCSI4 0/direct fixed Nov 14 16:00:38 hq /bsd: sd0: 953837MB, 512 bytes/sec, 1953458176 sec total Nov 14 16:00:38 hq /bsd: ses0 at scsibus0 targ 1 lun 1: WD, SES Device, 1015 SCSI4 13/enclosure services fixed Nov 14 16:00:38 hq /bsd: ses0: unable to read enclosure configuration Best regards, Marcos As an experiment, try going into boot's config (-c at the boot) and disable ses. Then see if a) the ses device is still present, and b) if the absence of the ses device(s) alleviate the symptoms. Ken Hello, i've just tried this. The ses device is not present when i disable it at boot time, but the problem persists, if i unplug the USB cord (no matter if the partition is mounted or not) the OS just freezes. So i guess it is not related to the ses driver. This are the dmesg lines of this experiment: Nov 15 12:32:52 hq /bsd: umass0 at uhub0 Nov 15 12:32:52 hq /bsd: port 5 configuration 1 interface 0 Western Digital My Passport 0748 rev 2.10/10.15 addr 2 Nov 15 12:32:52 hq /bsd: umass0: using SCSI over Bulk-Only Nov 15 12:32:52 hq /bsd: scsibus0 at umass0: 2 targets, initiator 0 Nov 15 12:32:52 hq /bsd: sd0 at scsibus0 targ 1 lun 0: WD, My Passport 0748, 1015 SCSI4 0/direct fixed Nov 15 12:32:59 hq /bsd: sd0: 953837MB, 512 bytes/sec, 1953458176 sec total Nov 15 12:32:59 hq /bsd: uk0 at scsibus0 targ 1 lun 1: WD, SES Device, 1015 SCSI4 13/enclosure services fixed Arrg. Need to kill all reference to that second device. Try a kernel with this diff. It should prevent probing anything but lun 0. Ken Index: umass_scsi.c === RCS file: /cvs/src/sys/dev/usb/umass_scsi.c,v retrieving revision 1.38 diff -u -p -r1.38 umass_scsi.c --- umass_scsi.c 17 Jul 2011 22:46:48 - 1.38 +++ umass_scsi.c 15 Nov 2012 17:17:06 - @@ -92,7 +92,7 @@ umass_scsi_attach(struct umass_softc *sc scbus = umass_scsi_setup(sc); scbus-sc_link.adapter_target = UMASS_SCSIID_HOST; - scbus-sc_link.luns = sc-maxlun + 1; + scbus-sc_link.luns = 1; scbus-sc_link.flags = ~SDEV_ATAPI; scbus-sc_link.flags |= SDEV_UMASS; Ken, i've applied your patch on an old OpenBSD 4.5 i use for testing purposes and the problem got solved. Now i can unplug the USB disk and no freeze at all. Is it safe to apply it on older and newer OpenBSD versions as well? These are the new dmesg lines: umass0 at uhub0 port 5 configuration 1 interface 0 Western Digital My Passport 0748 rev 2.10/10.15 addr 2 umass0: using SCSI over Bulk-Only scsibus0 at umass0: 2 targets, initiator 0 sd0 at scsibus0 targ 1 lun 0: WD, My Passport 0748, 1015 SCSI4 0/direct fixed sd0: 953837MB, 512 bytes/sec, 1953458176 sec total and after unpluggin the USB cord i get: sd0 detached scsibus0 detached umass0 detached And the OS does not freeze anymore. Thank you very much!
Re: OpenBSD hangs when i unplug USB disk
Kenneth R Westerback wrote: On Wed, Nov 14, 2012 at 04:22:20PM -0300, Marcos Laufer wrote: Hello, i'd like to inform a problem when dettaching an external 1TB USB disk drive , the system just freezes, i can't type anything. Also It stops responding to ping. If i don't unplug it then i can use the disk normally, i can copy and delete files with no problem. But as soon as i unplug the USB cord, the machine freezes. I've tested it on several machines, different OpenBSD versions starting from 4.3, i'm not asking for support, i know old OpenBSD versions are no longer supported, but this seemed pretty odd, i suppose that plugging and unplugging a USB disk should not cause any problems on any OS version. These are the lines on dmesg about this disk: Nov 14 16:00:31 hq /bsd: umass0 at uhub0 Nov 14 16:00:31 hq /bsd: port 5 configuration 1 interface 0 Western Digital My Passport 0748 rev 2.10/10.15 addr 2 Nov 14 16:00:31 hq /bsd: umass0: using SCSI over Bulk-Only Nov 14 16:00:31 hq /bsd: scsibus0 at umass0: 2 targets, initiator 0 Nov 14 16:00:31 hq /bsd: sd0 at scsibus0 targ 1 lun 0: WD, My Passport 0748, 1015 SCSI4 0/direct fixed Nov 14 16:00:38 hq /bsd: sd0: 953837MB, 512 bytes/sec, 1953458176 sec total Nov 14 16:00:38 hq /bsd: ses0 at scsibus0 targ 1 lun 1: WD, SES Device, 1015 SCSI4 13/enclosure services fixed Nov 14 16:00:38 hq /bsd: ses0: unable to read enclosure configuration Best regards, Marcos As an experiment, try going into boot's config (-c at the boot) and disable ses. Then see if a) the ses device is still present, and b) if the absence of the ses device(s) alleviate the symptoms. Ken Hello, i've just tried this. The ses device is not present when i disable it at boot time, but the problem persists, if i unplug the USB cord (no matter if the partition is mounted or not) the OS just freezes. So i guess it is not related to the ses driver. This are the dmesg lines of this experiment: Nov 15 12:32:52 hq /bsd: umass0 at uhub0 Nov 15 12:32:52 hq /bsd: port 5 configuration 1 interface 0 Western Digital My Passport 0748 rev 2.10/10.15 addr 2 Nov 15 12:32:52 hq /bsd: umass0: using SCSI over Bulk-Only Nov 15 12:32:52 hq /bsd: scsibus0 at umass0: 2 targets, initiator 0 Nov 15 12:32:52 hq /bsd: sd0 at scsibus0 targ 1 lun 0: WD, My Passport 0748, 1015 SCSI4 0/direct fixed Nov 15 12:32:59 hq /bsd: sd0: 953837MB, 512 bytes/sec, 1953458176 sec total Nov 15 12:32:59 hq /bsd: uk0 at scsibus0 targ 1 lun 1: WD, SES Device, 1015 SCSI4 13/enclosure services fixed
Re: OpenBSD hangs when i unplug USB disk
Kevin Chadwick wrote: On Thu, 15 Nov 2012 07:45:40 -0300 Marcos Ariel Laufer mar...@ipversion4.com wrote: I've been using OpenBSD since 2.6, this never happened to me with any other USB hard disks. This one in particular i bought it a couple of days ago. I wonder if it freezes other OS or causes problems before even the bios boot selection? Hello, i've also just tried this right now. It does not freeze Windows XP. Also, the machine does not freeze when plugging and unplugging the cord if done before boot selection. All my machines are i386.
Re: OpenBSD hangs when i unplug USB disk
Paul de Weerd wrote: On Thu, Nov 15, 2012 at 04:18:14PM +0100, Otto Moerbeek wrote: | I have no problems whatsoever (mounting, umounting, using the disks, | etc) with mine: | | Did you also try unplugging it? If that works and since the OP did not | state the newest version he tried this on, we can probably conclude | this is already fixed. I did this quite often a couple of weeks ago. Haven't tried for a while (no need) and have upgraded to newer snaps a bunch of times since. Tonight I'll confirm I can unplug safely on the latest snap. Cheers, Paul 'WEiRD' de Weerd Thank you Paul, i look forward for the results of your testing tonight. Best regards, Marcos
OpenBSD hangs when i unplug USB disk
Hello, i'd like to inform a problem when dettaching an external 1TB USB disk drive , the system just freezes, i can't type anything. Also It stops responding to ping. If i don't unplug it then i can use the disk normally, i can copy and delete files with no problem. But as soon as i unplug the USB cord, the machine freezes. I've tested it on several machines, different OpenBSD versions starting from 4.3, i'm not asking for support, i know old OpenBSD versions are no longer supported, but this seemed pretty odd, i suppose that plugging and unplugging a USB disk should not cause any problems on any OS version. These are the lines on dmesg about this disk: Nov 14 16:00:31 hq /bsd: umass0 at uhub0 Nov 14 16:00:31 hq /bsd: port 5 configuration 1 interface 0 Western Digital My Passport 0748 rev 2.10/10.15 addr 2 Nov 14 16:00:31 hq /bsd: umass0: using SCSI over Bulk-Only Nov 14 16:00:31 hq /bsd: scsibus0 at umass0: 2 targets, initiator 0 Nov 14 16:00:31 hq /bsd: sd0 at scsibus0 targ 1 lun 0: WD, My Passport 0748, 1015 SCSI4 0/direct fixed Nov 14 16:00:38 hq /bsd: sd0: 953837MB, 512 bytes/sec, 1953458176 sec total Nov 14 16:00:38 hq /bsd: ses0 at scsibus0 targ 1 lun 1: WD, SES Device, 1015 SCSI4 13/enclosure services fixed Nov 14 16:00:38 hq /bsd: ses0: unable to read enclosure configuration Best regards, Marcos
OpenBSD 4.8 weird time or cron problems
Hello list, i am having strange issues with openbsd 4.8 and cron . This is a OpenBSD 4.8 with it's kernel modified to have pci.c rev 1.72 , in order to make it run on a IBM x336 server. Everything was working perfect. Until i added today a new user. Then i used vipw to change it's group. After that i noticed that my hourly script configured at cron was not being executed. When i looked the messages log i saw this: Jul 19 02:00:01 srv syslogd: restart Jul 19 04:00:01 srv syslogd: restart Jul 19 06:00:01 srv syslogd: restart Jul 19 08:00:01 srv syslogd: restart Jul 19 10:00:01 srv syslogd: restart Jul 19 13:51:44 srv sendmail: /etc/pwd.db: No such file or directory Jul 19 13:52:25 srv last message repeated 14 times Jul 19 13:54:29 srv last message repeated 48 times Jul 19 14:00:01 srv last message repeated 159 times Jul 19 11:00:01 srv syslogd: restart Jul 19 14:00:10 srv sendmail: /etc/pwd.db: No such file or directory Jul 19 14:00:40 srv last message repeated 20 times Jul 19 14:02:39 srv last message repeated 54 times Jul 19 14:12:29 srv last message repeated 263 times Jul 19 14:22:37 srv last message repeated 238 times Jul 19 14:32:41 srv last message repeated 298 times Jul 19 14:42:40 srv last message repeated 250 times Jul 19 14:52:40 srv last message repeated 216 times Jul 19 14:59:58 srv last message repeated 129 times Jul 19 12:00:01 srv syslogd: restart Jul 19 15:00:08 srv sendmail: /etc/pwd.db: No such file or directory Jul 19 15:00:39 srv last message repeated 13 times Jul 19 15:02:29 srv last message repeated 46 times Jul 19 15:12:45 srv last message repeated 200 times Jul 19 15:20:20 srv last message repeated 164 times Notice how time jumps after 10:00am . Notice after 14:00 that when syslog restarts it shows 11:00 , the right time. . I added the pwd.db and localtime into postfix's etc. I also started ntpd to set time . No difference with cron, it does not run it's hourly process anymore Date looks fine when i look at it: # date Tue Jul 19 12:29:03 ART 2011 But cron does not execute it's processes anymore. Any help will be appreciated! Here is dmesg: OpenBSD 4.8-stable (GENERIC.MP) #1: Fri Jan 21 16:23:35 ART 2011 root@srv:/usr/src/sys/arch/i386/compile/GENERIC.MP cpu0: Intel(R) Xeon(TM) CPU 3.20GHz (GenuineIntel 686-class) 3.21 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,CNXT-ID,CX16,xTPR real mem = 2146832384 (2047MB) avail mem = 2101727232 (2004MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 11/30/05, BIOS32 rev. 0 @ 0xfd6f1, SMBIOS rev. 2.3 @ 0xf5eea (52 entries) bios0: vendor IBM version -[APE130AUS-1.12]- date 11/30/2005 bios0: IBM eserver xSeries 336 -[883725U]- acpi0 at bios0: rev 2 acpi0: sleep states S0 S4 S5 acpi0: tables DSDT FACP APIC MCFG acpi0: wakeup devices PCI0(S5) 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 200MHz cpu1 at mainbus0: apid 6 (application processor) cpu1: Intel(R) Xeon(TM) CPU 3.20GHz (GenuineIntel 686-class) 3.21 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,S SE3,MWAIT,DS-CPL,CNXT-ID,CX16,xTPR cpu2 at mainbus0: apid 1 (application processor) cpu2: Intel(R) Xeon(TM) CPU 3.20GHz (GenuineIntel 686-class) 3.21 GHz cpu2: 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,CNXT-ID,CX16,xTPR cpu3 at mainbus0: apid 7 (application processor) cpu3: Intel(R) Xeon(TM) CPU 3.20GHz (GenuineIntel 686-class) 3.21 GHz cpu3: 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,CNXT-ID,CX16,xTPR ioapic0 at mainbus0: apid 14 pa 0xfec0, version 20, 24 pins ioapic1 at mainbus0: apid 13 pa 0xfec82000, version 20, 24 pins ioapic2 at mainbus0: apid 12 pa 0xfec82400, version 20, 24 pins acpiprt0 at acpi0: bus 4 (PCI2) acpiprt1 at acpi0: bus 5 (PCI3) acpiprt2 at acpi0: bus 1 (PCIS) acpiprt3 at acpi0: bus 0 (PCI0) acpicpu0 at acpi0 acpicpu1 at acpi0 acpicpu2 at acpi0 acpicpu3 at acpi0 bios0: ROM list: 0xc/0xb000 0xcb000/0x1600 0xcc600/0x4000 ipmi at mainbus0 not configured pci0 at mainbus0 bus 0: configuration mode 1 (bios) mem address conflict 0xff00/0x1000 pchb0 at pci0 dev 0 function 0 Intel E7520 Host rev 0x0c 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 pci1 at ppb0 bus 2 ppb1 at pci0 dev 4 function 0 Intel E7520 PCIE rev 0x0c pci2 at ppb1 bus 3 ppb2 at pci2 dev 0 function 0 Intel PCIE-PCIE rev 0x09 pci3 at ppb2 bus 4 mpi0 at pci3 dev 1 function 0 Symbios Logic 53c1030 rev 0x08: apic 13 int 4 (irq 11) scsibus0 at mpi0: 16 targets, initiator 7 sd0 at scsibus0 targ 0 lun 0:
update: OpenBSD 4.8 weird time or cron problems
I noticed that this was sent by email by cron when attempted to execute the process: Your Terminal type is unknown! Enter a terminal type: [vt100] Why? i don't know. I added TERM=220 into root's crontab and it worked. The thing is that it never needed it .. why now it does? Regards, Marcos Laufer wrote: Hello list, i am having strange issues with openbsd 4.8 and cron . This is a OpenBSD 4.8 with it's kernel modified to have pci.c rev 1.72 , in order to make it run on a IBM x336 server. Everything was working perfect. Until i added today a new user. Then i used vipw to change it's group. After that i noticed that my hourly script configured at cron was not being executed. When i looked the messages log i saw this: Jul 19 02:00:01 srv syslogd: restart Jul 19 04:00:01 srv syslogd: restart Jul 19 06:00:01 srv syslogd: restart Jul 19 08:00:01 srv syslogd: restart Jul 19 10:00:01 srv syslogd: restart Jul 19 13:51:44 srv sendmail: /etc/pwd.db: No such file or directory Jul 19 13:52:25 srv last message repeated 14 times Jul 19 13:54:29 srv last message repeated 48 times Jul 19 14:00:01 srv last message repeated 159 times Jul 19 11:00:01 srv syslogd: restart Jul 19 14:00:10 srv sendmail: /etc/pwd.db: No such file or directory Jul 19 14:00:40 srv last message repeated 20 times Jul 19 14:02:39 srv last message repeated 54 times Jul 19 14:12:29 srv last message repeated 263 times Jul 19 14:22:37 srv last message repeated 238 times Jul 19 14:32:41 srv last message repeated 298 times Jul 19 14:42:40 srv last message repeated 250 times Jul 19 14:52:40 srv last message repeated 216 times Jul 19 14:59:58 srv last message repeated 129 times Jul 19 12:00:01 srv syslogd: restart Jul 19 15:00:08 srv sendmail: /etc/pwd.db: No such file or directory Jul 19 15:00:39 srv last message repeated 13 times Jul 19 15:02:29 srv last message repeated 46 times Jul 19 15:12:45 srv last message repeated 200 times Jul 19 15:20:20 srv last message repeated 164 times Notice how time jumps after 10:00am . Notice after 14:00 that when syslog restarts it shows 11:00 , the right time. . I added the pwd.db and localtime into postfix's etc. I also started ntpd to set time . No difference with cron, it does not run it's hourly process anymore Date looks fine when i look at it: # date Tue Jul 19 12:29:03 ART 2011 But cron does not execute it's processes anymore. Any help will be appreciated! Here is dmesg: OpenBSD 4.8-stable (GENERIC.MP) #1: Fri Jan 21 16:23:35 ART 2011 root@srv:/usr/src/sys/arch/i386/compile/GENERIC.MP cpu0: Intel(R) Xeon(TM) CPU 3.20GHz (GenuineIntel 686-class) 3.21 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,CNXT-ID,CX16,xTPR real mem = 2146832384 (2047MB) avail mem = 2101727232 (2004MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 11/30/05, BIOS32 rev. 0 @ 0xfd6f1, SMBIOS rev. 2.3 @ 0xf5eea (52 entries) bios0: vendor IBM version -[APE130AUS-1.12]- date 11/30/2005 bios0: IBM eserver xSeries 336 -[883725U]- acpi0 at bios0: rev 2 acpi0: sleep states S0 S4 S5 acpi0: tables DSDT FACP APIC MCFG acpi0: wakeup devices PCI0(S5) 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 200MHz cpu1 at mainbus0: apid 6 (application processor) cpu1: Intel(R) Xeon(TM) CPU 3.20GHz (GenuineIntel 686-class) 3.21 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,S SE3,MWAIT,DS-CPL,CNXT-ID,CX16,xTPR cpu2 at mainbus0: apid 1 (application processor) cpu2: Intel(R) Xeon(TM) CPU 3.20GHz (GenuineIntel 686-class) 3.21 GHz cpu2: 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,CNXT-ID,CX16,xTPR cpu3 at mainbus0: apid 7 (application processor) cpu3: Intel(R) Xeon(TM) CPU 3.20GHz (GenuineIntel 686-class) 3.21 GHz cpu3: 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,CNXT-ID,CX16,xTPR ioapic0 at mainbus0: apid 14 pa 0xfec0, version 20, 24 pins ioapic1 at mainbus0: apid 13 pa 0xfec82000, version 20, 24 pins ioapic2 at mainbus0: apid 12 pa 0xfec82400, version 20, 24 pins acpiprt0 at acpi0: bus 4 (PCI2) acpiprt1 at acpi0: bus 5 (PCI3) acpiprt2 at acpi0: bus 1 (PCIS) acpiprt3 at acpi0: bus 0 (PCI0) acpicpu0 at acpi0 acpicpu1 at acpi0 acpicpu2 at acpi0 acpicpu3 at acpi0 bios0: ROM list: 0xc/0xb000 0xcb000/0x1600 0xcc600/0x4000 ipmi at mainbus0 not configured pci0 at mainbus0 bus 0: configuration mode 1 (bios) mem address conflict 0xff00/0x1000 pchb0 at pci0 dev 0 function 0 Intel E7520 Host rev 0x0c 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
update2: update: OpenBSD 4.8 weird time or cron problems
oh, i am still seeing this on message. btw , i use postfix and i copied pwd.db to it's /etc folder Jul 19 15:43:16 srv last message repeated 237 times Jul 19 15:53:13 srv last message repeated 288 times Jul 19 15:59:58 srv last message repeated 222 times Jul 19 13:00:01 srv syslogd: restart Jul 19 16:00:14 srv sendmail: /etc/pwd.db: No such file or directory Jul 19 16:00:50 srv last message repeated 15 times Jul 19 16:02:51 srv last message repeated 62 times Jul 19 16:05:05 srv last message repeated 57 times Marcos Laufer wrote: I noticed that this was sent by email by cron when attempted to execute the process: Your Terminal type is unknown! Enter a terminal type: [vt100] Why? i don't know. I added TERM=220 into root's crontab and it worked. The thing is that it never needed it .. why now it does? Regards, Marcos Laufer wrote: Hello list, i am having strange issues with openbsd 4.8 and cron . This is a OpenBSD 4.8 with it's kernel modified to have pci.c rev 1.72 , in order to make it run on a IBM x336 server. Everything was working perfect. Until i added today a new user. Then i used vipw to change it's group. After that i noticed that my hourly script configured at cron was not being executed. When i looked the messages log i saw this: Jul 19 02:00:01 srv syslogd: restart Jul 19 04:00:01 srv syslogd: restart Jul 19 06:00:01 srv syslogd: restart Jul 19 08:00:01 srv syslogd: restart Jul 19 10:00:01 srv syslogd: restart Jul 19 13:51:44 srv sendmail: /etc/pwd.db: No such file or directory Jul 19 13:52:25 srv last message repeated 14 times Jul 19 13:54:29 srv last message repeated 48 times Jul 19 14:00:01 srv last message repeated 159 times Jul 19 11:00:01 srv syslogd: restart Jul 19 14:00:10 srv sendmail: /etc/pwd.db: No such file or directory Jul 19 14:00:40 srv last message repeated 20 times Jul 19 14:02:39 srv last message repeated 54 times Jul 19 14:12:29 srv last message repeated 263 times Jul 19 14:22:37 srv last message repeated 238 times Jul 19 14:32:41 srv last message repeated 298 times Jul 19 14:42:40 srv last message repeated 250 times Jul 19 14:52:40 srv last message repeated 216 times Jul 19 14:59:58 srv last message repeated 129 times Jul 19 12:00:01 srv syslogd: restart Jul 19 15:00:08 srv sendmail: /etc/pwd.db: No such file or directory Jul 19 15:00:39 srv last message repeated 13 times Jul 19 15:02:29 srv last message repeated 46 times Jul 19 15:12:45 srv last message repeated 200 times Jul 19 15:20:20 srv last message repeated 164 times Notice how time jumps after 10:00am . Notice after 14:00 that when syslog restarts it shows 11:00 , the right time. . I added the pwd.db and localtime into postfix's etc. I also started ntpd to set time . No difference with cron, it does not run it's hourly process anymore Date looks fine when i look at it: # date Tue Jul 19 12:29:03 ART 2011 But cron does not execute it's processes anymore. Any help will be appreciated! Here is dmesg: OpenBSD 4.8-stable (GENERIC.MP) #1: Fri Jan 21 16:23:35 ART 2011 root@srv:/usr/src/sys/arch/i386/compile/GENERIC.MP cpu0: Intel(R) Xeon(TM) CPU 3.20GHz (GenuineIntel 686-class) 3.21 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,CNXT-ID,CX16,xTPR real mem = 2146832384 (2047MB) avail mem = 2101727232 (2004MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 11/30/05, BIOS32 rev. 0 @ 0xfd6f1, SMBIOS rev. 2.3 @ 0xf5eea (52 entries) bios0: vendor IBM version -[APE130AUS-1.12]- date 11/30/2005 bios0: IBM eserver xSeries 336 -[883725U]- acpi0 at bios0: rev 2 acpi0: sleep states S0 S4 S5 acpi0: tables DSDT FACP APIC MCFG acpi0: wakeup devices PCI0(S5) 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 200MHz cpu1 at mainbus0: apid 6 (application processor) cpu1: Intel(R) Xeon(TM) CPU 3.20GHz (GenuineIntel 686-class) 3.21 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,S SE3,MWAIT,DS-CPL,CNXT-ID,CX16,xTPR cpu2 at mainbus0: apid 1 (application processor) cpu2: Intel(R) Xeon(TM) CPU 3.20GHz (GenuineIntel 686-class) 3.21 GHz cpu2: 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,CNXT-ID,CX16,xTPR cpu3 at mainbus0: apid 7 (application processor) cpu3: Intel(R) Xeon(TM) CPU 3.20GHz (GenuineIntel 686-class) 3.21 GHz cpu3: 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,CNXT-ID,CX16,xTPR ioapic0 at mainbus0: apid 14 pa 0xfec0, version 20, 24 pins ioapic1 at mainbus0: apid 13 pa 0xfec82000, version 20, 24 pins ioapic2 at mainbus0: apid 12 pa 0xfec82400, version 20, 24 pins acpiprt0 at acpi0: bus 4 (PCI2
can't intall webalizer on OpenBSD 4.8
offset 63 QAS 0 DT 1 IU 1 mpi0: target 1 Sync at 160MHz width 16bit offset 63 QAS 0 DT 1 IU 1 ppb3 at pci2 dev 0 function 2 Intel PCIE-PCIE rev 0x09 pci4 at ppb3 bus 5 ppb4 at pci0 dev 6 function 0 Intel E7520 PCIE rev 0x0c pci5 at ppb4 bus 6 bge0 at pci5 dev 0 function 0 Broadcom BCM5721 rev 0x11, BCM5750 B1 (0x4101): apic 14 int 16 (irq 11), address 00:14:5e:32:11:3e brgphy0 at bge0 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0 ppb5 at pci0 dev 7 function 0 Intel E7520 PCIE rev 0x0c pci6 at ppb5 bus 7 bge1 at pci6 dev 0 function 0 Broadcom BCM5721 rev 0x11, BCM5750 B1 (0x4101): apic 14 int 16 (irq 11), address 00:14:5e:32:11:3f brgphy1 at bge1 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0 Intel E7520 Config rev 0x0c at pci0 dev 8 function 0 not configured uhci0 at pci0 dev 29 function 0 Intel 82801EB/ER USB rev 0x02: apic 14 int 16 (irq 11) uhci1 at pci0 dev 29 function 1 Intel 82801EB/ER USB rev 0x02: apic 14 int 19 (irq 3) ehci0 at pci0 dev 29 function 7 Intel 82801EB/ER USB2 rev 0x02: apic 14 int 23 (irq 5) usb0 at ehci0: USB revision 2.0 uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1 ppb6 at pci0 dev 30 function 0 Intel 82801BA Hub-to-PCI rev 0xc2 pci7 at ppb6 bus 1 vga1 at pci7 dev 1 function 0 ATI Radeon VE rev 0x00 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) radeondrm0 at vga1: apic 14 int 16 (irq 11) drm0 at radeondrm0 ichpcib0 at pci0 dev 31 function 0 Intel 82801EB/ER LPC rev 0x02 pciide0 at pci0 dev 31 function 2 Intel 82801EB SATA rev 0x02: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility atapiscsi0 at pciide0 channel 0 drive 0 scsibus1 at atapiscsi0: 2 targets cd0 at scsibus1 targ 0 lun 0: HL-DT-ST, DVD-ROM GDR8083N, 0L02 ATAPI 5/cdrom removable cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 ichiic0 at pci0 dev 31 function 3 Intel 82801EB/ER SMBus rev 0x02: apic 14 int 17 (irq 7) iic0 at ichiic0 spdmem0 at iic0 addr 0x50: 512MB DDR2 SDRAM registered ECC PC2-3200CL5 spdmem1 at iic0 addr 0x51: 512MB DDR2 SDRAM registered ECC PC2-3200CL5 spdmem2 at iic0 addr 0x52: 512MB DDR2 SDRAM registered ECC PC2-3200CL5 spdmem3 at iic0 addr 0x53: 512MB DDR2 SDRAM registered ECC PC2-3200CL5 usb1 at uhci0: USB revision 1.0 uhub1 at usb1 Intel UHCI root hub rev 1.00/1.00 addr 1 usb2 at uhci1: USB revision 1.0 uhub2 at usb2 Intel UHCI root hub rev 1.00/1.00 addr 1 isa0 at ichpcib0 isadma0 at isa0 com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pcppi0 at isa0 port 0x61 spkr0 at pcppi0 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 mtrr: Pentium Pro MTRR support softraid0 at root root on sd0a swap on sd0b dump on sd0b -- Marcos Laufer * marcos mailto:mar...@ipversion4.com@ipversion4.com mailto:mar...@ipversion4.com CTO Ipversion4.com http://www.ipversion4.com http://www.ipversion4.com/ ( 0800-444-HOSTING Rodriguez Peqa 468 1 C
Re: can't intall webalizer on OpenBSD 4.8
Thanks Matthew , you are correct. I also realized i did not install X sets after sending my email, i am installin all X sets, but i guess those libs probably are on xfont48.tgz Matthew Weigel wrote: On Thu, 30 Jun 2011 20:50:20 -0300, Marcos Laufer wrote: Hello list, i can't install webalizer. This is OpenBSD 4.8 stable, (with pci.c rev 1.72 because this is a X336 IBM server) Any ideas why? ul6:/root{194}# pkg_add webalizer Can't install gd-2.0.35p0 because of libraries |library fontconfig.7.0 not found | not found anywhere |library freetype.17.1 not found | not found anywhere Those libraries are probably provided by install sets you didn't install... like xbase48.tgz. See http://www.openbsd.org/faq/faq4.html#FilesNeeded for more information.
Re: Automatic reboot on kernel panic
I am sorry, this confused me, and i didn't quite understand. Just to be clear: ddb.panic=0 will boot instead of dropping you into a ddb? Or is it ddb.panic=1 the option that will make the system boot? Regards, David Coppa wrote: On Wed, 22 Jun 2011, ter Voorde Informatiesystemen wrote: In /etc/sysctl.conf I see the following commented line: #ddb.panic=0 and nothing else about ddb.panic is present there. With other words, I guess: 'ddb.panic=0' is the default boot time setting and does not have to be set explicitly. I now suppose: on a kernel panic, this system will not drop into ddb (kind-of waiting for someone to retrieve useful information about the panic) and is most likely to reboot. Is that correct? Exactly the opposite: $ sysctl ddb.panic ddb.panic=1 You need to uncomment that line in /etc/sysctl.conf. Cheers, David
Re: IBM xServer 336/346 - OpenBSD 4.9
Daniel, What i did to make my x336 servers work with OpenBSD 4.9 was to replace pci.c from the source with pci.c 1.72 . Is this somehow wrong? Should i apply this patch instead? Regards, Marcos LEVAI Daniel wrote: Hi! (Just for the record) Regarding PR#6523, OpenBSD 4.9 works with pci.c 1.88 (from OPENBSD_4_9), patched with kettenis@'s pci.c patch 1.72 [1]. I was afraid it won't apply, or there will be incompatibilities with other parts, but so far so good. (It's unfortuane it broke other systems :( ) Anyway, thanks! [1]: http://www.openbsd.org/cgi-bin/cvsweb/src/sys/dev/pci/pci.c.diff?r1=1.71;r2=1.72 Daniel
Re: x336 IBM servers reboots
Thanks Daniel, Downgrading pci.c to 1.72 fixed the problem for me. Now i can install OpenBSD on my ten spare x336 servers . Best regards, Marcos LEVAI Daniel wrote: On k, jan 18, 2011 at 12:06:19 -0300, Marcos Laufer wrote: Hello list, I'd like to inform that this problem: http://www.pubbs.net/200910/openbsd/42943-46-reboots-x336-ibm-servers.html keeps happening also with OpenBSD 4.7 and 4.8 . The last version i can install or upgrade on this is 4.5. Didn't try -current yet. I have several of this IBM x336 servers waiting to be running OpenBSD http://cvs.openbsd.org/cgi-bin/query-pr-wrapper?full=yesnumbers=6523
Re: Page fault trap on IBM x336
Hello Patrick, Do you think this could work for 4.8? How could you compile kernel and ramdisk kernel with the old 1.72 pci.c, using another box that boots 4.7? Regards, Marcos Patrick Coleman wrote: On Wed, Jun 9, 2010 at 10:47 AM, patrick keshishian pkesh...@gmail.com wrote: you realize obsd4.5 isn't supported any longer since 4.7 was released. Fair enough. I've managed to get 4.7 working by reverting /sys/dev/pci/pci.c to 1.72, as suggested in that thread, so I guess I'll try that. Cheers, Patrick
x336 IBM servers reboots
Hello list, I'd like to inform that this problem: http://www.pubbs.net/200910/openbsd/42943-46-reboots-x336-ibm-servers.html keeps happening also with OpenBSD 4.7 and 4.8 . The last version i can install or upgrade on this is 4.5. Didn't try -current yet. I have several of this IBM x336 servers waiting to be running OpenBSD Best regards, Marcos Laufer
Re: ahci message
(irq 11) uhci5 at pci0 dev 29 function 2 Intel 82801I USB rev 0x02: apic 4 int 18 (irq 9) ehci1 at pci0 dev 29 function 7 Intel 82801I USB rev 0x02: apic 4 int 23 (irq 10) usb1 at ehci1: USB revision 2.0 uhub1 at usb1 Intel EHCI root hub rev 2.00/1.00 addr 1 ppb5 at pci0 dev 30 function 0 Intel 82801BA Hub-to-PCI rev 0x92 pci6 at ppb5 bus 6 ichpcib0 at pci0 dev 31 function 0 Intel 82801IO LPC rev 0x02: PM disabled ahci0 at pci0 dev 31 function 2 Intel 82801I AHCI rev 0x02: apic 4 int 21 (irq 9), AHCI 1.2 scsibus0 at ahci0: 32 targets sd0 at scsibus0 targ 0 lun 0: ATA, WDC WD800BD-22MR, 10.0 SCSI3 0/direct fixed sd0: 76319MB, 9729 cyl, 255 head, 63 sec, 512 bytes/sec, 156301488 sec total sd1 at scsibus0 targ 1 lun 0: ATA, WDC WD1200JD-00H, 08.0 SCSI3 0/direct fixed sd1: 114473MB, 14593 cyl, 255 head, 63 sec, 512 bytes/sec, 234441648 sec total sd2 at scsibus0 targ 2 lun 0: ATA, WDC WD3200AAKS-0, 12.0 SCSI3 0/direct fixed sd2: 305245MB, 38913 cyl, 255 head, 63 sec, 512 bytes/sec, 625142448 sec total sd3 at scsibus0 targ 3 lun 0: ATA, WDC WD3200AAKS-0, 12.0 SCSI3 0/direct fixed sd3: 305245MB, 38913 cyl, 255 head, 63 sec, 512 bytes/sec, 625142448 sec total sd4 at scsibus0 targ 5 lun 0: ATA, WDC WD800BD-22MR, 10.0 SCSI3 0/direct fixed sd4: 76319MB, 9729 cyl, 255 head, 63 sec, 512 bytes/sec, 156301488 sec total ichiic0 at pci0 dev 31 function 3 Intel 82801I SMBus rev 0x02: apic 4 int 18 (irq 9) iic0 at ichiic0 spdmem0 at iic0 addr 0x50: 1GB DDR2 SDRAM non-parity PC2-5300CL5 spdmem1 at iic0 addr 0x51: 1GB DDR2 SDRAM non-parity PC2-5300CL5 spdmem2 at iic0 addr 0x52: 1GB DDR2 SDRAM non-parity PC2-5300CL5 spdmem3 at iic0 addr 0x53: 1GB DDR2 SDRAM non-parity PC2-5300CL5 usb2 at uhci0: USB revision 1.0 uhub2 at usb2 Intel UHCI root hub rev 1.00/1.00 addr 1 usb3 at uhci1: USB revision 1.0 uhub3 at usb3 Intel UHCI root hub rev 1.00/1.00 addr 1 usb4 at uhci2: USB revision 1.0 uhub4 at usb4 Intel UHCI root hub rev 1.00/1.00 addr 1 usb5 at uhci3: USB revision 1.0 uhub5 at usb5 Intel UHCI root hub rev 1.00/1.00 addr 1 usb6 at uhci4: USB revision 1.0 uhub6 at usb6 Intel UHCI root hub rev 1.00/1.00 addr 1 usb7 at uhci5: USB revision 1.0 uhub7 at usb7 Intel UHCI root hub rev 1.00/1.00 addr 1 isa0 at ichpcib0 isadma0 at isa0 pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pcppi0 at isa0 port 0x61 midi0 at pcppi0: PC speaker spkr0 at pcppi0 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 mtrr: Pentium Pro MTRR support uhidev0 at uhub7 port 2 configuration 1 interface 0 vendor 0x13ba Generic USB K/B rev 1.10/0.01 addr 2 uhidev0: iclass 3/1 ukbd0 at uhidev0: 8 modifier keys, 6 key codes wskbd1 at ukbd0 mux 1 wskbd1: connecting to wsdisplay0 uhidev1 at uhub7 port 2 configuration 1 interface 1 vendor 0x13ba Generic USB K/B rev 1.10/0.01 addr 2 uhidev1: iclass 3/1, 2 report ids ums0 at uhidev1 reportid 1: 3 buttons and Z dir. wsmouse0 at ums0 mux 0 uhid0 at uhidev1 reportid 2: input=1, output=0, feature=0 softraid0 at root root on sd0a swap on sd0b dump on sd0b WARNING: / was not properly unmounted uhidev2 at uhub6 port 2 configuration 1 interface 0 Sun Microsystems Type 6 Keyboard rev 1.00/1.02 addr 2 uhidev2: iclass 3/1 ukbd1 at uhidev2: 8 modifier keys, 6 key codes, layout 33 wskbd2 at ukbd1 mux 1 wskbd2: connecting to wsdisplay0 wskbd2: disconnecting from wsdisplay0 wskbd2 detached ukbd1 detached uhidev2 detached uvm_mapent_alloc: out of static map entries uvm_mapent_alloc: out of static map entries uvm_mapent_alloc: out of static map entries uvm_mapent_alloc: out of static map entries uvm_mapent_alloc: out of static map entries uvm_mapent_alloc: out of static map entries uvm_mapent_alloc: out of static map entries uvm_mapent_alloc: out of static map entries ahci0: stopping the port, softreset slot 26 was still active. uvm_mapent_alloc: out of static map entries uvm_mapent_alloc: out of static map entries PPP8QQP8P9 PP0QQP:PP2 escribiC3: On Tue, Nov 2, 2010 at 9:01 PM, Marcos Laufer mar...@ipv4networks.com wrote: Hello list, Does anyone know what this means? ahci0: stopping the port, softreset slot 26 was still active. Does this mean that ahci has been disabled and now disks are working as regular sata disks? What do You mean? AHCI is the SATA controller interface, which all the regular SATA discks work with. The message You've cited says that Your AHCI controller disabled some port. Unless You provide the full dmesg noone could help You with more details.
Re: ahci message
Yes , i know i should upgrade . Six months ago i upgraded this machine from 3.4 to 4.3 version by version, and it took a long offline time so i had to stay at 4.3 temporarily , and i was planning to upgrade it again from 4.3 to 5.0 next november. I was just curious about this error message because i had never seen it before. ahci0: stopping the port, softreset slot 26 was still active I was wondering if after this message appeared at least one sata disk is no longer working as ahci which is much faster than regular sata, and a reboot would be needed to put everything back to normal. Regards, Marcos LeviaComm Networks escribiC3: On 03-Nov-10 08:55, Marcos Laufer wrote: Ok here it goes: OpenBSD 4.3 (GENERIC.MP) #587: Wed Mar 12 11:21:57 MDT 2008 4.3 is no longer supported. Please upgrade to at least 4.8-stable, your problem may have been fixed in the past 31 Months since your build. -Christopher Ahrens -LeviaComm Networks
ahci message
Hello list, Does anyone know what this means? ahci0: stopping the port, softreset slot 26 was still active. Does this mean that ahci has been disabled and now disks are working as regular sata disks? Regards, Marcos
Re: Dynamic web hosting and OpenBSD
Is this a prank message? bsdmas...@hushmail.com escribiC3: Dear Friends, I am currently starting my very own hosting business, as I'm horribly tired of all the incompetence in the field. Obviously I take security seriously, and therefore will be using OpenBSD exclusively. One thing is bothering me though. I've searched the web and the archives trying to clarify one single point, but to no avail. I hope you friendly folks would help me. I want to host my customers websites, but I'm unclear how OpenBSD web scripting languages support works. I know for a fact that the base system includes perl, so hosting perl websites should work without issues. That is good because many of my customers will be using domains such as domain.pl I also see Mono is part of the ports, so domain.net should also work without issue. The one thing I'm unclear about is example.com domains. How can I get OpenBSD to run .com files? I found that these are actualy very old DOS binaries. How do other OpenBSD folks manage them? Is it with Wine? Qemu running a stripped down XP? Of course I could write a very good .COM wrapper for ELF I guess, but I don't want to reinvent the wheel, so if a solution already exists, I better use it. So, what is this solution? Or maybe OpenBSD is not compatible yet with .COM web applications? PS: by the way, I am ready to offer the OpenBSD project a very good discount, so maybe it's a good idea to move all the hosting of the project to my new company once I've ironed out the few remaining details. Service will be very good, high bandwidth and very modern, being IPv6 only (it's the new version of DHCP and DNS with more addresses for your machines), so very future-proof. Just contact me if you need more information. Thanks, bsdmaster
wd0 device timeout
at pcppi0: PC speaker spkr0 at pcppi0 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: density unknown mtrr: Pentium Pro MTRR support uhidev0 at uhub0 port 2 configuration 1 interface 0 vendor 0x1bcf USB Optical Mouse rev 2.00/0.10 addr 2 uhidev0: iclass 3/1, 2 report ids ums0 at uhidev0 reportid 1: 3 buttons, Z dir wsmouse0 at ums0 mux 0 uhid0 at uhidev0 reportid 2: input=1, output=0, feature=0 softraid0 at root root on wd0a swap on wd0b dump on wd0b Regards, Marcos Laufer
Re: random disconnects on openbsd4.7
: we sent a keyboard-interactive packet, wait for reply debug1: Authentications that can continue: publickey,password,keyboard-interactive debug3: userauth_kbdint: disable: no info_req_seen debug2: we did not send a packet, disable method debug3: authmethod_lookup password debug3: remaining preferred: debug3: authmethod_is_enabled password debug1: Next authentication method: password r...@obsd47's password: debug3: packet_send2: adding 64 (len 58 padlen 6 extra_pad 64) debug2: we sent a password packet, wait for reply debug1: Enabling compression at level 6. debug1: Authentication succeeded (password). debug1: channel 0: new [client-session] debug3: ssh_session2_open: channel_new: 0 debug2: channel 0: send open debug1: Entering interactive session. debug2: callback start debug2: client_session2_setup: id 0 debug2: channel 0: request pty-req confirm 0 debug3: tty_make_modes: ospeed 38400 debug3: tty_make_modes: ispeed 38400 debug3: tty_make_modes: 1 3 debug3: tty_make_modes: 2 28 debug3: tty_make_modes: 3 127 debug3: tty_make_modes: 4 21 debug3: tty_make_modes: 5 4 debug3: tty_make_modes: 6 255 debug3: tty_make_modes: 7 255 debug3: tty_make_modes: 8 17 debug3: tty_make_modes: 9 19 debug3: tty_make_modes: 10 26 debug3: tty_make_modes: 11 25 debug3: tty_make_modes: 12 18 debug3: tty_make_modes: 13 23 debug3: tty_make_modes: 14 22 debug3: tty_make_modes: 17 20 debug3: tty_make_modes: 18 15 debug3: tty_make_modes: 30 0 debug3: tty_make_modes: 31 0 debug3: tty_make_modes: 32 0 debug3: tty_make_modes: 33 0 debug3: tty_make_modes: 34 0 debug3: tty_make_modes: 35 0 debug3: tty_make_modes: 36 1 debug3: tty_make_modes: 37 0 debug3: tty_make_modes: 38 1 debug3: tty_make_modes: 39 1 debug3: tty_make_modes: 40 0 debug3: tty_make_modes: 41 1 debug3: tty_make_modes: 50 1 debug3: tty_make_modes: 51 1 debug3: tty_make_modes: 52 0 debug3: tty_make_modes: 53 1 debug3: tty_make_modes: 54 1 debug3: tty_make_modes: 55 0 debug3: tty_make_modes: 56 0 debug3: tty_make_modes: 57 0 debug3: tty_make_modes: 58 0 debug3: tty_make_modes: 59 1 debug3: tty_make_modes: 60 1 debug3: tty_make_modes: 61 1 debug3: tty_make_modes: 62 1 debug3: tty_make_modes: 70 1 debug3: tty_make_modes: 71 0 debug3: tty_make_modes: 72 1 debug3: tty_make_modes: 73 0 debug3: tty_make_modes: 74 0 debug3: tty_make_modes: 75 0 debug3: tty_make_modes: 90 1 debug3: tty_make_modes: 91 1 debug3: tty_make_modes: 92 0 debug3: tty_make_modes: 93 0 debug2: channel 0: request shell confirm 0 debug2: fd 4 setting TCP_NODELAY debug2: callback done debug2: channel 0: open confirm rwindow 0 rmax 32768 debug2: channel 0: rcvd adjust 2097152 Last login: Thu Sep 2 21:58:52 2010 from srv1 OpenBSD 4.7-stable (GENERIC.MP) #0: Fri Aug 20 16:38:15 ART 2010 Welcome to OpenBSD: The proactively secure Unix-like operating system. obsd47:~{1}# obsd47:~{1}# debug1: channel 0: free: client-session, nchannels 1 debug3: channel 0: status: The following connections are open: #0 client-session (t4 r0 i0/0 o0/0 fd 5/6 cfd -1) debug3: channel 0: close_fds r 5 w 6 e 7 c -1 Read from remote host obsd47: Connection reset by peer Connection to obsd47 closed. debug1: Transferred: stdin 0, stdout 0, stderr 92 bytes in 2406.7 seconds debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.0 debug1: Exit status -1 debug1: compress outgoing: raw data 401, compressed 235, factor 0.59 debug1: compress incoming: raw data 773, compressed 365, factor 0.47 srv1:/root{5241}# Fred Crowson escribis: 2010/8/24 Marcos Laufer mar...@ipv4networks.com: Hello list, i'm having random logoffs from a recently installed OpenBSD 4.7 installed on a DL360 server, and updated to stable. The symptoms are simple, i log in, wait a while, and i get suddenly logged off. It goes like this: obsd47:~{8}# Read from remote host obsd47: Connection reset by peer Connection to obsd47 closed. srv1:/root{4994}# srv1:/root{4994}# srv1:/root{4994}# ssh obsd47 r...@obsd47's password: Last login: Mon Aug 23 22:04:07 2010 from srv1 OpenBSD 4.7-stable (GENERIC.MP) #0: Fri Aug 20 16:38:15 ART 2010 Hi, Using ssh -vvv might give some further clues to the issue. hth Fred
random disconnects on openbsd4.7
Hello list, i'm having random logoffs from a recently installed OpenBSD 4.7 installed on a DL360 server, and updated to stable. The symptoms are simple, i log in, wait a while, and i get suddenly logged off. It goes like this: obsd47:~{8}# Read from remote host obsd47: Connection reset by peer Connection to obsd47 closed. srv1:/root{4994}# srv1:/root{4994}# srv1:/root{4994}# ssh obsd47 r...@obsd47's password: Last login: Mon Aug 23 22:04:07 2010 from srv1 OpenBSD 4.7-stable (GENERIC.MP) #0: Fri Aug 20 16:38:15 ART 2010 Welcome to OpenBSD: The proactively secure Unix-like operating system. obsd47:~{1}# dmesg OpenBSD 4.7-stable (GENERIC.MP) #0: Fri Aug 20 16:38:15 ART 2010 r...@obsd47.test.com:/usr/src/sys/arch/i386/compile/GENERIC.MP cpu0: Intel Pentium III (GenuineIntel 686-class) 931 MHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MM X,FXSR,SSE real mem = 536424448 (511MB) avail mem = 511025152 (487MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 12/31/99, BIOS32 rev. 0 @ 0xf, SMBIOS rev. 2.3 @ 0xf206c (23 entries) bios0: vendor Compaq version P21 date 01/09/2001 bios0: Compaq ProLiant DL360 acpi0 at bios0: rev 0, can't enable ACPI mpbios0 at bios0: Intel MP Specification 1.4 cpu0 at mainbus0: apid 3 (boot processor) cpu0: apic clock running at 132MHz cpu1 at mainbus0: apid 0 (application processor) cpu1: Intel Pentium III (GenuineIntel 686-class) 931 MHz cpu1: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MM X,FXSR,SSE mpbios0: bus 0 is type PCI mpbios0: bus 3 is type PCI mpbios0: bus 9 is type ISA ioapic0 at mainbus0: apid 8 pa 0xfec0, version 11, 35 pins ioapic0: misconfigured as apic 0, remapped to apid 8 bios0: ROM list: 0xc/0x8000 0xc8000/0x4000! 0xe8000/0x6000 0xee000/0x2000! 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 3 fxp0 at pci1 dev 4 function 0 Intel 8255x rev 0x08, i82559: apic 8 int 17 (irq 7), address 00:50:8b:e2:bd:7b inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4 fxp1 at pci1 dev 5 function 0 Intel 8255x rev 0x08, i82559: apic 8 int 24 (irq 10), address 00:50:8b:e2:bd:7a inphy1 at fxp1 phy 1: i82555 10/100 PHY, rev. 4 cac0 at pci0 dev 1 function 0 Symbios Logic 53c1510 rev 0x02: apic 8 int 19 (i rq 5), Integrated Array scsibus0 at cac0: 2 targets sd0 at scsibus0 targ 0 lun 0: Compaq, RAID0 vol #00, SCSI2 0/direct fixed sd0: 17359MB, 512 bytes/sec, 35553120 sec total sd1 at scsibus0 targ 1 lun 0: Compaq, RAID0 vol #01, SCSI2 0/direct fixed sd1: 17359MB, 512 bytes/sec, 35553120 sec total vga1 at pci0 dev 3 function 0 ATI Mach64 rev 0x7a wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) Compaq Netelligent ASMC rev 0x00 at pci0 dev 4 function 0 not configured ohci0 at pci0 dev 5 function 0 Opti 82C861 rev 0x10: apic 8 int 21 (irq 3), ve rsion 1.0, legacy support piixpm0 at pci0 dev 15 function 0 ServerWorks OSB4 rev 0x51: SMBus disabled pciide0 at pci0 dev 15 function 1 ServerWorks OSB4 IDE rev 0x00: DMA atapiscsi0 at pciide0 channel 1 drive 0 scsibus1 at atapiscsi0: 2 targets cd0 at scsibus1 targ 0 lun 0: COMPAQ, CD-224E, 9.0B ATAPI 5/cdrom removable cd0(pciide0:1:0): using PIO mode 4, DMA mode 2 usb0 at ohci0: USB revision 1.0 uhub0 at usb0 Opti 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 pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pcppi0 at isa0 port 0x61 midi0 at pcppi0: PC speaker spkr0 at pcppi0 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 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 vscsi0 at root scsibus2 at vscsi0: 256 targets softraid0 at root root on sd0a swap on sd0b dump on sd0b obsd47:~{3}# Does anyone sees the same behaviour? Regards, Marcos Laufer
pf scrub doubt
Hello list, I'm just in doubt in how to replace the sentence for OpenBSD 4.7 : scrub in all Is it just like this? : match in all scrub If so, should this be updated in http://www.openbsd.org/faq/pf/scrub.html ? Thanks! Marcos
Re: mount ffs as msdos, system hangs
Chris Bennett escribis: frantisek holop wrote: hi there, i have just managed to mount an ffs partition as msdos. the the system promptly dies. $ sudo fdisk sd0 Disk: sd0 geometry: 120/255/63 [1935360 Sectors] Offset: 0 Signature: 0xAA55 Starting Ending LBA Info: #: id C H S - C H S [ start:size ] --- 0: A6 0 1 1 -119 254 63 [ 63: 1927737 ] OpenBSD 1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused 2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused 3: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused $ sudo mount -t msdos -o nodev,nosuid,-x,-l,-m666 /dev/sd0a /mnt $ [dead system] can anybody reproduce this? If I plug my 110volt computer into a 220volt socket, it will promptly die too! Why on earth would you even try to do this? That's no excuse. The point here is that any unprivileged user can hang the system at will.
Re: Apache - bandwidth usage limit per vhost
On 9 Mar 2010, at 17:42, Ozgur Kazancci wrote: I'd like to set a (monthly) bandwidth quota limit to my Apache virtualhosts. For instance, domain.com would have an amount of 10G/Month bandwidth limit (and in case of exceeding the limit, it'd get redirected to a Bandwidth limit exceeded alert page.) I too would be very interested in something that works with the stock Apache in 4.6. Gaby. -- Imagine there were no hypothetical situations. http://playr.co.uk/ Then what you need is exactly mod_throttle. mod_throttle project is discontinued but the latest version works just fine and does it job very well. I use it with stock Apache since OpenBSD 3.4 and never had problems with it. Regards, Marcos Laufer * marcos mailto:mar...@ipversion4.com@ipversion4.com mailto:mar...@ipversion4.com CTO Ipversion4.com http://www.ipversion4.com http://www.ipversion4.com/ ( 0800-444-HOSTING Rodriguez Peqa 468 1 C
Re: How to determine what ports are being used?
You could fire up the VPN, connect to it from the outside, and then use the netstat command to see which ports are beeing used knowing the origin and destination IPs Regards, Marcos Laufer stan wrote: I have a home network tat uses an OpenBSD machine as it's firewall. I now have a company laptop (Windows), and it has some sort of Microsoft VPN. If it remove my block all rule I can get this VPN up. The corporate support folks say that it uses port 1723, but putting thta in pf.conf and restarting (with the block all) rule sill does not allow it to work. If I turn off the block all rule, and fire up the VPN, how can I determine what ports it is using, so that I can create the correct pf.conf rules?
nmbclust command not found within config
Hello list, Looking at this faq page http://www.openbsd.org/faq/faq5.html#config it shows that under OpenBSD 4.5 modifying NMBCLUSTERS is possible. --- cuted from http://www.openbsd.org/faq/faq5.html#config $ *sudo config -e /bsd* OpenBSD 4.5 (GENERIC) #1749: Sat Feb 28 14:51:18 MST 2009 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC warning: no output file specified Enter 'help' for information ukc ? helpCommand help list add dev Add a device base8|10|16 Base on large numbers change devno|dev Change device disable attr val|devno|dev Disable device enable attr val|devno|dev Enable device finddevno|dev Find device listList configuration lines count # of lines per page show[attr [val]]Show attribute exitExit, without saving changes quitQuit, saving current changes timezone[mins [dst]]Show/change timezone nmbclust[number]Show/change NMBCLUSTERS cachepct[number]Show/change BUFCACHEPERCENT nkmempg [number]Show/change NKMEMPAGES shmseg [number]Show/change SHMSEG shmmaxpgs [number]Show/change SHMMAXPGS ---end--- But when trying it there's no option to do it. The nmbclust command does not exist, despite of that the faq says. hq:/{2561}# config -e /bsd OpenBSD 4.5 (GENERIC) #1749: Sat Feb 28 14:51:18 MST 2009 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC warning: no output file specified Enter 'help' for information ukc p Invalid command 'p'. Try 'help'. ukc help helpCommand help list add dev Add a device base8|10|16 Base on large numbers change devno|dev Change device disable attr val|devno|dev Disable device enable attr val|devno|dev Enable device finddevno|dev Find device listList configuration lines count # of lines per page show[attr [val]]Show attribute exitExit, without saving changes quitQuit, saving current changes timezone[mins [dst]]Show/change timezone cachepct[number]Show/change BUFCACHEPERCENT nkmempg [number]Show/change NKMEMPAGES shmseg [number]Show/change SHMSEG shmmaxpgs [number]Show/change SHMMAXPGS ukc What's the right way to increment NMBCLUSTERS now? Regards, Marcos Laufer
Re: Net-SNMP in 4.5
Donald, Compile it from ports and it will work. There's something wrong with the pre-compiled package Donald Reichert escribis: Hello list, I know, 4.6 has been out for a while now... However, I run 4.5 (i386) on a pair of very heavily used load balancers (relayd), and due to some customer requirements I would need some statistics (traffic, etc). I thought of using Net-SNMP, but a guy in IRC told me that in OpenBSD 4.5 it is broken? I search on the mailing lists, but didn't find mails regarding to this. However, does anybody know if there's a problem on 4.5? If there is some problem, is it fixed on 4.6? Best regards and please excuse my bad english, Donald
problem compiling kde4
target kiten_bin make -f klettres/src/CMakeFiles/klettres.dir/build.make klettres/src/CMakeFiles/klettres.dir/depend make -f klettres/src/CMakeFiles/klettres.dir/build.make klettres/src/CMakeFiles/klettres.dir/build /usr/local/bin/cmake -E cmake_progress_report /u/data/ports/obj/kdeedu-4.0.1p2/build-i386/CMakeFiles 35 [ 35%] Built target klettres make -f kmplot/kmplot/CMakeFiles/kmplot.dir/build.make kmplot/kmplot/CMakeFiles/kmplot.dir/depend make -f kmplot/kmplot/CMakeFiles/kmplot.dir/build.make kmplot/kmplot/CMakeFiles/kmplot.dir/build /usr/local/bin/cmake -E cmake_progress_report /u/data/ports/obj/kdeedu-4.0.1p2/build-i386/CMakeFiles 36 [ 36%] Built target kmplot make -f kmplot/kmplot/CMakeFiles/kmplotpart.dir/build.make kmplot/kmplot/CMakeFiles/kmplotpart.dir/depend make -f kmplot/kmplot/CMakeFiles/kmplotpart.dir/build.make kmplot/kmplot/CMakeFiles/kmplotpart.dir/build /usr/local/bin/cmake -E cmake_progress_report /u/data/ports/obj/kdeedu-4.0.1p2/build-i386/CMakeFiles [ 36%] Building CXX object kmplot/kmplot/CMakeFiles/kmplotpart.dir/view.o /usr/bin/c++ -Dkmplotpart_EXPORTS -O2 -pipe -Woverloaded-virtual -O2 -DNDEBUG -DQT_NO_DEBUG -fPIC -I/u/data/ports/obj/kdeedu-4.0.1p2/build-i386/kmplot/kmplot -I/usr/ports/obj/kdeedu-4.0.1p2/kdeedu-4.0.1/kmplot/kmplot -I/usr/ports/obj/kdeedu-4.0.1p2/kdeedu-4.0.1 -I/u/data/ports/obj/kdeedu-4.0.1p2/build-i386 -I/usr/local/include -I/usr/local/include/KDE -I/usr/X11R6/include -I/usr/local/include/X11/qt4 -I/usr/local/include/X11/qt4/Qt -I/usr/local/lib/qt4/mkspecs/default -I/usr/local/include/X11/qt4/QtCore -I/usr/local/include/X11/qt4/QtGui -I/usr/local/include/X11/qt4/Qt3Support -I/usr/local/include/X11/qt4/QtAssistant -I/usr/local/include/X11/qt4/QtDesigner -I/usr/local/include/X11/qt4/QtNetwork -I/usr/local/include/X11/qt4/QtOpenGL -I/usr/local/include/X11/qt4/QtSql -I/usr/local/include/X11/qt4/QtXml -I/usr/local/include/X11/qt4/QtSvg -I/usr/local/include/X11/qt4/QtScript -I/usr/local/include/X11/qt4/QtUiTools -I/usr/local/include/X11/qt4/QtTest -I/usr/local/include/X11/qt4/QtDBus -I/usr/local/include/libpng -DQT_SHARED -D_GNU_SOURCE -DQT_NO_STL -DQT_NO_CAST_TO_ASCII -D_REENTRANT -DKDE_DEPRECATED_WARNINGS -o kmplot/kmplot/CMakeFiles/kmplotpart.dir/view.o -c /usr/ports/obj/kdeedu-4.0.1p2/kdeedu-4.0.1/kmplot/kmplot/view.cpp /usr/ports/obj/kdeedu-4.0.1p2/kdeedu-4.0.1/kmplot/kmplot/view.cpp: In member function `QPointF View::toPixel(const QPointF, View::ClipBehaviour, const QPointF)': /usr/ports/obj/kdeedu-4.0.1p2/kdeedu-4.0.1/kmplot/kmplot/view.cpp:434: error: ` isnan' undeclared (first use this function) /usr/ports/obj/kdeedu-4.0.1p2/kdeedu-4.0.1/kmplot/kmplot/view.cpp:434: error: (Each undeclared identifier is reported only once for each function it appears in.) /usr/ports/obj/kdeedu-4.0.1p2/kdeedu-4.0.1/kmplot/kmplot/view.cpp:454: error: ` isinf' undeclared (first use this function) *** Error code 1 Stop in /u/data/ports/obj/kdeedu-4.0.1p2/build-i386 (line 269 of kmplot/kmplot/CMakeFiles/kmplotpart.dir/build.make). *** Error code 1 Stop in /u/data/ports/obj/kdeedu-4.0.1p2/build-i386 (line 3168 of CMakeFiles/Makefile2). *** Error code 1 Stop in /u/data/ports/obj/kdeedu-4.0.1p2/build-i386 (line 115 of Makefile). *** Error code 1 Stop in /usr/ports/x11/kde4/edu (line 2189 of /usr/ports/infrastructure/mk/bsd.port.mk). === Exiting x11/kde4/edu with an error *** Error code 1 Stop in /u/data/ports/x11/kde4 (line 129 of /usr/ports/infrastructure/mk/bsd.port.subdir.mk). pc03:/u/data/ports/x11/kde4{2}# Regards, Marcos Laufer
Re: automating 'fsck -y' after a power failure
Jose, this is an ugly modification in /etc/rc but it should do what you need. Search for the line that starts with 8) and modify it to look like this: 8) echo Corro FSCK de emergencia... fsck -y ; fsck_st=$? if [ $fsck_st != 0 ]; then echo Automatic file system check failed; help! exit 1 fi ;; Regards, Marcos Jose Fragoso wrote: Hi, Is it possible to automate the process of running fsck -y after a power or other type of failure, in cases the automatic file system check fails? Thanks in advance. Regards, Jose -- An Excellent Credit Score is 750 See Yours in Just 2 Easy Steps!
Re: LaCie
I've installed two of these on a MacOS X the day before i posted my message and i liked them a lot. I'd love to use them with my OpenBSD server farm Brian A. Seklecki escribis: On Tue, 2009-08-04 at 13:53 -0300, Marcos Laufer wrote: Hello, has anyone had any experience with LaCie Raid and Storage very Feng shui ~BAS I'm the kind of Mac-using sociopath that looks at an external NAS and asks: 'What kind of RAID array defines me as a person?'
LaCie
Hello, has anyone had any experience with LaCie Raid and Storage products? For example this beautiful Raid boxes: http://www.lacie.com/es/products/product.htm?pid=8 Regards, Marcos
resolution 1280x1024 not working when upgrading 4.4 - 4.5 with intel(4) driver
at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pmsi0 at pckbc0 (aux slot) pckbc0: using irq 12 for aux slot wsmouse0 at pmsi0 mux 0 pcppi0 at isa0 port 0x61 midi0 at pcppi0: PC speaker spkr0 at pcppi0 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 mtrr: Pentium Pro MTRR support softraid0 at root root on wd0a swap on wd0b dump on wd0b -- Marcos Laufer * marcos mailto:mar...@ipversion4.com@ipversion4.com mailto:mar...@ipversion4.com CTO Ipversion4.com http://www.ipversion4.com http://www.ipversion4.com/ ( 0800-444-HOSTING Rodriguez Peqa 468 1 C
Re: resolution 1280x1024 not working when upgrading 4.4 - 4.5 with intel(4) driver [solved]
Sorry for the noise . I was misconfiguring the horiz sync Marcos Laufer wrote: Hello List, I upgraded my workstation from 4.4 to 4.5 and i lost the 1280x1024 resolution in X. I had the i810(4) driver which has been removed/replaced with the intel(4) driver. Which other driver should i try to achieve same resolution? It works with 1024x768 at most This is dmesg: OpenBSD 4.5 (GENERIC) #1749: Sat Feb 28 14:51:18 MST 2009 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC RTC BIOS diagnostic error 80clock_battery cpu0: Intel(R) Pentium(R) 4 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,SSE3,MWAIT,DS-CPL,EST,TM2,CNXT-ID,CX16,xTPR real mem = 1061588992 (1012MB) avail mem = 1018200064 (971MB) RTC BIOS diagnostic error 80clock_battery mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 08/28/07, SMBIOS rev. 2.4 @ 0xe44f0 (27 entries) bios0: vendor Intel Corp. version NL94510J.86A.0017.2007.0828.1137 date 08/28/2007 bios0: Intel Corporation D945GCNL acpi0 at bios0: rev 0 acpi0: tables DSDT FACP APIC WDDT MCFG ASF! HPET SSDT SSDT SSDT SSDT SSDT acpi0: wakeup devices SLPB(S4) P32_(S4) PS2M(S4) PS2K(S4) UAR1(S4) UAR2(S4) PEG0(S4) PEX0(S4) PEX1(S4) PEX2(S4) PEX3(S4) PEX4(S4) PEX5(S4) UHC1(S3) UHC2(S3) UHC3(S3) UHC4(S3) EHCI(S3) AC9M(S4) AZAL(S4) 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 cpu at mainbus0: not configured ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins ioapic0: misconfigured as apic 0, remapped to apid 2 acpihpet0 at acpi0: 14318179 Hz acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 5 (P32_) acpiprt2 at acpi0: bus -1 (PEG0) acpiprt3 at acpi0: bus 1 (PEX0) acpiprt4 at acpi0: bus 2 (PEX1) acpiprt5 at acpi0: bus 3 (PEX2) acpiprt6 at acpi0: bus 4 (PEX3) acpiprt7 at acpi0: bus -1 (PEX4) acpiprt8 at acpi0: bus -1 (PEX5) acpicpu0 at acpi0: FVS, 3000, 2400 MHz acpibtn0 at acpi0: SLPB bios0: ROM list: 0xc/0xae00! pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 Intel 82945G Host rev 0x02 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 0x4000, size 0x1000 inteldrm0 at vga1: apic 2 int 16 (irq 11) drm0 at inteldrm0 ppb0 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x01: apic 2 int 17 (irq 255) pci1 at ppb0 bus 1 ppb1 at pci0 dev 28 function 1 Intel 82801GB PCIE rev 0x01: apic 2 int 16 (irq 255) pci2 at ppb1 bus 2 re0 at pci2 dev 0 function 0 Realtek 8168 rev 0x01: RTL8168 2 (0x3800), apic 2 int 17 (irq 9), address 00:1c:c0:0e:24:4e rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 2 ppb2 at pci0 dev 28 function 2 Intel 82801GB PCIE rev 0x01: apic 2 int 18 (irq 255) pci3 at ppb2 bus 3 ppb3 at pci0 dev 28 function 3 Intel 82801GB PCIE rev 0x01: apic 2 int 19 (irq 255) pci4 at ppb3 bus 4 uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x01: apic 2 int 23 (irq 10) uhci1 at pci0 dev 29 function 1 Intel 82801GB USB rev 0x01: apic 2 int 19 (irq 11) uhci2 at pci0 dev 29 function 2 Intel 82801GB USB rev 0x01: apic 2 int 18 (irq 9) uhci3 at pci0 dev 29 function 3 Intel 82801GB USB rev 0x01: apic 2 int 16 (irq 11) ehci0 at pci0 dev 29 function 7 Intel 82801GB USB rev 0x01: apic 2 int 23 (irq 10) 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 Hub-to-PCI rev 0xe1 pci5 at ppb4 bus 5 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 configured to compatibility wd0 at pciide0 channel 0 drive 0: WDC WD800BB-00JHC0 wd0: 16-sector PIO, LBA, 76319MB, 156301488 sectors wd1 at pciide0 channel 0 drive 1: WDC WD800BB-00FRA0 wd1: 16-sector PIO, LBA48, 76319MB, 156301488 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2 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 apic 2 int 19 (irq 11) for native-PCI interrupt ichiic0 at pci0 dev 31 function 3 Intel 82801GB SMBus rev 0x01: apic 2 int 19 (irq 11) iic0 at ichiic0 spdmem0 at iic0 addr 0x50: 1GB DDR2 SDRAM non-parity PC2-5300CL5 usb1 at uhci0: USB revision 1.0 uhub1 at usb1 Intel UHCI root hub rev 1.00/1.00 addr 1 usb2 at uhci1: USB revision 1.0 uhub2 at usb2 Intel UHCI root hub rev 1.00/1.00 addr 1 usb3 at uhci2: USB revision 1.0 uhub3 at usb3 Intel UHCI root hub rev 1.00/1.00 addr 1 usb4 at uhci3: USB revision 1.0
Re: doubts on NFS
Sorry, the 10.10.10.101 was a mistyping of mine. It's another IP i used to try mounting the slice from. I removed it and not HUPed mountd, that's why it showed up with showmount. This are the permissions you just asked: backup:~{2}# cd /u/data/ backup:/u/data{3}# ls a-l|grep export ls: a-l: No such file or directory backup:/u/data{4}# ls -al|grep export drwxr-xr-x 2 root wheel 512 Jul 6 21:29 export/ backup:/u/data{5}# Jan Stary escribis: On Jul 06 16:40:31, Marcos Laufer wrote: Hello list , I am having trouble to make NFS work properly. I don't know what i am doing wrong, maybe someone can enlighten me. NFS server and client are both OpenBSD 4.4 GENERIC I am starting portmap, nfsd and mountd on the nfs server (10.10.10.65). This is my /etc/exports on 10.10.10.65: # $OpenBSD: exports,v 1.2 2002/05/31 08:15:44 pjanzen Exp $ # # NFS exports Database # See exports(5) for more information. Be very careful: misconfiguration # of this file can result in your filesystems being readable by the world. /u/data/export -alldirs -maproot=0 10.10.10.16 -- On the client machine (10.10.10.16) : hq:/{190}# showmount -e 10.10.10.65 Exports list on 10.10.10.65: /u/data/export 10.10.10.16 10.10.10.101 Why is this different from what the server actually exports? Namely, how did 10.10.10.101 get in here? hq:/{191}# mount -o rw -t nfs 10.10.10.65:/u/data/export /mnt/ hq:/{192}# df -h FilesystemSizeUsed Avail Capacity Mounted on /dev/wd0a 509M 74.7M409M15%/ /dev/wd0d 508M4.2M478M 1%/tmp /dev/wd0e 3.9G2.6G1.2G69%/usr /dev/wd0f 508M 78.9M403M16%/var /dev/wd0g 949M2.7M899M 0%/var/log /dev/wd0h65.0G 43.5G 18.2G70%/u 10.10.10.65:/u/data/export 65.0G 40.4G 21.3G65%/mnt So far so good. Then i try to write something: hq:/{193}# cd /mnt/ hq:/mnt{194}# cp /bin/ls ./ cp: ./ls: Permission denied hq:/mnt{195}# What am i doing wrong here? What are the permissions of /u/data/export on the server?
Re: doubts on NFS
I was told by a little bird on this list to set the -root=0 option, maybe little bird meant -maproot=0 :) And yes, i HUPed. But it's all working now, the magic was to add the missing line to fstab. Thanks everybody for your tips and help on this Regards, Marcos Laufer Jan Stary escribis: On Jul 06 22:53:21, Marcos Laufer wrote: Edd , This are the permissions: hq:/{19}# ls -al |grep mnt drwxr-xr-x 2 root wheel 512 Nov 3 2008 mnt/ hq:/{20}# I am mounting this as root . I also added -root=0 to /etc/exports , There is no such option. Do you mean maproot? Did you HUP mountd after you changed the config file? still same behavior Regards, Marcos Laufer
doubts on NFS
Hello list , I am having trouble to make NFS work properly. I don't know what i am doing wrong, maybe someone can enlighten me. NFS server and client are both OpenBSD 4.4 GENERIC I am starting portmap, nfsd and mountd on the nfs server (10.10.10.65). This is my /etc/exports on 10.10.10.65: # $OpenBSD: exports,v 1.2 2002/05/31 08:15:44 pjanzen Exp $ # # NFS exports Database # See exports(5) for more information. Be very careful: misconfiguration # of this file can result in your filesystems being readable by the world. /u/data/export -alldirs -maproot=0 10.10.10.16 -- On the client machine (10.10.10.16) : hq:/{190}# showmount -e 10.10.10.65 Exports list on 10.10.10.65: /u/data/export 10.10.10.16 10.10.10.101 hq:/{191}# mount -o rw -t nfs 10.10.10.65:/u/data/export /mnt/ hq:/{192}# df -h FilesystemSizeUsed Avail Capacity Mounted on /dev/wd0a 509M 74.7M409M15%/ /dev/wd0d 508M4.2M478M 1%/tmp /dev/wd0e 3.9G2.6G1.2G69%/usr /dev/wd0f 508M 78.9M403M16%/var /dev/wd0g 949M2.7M899M 0%/var/log /dev/wd0h65.0G 43.5G 18.2G70%/u 10.10.10.65:/u/data/export 65.0G 40.4G 21.3G65%/mnt So far so good. Then i try to write something: hq:/{193}# cd /mnt/ hq:/mnt{194}# cp /bin/ls ./ cp: ./ls: Permission denied hq:/mnt{195}# What am i doing wrong here? Thanks in advance for your help Regards, Marcos Laufer
Re: doubts on NFS
Edd , This are the permissions: hq:/{19}# ls -al |grep mnt drwxr-xr-x 2 root wheel 512 Nov 3 2008 mnt/ hq:/{20}# I am mounting this as root . I also added -root=0 to /etc/exports , still same behavior Regards, Marcos Laufer Edd Barrett escribis: On Mon, Jul 06, 2009 at 04:40:31PM -0300, Marcos Laufer wrote: So far so good. Then i try to write something: Well, what are the permissions on the directory you are trying to write to? Bear in mind, the user ID's (not the names) will need to be synchronised across machines for NFS permissions to make sense. You might consider a YP domain?
Re: doubts on NFS [solved]
I;ve just solved it . Adding this the line to /etc/fstab on the client machine just let me mount it and write on it. I had no need to reboot or restart anything. hq:/{109}# cat /etc/fstab /dev/wd0a / ffs rw,softdep 1 1 /dev/wd0d /tmp ffs rw,softdep,nodev,nosuid 1 2 /dev/wd0e /usr ffs rw,softdep,nodev 1 2 /dev/wd0f /var ffs rw,softdep,nodev,nosuid 1 2 /dev/wd0g /var/log ffs rw,softdep,nodev,nosuid 1 2 /dev/wd0h /u ffs rw,softdep,nodev,nosuid 1 2 10.10.10.65:/u/data/export /mnt ffs rw,softdep,nodev,nosuid 1 2 hq:/{110}# hq:/{110}# df -h FilesystemSizeUsed Avail Capacity Mounted on /dev/wd0a 509M 74.7M409M15%/ /dev/wd0d 508M4.2M478M 1%/tmp /dev/wd0e 3.9G2.6G1.2G69%/usr /dev/wd0f 508M 78.9M403M16%/var /dev/wd0g 949M2.7M899M 0%/var/log /dev/wd0h65.0G 43.5G 18.2G70%/u 10.10.10.65:/u/data/export 65.0G 40.4G 21.3G65%/mnt hq:/{111}# umount /mnt/ hq:/{112}# mount -o rw -t nfs 10.10.10.65:/u/data/export /mnt/ hq:/{113}# /mnt/hjdjfahjda hq:/{114}# Johan Torin escribis: On Monday 06 July 2009, Marcos Laufer wrote: Hello list , I am having trouble to make NFS work properly. I don't know what i am doing wrong, maybe someone can enlighten me. [config] 10.10.10.65:/u/data/export 65.0G 40.4G 21.3G65%/mnt So far so good. Then i try to write something: hq:/{193}# cd /mnt/ hq:/mnt{194}# cp /bin/ls ./ cp: ./ls: Permission denied hq:/mnt{195}# What am i doing wrong here? What's your protection on the mount point of the /u/data/export directory *before* mounting the slice on it? It's not the same protection mask before and after... /Johan
Re: ftp limits bandwidth
This is a very interesting subject. Is there any official paper describing how to tune TCP on OpenBSD? Googling i found this two interesting links, but none specifically mentions OpenBSD: Enabling high performance data transfers http://www.psc.edu/networking/projects/tcptune/ TCP tuning cookbook http://proj.sunet.se/E2E/tcptune.html This other paper is about OpenBSD, but i do not know how accurate is it: Network and speed performance guide (OpenBSD) https://calomel.org/network_performance.html Opinions? Marcos Markus Hennecke escribis: Jesus Sanchez schrieb: Jean-Frangois SIMON escribis: Hi all, It looks like the max bandwidth of ftp is somehow 350 Kb/s. Is this normaland if so can it be increased ? ?? it must be your bandwidth limit, there's nothing about a 350 kb/s limit anywhere. please, read carefulle the ftp manpage. As there are some information missing, I look into my crystal ball and see that Jean-Frangois is downloading with help of the ftp program via DSL which is either 6Mbit or faster. Due to the latency of the DSL line the standard settings for net.inet.tcp.recvspace (see sysctl) are not correct for this kind of setup. He should try to increase it, for me 65536 works on 6Mbit DSL. Please tell me in case this is all wrong so that I can order a new crystal ball! Enough guessing, HTH Markus
mailgraph and chroot
Hi there, Is there any How-To on a way of making the mailgraph package work with the chrooted Apache? Regards,
Re: Intel D945GCNL with OpenBSD 4.4 Hangs
Marcello if you like that Series of Intel motherboards, i can assure you that D945GCPE works just fine: OpenBSD 4.2-stable (GENERIC) #0: Fri Mar 28 15:20:03 ART 2008 root@:/u/system/src/sys/arch/i386/compile/GENERIC RTC BIOS diagnostic error 80clock_battery cpu0: Intel(R) Pentium(R) 4 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,SSE3,MWAIT,DS-CPL,EST,TM2,CNXT-ID,CX16,xTPR real mem = 1062670336 (1013MB) avail mem = 1019904000 (972MB) RTC BIOS diagnostic error 80clock_battery mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 07/10/07, SMBIOS rev. 2.5 @ 0xe4440 (35 entries) bios0: vendor Intel Corp. version PE94510M.86A.0050.2007.0710.1559 date 07/10/2007 bios0: Intel Corporation D945GCPE apm0 at bios0: Power Management spec V1.2 apm0: AC on, battery charge unknown, estimated 0:00 hours apm0: flags 30102 dobusy 0 doidle 1 pcibios at bios0 function 0x1a not configured bios0: ROM list: 0xc/0xae00! cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 Intel 82945GP rev 0x02: rng active, 800Kb/sec vga1 at pci0 dev 2 function 0 Intel 82945G Video rev 0x02: aperture at 0x4000, size 0x1000 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) ppb0 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x01 pci1 at ppb0 bus 1 re0 at pci1 dev 0 function 0 Realtek 8101E rev 0x01: RTL8101E (0x3400), irq 11, address 00:1c:c0:0b:99:2e rlphy0 at re0 phy 7: RTL8201L 10/100 PHY, rev. 1 ppb1 at pci0 dev 30 function 0 Intel 82801BA AGP rev 0xe1 pci2 at ppb1 bus 2 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 configured to compatibility pciide0: channel 0 disabled (no drives) 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 10 for native-PCI interrupt wd0 at pciide1 channel 0 drive 0: WDC WD1600AABS-00PRA0 wd0: 16-sector PIO, LBA48, 152627MB, 312581808 sectors wd1 at pciide1 channel 0 drive 1: WDC WD1600AABS-00PRA0 wd1: 16-sector PIO, LBA48, 152627MB, 312581808 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 82801GB SMBus rev 0x01: irq 10 iic0 at ichiic0 isa0 at ichpcib0 isadma0 at isa0 pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pcppi0 at isa0 port 0x61 midi0 at pcppi0: PC speaker spkr0 at pcppi0 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 biomask f7fd netmask fffd ttymask pctr: user-level cycle counter enabled mtrr: Pentium Pro MTRR support dkcsum: wd0 matches BIOS drive 0x80 dkcsum: wd1 matches BIOS drive 0x81 root on wd0a swap on wd0b dump on wd0b Marcello Cruz escribis: 1) I updated the BIOS to NL94510J.86A.0033.2008.0807.1932. This is the most recent BIOS available from Intel to this board. The old BIOS was NL94510J.86A.0017.2007.0828.1137. Accordingly to the flash utility, I cannot use a BIOS update with different prefix (NL94510J.86A). 2) Following another post I disabled APM. With version 4.3 (OpenBSD), it worked, but the system become unstable and I lose connectivity with remote SSH sessions. With version 4.4 (OpenBSD) the system hangs at mtrr: Pentium Pro MTRR Support. 3) Then I tried to disable ACPI. With version 4.3 the system hangs at npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16. With version 4.4 (OpenBSD) the system hangs when I activate the second NIC (up, dhcp or IP address). 4) Then I installed version 4.4 on a different hardware with the 3 NIC (3Com 3c905B 100Base-TX, DLink DFE-520TX, plus the on-board NIC with Realket chipset). The system works with no problem. So, I realize the problem is with the motherboard. But where? 5) A page (http://www.intel.com/support/motherboards/desktop/sb/CS-008326.htm) from Intel say that there is support for Linux. What does RTC BIOS diagnostic error 80clock_battery mean? Any clues? The best option is to ask the dealer to replace the board for another wich supports Linux. Is that right? Or, is there another solution? Rgds Marcello OpenBSD 4.4 (GENERIC) #1021: Tue Aug 12 17:16:55 MDT 2008 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC RTC BIOS diagnostic error 80clock_battery cpu0: Intel(R) Celeron(R) CPU 430 @ 1.80GHz (GenuineIntel 686-class) 1.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,TM,SBF,SSE3,MWAIT,DS-CPL,TM2,CX16,xTPR real mem = 1062412288
Re: VPN client-to-site over IPSec
Marcello , If you don't mind, i'd like to know more info or what to read to acomplish your first scenario: PC -- Internet -- OpenBSD LAN PC IPSec Tunnel -- LAN Thanks! Marcos Laufer Marcello Cruz escribiC3: Toni, Do you mean a VPN where only a HOST will access an entire NETWORK? If so, then the answer is YES. For instance, I have some OpenBSD servers acting as VPN Server and they allow me to connect from home to the networks behind those OpenBSD servers. PC -- Internet -- OpenBSD LAN PC IPSec Tunnel -- LAN I also have other situations where I need an entire LAN communicate with other LAN, like: LAN -- OpenBSD/Other -- Internet --- OpenBSD -- LAN LAN --- IPSec Tunnel --- LAN What do you need? - Original Message - From: Toni Mueller openbsd-m...@oeko.net To: misc@openbsd.org Sent: Friday, April 03, 2009 5:43 PM Subject: Re: VPN client-to-site over IPSec Hi, On Fri, 03.04.2009 at 12:43:33 -0300, JoC#o Salvatti salva...@gmail.com wrote: Is it possible to implement a client-to-site VPN over IPSec? I have searched on the web, but only found site-to-site models. what exactly do you mean by client to site? You can distinguish between transport mode, where you use the IP that you actually use, as an endpoint, and tunnel mode, where you assign an IP of your chosing for use inside the tunnel, and then use that IP for all of your connections. Usually, site-to-site is associated with tunnel mode, and I currently see no reason, and much less any advantage, in using transport mode. Kind regards, --Toni++
Re: OpenBSD on IBM 3550
Ricardo, Yo supongo que te va a funcionar, si llegas a tener la posibilidad de probarlo decime como te fue! Saludos, Marcos Ricardo Augusto de Souza escribis: Hi, I have an IBM 3550 with SAS disks and Adaptec ServeRAID 8k controller and I AM NOT able to install openBSD on it. Installation didn't find any hard disk during installation. According with http://www.openbsd.org/i386.html http://www.openbsd.org/i386.html it works with adaptec serveraid. If I change SAS to SATA disks will openBSD recognize them at installation ? Thanks
Re: 1U IBM or Dell server for firewall
Insan, (or anyone who might know) do you know if x3350 will work with OpenBSD, or it will not work due to the raid controller not being supported just like with x3650? Does anyone tried to install OpenBSD on IBM x3350 machines? What about x3550 ? Regards, Marcos Laufer Insan Praja SW escribis: On Tue, 06 May 2008 11:23:46 +0700, Tomas Bodzar tomas.bod...@quest.com wrote: Hi, From HW view is more than enough this type : http://www-03.ibm.com/systems/x/hardware/rack/x3250/index.html but I don't know how much is HW from this server supported in OpenBSD.In specifications are only Win systems,so best way is to ask IBM about support under their Unixes on this device (it tells something about possibility to run it on OpenBSD).Then you can compare it against HW list from OpenBSD. It's for way - I NEED JUST IBM (due to company policy or something like this) Better (and lightest) way is purchase some from KD85. Ofcourse,for pf is some old 1U with PIII , 256 RAM enough too.You can get one or two year warranty even on these old types. TB -Original Message- From: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org] On Behalf Of LEVAI Daniel Sent: Monday, May 05, 2008 3:09 PM To: OpenBSD misc Subject: 1U IBM or Dell server for firewall Hi! I'm in need of a 1U IBM (or Dell as a last resort) server for a firewall in our office. To be honest, I'm not quite familiar with IBM servers of these kind, but I'm sure that someone is using one already for a fw, so I just need a model number or configuration which is working perfectly with OpenBSD 4.3. It doesn't have to be a fancy configuration, it will be just a simple firewall... If someone would be kind enough to recommend me an already working and tested IBM server, I'd be very happy and thankful :) Thanks in advance: Daniel -- LIVAI Daniel GPG key ID = 0x4AC0A4B1 Key fingerprint = D037 03B9 C12D D338 4412 2D83 1373 917A 4AC0 A4B1 An IBM x3250 looks like this on dmesg: OpenBSD 4.3-current (GENERIC.MP) #0: Thu Mar 13 05:46:13 WIT 2008 webad...@webservices01:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 2145841152 (2046MB) avail mem = 2072121344 (1976MB) mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.33 @ 0x7fee2000 (29 entries) bios0: vendor IBM version IBM BIOS Version 1.35-[G9E135AUS-1.35]- date 09/29/2 007 bios0: IBM IBM System x3250 -[436442A]- acpi0 at bios0: rev 0 acpi0: tables DSDT FACP MCFG APIC BOOT SPCR SSDT acpi0: wakeup devices PEG_(S4) PEG2(S4) EXP1(S4) EXP5(S4) EXP6(S4) PCIB(S4) COM1 (S4) COM2(S4) USB1(S4) USB2(S4) USB3(S4) USB4(S4) EUSB(S4) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Xeon(R) CPU 3040 @ 1.86GHz, 1866.96 MHz cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CF LUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX 16, xTPR,NXE,LONG cpu0: 2MB 64b/line 8-way L2 cache cpu0: apic clock running at 266MHz cpu1 at mainbus0: apid 1 (application processor) cpu1: Intel(R) Xeon(R) CPU 3040 @ 1.86GHz, 1866.73 MHz cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CF LUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX 16, xTPR,NXE,LONG cpu1: 2MB 64b/line 8-way L2 cache ioapic0 at mainbus0 apid 2 pa 0xfec0, version 20, 24 pins acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 12 (PEG_) acpiprt2 at acpi0: bus 6 (PEG2) acpiprt3 at acpi0: bus 5 (EXP1) acpiprt4 at acpi0: bus 1 (EXP5) acpiprt5 at acpi0: bus 3 (EXP6) acpiprt6 at acpi0: bus 26 (PCIB) acpicpu0 at acpi0 acpicpu1 at acpi0 acpibtn0 at acpi0: PWRB ipmi at mainbus0 not configured pci0 at mainbus0 bus 0: configuration mode 1 pchb0 at pci0 dev 0 function 0 Intel E7230 Host rev 0xc0 ppb0 at pci0 dev 1 function 0 Intel E7230 PCIE rev 0xc0: apic 2 int 16 (irq 7) pci1 at ppb0 bus 12 ppb1 at pci0 dev 3 function 0 Intel 82975X PCIE rev 0xc0: apic 2 int 16 (irq 7 ) pci2 at ppb1 bus 6 ppb2 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x01: apic 2 int 17 (irq 10) pci3 at ppb2 bus 5 ppb3 at pci0 dev 28 function 4 Intel 82801G PCIE rev 0x01: apic 2 int 17 (irq 10) pci4 at ppb3 bus 1 bge0 at pci4 dev 0 function 0 Broadcom BCM5721 rev 0x21, BCM5750 C1 (0x4201): apic 2 int 16 (irq 7), address 00:1a:64:6e:a0:9a brgphy0 at bge0 phy 1: BCM5750 10/100/1000baseT PHY, rev. 0 ppb4 at pci0 dev 28 function 5 Intel 82801G PCIE rev 0x01: apic 2 int 16 (irq 11) pci5 at ppb4 bus 3 bge1 at pci5 dev 0 function 0 Broadcom BCM5721 rev 0x21, BCM5750 C1 (0x4201): apic 2 int 17 (irq 10), address 00:1a
Re: OpenBSD hosting
Dear Friedrich, We offer dedicated servers at ipv4.net If you are interested let me know Regards, Marcos Laufer Francisco Valladolid Hdez. wrote: Hi Consider www.geekisp.com I have a account with Dave for almost, three years without problems. www.rootr.net can be a nice solution. Dedicated server, www.sprocketdata.com or www.m5hosting.com Regards. --- On Sun, 2/22/09, Friedrich Locke friedrich.lo...@gmail.com wrote: From: Friedrich Locke friedrich.lo...@gmail.com Subject: OpenBSD hosting To: misc@openbsd.org Date: Sunday, February 22, 2009, 9:54 PM Dear gentleman, i am searching for web hosting service that : supports java, support MySQL allow me shell account access for software development with access to MySQL. allow ssh/sftp access. and runs OpenBSD at least for the shell services. allow me to host dns for my domain. Is anybody aware of a such hosting services... thank.
Re: PHP5 And Apache on 4.4
Or you could just enable short tags in php.ini: short_open_tag = On On Thu, Dec 11, 2008 at 08:14:14PM -0700, Bret wrote: Richard Toohey wrote: [cut] Yes a clean install, Apache works fine,, index,html servers up across my network... php -i from the command line works,,, a page called qw.php with only ? phpinfo(); ? displays nothing but from firefox a show page source shows the ? phpinfo(); ? as being there. also did multiple reboots to make sure. Bret PHP 5, mate, you have got to use long tags ?php phpinfo(); ? Well just everybody PLEASE Laugh at me... No I mean Laugh with me... Thats what I get for using an old learn Apache, MySQL and PHP book Thanks and Yes I was LMAO ;-D Bret
Re: ahci questions
it's 10 times faster than ide , go for it. also get the right hard drives, those must be sata2 On Fri, Dec 05, 2008 at 02:47:23PM +0100, frantisek holop wrote: hi there, i was looking for some ahci info when i stumbled upon the intel site http://www.intel.com/technology/serialata/ahci.htm Implementation of the Advanced Host Controller Interface Specification requires a license from Intel. does this mean based on their specs, or _any_ ahci implementation? also the specs are free to download (unlike SD specs IIRC).. ahci(4) says the driver emulates SCSI so i guess it is not based on these specs. but it doesn't mention if it supports the ahci features that are supposed to be better than ide, e.g. hotswapping and power management -- so i guess it doesn't... my last question for people running ahci, is it better than ide in any perceivable way? thanks, -f -- oxymoron: mobil station.
redhat_base not found in packages
Hello list, I can't find redhat_base in the 4.4 packages . Has it been discontinued? Regards, Marcos Laufer
Re: dmesg IBM x3650 OpenBSD 4.3
Hi , i enabled the driver in the RAMDISK_CD and GENERIC, then made a release, but it still doesn't recognize this hardware as configured. Just for checking, i booted with this release cd and in the UKC prompt y tried a 'find aac' and it shows as enabled. Maybe this particular controller is not supported at all in the aac driver? Regards, Marcos Laufer Jonathan Gray wrote: On Tue, Oct 07, 2008 at 06:26:23PM -0200, Marcos Laufer wrote: Hello, this is an IBM x3650, i booted with a 4.3 cd and this is the dmesg (SAS hard disks are not recognized) Adaptec ASR-2120S rev 0x02 at pci6 dev 0 function 0 not configured The driver for Adaptec RAID (aac) is disabled by default. See http://undeadly.org/cgi?action=articlesid=20050318231311 for the backstory. Adaptec won't provide documentation required to maintain the driver.
Re: RES: OpenBSD on IBM System X3550 7879
It's the same problem i had with the IBM x3650: Adaptec ASR-2120S rev 0x02 at pci11 dev 0 function 0 not configured The driver is not enabled by default. I established conversation with Adaptec, and i will post all of it soon. On Thu, Oct 23, 2008 at 06:24:27PM -0200, Ricardo Augusto de Souza wrote: Finally here is the dmesg OpenBSD 4.3 (RAMDISK_CD) #645: Wed Mar 12 11:31:03 MDT 2008 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/RAMDISK_CD cpu0: Intel(R) Xeon(R) CPU E5405 @ 2.00GHz (GenuineIntel 686-class) 2 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36, CF LUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,TM2,C X16,xTPR real mem = 3220541440 (3071MB) avail mem = 3122683904 (2978MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 02/08/08, BIOS32 rev. 0 @ 0xfd841, SMBIOS rev. 2.4 @ 0xbffcee80 (86 entries) bios0: vendor IBM version -[GFE136BUS-1.09]- date 02/08/2008 bios0: IBM IBM System x3550 -[7978B1U]- acpi0 at bios0: rev 2, can't enable ACPI bios0: ROM list: 0xc/0xb000 0xcb000/0x1800 0xcc800/0x1800 0xce000/0x5000! cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 Intel 5000X Host rev 0x31 ppb0 at pci0 dev 2 function 0 Intel 5000 PCIE x8 rev 0x31 pci1 at ppb0 bus 16 ppb1 at pci1 dev 0 function 0 Intel 6321ESB PCIE rev 0x01 pci2 at ppb1 bus 17 ppb2 at pci2 dev 0 function 0 Intel 6321ESB PCIE rev 0x01 pci3 at ppb2 bus 19 ppb3 at pci2 dev 1 function 0 Intel 6321ESB PCIE rev 0x01 pci4 at ppb3 bus 18 ppb4 at pci1 dev 0 function 3 Intel 6321ESB PCIE-PCIX rev 0x01 pci5 at ppb4 bus 20 ppb5 at pci0 dev 3 function 0 Intel 5000 PCIE rev 0x31 pci6 at ppb5 bus 35 ppb6 at pci0 dev 4 function 0 Intel 5000 PCIE x8 rev 0x31 pci7 at ppb6 bus 7 ppb7 at pci0 dev 5 function 0 Intel 5000 PCIE rev 0x31 pci8 at ppb7 bus 34 ppb8 at pci0 dev 6 function 0 Intel 5000 PCIE rev 0x31 pci9 at ppb8 bus 3 ppb9 at pci9 dev 0 function 0 ServerWorks PCIE-PCIX rev 0xc3 pci10 at ppb9 bus 4 bnx0 at pci10 dev 0 function 0 Broadcom BCM5708 rev 0x12: irq 7 ppb10 at pci0 dev 7 function 0 Intel 5000 PCIE rev 0x31 pci11 at ppb10 bus 2 Adaptec ASR-2120S rev 0x02 at pci11 dev 0 function 0 not configured Intel 5000 DMA rev 0x31 at pci0 dev 8 function 0 not configured pchb1 at pci0 dev 16 function 0 Intel 5000 Error Reporting rev 0x31 pchb2 at pci0 dev 16 function 1 Intel 5000 Error Reporting rev 0x31 pchb3 at pci0 dev 16 function 2 Intel 5000 Error Reporting rev 0x31 pchb4 at pci0 dev 17 function 0 Intel 5000 Reserved rev 0x31 pchb5 at pci0 dev 19 function 0 Intel 5000 Reserved rev 0x31 pchb6 at pci0 dev 21 function 0 Intel 5000 FBD rev 0x31 pchb7 at pci0 dev 22 function 0 Intel 5000 FBD rev 0x31 ppb11 at pci0 dev 28 function 0 Intel 6321ESB PCIE rev 0x09 pci12 at ppb11 bus 5 ppb12 at pci12 dev 0 function 0 ServerWorks PCIE-PCIX rev 0xc3 pci13 at ppb12 bus 6 bnx1 at pci13 dev 0 function 0 Broadcom BCM5708 rev 0x12: irq 3 uhci0 at pci0 dev 29 function 0 Intel 6321ESB USB rev 0x09: irq 5 uhci1 at pci0 dev 29 function 1 Intel 6321ESB USB rev 0x09: irq 11 uhci2 at pci0 dev 29 function 2 Intel 6321ESB USB rev 0x09: irq 5 ehci0 at pci0 dev 29 function 7 Intel 6321ESB USB rev 0x09: irq 5 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1 ppb13 at pci0 dev 30 function 0 Intel 82801BA Hub-to-PCI rev 0xd9 pci14 at ppb13 bus 1 vga1 at pci14 dev 1 function 0 ATI ES1000 rev 0x02 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) ichpcib0 at pci0 dev 31 function 0 Intel 6321ESB LPC rev 0x09: PM disabled pciide0 at pci0 dev 31 function 1 Intel 6321ESB IDE rev 0x09: DMA, channel 0 c onfigured to compatibility, channel 1 configured to compatibility atapiscsi0 at pciide0 channel 0 drive 0 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: HL-DT-ST, RW/DVD GCC-T10N, 1.00 SCSI0 5/cdrom re movable cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 pciide0: channel 1 ignored (disabled) Intel 6321ESB SMBus rev 0x09 at pci0 dev 31 function 3 not configured usb1 at uhci0: USB revision 1.0 uhub1 at usb1 Intel UHCI root hub rev 1.00/1.00 addr 1 usb2 at uhci1: USB revision 1.0 uhub2 at usb2 Intel UHCI root hub rev 1.00/1.00 addr 1 usb3 at uhci2: USB revision 1.0 uhub3 at usb3 Intel UHCI root hub rev 1.00/1.00 addr 1 isa0 at ichpcib0 isadma0 at isa0 pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo biomask ff65 netmask ffed ttymask ffef rd0: fixed, 3800 blocks uhidev0 at uhub1 port 1 configuration 1 interface 0 vendor 0x04b3 USB Optical M
Re: dmesg IBM x3650 OpenBSD 4.3
Jonathan, thanks, i see. I Tried enabling de aac driver in the GENERIC and RAMDISK_CD , and made a release. It's still not showing it as enabled when booting with this new cd. Could it be possible that the driver is another one? I am writing an email to Adaptec right now asking for the documentation you need. Regards, Marcos Laufer Jonathan Gray wrote: On Tue, Oct 07, 2008 at 06:26:23PM -0200, Marcos Laufer wrote: Hello, this is an IBM x3650, i booted with a 4.3 cd and this is the dmesg (SAS hard disks are not recognized) Adaptec ASR-2120S rev 0x02 at pci6 dev 0 function 0 not configured The driver for Adaptec RAID (aac) is disabled by default. See http://undeadly.org/cgi?action=articlesid=20050318231311 for the backstory. Adaptec won't provide documentation required to maintain the driver.
Re: dmesg IBM x3650 OpenBSD 4.3
I'm pretty sure that my email won't change a thing about Adaptec's way of thinking. But it is the right thing to do, i must send them that email with my point of view and needs as a user of Adaptec's products. I will also let IBM know about this. Theo de Raadt wrote: I am writing an email to Adaptec right now asking for the documentation you need. Wow. Good luck. Can't you see we've been down that road before with those bastards? But really. Good luck. You really are too optimistic, but sure, learn the reality for yourself.
dmesg IBM x3650 OpenBSD 4.3
Hello, this is an IBM x3650, i booted with a 4.3 cd and this is the dmesg (SAS hard disks are not recognized) OpenBSD 4.3 (RAMDISK_CD) #645: Wed Mar 12 11:31:03 MDT 2008 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/RAMDISK_CD cpu0: Intel(R) Xeon(TM) MV CPU 3.20GHz (GenuineIntel 686-class) 3.20 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,CNXT-ID,CX16,xTPR real mem = 1073074176 (1023MB) avail mem = 1031426048 (983MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 10/27/06, BIOS32 rev. 0 @ 0xfd831, SMBIOS rev. 2.4 @ 0x3ffcea40 (116 entries) bios0: vendor IBM version -[GGE123AUS-1.03]- date 10/27/2006 bios0: IBM IBM System x3650 -[7979H5U]- acpi0 at bios0: rev 2, can't enable ACPI bios0: ROM list: 0xc/0xb000 0xcb000/0x1800 0xcc800/0x1800 0xce000/0x5000! cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 Intel 5000P Host rev 0x92 ppb0 at pci0 dev 2 function 0 Intel 5000 PCIE rev 0x92 pci1 at ppb0 bus 26 ppb1 at pci1 dev 0 function 0 Intel 6321ESB PCIE rev 0x01 pci2 at ppb1 bus 27 ppb2 at pci2 dev 0 function 0 Intel 6321ESB PCIE rev 0x01 pci3 at ppb2 bus 28 ppb3 at pci2 dev 1 function 0 Intel 6321ESB PCIE rev 0x01 pci4 at ppb3 bus 36 ppb4 at pci1 dev 0 function 3 Intel 6321ESB PCIE-PCIX rev 0x01 pci5 at ppb4 bus 37 ppb5 at pci0 dev 3 function 0 Intel 5000 PCIE rev 0x92 pci6 at ppb5 bus 4 Adaptec ASR-2120S rev 0x02 at pci6 dev 0 function 0 not configured ppb6 at pci0 dev 4 function 0 Intel 5000 PCIE x8 rev 0x92 pci7 at ppb6 bus 16 ppb7 at pci0 dev 5 function 0 Intel 5000 PCIE rev 0x92 pci8 at ppb7 bus 69 ppb8 at pci0 dev 6 function 0 Intel 5000 PCIE x8 rev 0x92 pci9 at ppb8 bus 7 ppb9 at pci0 dev 7 function 0 Intel 5000 PCIE rev 0x92 pci10 at ppb9 bus 68 Intel 5000 DMA rev 0x92 at pci0 dev 8 function 0 not configured pchb1 at pci0 dev 16 function 0 Intel 5000 Error Reporting rev 0x92 pchb2 at pci0 dev 16 function 1 Intel 5000 Error Reporting rev 0x92 pchb3 at pci0 dev 16 function 2 Intel 5000 Error Reporting rev 0x92 pchb4 at pci0 dev 17 function 0 Intel 5000 Reserved rev 0x92 pchb5 at pci0 dev 19 function 0 Intel 5000 Reserved rev 0x92 pchb6 at pci0 dev 21 function 0 Intel 5000 FBD rev 0x92 pchb7 at pci0 dev 22 function 0 Intel 5000 FBD rev 0x92 ppb10 at pci0 dev 28 function 0 Intel 6321ESB PCIE rev 0x09 pci11 at ppb10 bus 2 ppb11 at pci11 dev 0 function 0 ServerWorks PCIE-PCIX rev 0xc2 pci12 at ppb11 bus 3 bnx0 at pci12 dev 0 function 0 Broadcom BCM5708 rev 0x11: irq 3 ppb12 at pci0 dev 28 function 1 Intel 6321ESB PCIE rev 0x09 pci13 at ppb12 bus 5 ppb13 at pci13 dev 0 function 0 ServerWorks PCIE-PCIX rev 0xc2 pci14 at ppb13 bus 6 bnx1 at pci14 dev 0 function 0 Broadcom BCM5708 rev 0x11: irq 10 uhci0 at pci0 dev 29 function 0 Intel 6321ESB USB rev 0x09: irq 5 uhci1 at pci0 dev 29 function 1 Intel 6321ESB USB rev 0x09: irq 11 uhci2 at pci0 dev 29 function 2 Intel 6321ESB USB rev 0x09: irq 5 uhci3 at pci0 dev 29 function 3 Intel 6321ESB USB rev 0x09: irq 11 ehci0 at pci0 dev 29 function 7 Intel 6321ESB USB rev 0x09: irq 5 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1 ppb14 at pci0 dev 30 function 0 Intel 82801BA Hub-to-PCI rev 0xd9 pci15 at ppb14 bus 1 vga1 at pci15 dev 6 function 0 ATI ES1000 rev 0x02 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) ichpcib0 at pci0 dev 31 function 0 Intel 6321ESB LPC rev 0x09: PM disabled pciide0 at pci0 dev 31 function 2 Intel 6321ESB SATA rev 0x09: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility atapiscsi0 at pciide0 channel 1 drive 0 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: HL-DT-ST, RW/DVD GCC-4244N, 1.02 SCSI0 5/cdrom removable cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 Intel 6321ESB SMBus rev 0x09 at pci0 dev 31 function 3 not configured usb1 at uhci0: USB revision 1.0 uhub1 at usb1 Intel UHCI root hub rev 1.00/1.00 addr 1 usb2 at uhci1: USB revision 1.0 uhub2 at usb2 Intel UHCI root hub rev 1.00/1.00 addr 1 usb3 at uhci2: USB revision 1.0 uhub3 at usb3 Intel UHCI root hub rev 1.00/1.00 addr 1 usb4 at uhci3: USB revision 1.0 uhub4 at usb4 Intel UHCI root hub rev 1.00/1.00 addr 1 isa0 at ichpcib0 isadma0 at isa0 pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo biomask fbe5 netmask ffed ttymask ffef rd0: fixed, 3800 blocks umass0 at uhub0 port 7 configuration 1 interface 0 Kingston DataTraveler U3 rev 2.00/2.00 addr 2 umass0: using SCSI over Bulk-Only scsibus1 at umass0: 2 targets sd0 at scsibus1 targ 1 lun 0: Kingston, DataTraveler U3, 6.16 SCSI0 0/direct removable sd0: 994MB, 126 cyl, 255 head, 63 sec, 512 bytes/sec, 2037759 sec total cd1 at scsibus1 targ 1 lun 1:
mssql.so
Well , php5-sybase_ct does not enable the same functions, for instance the mysql_init() function is not there. That function would allow you to use stored procedures from the ms db . Does anyone know how to generate a mssql.so with this functions included? Regards, Marcos Laufer -- List: openbsd-misc Subject:Re: mssql.so From: joshua stein jcs () jcs ! org Date: 2006-01-15 4:14:06 Message-ID: 20060115041405.GD15440 () jcs ! org [Download message RAW] I've read the freetds.org help but I can't figure out what to do!!! Someone can help me?! the php5-sybase_ct-5.0.4.tgz package will give you sybase_ct.so, which enables the same mssql_* functions as mssql.so. [prev in list] [next in list] [prev in thread] [next in thread]
pre-arranged order
Hello i've put this order through the OpenBSD website: Your order currently is: - 1 [T29] The OpenBSD 4.3 Blowfish Shirt (M) @ CDN $25.00 - 1 [T21] Redundancy Must Be Free Shirt (L) @ CDN $25.00 - 1 [T11] The Blue Polo Shirt (M) @ CDN $40.00 - 1 [T23] Wireframe Blowfish Shirt (M) @ CDN $20.00 - 1 [T28] The Because Security Matters Shirt (M) @ CDN $25.00 - 1 [CD43] OpenBSD 4.3 CD @ CDN $50.00 - 1 [T19] Puff The Barbarian Shirt (L) @ CDN $25.00 - Total: CDN $210.00 + Shipping. Please let me know how much is it with shipping included, i will send payment via paypal with my paypal account. Regards, Marcos Laufer - IPversion4.com * [EMAIL PROTECTED] http://www.ipversion4.com ( 0800-444-HOSTING Rodriguez Peqa 468 1 C
Re: Zend Optimizer with apache and php5 on 4.2
Hello Evgeniy, You can try this how-to, this might work for you: Solution for ZendOptimizer to work under OpenBSD 4.1/i386 1. Download the file for OpenBSD 3.x as distributed by Zend currently ZendOptimizer-3.2.8-openbsd3.4-i386.tar.gz 2. Untar (tar -xzf ZendOpt*), and fetch the files - ZendOptimizer*/data/ZendExtensionManager.so - ZendOptimizer*/data/5_1_x_comp/ZendOptimizer.so where 5_1_x is the php you have installed 3. Put those file somewhere clean like - /var/www/lib/php/ZendExtensionManager.so - /var/www/lib/php/ZendOptimizer.so you NEED to keep the names unchanged 4. Simulate old libs (here's the magic) type in the console the following command # ln -s libm.so.2.3 /usr/lib/libm.so.1.0 Alternatively, if you don't like symlinking you can edit the binaries and change the string 'libm.so.1.0' into 'libm.so.2.3' in both of Zend*.so files - change 0x[31 2E 30] - 0x[32 2E 33] in ZendExtensionManager.so at offset 0x0720 - change 0x[31 2E 30] - 0x[32 2E 33] in ZendOptimizer.so at offset 0xCEAE 5. Edit your /var/www/conf/php.ini and add the section [Zend] zend_extension=/var/www/lib/php/ZendExtensionManager.so zend_extension=/var/www/lib/php/ZendOptimizer.so 6. Test Reboot your webserver # apachectl stop # apachectl start Write down one php page containing ? phpinfo(); ? and browse it ! - Original Message - From: Evgeniy Sudyr [EMAIL PROTECTED] To: misc@openbsd.org Sent: Monday, January 14, 2008 9:25 AM Subject: Zend Optimizer with apache and php5 on 4.2 Hi all, I want use Zend optimizer with apache and php5. I downloaded ZendOptimizer-3.3.0a-openbsd3.4-i386.tar.gz from Zend website (latest version is only for 3.4) and unpacked archive and copied PHP module from /data/5_2_x_comp/ZendOptimizer.so to /var/www/lib/ZendOptimizer.so I put lines below to php.ini ;zend_optimizer.optimization_level=15 zend_extension=/var/www/lib/ZendOptimizer.so Module not loading :( # php -v Failed loading /var/www/lib/ZendOptimizer.so: Cannot load specified object PHP 5.2.3 with Suhosin-Patch 0.9.6.2 (cli) (built: Aug 16 2007 02:21:38) Copyright (c) 1997-2007 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies Is it possible run Zend optimizer with -current or 4.2 ? Please give a bit instructions how make it workable. -- Best regards, Evgeniy mailto:[EMAIL PROTECTED]
Re: Intel DQ35MP
Here is the output from the Intel DQ35MP: boot machine memory Region 0: type 1 at 0x1000 for 630KB Region 1: type 2 at 0x9e800 for 6kb Region 2: type 2 at 0xe for 128KB Region 3: type 1 at 0x10 for 998016KB Region 4: type 4 at 0x3cfa for 772KB Region 5: type 1 at 0x3d061000 for 16800KB Region 6: type 2 at 0x3e0c9000 for 8KB Region 7: type 1 at 0x3e0cb000 for 688KB Region 8: type 4 at 0x3e177000 for 348KB Region 9: type 1 at 0x3e1ce000 for 64KB Region 10: type 4 at 0x3e1de000 for 28KB Region 11: type 1 at 0x3e1e5000 for 12KB Region 12: type 3 at 0x3e1e8000 for 44KB Region 13: type 1 at 0x3e1f3000 for 4KB Region 14: type 3 at 0x3e1f4000 for 44KB Region 15: type 1 at 0x3e1ff000 for 4KB Region 16: type 2 at 0x3e20 for 3072KB Region 17: type 2 at 0x3e50 for 1024kb Region 18: type 2 at 0x3e60 for 10240KB Region 19: type 2 at 0xf000 for 131072KB Region 20: type 2 at 0xffc0 for 4096KB Low ram: 634KB High ram: 1015580KB Total free memory: 1016218KB Atentamente, Marcos Laufer Marcos Laufer - IPversion4.com * [EMAIL PROTECTED] http://www.ipversion4.com ( 0800-444-HOSTING Rodriguez Peqa 468 1 C - Original Message - From: [EMAIL PROTECTED] To: rivo nurges [EMAIL PROTECTED] Cc: misc@openbsd.org Sent: Thursday, January 10, 2008 9:17 PM Subject: Re: Intel DQ35MP In gmane.os.openbsd.misc, you wrote: I had same problem with DQ965GF, DSDT was overwritten by msgbuf. As a quick hack I changed msgbuf size and it solved my problem. I haven't had time to debug it further. Index: sys/arch/i386/include/param.h === RCS file: /OpenBSD/src/sys/arch/i386/include/param.h,v retrieving revision 1.42 diff -u -3 -p -r1.42 param.h --- sys/arch/i386/include/param.h 1 Oct 2007 12:10:55 - 1.42 +++ sys/arch/i386/include/param.h 10 Jan 2008 19:13:18 - @@ -97,7 +97,7 @@ #defineUSPACE_ALIGN(0) /* u-area alignment 0-none */ #ifndef MSGBUFSIZE -#define MSGBUFSIZE 4*NBPG /* default message buffer size */ +#define MSGBUFSIZE 2*NBPG /* default message buffer size */ #endif Please send me the output of 'machine memory' at the boot prompt for this machine. I think I know what is causing this... -Toby. -- [100~Plax]sb16i0A2172656B63616820636420726568746F6E61207473754A[dZ1!=b]salax
Re: Intel DQ35MP
Hello , i tried updating the BIOS to the newest one, removed one ram stick, installed latest snapshot and also tried disabling APM as you adviced me. When booting with bsd it doesn't recognize the devices just like before. Now i also tried booting with bsd.mp instead of bsd , and i get this error: OpenBSD 4.2-current (GENERIC.MP) #539: Tue Jan 8 17:20:15 MST 2008 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC.MP RTC BIOS diagnostic error 80clock_battery cpu0: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz (GenuineIntel 686-class) 2.39 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16, xTPR real mem = 1040625664 (992mb) avail mem = 998227968 (951mb) RTC BIOS diagnostic error 80clock_battery mainbus0 at root bios0 at mainbus0: at/286+ BIOS, date 12/10/07, SMBIOS rev. 2.4 @ 0xe2440 (31 entries) bios0: vendor Intel Corp. version JOQ3510J.86A.0731.2007.1210.2204 date 12/10/2007 bios0: Intel Corporation DQ35MP acpi0 at bios0: rev 0panic: malloc: allocation too large Stopped atDebugger+0x4: leave Debugger(e3ff000,0,d0916b48,2,3ff7) at Debugger+0x4 panic(d06b38ce,d0916b64,1000,d07b0a20,) at panic+0x63 malloc(f000ff5b,2,1,d0680060) at malloc+0x76 acpi_load_table(0,f000ff53,d19cce3c,de3fe000,d19c1f80) at acpi_load_table+0x19 acpi_loadtables(d19cce00,de3fd020,5,e) at acpi_loadtables+0x95 acpi_attach(d19cbf80,d19cce00,d0916d50,d19cbf80,0) at acpi_attach+0xb2 config_attach(d19cbf80,d078b980,d0916d50,d0604eb4) at config_attach+0xfd biosattach(d19cbfc0,d19cbf80,d0916e80,d19cbfc0,d02032c9) at biosattach+0x34e config_attach(d19cbfc0,d078ab70,d0916e80,d04a6504,d06d6958) at config_attach+0xfd mainbus_attach(0,d19cbfc0,0,de3f7000,d0915334) at mainbus_attach+0x3d RUN AT LEAST ... Regards, Marcos - Original Message - From: Pierre Riteau [EMAIL PROTECTED] To: Marcos Laufer [EMAIL PROTECTED] Cc: misc@openbsd.org Sent: Thursday, December 13, 2007 8:55 PM Subject: Re: Intel DQ35MP On Dec 13, 2007 9:25 PM, Marcos Laufer [EMAIL PROTECTED] wrote: Hello, I've just installed OpenBSD current on an Intel DQ35MP motherboard with a Quad processor, this is the dmesg log. Some devices are not recognized (PCI slot, ethernet, etc) boot -c to go in UKC or config -ef /bsd and use 'disable apm' to get acpi to attach. Maybe it will help. Also, you can get a newer snapshot. OpenBSD 4.2-current (GENERIC) #558: Tue Nov 20 10:36:15 MST 2007 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC RTC BIOS diagnostic error 80clock_battery cpu0: Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz (GenuineIntel 686-class) 2.39 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUS H,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16, xTPR real mem = 2097643520 (2000MB) avail mem = 2020409344 (1926MB) RTC BIOS diagnostic error 80clock_battery mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 07/26/07, SMBIOS rev. 2.4 @ 0xe2460 (30 entries) bios0: vendor Intel Corp. version JOQ3510J.86A.0559.2007.0726.0425 date 07/26/2007 bios0: Intel Corporation DQ35MP apm0 at bios0: Power Management spec V1.2 apm0: battery life expectancy 0% apm0: AC off, battery charge unknown, estimated 0:00 hours pcibios at bios0 function 0x1a not configured bios0: ROM list: 0xc/0xb400! 0xcb800/0x1e00! 0xcd800/0x1000 0xce800/0x1000 cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 vendor Intel, unknown product 0x29b0 rev 0x02 vga1 at pci0 dev 2 function 0 vendor Intel, unknown product 0x29b2 rev 0x02: aperture at 0x9020, size 0x800 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) vendor Intel, unknown product 0x29b4 (class communications subclass miscellaneous, rev 0x02) at pci0 dev 3 function 0 not configured pciide0 at pci0 dev 3 function 2 vendor Intel, unknown product 0x29b6 rev 0x02: DMA (unsupported), channel 0 wired to native-PCI, channel 1 wired to native-PCI pciide0: using irq 9 for native-PCI interrupt pciide0: channel 0 ignored (not responding; disabled or no drives?) pciide0: channel 1 ignored (not responding; disabled or no drives?) vendor Intel, unknown product 0x29b7 (class communications subclass serial, rev 0x02) at pci0 dev 3 function 3 not configured Intel ICH9 IGP AMT rev 0x02 at pci0 dev 25 function 0 not configured uhci0 at pci0 dev 26 function 0 Intel 82801I USB rev 0x02: irq 9 uhci1 at pci0 dev 26 function 1 Intel 82801I USB rev 0x02: irq 9 uhci2 at pci0 dev 26 function 2 Intel 82801I USB rev 0x02: irq 10 ehci0 at pci0 dev 26 function 7 Intel 82801I USB rev 0x02: irq 10 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1 ppb0 at pci0 dev 28 function 0 Intel 82801I PCIE rev 0x02 pci1 at ppb0 bus 1 ppb1
Re: Intel DQ35MP
I'm sure i installed the install42.iso from december 6th , maybe there was something wrong on that image? I'll try burning the newest one Thanks! - Original Message - From: Jason George [EMAIL PROTECTED] To: misc@openbsd.org Sent: Thursday, December 13, 2007 8:42 PM Subject: Re: Intel DQ35MP Hello, I've just installed OpenBSD current on an Intel DQ35MP motherboard with a Quad processor, this is the dmesg log. Some devices are not recognized (PCI slot, ethernet, etc) OpenBSD 4.2-current (GENERIC) #558: Tue Nov 20 10:36:15 MST 2007 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC That isn't a current -CURRENT snapshot. A lot has been changed in the 3+ weeks since that snapshot was released into the wild.
Re: Intel DQ35MP
I think the newest install42.iso is also wrong. I open the .iso and the files inside have old dates (november 20 2007, and november 13 2007) I'll make my own .iso with the rest of the files from the i386 snapshot directory Regards, - Original Message - From: Marcos Laufer [EMAIL PROTECTED] To: Jason George [EMAIL PROTECTED]; misc@openbsd.org Sent: Friday, December 14, 2007 3:39 PM Subject: Re: Intel DQ35MP I'm sure i installed the install42.iso from december 6th , maybe there was something wrong on that image? I'll try burning the newest one Thanks! - Original Message - From: Jason George [EMAIL PROTECTED] To: misc@openbsd.org Sent: Thursday, December 13, 2007 8:42 PM Subject: Re: Intel DQ35MP Hello, I've just installed OpenBSD current on an Intel DQ35MP motherboard with a Quad processor, this is the dmesg log. Some devices are not recognized (PCI slot, ethernet, etc) OpenBSD 4.2-current (GENERIC) #558: Tue Nov 20 10:36:15 MST 2007 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC That isn't a current -CURRENT snapshot. A lot has been changed in the 3+ weeks since that snapshot was released into the wild.
Intel DQ35MP
pcppi0 at isa0 port 0x61 midi0 at pcppi0: PC speaker spkr0 at pcppi0 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 biomask fffd netmask fffd ttymask mtrr: Pentium Pro MTRR support uhidev0 at uhub7 port 1 configuration 1 interface 0 vendor 0x13ba Generic USB K/B rev 1.10/0.01 addr 2 uhidev0: iclass 3/1 ukbd0 at uhidev0: 8 modifier keys, 6 key codes wskbd1 at ukbd0 mux 1 wskbd1: connecting to wsdisplay0 uhidev1 at uhub7 port 1 configuration 1 interface 1 vendor 0x13ba Generic USB K/B rev 1.10/0.01 addr 2 uhidev1: iclass 3/1, 2 report ids ums0 at uhidev1 reportid 1: 3 buttons and Z dir. wsmouse0 at ums0 mux 0 uhid0 at uhidev1 reportid 2: input=1, output=0, feature=0 dkcsum: sd0 matches BIOS drive 0x80 root on sd0a swap on sd0b dump on sd0b umass0 at uhub0 port 5 configuration 1 interface 0 USB Audio Player rev 2.00/0.02 addr 2 umass0: using SCSI over Bulk-Only scsibus1 at umass0: 2 targets sd1 at scsibus1 targ 1 lun 0: , Audio Player, \\001 SCSI0 0/direct removable sd1: 968MB, 123 cyl, 255 head, 63 sec, 512 bytes/sec, 1984000 sec total Regards, Marcos Laufer
Re: no 4.2-stable package updates??
My opinion is that more money should be raised in order to keep -stable up to date. I think it's important to mantain a stable distribution, it's one of the things that give openbsd it's fame of being solid rock Marcos - Original Message - From: Antoine Jacoutot [EMAIL PROTECTED] To: Martin Schrvder [EMAIL PROTECTED] Cc: Misc-Openbsd Listserv misc@openbsd.org Sent: Tuesday, December 11, 2007 1:09 PM Subject: Re: no 4.2-stable package updates?? On Tue, 11 Dec 2007, Martin Schrvder wrote: Get -stable ports fixed? Lack of interest/man power. -- Antoine
php5-pear not found
Hello list , I can see that the php5-pear package is missing in 4.2. How is it supposed to be installed now? Thanks! Marcos
OpenBSD is loosing cd and tshirt sales
The OpenBSD project is loosing sales. I am trying to buy some tshirts and the 4.2 prerelease but nobody answers my emails at the Calgary shop. Please i need someone at the Cshop reply to my emails ASAP. I am trying to buy the OpenBSD CD for over six months now. Noone answered my emails when 4.1 was released, and now i do not want to miss 4.2 . I also want to buy some tshirts. Please someone at the Cshop reply please. Openbsd Project is loosing money by not selling CDs that could and should be sold to people who are willing to buy them. I am copying to misc@ also in order to get a faster response, maybe someone can assist the people at the Cshop so they can sell properly. Or maybe someone else should be in charge of selling internationally. Thanks Marcos - Original Message - From: Marcos Laufer [EMAIL PROTECTED] To: OpenBSD Orders [EMAIL PROTECTED] Sent: Wednesday, September 26, 2007 11:32 PM Subject: Fw: openbsd order Josiah, I never got a response, but yes please i want to place an order, i thought that you weren't responding because you were unable to send to Argentina, but if you can , i want to preorder 4.2 cd and the Number 23 t-shirt (wire frame puffy) , and the The Sushi Fugu Shirt , both on medium size, how much would it be? I want to pay with paypal. Thanks ! Marcos Laufer - Original Message - From: OpenBSD Orders [EMAIL PROTECTED] To: Marcos Laufer [EMAIL PROTECTED] Sent: Thursday, September 13, 2007 7:37 PM Subject: Re: openbsd order Hello Marcos, We are going through some old emails and I found your message below. Did you ever get a response? If you are still interested in the items, please email: [EMAIL PROTECTED] Thanks! Josiah J. OpenBSD Shipping Department On Tue, 13 Mar 2007, Marcos Laufer wrote: Hi there, I'd like to buy the pre-order of OpenBSD 4.1 and the Number 23 T-Shirt. Please inform me of the full cost with shipment to Argentina . I also would like to pay with PayPal Regards, Marcos Laufer Marcos Laufer - IPversion4.com * [EMAIL PROTECTED] http://www.ipversion4.com ( 0800-444-HOSTING Rodriguez Peqa 468 1 C
Re: OpenBSD is loosing cd and tshirt sales
I want to place an order but i need to pay with paypal. In order to pay with paypal i need to get in touch with someone at the Cshop . This are sales OpenBSD is missing, i know a few other people who also would buy cd's and t-shirts if they could pay with their paypal accounts - Original Message - From: L. V. Lammert [EMAIL PROTECTED] To: Marcos Laufer [EMAIL PROTECTED] Cc: OpenBSD Orders [EMAIL PROTECTED]; [EMAIL PROTECTED]; misc@openbsd.org Sent: Wednesday, October 10, 2007 11:37 AM Subject: Re: OpenBSD is loosing cd and tshirt sales On Wed, 10 Oct 2007, Marcos Laufer wrote: The OpenBSD project is loosing sales. I am trying to buy some tshirts and the 4.2 prerelease but nobody answers my emails at the Calgary shop. If you had placed an order instead of complaining about it, you would have your gear already, like the rest of us. Our 4.2 was actually received the same day as the order confirmation - talk about efficiency! Lee
disks not recognized as sata2
Hello list, I installed the latest snapshot on an Intel D945GCcr mobo which supports SATA-300 (sata2) , plugged in some hard disks, all of them Western Digital WD3200AAKS, wich according to WD website those work at 300 mb/s. (http://www.westerndigital.com/sp/products/products.asp?driveid=299language =en) but OpenBSD doesn't seem to recognize them with the AHCI driver , and they are recognized as UDMA5 instead. I'd like to enable full speed on this disks, any tips? Here i paste a full dmesg : OpenBSD 4.2 (GENERIC) #373: Tue Aug 21 10:36:43 MDT 2007 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC RTC BIOS diagnostic error 80clock_battery cpu0: Intel(R) Pentium(R) 4 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,CFLU SH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,CNXT-ID ,CX16,xTPR real mem = 2136190976 (2037MB) avail mem = 2057965568 (1962MB) RTC BIOS diagnostic error 80clock_battery mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 12/12/06, SMBIOS rev. 2.4 @ 0xe44b0 (29 entries) bios0: vendor Intel Corp. version CR94510J.86A.0031.2006.1212.1648 date 12/12/2006 bios0: Intel Corporation D945GCCR apm0 at bios0: Power Management spec V1.2 apm0: AC on, battery charge unknown, estimated 0:00 hours apm0: flags 30102 dobusy 0 doidle 1 pcibios at bios0 function 0x1a not configured bios0: ROM list: 0xc/0xae00! cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 Intel 82945GP rev 0x02: rng active, 800Kb/sec vga1 at pci0 dev 2 function 0 Intel 82945G Video rev 0x02: aperture at 0x8000, size 0x1000 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) ppb0 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x01 pci1 at ppb0 bus 1 ppb1 at pci0 dev 28 function 2 Intel 82801GB PCIE rev 0x01 pci2 at ppb1 bus 2 ppb2 at pci0 dev 28 function 3 Intel 82801GB PCIE rev 0x01 pci3 at ppb2 bus 3 ppb3 at pci0 dev 30 function 0 Intel 82801BA AGP rev 0xe1 pci4 at ppb3 bus 4 fxp0 at pci4 dev 8 function 0 Intel PRO/100 VM rev 0x01, i82562: irq 9, address 00:19:d1:52:40:58 ukphy0 at fxp0 phy 1: Generic IEEE 802.3u media interface, rev. 0: OUI 0x00aa00, model 0x0031 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 configured to compatibility atapiscsi0 at pciide0 channel 0 drive 0 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: HL-DT-ST, CD-ROM GCR-8523B, 1.01 SCSI0 5/cdrom removable cd0(pciide0:0:0): using PIO mode 4, DMA mode 2 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 11 for native-PCI interrupt wd0 at pciide1 channel 0 drive 0: WDC WD3200AAKS-00SBA0 wd0: 16-sector PIO, LBA48, 305245MB, 625142448 sectors wd1 at pciide1 channel 0 drive 1: WDC WD3200AAKS-00SBA0 wd1: 16-sector PIO, LBA48, 305245MB, 625142448 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 wd2 at pciide1 channel 1 drive 0: WDC WD3200AAKS-00SBA0 wd2: 16-sector PIO, LBA48, 305245MB, 625142448 sectors wd3 at pciide1 channel 1 drive 1: WDC WD3200AAKS-00SBA0 wd3: 16-sector PIO, LBA48, 305245MB, 625142448 sectors wd2(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 5 wd3(pciide1:1:1): using PIO mode 4, Ultra-DMA mode 5 ichiic0 at pci0 dev 31 function 3 Intel 82801GB SMBus rev 0x01: irq 11 iic0 at ichiic0 isa0 at ichpcib0 isadma0 at isa0 pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pmsi0 at pckbc0 (aux slot) pckbc0: using irq 12 for aux slot wsmouse0 at pmsi0 mux 0 pcppi0 at isa0 port 0x61 midi0 at pcppi0: PC speaker spkr0 at pcppi0 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 fdc0 at isa0 port 0x3f0/6 irq 6 drq 2 biomask edfd netmask effd ttymask pctr: user-level cycle counter enabled mtrr: Pentium Pro MTRR support dkcsum: wd0 matches BIOS drive 0x80 dkcsum: wd1 matches BIOS drive 0x81 dkcsum: wd2 matches BIOS drive 0x82 dkcsum: wd3 matches BIOS drive 0x83 root on wd0a swap on wd0b dump on wd0b Regards, Marcos
Re: fsck Segmentation fault on 4.1
So the patch works, and this problem seems serious and easy to encounter, i vote for moving it to stable. - Original Message - From: Tobias Ulmer [EMAIL PROTECTED] To: Otto Moerbeek [EMAIL PROTECTED] Cc: misc@openbsd.org Sent: Friday, August 03, 2007 3:37 PM Subject: Re: fsck Segmentation fault on 4.1 On Thu, Jul 19, 2007 at 08:09:58PM +0200, Otto Moerbeek wrote: [...] I misdiagnosed the problem. In the meantime I got another report with a dd of the partition which enabled me to diagnose the problem and make a fix for 4.1. Please test and report back. I'll be on vacation from Saturday, so it would be nice if you can answer before that. Anobody else seeing INCONSISTENT CGSIZE messages should try this as well. NOTE: this diff only applies to 4.1. Current does not have the problem, due to a corrected CGSIZE macro. -Otto Index: setup.c === RCS file: /cvs/src/sbin/fsck_ffs/setup.c,v retrieving revision 1.29 diff -u -p -r1.29 setup.c --- setup.c 16 Feb 2007 08:34:29 - 1.29 +++ setup.c 19 Jul 2007 18:02:36 - @@ -336,6 +336,7 @@ setup(char *dev) sbdirty(); dirty(asblk); } +#if 0 if (sblock.fs_cgsize != fragroundup(sblock, CGSIZE(sblock))) { pwarn(INCONSISTENT CGSIZE=%d\n, sblock.fs_cgsize); sblock.fs_cgsize = fragroundup(sblock, CGSIZE(sblock)); @@ -346,6 +347,7 @@ setup(char *dev) dirty(asblk); } } +#endif if (INOPB(sblock) != sblock.fs_bsize / sizeof(struct ufs1_dinode)) { pwarn(INCONSISTENT INOPB=%d\n, INOPB(sblock)); sblock.fs_inopb = sblock.fs_bsize / sizeof(struct ufs1_dinode); I had a power failure here (power company was doing maintenance and repeatedly switched power off and on...) Both my 4.1 boxen ran into this. The patch fixed the BLK 64 issues, but i have a partition made with a larger blocksize (defaults * 2), that couldn't be fixed (BLK 128). bsd.rd from snapshots did the trick... Just FYI Tobias
Re: fsck Segmentation fault on 4.1
Otto , i couldn't apply the patch , i get some errors: patch -p0 patch1.txt Hmm... Looks like a unified diff to me... The text leading up to this was: -- |Index: setup.c |=== |RCS file: /cvs/src/sbin/fsck_ffs/setup.c,v |retrieving revision 1.29 |diff -u -p -r1.29 setup.c |--- setup.c 16 Feb 2007 08:34:29 - 1.29 |+++ setup.c 19 Jul 2007 18:02:36 - -- Patching file setup.c using Plan A... Hunk #1 failed at 336. Hunk #2 failed at 347. 2 out of 2 hunks failed--saving rejects to setup.c.rej Hmm... Ignoring the trailing garbage. done --- But i added the 2 lines (if and endif) manually in setup.c, so the code looks like this: sbdirty(); dirty(asblk); } #if 0 if (sblock.fs_cgsize != fragroundup(sblock, CGSIZE(sblock))) { pwarn(INCONSISTENT CGSIZE=%d\n, sblock.fs_cgsize); sblock.fs_cgsize = fragroundup(sblock, CGSIZE(sblock)); if (preen) printf( (FIXED)\n); if (preen || reply(FIX) == 1) { sbdirty(); dirty(asblk); } } #endif if (INOPB(sblock) != sblock.fs_bsize / sizeof(struct ufs1_dinode)) { pwarn(INCONSISTENT INOPB=%d\n, INOPB(sblock)); sblock.fs_inopb = sblock.fs_bsize / sizeof(struct ufs1_dinode); -- Will this work? Regards, Marcos - Original Message - From: Otto Moerbeek [EMAIL PROTECTED] To: Marcos Laufer [EMAIL PROTECTED] Cc: misc@openbsd.org Sent: Friday, July 20, 2007 4:02 PM Subject: Re: fsck Segmentation fault on 4.1 On Fri, 20 Jul 2007, Marcos Laufer wrote: Will this be moved to -stable, or is it an uncommon thing ? It's not very common, but the impact is pretty high. So once some more test reports are coming in, we'll consider it. -Otto - Original Message - From: Otto Moerbeek [EMAIL PROTECTED] To: Marcos Laufer [EMAIL PROTECTED] Cc: misc@openbsd.org Sent: Thursday, July 19, 2007 3:09 PM Subject: Re: fsck Segmentation fault on 4.1 On Fri, 13 Jul 2007, Otto Moerbeek wrote: On Fri, 13 Jul 2007, Marcos Laufer wrote: Otto , This is the error i get:
Re: fsck Segmentation fault on 4.1
Well it seems that more people are having this same error , i found this guy in Brazil who hasn't reported it but mentioned it in a forum http://www.bsdforums.org/forums/showthread.php?p=265260 read at the end. I think it would be a good idea to put the patch in the stable branch Regards, Marcos - Original Message - From: Otto Moerbeek [EMAIL PROTECTED] To: Marcos Laufer [EMAIL PROTECTED] Cc: misc@openbsd.org Sent: Friday, July 20, 2007 4:02 PM Subject: Re: fsck Segmentation fault on 4.1 On Fri, 20 Jul 2007, Marcos Laufer wrote: Will this be moved to -stable, or is it an uncommon thing ? It's not very common, but the impact is pretty high. So once some more test reports are coming in, we'll consider it. -Otto - Original Message - From: Otto Moerbeek [EMAIL PROTECTED] To: Marcos Laufer [EMAIL PROTECTED] Cc: misc@openbsd.org Sent: Thursday, July 19, 2007 3:09 PM Subject: Re: fsck Segmentation fault on 4.1 On Fri, 13 Jul 2007, Otto Moerbeek wrote: On Fri, 13 Jul 2007, Marcos Laufer wrote: Otto , This is the error i get: It starts booting , and it starts fsck , it fails with /dev/rwd0e and rwd0h, (i could see once that when it finished it says:) fsck_ffs in free(): error: free_page: pointer to wrong page fsck: /dev/rwd0h: Abort trap I reboot it again many times and that did not show again i try to fsck manually like this as you say and i get: # ulimit -d unlimited # fsck -y /dev/rwd0e INCONSISTENT CGSIZE=16384 FIX? yes * * Last mounted on /usr * * Phase 1- Check Blocks and Sizes * * Phase 2 - Check pathnames * * Phase 3 - Check Conectivity * * Phase 4 - Check Reference Counts * * Phase 5 - Check Cyl Groups CANNOT READ: BLK 64 CONTINUE? yes fsck: /dev/rwd0e: Segmentation Fault This is not an out of memory situation. It looks like fsck_ffs has problems getting data from your disk, probably because of hardware failure or bad cabling. Sometimes it detects it cannot read the data (the CANNOT READ: BLK 64 case), but it is possible it gets corrupted data in other cases. Sadly, this can cause fsck_ffs to do the wrong thing and access wrong memory and corrupt it's internal data. During the last year I've fixed some stuff in this area, but there still remains cases that can go wrong. I misdiagnosed the problem. In the meantime I got another report with a dd of the partition which enabled me to diagnose the problem and make a fix for 4.1. Please test and report back. I'll be on vacation from Saturday, so it would be nice if you can answer before that. Anobody else seeing INCONSISTENT CGSIZE messages should try this as well. NOTE: this diff only applies to 4.1. Current does not have the problem, due to a corrected CGSIZE macro. -Otto Index: setup.c === RCS file: /cvs/src/sbin/fsck_ffs/setup.c,v retrieving revision 1.29 diff -u -p -r1.29 setup.c --- setup.c 16 Feb 2007 08:34:29 - 1.29 +++ setup.c 19 Jul 2007 18:02:36 - @@ -336,6 +336,7 @@ setup(char *dev) sbdirty(); dirty(asblk); } +#if 0 if (sblock.fs_cgsize != fragroundup(sblock, CGSIZE(sblock))) { pwarn(INCONSISTENT CGSIZE=%d\n, sblock.fs_cgsize); sblock.fs_cgsize = fragroundup(sblock, CGSIZE(sblock)); @@ -346,6 +347,7 @@ setup(char *dev) dirty(asblk); } } +#endif if (INOPB(sblock) != sblock.fs_bsize / sizeof(struct ufs1_dinode)) { pwarn(INCONSISTENT INOPB=%d\n, INOPB(sblock)); sblock.fs_inopb = sblock.fs_bsize / sizeof(struct ufs1_dinode);
Re: fsck Segmentation fault on 4.1
Will this be moved to -stable, or is it an uncommon thing ? - Original Message - From: Otto Moerbeek [EMAIL PROTECTED] To: Marcos Laufer [EMAIL PROTECTED] Cc: misc@openbsd.org Sent: Thursday, July 19, 2007 3:09 PM Subject: Re: fsck Segmentation fault on 4.1 On Fri, 13 Jul 2007, Otto Moerbeek wrote: On Fri, 13 Jul 2007, Marcos Laufer wrote: Otto , This is the error i get: It starts booting , and it starts fsck , it fails with /dev/rwd0e and rwd0h, (i could see once that when it finished it says:) fsck_ffs in free(): error: free_page: pointer to wrong page fsck: /dev/rwd0h: Abort trap I reboot it again many times and that did not show again i try to fsck manually like this as you say and i get: # ulimit -d unlimited # fsck -y /dev/rwd0e INCONSISTENT CGSIZE=16384 FIX? yes * * Last mounted on /usr * * Phase 1- Check Blocks and Sizes * * Phase 2 - Check pathnames * * Phase 3 - Check Conectivity * * Phase 4 - Check Reference Counts * * Phase 5 - Check Cyl Groups CANNOT READ: BLK 64 CONTINUE? yes fsck: /dev/rwd0e: Segmentation Fault This is not an out of memory situation. It looks like fsck_ffs has problems getting data from your disk, probably because of hardware failure or bad cabling. Sometimes it detects it cannot read the data (the CANNOT READ: BLK 64 case), but it is possible it gets corrupted data in other cases. Sadly, this can cause fsck_ffs to do the wrong thing and access wrong memory and corrupt it's internal data. During the last year I've fixed some stuff in this area, but there still remains cases that can go wrong. I misdiagnosed the problem. In the meantime I got another report with a dd of the partition which enabled me to diagnose the problem and make a fix for 4.1. Please test and report back. I'll be on vacation from Saturday, so it would be nice if you can answer before that. Anobody else seeing INCONSISTENT CGSIZE messages should try this as well. NOTE: this diff only applies to 4.1. Current does not have the problem, due to a corrected CGSIZE macro. -Otto Index: setup.c === RCS file: /cvs/src/sbin/fsck_ffs/setup.c,v retrieving revision 1.29 diff -u -p -r1.29 setup.c --- setup.c 16 Feb 2007 08:34:29 - 1.29 +++ setup.c 19 Jul 2007 18:02:36 - @@ -336,6 +336,7 @@ setup(char *dev) sbdirty(); dirty(asblk); } +#if 0 if (sblock.fs_cgsize != fragroundup(sblock, CGSIZE(sblock))) { pwarn(INCONSISTENT CGSIZE=%d\n, sblock.fs_cgsize); sblock.fs_cgsize = fragroundup(sblock, CGSIZE(sblock)); @@ -346,6 +347,7 @@ setup(char *dev) dirty(asblk); } } +#endif if (INOPB(sblock) != sblock.fs_bsize / sizeof(struct ufs1_dinode)) { pwarn(INCONSISTENT INOPB=%d\n, INOPB(sblock)); sblock.fs_inopb = sblock.fs_bsize / sizeof(struct ufs1_dinode);
Re: mysql problem
You didn't read it and you didn't pay attention to statement in bold either. I could tell you what to do to fix it, but then you wouldn't learn from it. If it wasn't explain there, I would be happy to tell you, but it is there and pretty clear as well. Daniel , When i post a message on the OpenBSD misc list it is because one of two reasons: 1) I want to report an error i found while testing OpenBSD, and by reporting it i might be helping the project, somebody might be able to fix it and the OS grows. 2) I could be asking for help to the OpenBSD users, as it was this case. I know this was not an OpenBSD or MySQL problem, but a configuration problem , and maybe some other OpenBSD user might have already been there and willing to help other OpenBSD users to work things out. If you are an OpenBSD developer then i must tell you that i understand your 'I could tell you what to do to fix it, but then you wouldn't learn from it' attitude . It's logic to think that developers want users to learn how to handle the OS and how to properly use it. If you are not an OpenBSD developer, but an OpenBSD user instead , then i must tell you that your 'I could tell you what to do to fix it, but then you wouldn't learn from it' attitude just sucks. I was asking for help, i mentioned that this was a production server with 100 databases on it and i was urged to solve it fast. That's why i asked help to other OpenBSD users who might have suffered this problem on a production server and needed to solve it fast. But i will take a shot and assume you are just another OpenBSD user, just like me and many others looking for help in this list . So , Daniel consider this : Next time i ask for help on this list , my post won't be meant to be answered by you , i now know that you don't have a helping community spirit but a 'bofh' attitude instead probably due to a wannabeadeveloper feeling. If you want to help a user to solve his problems that's just fine, but to talk other users in that tone, to me for example, i won't allow it.
Re: mysql problem
Ok , i had followed the instructions at http://openbsdsupport.org/mysql.htm And now i have this configuration: I start mysql with this script: # cat /usr/local/bin/mysql.start if [ -x /usr/local/bin/mysqld_safe ] ; then su -c _mysql root -c '/usr/local/bin/mysqld_safe ' /dev/null echo -n ' mysql' fi That properly starts it with the correct login class. My login.conf for mysql is: _mysql:\ # :openfiles=8192:\ :openfiles=infinity:\ :datasize=infinity:\ :maxproc=infinity:\ #:openfiles-cur=8192:\ :openfiles-cur=infinity:\ #:openfiles-max=1:\ :openfiles-max=infinity:\ :stacksize-cur=8M: I want to set infinity on those now just for testing, if everything works fine i will put some limits there. My kern.maxfiles: # sysctl kern.maxfiles kern.maxfiles=2 And my.cnf has : [mysqld] socket = /var/www/logs/mysql/mysql.sock old-passwords tmpdir = /var/mysql/tmp open_files_limit = 1 max_connections = 4096 sql-mode = MYSQL40 skip-name-resolve table_cache = 5000 query_cache_size = 64M thread_cache = 32 key_buffer = 128M long_query_time = 5 thread_concurrency = 2 interactive_timeout=60 wait_timeout=60 connect_timeout=15 record_buffer=8M basedir=/usr/local datadir=/var/mysql sort_buffer_size = 32M read_buffer_size = 2M read_rnd_buffer_size = 4M myisam_sort_buffer_size = 64M [mysql.server] old-passwords [mysqld_safe] open-files=8192 open_files_limit = 1 max_connections = 4096 [mysqlcheck] socket = /var/www/logs/mysql/mysql.sock -- The server has more than 100 databases, it's been working fine for about a year . A couple of days ago i found that no database could be accessed . Errors like this appear: 070714 16:15:57 [ERROR] /usr/local/libexec/mysqld: Can't find file: './ip041271_tan1/mos_weblinks.frm' (errno: 9) 070714 16:15:57 [ERROR] /usr/local/libexec/mysqld: Can't find file: './ip041271_tan1/mos_weblinks.frm' (errno: 9) I restart the server and everything goes back to normal , but i reach my limits if i execute a: mysqlcheck -m -A -p By the moment the limits are reached, i noticed that this values Open_files and Opened_tables reached: mysql show status like '%Open%'; ++---+ | Variable_name | Value | ++---+ | Com_ha_open| 0 | | Com_show_open_tables | 0 | | Open_files | 2031 | | Open_streams | 0 | | Open_tables| 1053 | | Opened_tables | 0 | | Slave_open_temp_tables | 0 | ++---+ 7 rows in set (0.00 sec) or for example mysql show status like 'open%'; +---+---+ | Variable_name | Value | +---+---+ | Open_files| 2030 | | Open_streams | 0 | | Open_tables | 1077 | | Opened_tables | 0 | +---+---+ 4 rows in set (0.00 sec) I know i must be doing something wrong, but i just can't find out what . I still don't know why i reach limits with mysqlcheck when i am setting all those values right. I guess the limit i'm reaching is Open_files . The question is , why? Regards, Marcos
Re: [solved] mysql problem
Otto , I did read it , many times. I did not just plugged in bigger numbers, i'd like to think that i know what i'm doing here . I increased the values acorrding to my hardware and mysql status that needed to be increased in order to improve performance. I made my login.conf and my.cnf correspond to each other also. I found this links very useful, these provide ways to monitor your mysql server, improve performance and some ways to determine when to increase some values and when to decrease some others. I know some users will benefit from these: http://hackmysql.com/mysqlreportguide http://www.ibm.com/developerworks/linux/library/l-tune-lamp-3.html http://www.mysqlperformanceblog.com The link http://openbsdsupport.org/mysql.htm doesn't help on how to improve mysql , but just how to start it and how to handle descriptors properly. There's no problem on following those instructions. I happened to find out that the problem on this case was not related to my configuration or openbsd itself, but to a modification on the mysqld_safe script made by the previous administrator of this server, i found this: -- echo Starting $MYSQLD daemon with databases from $DATADIR ulimit -a echo --- ulimit -n 2048 /dev/null 21 # FIX para open files echo --- ulimit -a -- So that was the reason i couldn't complete a full mysqlcheck on all databases, i was limited by that ulimit on mysqld_safe which wouldn't let me open more that 2048 files despite of what i configured in my.cnf. Regards, - Original Message - From: Otto Moerbeek [EMAIL PROTECTED] To: Marcos Laufer [EMAIL PROTECTED] Cc: misc@openbsd.org; [EMAIL PROTECTED]; Daniel Ouellet [EMAIL PROTECTED] Sent: Sunday, July 15, 2007 3:54 AM Subject: Re: mysql problem On Sun, 15 Jul 2007, Marcos Laufer wrote: Ok , i had followed the instructions at http://openbsdsupport.org/mysql.htm No you did not. You plugged in bigger numbers. That could very well be your problem. Also there should be some correspondence to the numbers in login.conf and my.cnf. Another thing to watch out for: the login.conf syntax is extremely unforgiving, an extra space or tab after a \ can ruin your day. -Otto And now i have this configuration: I start mysql with this script:
Re: mysql problem
I did read the archives, and it helped me to find out that restarting mysql fixes it for some time, and i increased the values several times but no luck. It starts working fine for a while but then again it fails . In the end i have this config right now and the problem persists, i can reproduce the problem just by executing mysqlcheck -m -A -p -- # sysctl kern.maxfiles kern.maxfiles=2 -- in login.conf: _mysql:\ :openfiles=8192:\ :datasize=infinity:\ :maxproc=infinity:\ :openfiles-cur=8192:\ :openfiles-max=1:\ :stacksize-cur=8M: in my.cnf: [mysqld] socket = /var/www/logs/mysql/mysql.sock old-passwords tmpdir = /var/mysql/tmp open-files-limit = 1 sql-mode = MYSQL40 skip-name-resolve table_cache = 1024 query_cache_size = 64M key_buffer = 64M long_query_time = 5 #log-slow-queries #log-queries-not-using-indexes thread_concurrency = 2 #query_cache_limit = 1M interactive_timeout=60 wait_timeout=60 connect_timeout=15 basedir=/usr/local datadir=/var/mysql sort_buffer_size = 1M read_buffer_size = 1M read_rnd_buffer_size = 4M myisam_sort_buffer_size = 64M [mysql.server] old-passwords [mysqld_safe] open-files=8192 Maybe i need to increase something else? Thanks! - Original Message - From: Otto Moerbeek [EMAIL PROTECTED] To: Marcos Laufer [EMAIL PROTECTED] Cc: misc@openbsd.org Sent: Friday, July 13, 2007 3:12 AM Subject: Re: mysql problem On Fri, 13 Jul 2007, Marcos Laufer wrote: I am having a very strange problem on a 3.9 , suddenly i can't access any table on the databases. I have around 100 databases on this server and can't access not even one. This is a production server and i am in an urge to solve it, if anyone can help i would appreciate it: # mysql mysql -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 303342 to server version: 5.0.18 Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql show tables; ERROR 1018 (HY000): Can't read dir of './mysql/' (errno: 9) mysql I have backups of all databases, including mysql database which i think is the one broken , how can i restore it ? Thanks for your help You are running out of file descriptors. Search the archives for answers. -Otto
Re: mysql problem
I am , and i have a simple and nice script for starting and stopping it properly: # /usr/local/bin/my start cat /usr/local/bin/my #!/bin/sh # test -z $1 -o \( $1 != start -a $1 != stop \) \ echo syntax: $0 [start|stop] exit 1 exec /usr/local/share/mysql/mysql.server $1 /dev/null 21 -- and in mysql.server it says: # Set some defaults pid_file= server_pid_file= use_mysqld_safe=1 user=_mysql What do you think, should i add more openfiles to mysql? Regards, Marcos - Original Message - From: Otto Moerbeek [EMAIL PROTECTED] To: Marcos Laufer [EMAIL PROTECTED] Cc: misc@openbsd.org Sent: Friday, July 13, 2007 4:07 AM Subject: Re: mysql problem On Fri, 13 Jul 2007, Marcos Laufer wrote: I did read the archives, and it helped me to find out that restarting mysql fixes it for some time, and i increased the values several times but no luck. It starts working fine for a while but then again it fails . In the end i have this config right now and the problem persists, i can reproduce the problem just by executing mysqlcheck -m -A -p How are yo starting mysql? You need to explicitly set the login class. Somthing like su -c mysql root /usr/local/bin/mysqld_safe ... -Otto -- # sysctl kern.maxfiles kern.maxfiles=2 -- in login.conf: _mysql:\ :openfiles=8192:\ :datasize=infinity:\ :maxproc=infinity:\ :openfiles-cur=8192:\ :openfiles-max=1:\ :stacksize-cur=8M: in my.cnf: [mysqld] socket = /var/www/logs/mysql/mysql.sock old-passwords tmpdir = /var/mysql/tmp open-files-limit = 1 sql-mode = MYSQL40 skip-name-resolve table_cache = 1024 query_cache_size = 64M key_buffer = 64M long_query_time = 5 #log-slow-queries #log-queries-not-using-indexes thread_concurrency = 2 #query_cache_limit = 1M interactive_timeout=60 wait_timeout=60 connect_timeout=15 basedir=/usr/local datadir=/var/mysql sort_buffer_size = 1M read_buffer_size = 1M read_rnd_buffer_size = 4M myisam_sort_buffer_size = 64M [mysql.server] old-passwords [mysqld_safe] open-files=8192 Maybe i need to increase something else? Thanks! - Original Message - From: Otto Moerbeek [EMAIL PROTECTED] To: Marcos Laufer [EMAIL PROTECTED] Cc: misc@openbsd.org Sent: Friday, July 13, 2007 3:12 AM Subject: Re: mysql problem On Fri, 13 Jul 2007, Marcos Laufer wrote: I am having a very strange problem on a 3.9 , suddenly i can't access any table on the databases. I have around 100 databases on this server and can't access not even one. This is a production server and i am in an urge to solve it, if anyone can help i would appreciate it: # mysql mysql -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 303342 to server version: 5.0.18 Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql show tables; ERROR 1018 (HY000): Can't read dir of './mysql/' (errno: 9) mysql I have backups of all databases, including mysql database which i think is the one broken , how can i restore it ? Thanks for your help You are running out of file descriptors. Search the archives for answers. -Otto
fsck Segmentation fault on 4.1
Hello, I want to report a problem i experienced while testing OpenBSD 4.1 . I've installed it, increased VM_PHYSSEG_MAX to 16 in /usr/src/sys/arch/i386/include/vmparam.h to make it work with this particular motherboard and made a stable release. Installed a server with it and it's working fine as an MX for a few months until now. The machine was crashed, no error on the screen and the keyboard did not respond. I rebooted , it started to fsck , and the fsck failed on /usr. So i run fsck manually : fsck -y, but it crashes with segmentation fault, so i can't mount or start the server. I read on the archives that it was a problem because of running out of swap, but i had made a 2gb swap partition, despite of that i added a 64mb file as swap and tried fsck again, but no luck. This time it was easy for me to reinstall everything in a new hard disk, but i still keep the old one because i would like to learn how to fix this , if anyone wants me to make some tests or has any ideas on what is going on , let me know. Regards, Marcos
Re: mysql problem
Bob , i saw what you meant me to set, it was on the daemon login class , i changed it with chfn to _mysql . Tonight i will test it again with mysqlcheck -m -A -p to see if i still reach the limits. Thanks for your advice! Regards, Marcos - Original Message - From: Bob Beck [EMAIL PROTECTED] To: Marcos Laufer [EMAIL PROTECTED] Cc: Otto Moerbeek [EMAIL PROTECTED]; misc@openbsd.org Sent: Friday, July 13, 2007 1:54 PM Subject: Re: mysql problem You are setting the user, not the login class. You have made a login class _mysql in /etc/login.conf, but it looks like you may not have that as user _mysql's default login class. You need to either change user _mysql to be in the _mysql login class by default, (hint, chfn _mysql as root) OR, use the su command to start it as otto showed you. Note as well, that just setting it to use 8192 open files won't necessarily get you all the way there if the kernel doesn't have that many configured. You may also need to increase this if you *really* need that many: # sysctl kern.maxfiles kern.maxfiles=1772 -Bob * Marcos Laufer [EMAIL PROTECTED] [2007-07-13 10:46]: I am , and i have a simple and nice script for starting and stopping it properly: # /usr/local/bin/my start cat /usr/local/bin/my #!/bin/sh # test -z $1 -o \( $1 != start -a $1 != stop \) \ echo syntax: $0 [start|stop] exit 1 exec /usr/local/share/mysql/mysql.server $1 /dev/null 21 -- and in mysql.server it says: # Set some defaults pid_file= server_pid_file= use_mysqld_safe=1 user=_mysql What do you think, should i add more openfiles to mysql? Regards, Marcos - Original Message - From: Otto Moerbeek [EMAIL PROTECTED] To: Marcos Laufer [EMAIL PROTECTED] Cc: misc@openbsd.org Sent: Friday, July 13, 2007 4:07 AM Subject: Re: mysql problem On Fri, 13 Jul 2007, Marcos Laufer wrote: I did read the archives, and it helped me to find out that restarting mysql fixes it for some time, and i increased the values several times but no luck. It starts working fine for a while but then again it fails . In the end i have this config right now and the problem persists, i can reproduce the problem just by executing mysqlcheck -m -A -p How are yo starting mysql? You need to explicitly set the login class. Somthing like su -c mysql root /usr/local/bin/mysqld_safe ... -Otto -- # sysctl kern.maxfiles kern.maxfiles=2 -- in login.conf: _mysql:\ :openfiles=8192:\ :datasize=infinity:\ :maxproc=infinity:\ :openfiles-cur=8192:\ :openfiles-max=1:\ :stacksize-cur=8M: in my.cnf: [mysqld] socket = /var/www/logs/mysql/mysql.sock old-passwords tmpdir = /var/mysql/tmp open-files-limit = 1 sql-mode = MYSQL40 skip-name-resolve table_cache = 1024 query_cache_size = 64M key_buffer = 64M long_query_time = 5 #log-slow-queries #log-queries-not-using-indexes thread_concurrency = 2 #query_cache_limit = 1M interactive_timeout=60 wait_timeout=60 connect_timeout=15 basedir=/usr/local datadir=/var/mysql sort_buffer_size = 1M read_buffer_size = 1M read_rnd_buffer_size = 4M myisam_sort_buffer_size = 64M [mysql.server] old-passwords [mysqld_safe] open-files=8192 Maybe i need to increase something else? Thanks! - Original Message - From: Otto Moerbeek [EMAIL PROTECTED] To: Marcos Laufer [EMAIL PROTECTED] Cc: misc@openbsd.org Sent: Friday, July 13, 2007 3:12 AM Subject: Re: mysql problem On Fri, 13 Jul 2007, Marcos Laufer wrote: I am having a very strange problem on a 3.9 , suddenly i can't access any table on the databases. I have around 100 databases on this server and can't access not even one. This is a production server and i am in an urge to solve it, if anyone can help i would appreciate it: # mysql mysql -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 303342 to server version: 5.0.18 Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql show tables; ERROR 1018 (HY000): Can't read dir of './mysql/' (errno: 9) mysql I have backups of all databases, including mysql database which i think is the one broken , how can i restore it ? Thanks for your help You are running out of file descriptors. Search the archives for answers. -Otto -- #!/usr/bin/perl if ((not 0 not 1) != (! 0 ! 1)) { print Larry and Tom must smoke some really primo stuff...\n; }
Re: fsck Segmentation fault on 4.1
Otto , This is the error i get: It starts booting , and it starts fsck , it fails with /dev/rwd0e and rwd0h, (i could see once that when it finished it says:) fsck_ffs in free(): error: free_page: pointer to wrong page fsck: /dev/rwd0h: Abort trap I reboot it again many times and that did not show again i try to fsck manually like this as you say and i get: # ulimit -d unlimited # fsck -y /dev/rwd0e INCONSISTENT CGSIZE=16384 FIX? yes * * Last mounted on /usr * * Phase 1- Check Blocks and Sizes * * Phase 2 - Check pathnames * * Phase 3 - Check Conectivity * * Phase 4 - Check Reference Counts * * Phase 5 - Check Cyl Groups CANNOT READ: BLK 64 CONTINUE? yes fsck: /dev/rwd0e: Segmentation Fault # _ The dmesg is: OpenBSD 4.1-stable (GENERIC) #0: Mon May 14 14:02:47 ART 2007 [EMAIL PROTECTED]:/u/system/src/sys/arch/i386/compile/GENERIC cpu0: Intel(R) Pentium(R) 4 CPU 2.80GHz (GenuineIntel 686-class) 2.81 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,CNXT-ID,xTPR real mem = 1064857600 (1039900K) avail mem = 964222976 (941624K) using 4278 buffers containing 53366784 bytes (52116K) of memory mainbus0 (root) bios0 at mainbus0: AT/286+ BIOS, date 09/15/03, BIOS32 rev. 0 @ 0xfbbd0, SMBIOS rev. 2.2 @ 0xf0800 (39 entries) bios0: MICRO-STAR INTL, CO.,LTD. MS-6743 apm0 at bios0: Power Management spec V1.2 apm0: AC on, battery charge unknown apm0: flags 70102 dobusy 1 doidle 1 pcibios0 at bios0: rev 2.1 @ 0xf/0xdf84 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdeb0/176 (9 entries) pcibios0: PCI Exclusive IRQs: 3 4 5 7 10 11 pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82371SB ISA rev 0x00) pcibios0: PCI bus #1 is the last bus bios0: ROM list: 0xc/0xa600 0xcc000/0x1800 acpi at mainbus0 not configured cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 Intel 82865G/PE/P CPU-I/0-1 rev 0x02 vga1 at pci0 dev 2 function 0 Intel 82865G Video rev 0x02: aperture at 0xf000, size 0x800 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) ppb0 at pci0 dev 30 function 0 Intel 82801BA AGP rev 0xc2 pci1 at ppb0 bus 1 fxp0 at pci1 dev 8 function 0 Intel PRO/100 VE rev 0x02, i82562: irq 10, address 00:0c:76:b5:8a:85 inphy0 at fxp0 phy 1: i82562ET 10/100 PHY, rev. 0 ichpcib0 at pci0 dev 31 function 0 Intel 82801EB/ER LPC rev 0x02 pciide0 at pci0 dev 31 function 2 Intel 82801EB SATA rev 0x02: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility wd0 at pciide0 channel 0 drive 1: WDC WD800JD-00MSA1 wd0: 16-sector PIO, LBA48, 76319MB, 156301488 sectors wd0(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 5 atapiscsi0 at pciide0 channel 1 drive 1 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: LITEON, CD-ROM LTN526D, 9S01 SCSI0 5/cdrom removable cd0(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2 ichiic0 at pci0 dev 31 function 3 Intel 82801EB/ER SMBus rev 0x02: irq 4 iic0 at ichiic0 iic0: addr 0x2f 04=00 06=0a 07=00 0c=00 0d=07 0e=85 0f=00 10=c0 11=11 12=00 13=60 14=14 15=62 16=01 17=06 isa0 at ichpcib0 isadma0 at isa0 pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pmsi0 at pckbc0 (aux slot) pckbc0: using irq 12 for aux slot wsmouse0 at pmsi0 mux 0 pcppi0 at isa0 port 0x61 midi0 at pcppi0: PC speaker spkr0 at pcppi0 lm0 at isa0 port 0x290/8: W83627THF npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 biomask ebfd netmask effd ttymask pctr: user-level cycle counter enabled dkcsum: wd0 matches BIOS drive 0x80 root on wd0a rootdev=0x0 rrootdev=0x300 rawdev=0x302 - Original Message - From: Otto Moerbeek [EMAIL PROTECTED] To: Marcos Laufer [EMAIL PROTECTED] Cc: misc@openbsd.org Sent: Friday, July 13, 2007 3:38 PM Subject: Re: fsck Segmentation fault on 4.1 On Fri, 13 Jul 2007, Marcos Laufer wrote: Hello, I want to report a problem i experienced while testing OpenBSD 4.1 . I've installed it, increased VM_PHYSSEG_MAX to 16 in /usr/src/sys/arch/i386/include/vmparam.h to make it work with this particular motherboard and made a stable release. Installed a server with it and it's working fine as an MX for a few months until now. The machine was crashed, no error on the screen and the keyboard did not respond. I rebooted , it started to fsck , and the fsck failed on /usr. So i run fsck manually : fsck -y, but it crashes with segmentation fault, so i can't mount or start the server. I read on the archives that it was a problem because of running out of swap, but i had made a 2gb swap partition, despite of that i added a 64mb file as swap and tried fsck again, but no luck. This time it was easy for me to reinstall everything in a new hard disk, but i still keep the old one because i would like to learn how to fix this , if anyone
Re: fsck Segmentation fault on 4.1
Otto, I know the cables are allright, i'm using them with other hard drive . And the hard drive is new , but i will format it and check if it shows up some errors. I hope it is hardware related , i would get kind of scared otherwise. Do you need me to try anything else with this filesystem? Regards, Marcos - Original Message - From: Otto Moerbeek [EMAIL PROTECTED] To: Marcos Laufer [EMAIL PROTECTED] Cc: misc@openbsd.org Sent: Friday, July 13, 2007 4:46 PM Subject: Re: fsck Segmentation fault on 4.1 On Fri, 13 Jul 2007, Marcos Laufer wrote: Otto , This is the error i get: It starts booting , and it starts fsck , it fails with /dev/rwd0e and rwd0h, (i could see once that when it finished it says:) fsck_ffs in free(): error: free_page: pointer to wrong page fsck: /dev/rwd0h: Abort trap I reboot it again many times and that did not show again i try to fsck manually like this as you say and i get: # ulimit -d unlimited # fsck -y /dev/rwd0e INCONSISTENT CGSIZE=16384 FIX? yes * * Last mounted on /usr * * Phase 1- Check Blocks and Sizes * * Phase 2 - Check pathnames * * Phase 3 - Check Conectivity * * Phase 4 - Check Reference Counts * * Phase 5 - Check Cyl Groups CANNOT READ: BLK 64 CONTINUE? yes fsck: /dev/rwd0e: Segmentation Fault This is not an out of memory situation. It looks like fsck_ffs has problems getting data from your disk, probably because of hardware failure or bad cabling. Sometimes it detects it cannot read the data (the CANNOT READ: BLK 64 case), but it is possible it gets corrupted data in other cases. Sadly, this can cause fsck_ffs to do the wrong thing and access wrong memory and corrupt it's internal data. During the last year I've fixed some stuff in this area, but there still remains cases that can go wrong. -Otto # _ The dmesg is: OpenBSD 4.1-stable (GENERIC) #0: Mon May 14 14:02:47 ART 2007 [EMAIL PROTECTED]:/u/system/src/sys/arch/i386/compile/GENERIC cpu0: Intel(R) Pentium(R) 4 CPU 2.80GHz (GenuineIntel 686-class) 2.81 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,CNXT-ID,xTPR real mem = 1064857600 (1039900K) avail mem = 964222976 (941624K) using 4278 buffers containing 53366784 bytes (52116K) of memory mainbus0 (root) bios0 at mainbus0: AT/286+ BIOS, date 09/15/03, BIOS32 rev. 0 @ 0xfbbd0, SMBIOS rev. 2.2 @ 0xf0800 (39 entries) bios0: MICRO-STAR INTL, CO.,LTD. MS-6743 apm0 at bios0: Power Management spec V1.2 apm0: AC on, battery charge unknown apm0: flags 70102 dobusy 1 doidle 1 pcibios0 at bios0: rev 2.1 @ 0xf/0xdf84 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdeb0/176 (9 entries) pcibios0: PCI Exclusive IRQs: 3 4 5 7 10 11 pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82371SB ISA rev 0x00) pcibios0: PCI bus #1 is the last bus bios0: ROM list: 0xc/0xa600 0xcc000/0x1800 acpi at mainbus0 not configured cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 Intel 82865G/PE/P CPU-I/0-1 rev 0x02 vga1 at pci0 dev 2 function 0 Intel 82865G Video rev 0x02: aperture at 0xf000, size 0x800 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) ppb0 at pci0 dev 30 function 0 Intel 82801BA AGP rev 0xc2 pci1 at ppb0 bus 1 fxp0 at pci1 dev 8 function 0 Intel PRO/100 VE rev 0x02, i82562: irq 10, address 00:0c:76:b5:8a:85 inphy0 at fxp0 phy 1: i82562ET 10/100 PHY, rev. 0 ichpcib0 at pci0 dev 31 function 0 Intel 82801EB/ER LPC rev 0x02 pciide0 at pci0 dev 31 function 2 Intel 82801EB SATA rev 0x02: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility wd0 at pciide0 channel 0 drive 1: WDC WD800JD-00MSA1 wd0: 16-sector PIO, LBA48, 76319MB, 156301488 sectors wd0(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 5 atapiscsi0 at pciide0 channel 1 drive 1 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: LITEON, CD-ROM LTN526D, 9S01 SCSI0 5/cdrom removable cd0(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2 ichiic0 at pci0 dev 31 function 3 Intel 82801EB/ER SMBus rev 0x02: irq 4 iic0 at ichiic0 iic0: addr 0x2f 04=00 06=0a 07=00 0c=00 0d=07 0e=85 0f=00 10=c0 11=11 12=00 13=60 14=14 15=62 16=01 17=06 isa0 at ichpcib0 isadma0 at isa0 pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pmsi0 at pckbc0 (aux slot) pckbc0: using irq 12 for aux slot wsmouse0 at pmsi0 mux 0 pcppi0 at isa0 port 0x61 midi0 at pcppi0: PC speaker spkr0 at pcppi0 lm0 at isa0 port 0x290/8: W83627THF npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 biomask ebfd netmask effd ttymask pctr: user-level cycle counter enabled dkcsum: wd0 matches BIOS drive 0x80 root on wd0a rootdev=0x0 rrootdev=0x300 rawdev=0x302 - Original Message
Re: mysql problem
Allright the, i start the mysql server with this: if [ -x /usr/local/bin/mysqld_safe ] ; then su -c _mysql root -c '/usr/local/bin/mysqld_safe ' /dev/null echo -n ' mysql' fi but the problem still persists , it shows up when executing mysqlcheck -m -A -p Now what? Regards, Marcos - Original Message - From: Clint Pachl [EMAIL PROTECTED] Cc: Marcos Laufer [EMAIL PROTECTED]; misc@openbsd.org Sent: Friday, July 13, 2007 6:05 PM Subject: Re: mysql problem Otto Moerbeek wrote: On Fri, 13 Jul 2007, Marcos Laufer wrote: I did read the archives, and it helped me to find out that restarting mysql fixes it for some time, and i increased the values several times but no luck. It starts working fine for a while but then again it fails . In the end i have this config right now and the problem persists, i can reproduce the problem just by executing mysqlcheck -m -A -p How are yo starting mysql? You need to explicitly set the login class. Somthing like su -c mysql root /usr/local/bin/mysqld_safe ... -Otto Otto is right. Here is my /etc/postgresql.rc script, which should give you some ideas for managing mysql (notice ``SU''). #!/bin/sh exec 2 DATA=/var/postgresql/data LOG=/var/postgresql/log CMD=$1 PUSR=_postgresql PCLS=postgresql CTL=/usr/local/bin/pg_ctl SU=su -l -c $PCLS $PUSR -c userinfo -e $PUSR || { echo $PUSR user nonexistent.; exit 1; } grep -q ^${PCLS}: /etc/login.conf || { echo $PCLS class nonexistent.; exit 1; } [ -x $CTL ] || { echo $CTL not executable.; exit 1; } case $CMD in stop|reload|status) $SU exec $CTL $CMD -D $DATA ;; start|restart) $SU exec $CTL $CMD -D $DATA -l $LOG chmod 644 $LOG ;; *) echo usage: $0 stop|restart|reload|status|start (will run as $PUSR) ;; esac And the relevant sections of /etc/login.conf daemon:\ :ignorenologin:\ :datasize=infinity:\ :maxproc=infinity:\ :openfiles-cur=128:\ :stacksize-cur=8M:\ :localcipher=blowfish,8:\ :tc=default: postgresql:\ :openfiles-cur=768:\ :tc=daemon: -pachl -- # sysctl kern.maxfiles kern.maxfiles=2 --
mysql problem
I am having a very strange problem on a 3.9 , suddenly i can't access any table on the databases. I have around 100 databases on this server and can't access not even one. This is a production server and i am in an urge to solve it, if anyone can help i would appreciate it: # mysql mysql -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 303342 to server version: 5.0.18 Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql show tables; ERROR 1018 (HY000): Can't read dir of './mysql/' (errno: 9) mysql I have backups of all databases, including mysql database which i think is the one broken , how can i restore it ? Thanks for your help
Re: mysql4
Daniel , How about Cacti? . Have you succesfully installed with mysql5? Has ayone? I'm having all kind of troubles to make it work on mysql5, and all recomendations go back to install mysql4 Regards, - Original Message - From: Daniel Ouellet [EMAIL PROTECTED] To: Marcos Laufer [EMAIL PROTECTED] Cc: misc@openbsd.org Sent: Wednesday, June 06, 2007 11:10 PM Subject: Re: mysql4 Marcos Laufer wrote: I'm not sure that the reason mysql4 isn't in the packages is due to lack of time or resources.. There must be some other reason, i think this because everytime there are more and more packages, so removing one that so many people use is kind of weird. http://openbsd.org/faq/faq15.html#PkgFAQ And the keep packages in sync with the OS. The version 4 was there a long time ago. Plus it's not the policy of the project to keep multiple version of a packages. PHP is an exception as an example, but sooner or later you can sure expect to see the PHP 4.x be drop all together for example. I was thinking about upgrading (by making a fresh install) to 4.1 an old 3.4 webserver that also runs mysql4, and i had the intention of installing mysql4 on the new one so no modification on applications are needed. No change in application would be needed really. Your SQL query are still SQL and will work as they are now. New version added new SQL functionality, but if you read MySQL, you will see, they didn't drop anything. Why would you think it wouldn't work. I see nothing to that effect at all. Any specific facts you want to share? I can't upgrade the users applications because this server runs at least 1000 websites , the users won't like to modifiy their code, and i am not a programmer neither. Nor would you have too. You connect to the database either by sockets or TCP connections. As long as your server is setup properly, it does the same thing. Again, any facts you want to share to the contrary? But if it's not in the packages , i guess i should have to compile it myself then. I just wanted to know the real reason (maybe there is a security reason) of why mysql4 isn't included in packages anymore, not just a guess. Again all explain here, not a guess: http://openbsd.org/faq/faq15.html#PkgFAQ And more specifically, quote The ports collection is a volunteer project. Sometimes the project simply doesn't have the developer resources to keep everything up-to-date. Developers pretty much pick up what they consider interesting and can test in their environment. Your donations can make a difference for testing ports on more platforms. This statement also work both ways, meaning newer and older version. Simply not the resources to keep all possible version, plus it would pretty much useless if you asked me, witch I am sure you would disagree anyway. But no, my first answer wasn't speculations, or guess. Best, Daniel
Re: apache + php
I've been seeing this since OpenBSD 3.4 with Uebimiau php webmail and sometimes httpd stops working, restarting is needed. - Original Message - From: Joachim Schipper [EMAIL PROTECTED] To: misc@openbsd.org Sent: Wednesday, July 11, 2007 10:28 AM Subject: Re: apache + php On Wed, Jul 11, 2007 at 12:56:27PM +0200, Marc Balmer wrote: Otto Moerbeek wrote: On Wed, 11 Jul 2007, Adam PAPAI wrote: The system hangs after 1 day. It's a very strongly loaded system. Any idea why? It seems that the system does not really handle the http requests well. /var/www/log/access_log snippet: httpd in malloc(): error: recursive call httpd in malloc(): error: recursive call [Mon Jul 9 18:33:39 2007] [notice] child pid 24755 exit signal Abort (6) [Mon Jul 9 18:33:39 2007] [notice] child pid 10372 exit signal Abort (6) [Mon Jul 9 18:33:39 2007] [notice] child pid 11192 exit signal Segmentation fault (11) [Mon Jul 9 18:33:39 2007] [notice] child pid 15994 exit signal Segmentation fault (11) The aborts and seg faults are likely caused by php. It's mostly sloppy programming by the php developers. A know problem exists with PHP and anonymous mmaps in the kernel. I do not know if this is what hits you here, but the symptons look much like it. a busy system that runs, e.g. the horde/imp webmailer will hang within a short time (1.5 days over here). until there is a better solution, the workaround is quite easy: restart httpd in a cronjob. I'm sorry to intrude here, but is this problem new? I was not aware of it. (And as a follow-up, can we expect it to be fixed any time soon?) Joachim -- PotD: x11/iwidgets - Iwidgets Mega Widget Set
clamav on 3.9
Hi there, I'm trying to install the newest clamav (0.90.3) on OpenBSD 3.9 . I updated the sources, and managed to compile it . But when i try to install the package i get this error: pkg_add /usr/ports/packages/i386/all/clamav-0.90.3p0.tgz Can't install /usr/ports/packages/i386/all/clamav-0.90.3p0.tgz: lib not found idn.16.15 Even by looking in the dependency tree: lha-1.14i.ac20050924, unzip-5.52, arc-5.21n, gmp-4.1.4p0, libiconv-1.9.2p3, bzip2-1.0.3, curl-7.15.3, zoo-2.10.1p0 Maybe it's in a dependent package, but not tagged with @lib ? (check with pkg_info -K -L) If you are still running 3.6 packages, update them. And libidn is installed : pkg_info |grep libid libidn-0.6.1internationalized string handling I read here http://www.mail-archive.com/[EMAIL PROTECTED]/msg11199.html someone had a similar problem and his solution was to update curl as well , but i can't upgrade it because i get another funky error: /usr/local/bin/libtool --tag=CC--mode=link -O2 -pipe -L/usr/local/lib -o curl main.o hugehelp.o urlglob.o writeout.o writeenv.o getpass.o homedir.o curlutil.o strtoofft.o strdup.o ../lib/libcurl.la -lz mkdir .libs cc -O2 -pipe -o .libs/curl main.o hugehelp.o urlglob.o writeout.o writeenv.o getpass.o homedir.o curlutil.o strtoofft.o strdup.o -L/usr/local/lib -L../lib/.libs -lcurl -lcrypto -lssl -lidn -licon v -lz -Wl,-rpath,/usr/local/lib main.o(.text+0x2ff): In function `file2string': : warning: strcpy() is almost always misused, please use strlcpy() /usr/local/lib/libcurl.so.3.3: warning: sprintf() is often misused, please use snprintf() main.o(.text+0x68b1): In function `my_get_line': : warning: strcat() is almost always misused, please use strlcat() main.o(.text+0x4752): In function `operate': : undefined reference to `curl_easy_escape' collect2: ld returned 1 exit status *** Error code 1 Stop in /u/system/ports/net/curl/w-curl-7.16.2/curl-7.16.2/src (line 358 of Makefile). *** Error code 1 Stop in /u/system/ports/net/curl/w-curl-7.16.2/curl-7.16.2/src (line 279 of Makefile). *** Error code 1 Stop in /u/system/ports/net/curl/w-curl-7.16.2/curl-7.16.2 (line 374 of Makefile). *** Error code 1 Stop in /u/system/ports/net/curl (line 1924 of /usr/ports/infrastructure/mk/bsd.port.mk). I'd appreciate any help on how to continue Thanks!
Fw: clamav on 3.9
I'v managed to compile curl (jsut had to remove the old one first) but i still can't install the clamav package , i still get the same error message: test:/usr/ports/security/clamav{95}# pkg_add /usr/ports/packages/i386/all/clamav-0.90.3p0.tgz Can't install /usr/ports/packages/i386/all/clamav-0.90.3p0.tgz: lib not found curl.3.3 Even by looking in the dependency tree: arc-5.21n, libidn-0.6.1, libiconv-1.9.2p3, bzip2-1.0.3, zoo-2.10.1p0, unzip-5.52, lha-1.14i.ac20050924, gettext-0.14.5p1, expat-1.95.6p1, gmp-4.1.4p0, curl-7.16.2 Maybe it's in a dependent package, but not tagged with @lib ? (check with pkg_info -K -L) If you are still running 3.6 packages, update them. test:/usr/ports/security/clamav{96}# - Original Message - From: Marcos Laufer [EMAIL PROTECTED] To: misc@openbsd.org Sent: Thursday, June 28, 2007 3:56 PM Subject: clamav on 3.9 Hi there, I'm trying to install the newest clamav (0.90.3) on OpenBSD 3.9 . I updated the sources, and managed to compile it . But when i try to install the package i get this error: pkg_add /usr/ports/packages/i386/all/clamav-0.90.3p0.tgz Can't install /usr/ports/packages/i386/all/clamav-0.90.3p0.tgz: lib not found idn.16.15 Even by looking in the dependency tree: lha-1.14i.ac20050924, unzip-5.52, arc-5.21n, gmp-4.1.4p0, libiconv-1.9.2p3, bzip2-1.0.3, curl-7.15.3, zoo-2.10.1p0 Maybe it's in a dependent package, but not tagged with @lib ? (check with pkg_info -K -L) If you are still running 3.6 packages, update them. And libidn is installed : pkg_info |grep libid libidn-0.6.1internationalized string handling I read here http://www.mail-archive.com/[EMAIL PROTECTED]/msg11199.html someone had a similar problem and his solution was to update curl as well , but i can't upgrade it because i get another funky error: /usr/local/bin/libtool --tag=CC--mode=link -O2 -pipe -L/usr/local/lib -o curl main.o hugehelp.o urlglob.o writeout.o writeenv.o getpass.o homedir.o curlutil.o strtoofft.o strdup.o ../lib/libcurl.la -lz mkdir .libs cc -O2 -pipe -o .libs/curl main.o hugehelp.o urlglob.o writeout.o writeenv.o getpass.o homedir.o curlutil.o strtoofft.o strdup.o -L/usr/local/lib -L../lib/.libs -lcurl -lcrypto -lssl -lidn -licon v -lz -Wl,-rpath,/usr/local/lib main.o(.text+0x2ff): In function `file2string': : warning: strcpy() is almost always misused, please use strlcpy() /usr/local/lib/libcurl.so.3.3: warning: sprintf() is often misused, please use snprintf() main.o(.text+0x68b1): In function `my_get_line': : warning: strcat() is almost always misused, please use strlcat() main.o(.text+0x4752): In function `operate': : undefined reference to `curl_easy_escape' collect2: ld returned 1 exit status *** Error code 1 Stop in /u/system/ports/net/curl/w-curl-7.16.2/curl-7.16.2/src (line 358 of Makefile). *** Error code 1 Stop in /u/system/ports/net/curl/w-curl-7.16.2/curl-7.16.2/src (line 279 of Makefile). *** Error code 1 Stop in /u/system/ports/net/curl/w-curl-7.16.2/curl-7.16.2 (line 374 of Makefile). *** Error code 1 Stop in /u/system/ports/net/curl (line 1924 of /usr/ports/infrastructure/mk/bsd.port.mk). I'd appreciate any help on how to continue Thanks!
Fw: clamav on 3.9 [SOLVED]
I just worked it out, sorry for the noise ! Just had to compile clamav again with the newest curl installed , and the resulting clamav package worked just fine. - Original Message - From: Marcos Laufer [EMAIL PROTECTED] To: misc@openbsd.org Sent: Thursday, June 28, 2007 4:11 PM Subject: Fw: clamav on 3.9 I'v managed to compile curl (jsut had to remove the old one first) but i still can't install the clamav package , i still get the same error message: test:/usr/ports/security/clamav{95}# pkg_add /usr/ports/packages/i386/all/clamav-0.90.3p0.tgz Can't install /usr/ports/packages/i386/all/clamav-0.90.3p0.tgz: lib not found curl.3.3 Even by looking in the dependency tree: arc-5.21n, libidn-0.6.1, libiconv-1.9.2p3, bzip2-1.0.3, zoo-2.10.1p0, unzip-5.52, lha-1.14i.ac20050924, gettext-0.14.5p1, expat-1.95.6p1, gmp-4.1.4p0, curl-7.16.2 Maybe it's in a dependent package, but not tagged with @lib ? (check with pkg_info -K -L) If you are still running 3.6 packages, update them. test:/usr/ports/security/clamav{96}# - Original Message - From: Marcos Laufer [EMAIL PROTECTED] To: misc@openbsd.org Sent: Thursday, June 28, 2007 3:56 PM Subject: clamav on 3.9 Hi there, I'm trying to install the newest clamav (0.90.3) on OpenBSD 3.9 . I updated the sources, and managed to compile it . But when i try to install the package i get this error: pkg_add /usr/ports/packages/i386/all/clamav-0.90.3p0.tgz Can't install /usr/ports/packages/i386/all/clamav-0.90.3p0.tgz: lib not found idn.16.15 Even by looking in the dependency tree: lha-1.14i.ac20050924, unzip-5.52, arc-5.21n, gmp-4.1.4p0, libiconv-1.9.2p3, bzip2-1.0.3, curl-7.15.3, zoo-2.10.1p0 Maybe it's in a dependent package, but not tagged with @lib ? (check with pkg_info -K -L) If you are still running 3.6 packages, update them. And libidn is installed : pkg_info |grep libid libidn-0.6.1internationalized string handling I read here http://www.mail-archive.com/[EMAIL PROTECTED]/msg11199.html someone had a similar problem and his solution was to update curl as well , but i can't upgrade it because i get another funky error: /usr/local/bin/libtool --tag=CC--mode=link -O2 -pipe -L/usr/local/lib -o curl main.o hugehelp.o urlglob.o writeout.o writeenv.o getpass.o homedir.o curlutil.o strtoofft.o strdup.o ../lib/libcurl.la -lz mkdir .libs cc -O2 -pipe -o .libs/curl main.o hugehelp.o urlglob.o writeout.o writeenv.o getpass.o homedir.o curlutil.o strtoofft.o strdup.o -L/usr/local/lib -L../lib/.libs -lcurl -lcrypto -lssl -lidn -licon v -lz -Wl,-rpath,/usr/local/lib main.o(.text+0x2ff): In function `file2string': : warning: strcpy() is almost always misused, please use strlcpy() /usr/local/lib/libcurl.so.3.3: warning: sprintf() is often misused, please use snprintf() main.o(.text+0x68b1): In function `my_get_line': : warning: strcat() is almost always misused, please use strlcat() main.o(.text+0x4752): In function `operate': : undefined reference to `curl_easy_escape' collect2: ld returned 1 exit status *** Error code 1 Stop in /u/system/ports/net/curl/w-curl-7.16.2/curl-7.16.2/src (line 358 of Makefile). *** Error code 1 Stop in /u/system/ports/net/curl/w-curl-7.16.2/curl-7.16.2/src (line 279 of Makefile). *** Error code 1 Stop in /u/system/ports/net/curl/w-curl-7.16.2/curl-7.16.2 (line 374 of Makefile). *** Error code 1 Stop in /u/system/ports/net/curl (line 1924 of /usr/ports/infrastructure/mk/bsd.port.mk). I'd appreciate any help on how to continue Thanks!
Re: PPPoE MTU Problem
Will , PPPoE needs a MTU of 1492 , i had the same problem with other values Give it a try. Marcos - Original Message - From: Will Jenkins [EMAIL PROTECTED] To: misc@openbsd.org Sent: Friday, June 08, 2007 9:49 PM Subject: Re: PPPoE MTU Problem On 9 Jun 2007, at 00:11, Stuart Henderson wrote: On 2007/06/08 23:44, Jason McIntyre wrote: On Fri, Jun 08, 2007 at 04:36:28PM +0100, Will Jenkins wrote: I've been experiencing some strange problems. I have a PPPoE/PPPoA bridging ethernet modem in the UK and am using userland ppp to connect to my DSL provider. I have been setting MTU/MRU to 1458 in ppp.conf and have been getting a *lot* of these messages: ppp[18688]: tun0: Error: ip_Input: deflink: wrote 1429, got Message too long no answers for you, but here are some stuff i would mess with: - kernel pppoe(4) (much nicer ;) seconded, it works nicely on BT-based lines in .uk for me (some of the LLU providers only do PPPoA though). I found it a lot easier to get working than using ppp(8), and I'm not exactly new to ppp(8)... I actually started with kernel pppoe and it worked great for two hours and then died inexplicably. The connection then refused to come up after repeated reboots which I found very strange. I went back to my Netgear for a few days and then tried OBSD again. This time the connection held for 5 days and died. Again repeated reboots wouldn't coax the connection back to life but my Netgear router worked fine. I thought I'd try userland ppp because my intuition leads me to believe it may be able to handle odd connection drops etc more robustly. Also I can't work out how to get any kind of logs from kernel pppoe. Will
Re: mysql4
I'm not sure that the reason mysql4 isn't in the packages is due to lack of time or resources.. There must be some other reason, i think this because everytime there are more and more packages, so removing one that so many people use is kind of weird. I was thinking about upgrading (by making a fresh install) to 4.1 an old 3.4 webserver that also runs mysql4, and i had the intention of installing mysql4 on the new one so no modification on applications are needed. I can't upgrade the users applications because this server runs at least 1000 websites , the users won't like to modifiy their code, and i am not a programmer neither. But if it's not in the packages , i guess i should have to compile it myself then. I just wanted to know the real reason (maybe there is a security reason) of why mysql4 isn't included in packages anymore, not just a guess. - Original Message - From: Daniel Ouellet [EMAIL PROTECTED] To: misc@openbsd.org Sent: Tuesday, June 05, 2007 11:46 PM Subject: Re: mysql4 Marcos Laufer wrote: Hello there, I don't know if this has been asked or discussed before,.. here's no mysql4 packages in OpenBSD 4.1 . Why? mysql-server-5.0.33.tgz Is available. They do not have the resources to have every possible version as packages, nor do they have the equipment to make all of them. If you want a packages, as an example, 4.1 for i386 have the above ready to go. I guess just upgrade your applications as you upgrade your OS, why not.
mysql4
Hello there, I don't know if this has been asked or discussed before,.. here's no mysql4 packages in OpenBSD 4.1 . Why? Regards, Marcos
Re: OpenBSD 4.1: pf is not blocking anything [solved]
Hello , Just found out what was wrong. I knew that the ruleset was allright... I just forgot to activate pf by placing pf=YES in rc.local.conf I'm glad that OpenBSD works just fine, and it's me who needs to be repaired :) I am very sorry for the noise , thanks to everybody for the tips and advice Marcos - Original Message - From: Peter N. M. Hansteen [EMAIL PROTECTED] To: Marcos Laufer [EMAIL PROTECTED] Cc: misc@openbsd.org Sent: Tuesday, May 22, 2007 8:23 AM Subject: Re: OpenBSD 4.1: pf is not blocking anything Marcos Laufer [EMAIL PROTECTED] writes: I am testing pf in an OpenBSD 4.1. This same configuration works fine on OpenBSD 3.9, but in 4.1 it is not filtering anything, everything is passing thru, just like as if there was no 'block all'. Are you sure that your rule set actually does get loaded? pfctl -s rules will show you which rules are loaded (a possible first step), but syntax errors should show up (with line number indicated) when you try to load your rules. -- Peter N. M. Hansteen, member of the first RFC 1149 implementation team http://www.blug.linux.no/rfc1149/ http://www.datadok.no/ http://www.nuug.no/ First, we kill all the spammers The Usenet Bard, Twice-forwarded tales delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.
OpenBSD 4.1: pf is not blocking anything
Hello, I am testing pf in an OpenBSD 4.1. This same configuration works fine on OpenBSD 3.9, but in 4.1 it is not filtering anything, everything is passing thru, just like as if there was no 'block all'. What worries me most is that anyone on the outside can see my ssh service . Is there anything wrong with the state of my rules? If i didn't misunderstand , this rules should work just fine Any ideas? Thanks in advance, Marcos --- # set skip on lo scrub in icmp_nets={ 10.10.10.0/24 } block all # good guys table goodhosts persist pass in quick on egress from goodhosts to any keep state # blackhole table badhosts persist block in quick log on egress from badhosts to any # no ipv6 block in quick inet6 all ## # outgoing # dns pass out on egress proto { tcp, udp } from (self)/32 to any port domain flags S/SA keep state # smtp, http , https pass out on egress proto tcp from (self)/32 to any port { smtp, www, https } flags S/SA keep state # ntp ntp_servers={ 10.10.10.4 } pass out on egress proto udp from (self)/32 to $ntp_servers port ntp keep state # ssh ssh_friends={ 10.10.10.0/24 } pass out on egress proto tcp from (self)/32 to $ssh_friends port ssh flags S/SA keep state # mysql pass out on egress proto tcp from (self)/32 to any port 3306 flags S/SA keep state ## # incoming # private friends={ 10.10.10.0/24 } friends_srvs={ ftp, ftp-data, ssh } pass in on egress proto tcp from $friends to (self)/32 port $friends_srvs flags S/SA keep state # MySQL y PgSQL sql_www_apps_srv={ 10.10.10.0/24 } pass in quick proto tcp from $sql_www_apps_srv to self/32 port { 3306, 5432 } flags S/SA keep state # icmp pass in quick proto icmp from $icmp_nets to self/32 keep state
ImageMagick and chroot
Hello , Has anyone had luck in making ImageMagick work into the www chroot environment? Some web applications need to use the 'convert' system command, so i included it into the /var/www/bin/ directory and also every file that gets mentioned when you run : ldd convert , into it's corresponding directory. system:/var/www/bin{4}# ldd convert convert: StartEnd Type Open Ref GrpRef Name exe 10 0 convert 04d59000 24d68000 rlib 01 0 /usr/local/lib/libWand.so.10.1 0d077000 2d147000 rlib 02 0 /usr/local/lib/libMagick.so.10.1 05d92000 25dc5000 rlib 03 0 /usr/local/lib/libxml2.so.9.0 00d9 20e6c000 rlib 04 0 /usr/local/lib/libiconv.so.4.0 0b4b9000 2b4c1000 rlib 04 0 /usr/lib/libz.so.4.1 02e0c000 22e1 rlib 03 0 /usr/local/lib/libbz2.so.10.3 0c23c000 2c243000 rlib 03 0 /usr/local/lib/libpng.so.4.2 06a32000 26a38000 rlib 03 0 /usr/local/lib/libjpeg.so.62.0 04b0b000 24b1b000 rlib 03 0 /usr/local/lib/libjasper.so.1.0 032e1000 232e8000 rlib 05 0 /usr/lib/libm.so.2.1 060fb000 2611f000 rlib 03 0 /usr/local/lib/libtiff.so.37.3 0ee7e000 2ee89000 rlib 03 0 /usr/local/lib/liblcms.so.1.12 054f3000 254f9000 rlib 03 0 /usr/local/lib/libjbig.so.2.0 04183000 241b4000 rlib 01 0 /usr/lib/libc.so.39.0 0a2a3000 0a2a3000 rtld 01 0 /usr/libexec/ld.so system:/var/www/bin{5}# But it still doesn't work. What am i missing? Any suggestions or ideas are welcome. Marcos
Re: ImageMagick and chroot
Hello , The script just worked . Thanks a lot Aiko for that script, and thanks to everybody for the suggestions and help. Now the convert command runs , and i can see the web application shows me an image where it supposed to be showd, but i still have some errors though , but i guess they are about the programming of this web application . I know that on the old server (lionux) it worked just fine with the code as it is (php5), but maybe has to be changed because of the chroot , i don't know , i'll try to contact the programmer to let him see it . Thanks , Marcos - Original Message - From: Aiko Barz [EMAIL PROTECTED] To: Marcos Laufer [EMAIL PROTECTED] Cc: misc@openbsd.org Sent: Thursday, May 17, 2007 2:51 PM Subject: Re: ImageMagick and chroot : [EMAIL PROTECTED] Marcos Laufer wrote: Hello , Has anyone had luck in making ImageMagick work into the www chroot environment? Yes, run the following script and you are done. #!/bin/sh CHROOT=/var/www # Make dirs [ ! -d $CHROOT/bin ] mkdir -p $CHROOT/bin [ ! -d $CHROOT/usr/local/bin ] mkdir -p $CHROOT/usr/local/bin [ ! -d $CHROOT/usr/local/lib ] mkdir -p $CHROOT/usr/local/lib [ ! -d $CHROOT/usr/lib ] mkdir -p $CHROOT/usr/lib [ ! -d $CHROOT/usr/X11R6/lib ] mkdir -p $CHROOT/usr/X11R6/lib/ [ ! -d $CHROOT/usr/libexec ] mkdir -p $CHROOT/usr/libexec [ ! -d $CHROOT/var/run ] mkdir -p $CHROOT/var/run SH=/bin/sh if [ -x $SH ]; then cp -f $SH $CHROOT/$SH else echo No shit. $SH not found! :) fi LD_HINTS=/var/run/ld.so.hints if [ -f $LD_HINTS ]; then cp $LD_HINTS $CHROOT/$LD_HINTS else echo $LD_HINTS not found. Still wondering thou. fi CONVERT=$(which convert | awk '{print $1}') if [ ! -z $CONVERT ] [ -x $CONVERT ]; then cp -f $CONVERT $CHROOT/$CONVERT for i in $(ldd $CONVERT | awk '{if ($3 == rlib) {print $7}}'); do if [ -f $i ]; then cp -f $i $CHROOT/$i fi done else echo convert not found. exit 1 fi COMPOSITE=$(which composite | awk '{print $1}') if [ ! -z $COMPOSITE ] [ -x $COMPOSITE ]; then cp -f $COMPOSITE $CHROOT/$COMPOSITE for i in $(ldd $COMPOSITE | awk '{if ($3 == rlib) {print $7}}'); do if [ -f $i ]; then cp -f $i $CHROOT/$i fi done else echo composite not found. exit 1 fi IDENTIFY=$(which identify | awk '{print $1}') if [ ! -z $IDENTIFY ] [ -x $IDENTIFY ]; then cp -f $IDENTIFY $CHROOT/$IDENTIFY for i in $(ldd $IDENTIFY | awk '{if ($3 == rlib) {print $7}}'); do if [ -f $i ]; then cp -f $i $CHROOT/$i fi done else echo identify not found. exit 1 fi HTH, Aiko -- Aiko Barz [EMAIL PROTECTED] Web: http://www.haeckser.de
Re: OpenBSD 4.1 install issue??
Rob , raising VM_PHYSSEG_MAX to 16 did the trick. I'm running stable 4.1 now. Thanks a lot for the sound advice ! Regards, Marcos Laufer - Original Message - From: Rob Waite [EMAIL PROTECTED] To: misc@openbsd.org Sent: Saturday, May 12, 2007 1:04 PM Subject: Re: OpenBSD 4.1 install issue?? Oh yeah... I also noticed that others were trying the snapshot. I do not think you should run it at all. I only used it to see if the change to vmparam.h was likely to be the culprit. If you are getting the uvm_page_physload: ... increase VM_PHYSSEG_MAX error (and you wont see it easily... it flies by after about 2/10ths of a second) it is definately the change to vmparam.h For a truly clean install (that is if you are not a pro and want to be certain things are up to stable plus this patch) get the -stable (or the cd release if you don't mind the errata patches missing) and make the change to vmparam.h and build a release. This way you get safe code... a safe build ... and you will have cds that can be used to install this on these machines without having to go through all of this again. The reason I only used my built bsd kernel and the cd41.iso was because I wanted to make sure etc.tar.gz was clean. I actually did the whole build on 4.0 so I didn't want to use it's version of etc.tar.gz. I also suppose if you took a look at the makefiles.. you could build the cd41.iso much more quickly instead of going through the whole release.. but as I said... if you don't have the time to look through and make sure you are doing something safe (or dont know if you are)... you might as well just do the whole release and be sure its clean.
Re: OpenBSD 4.1 install issue??
Looks like i'm miximng kernel and userspace versions because i did get the -release cd and installed it, but it didn' recognize my hardware , it wouldn't boot: http://i175.photobucket.com/albums/w132/winstonwaite/firstScreen.jpg http://i175.photobucket.com/albums/w132/winstonwaite/secondScreen.jpg So i found this thread wich says i should install the latest snapshot . What i didn't consider is that it was not possible to move to -stable from -current. I did tried to move to -stable (compiled kernel and booted) and it crashed like in those images up there, the same does when booting with -release cd , so i had to keep with -current kernel (and -current userland of course) I just wish OpenBSD 4.1 -release (too late for -release) or -stable could boot on my hardware, i can't fix that myself , i don't know how to backport the changes i need - Original Message - From: Ben Calvert [EMAIL PROTECTED] To: Marcos Laufer [EMAIL PROTECTED] Sent: Friday, May 11, 2007 12:33 AM Subject: Re: OpenBSD 4.1 install issue?? On May 10, 2007, at 7:25 PM, Marcos Laufer wrote: I upgraded to stable , rebooted with the new kernel, and i was stuck with this uvm_page_physload problem again. It looks like moving to stable from this snapshot is not possible . I had to go back to the snapshot kernel . 1. you can't upgrade down ( current stable ) 2. ths is not linux - from the above it sounds like you were mixing different kernel and userspace versions.. you can't do that either ( as you seem to have found out ) Will it be possible to move to stable from this point? possible? maybe. supported? no. I really wouldn't like to have a production server running -current so then you need to get the -release cd, and upgrade to -stable from there. Has anyone sorted this out? Marcos