kqueue and EVFILT_USER
I'm trying to "port" an application that currently works on FreeBSD and NetBSD, but it fails to compile on OpenBSD due to lack of EVFILT_USER in kqueue. Is there any plans to add support it for OpenBSD? --- Mika T. Lindqvist / Talleo Project
Re: Vultr hosting of OpenBSD
My personal experience with vultr is good. At the moment I'm using my own 6.2 iso. Everything runs smoothly. Regarding network performance I noticed no problems till today but it is just a small mail server. On 9 September 2018 10:05:16 BST, Étienne > > On 8 September 2018 19:55:16 BST, Ken M > >> My questions are: >> >> 1. Is it still current information that it would be better to use my >> own >> image/install/iso for openbsd on Vultr? > I just like to manage the disk my own way, so I don't use their install > process. But they provide iPXE and that works decently. Have autoinstall on > the top, and you're just as efficient as with using their iso. > >> 2. Is vultr a good place to host an openbsd box? If not interested in >> hearing >> alternatives. > I use them. > >> Also a side note question, is it possible to use VMD/VMM in an openbsd >> guest on vultr. > Just try, it's cheap. > >
Re: iwm does not connect to network anymore
On Mon, May 25, 2015 at 12:09:31PM +0200, Marko Cupać wrote: Hi, I was happy to have (almost) fully functional ThinkPad T440 laptop installed with -current for a few days, but it appears that iwm does not connect to networks anymore. ifconfig scan shows results, but I can't connect. pacija@efreet:~ $ sudo ifconfig iwm0 scan iwm0: flags=8802BROADCAST,SIMPLEX,MULTICAST mtu 1500 lladdr 5c:51:4f:78:c6:1b priority: 4 groups: wlan media: IEEE802.11 autoselect (DS1 mode 11g) status: no network ieee80211: nwid nwid ktulhu chan 1 bssid 40:0e:85:62:45:73 100% 54M privacy,short_slottime,wpa2 ifconfig iwm0 nwid ktulhu wpakey mykey does not give any error. After Try add wpa in your ifconfig string. Like this: ifconfig iwm0 nwid ktulhu wpa wpakey mykey And if you able to connect net say with cabel, try update imw firmware #fw_update -- Mika N that, ifconfig shows status 'not connected': iwm0: flags=8802BROADCAST,SIMPLEX,MULTICAST mtu 1500 lladdr 5c:51:4f:78:c6:1b priority: 4 groups: wlan media: IEEE802.11 autoselect (DS1 mode 11g) status: no network ieee80211: nwid ktulhu wpakey not displayed wpaprotos wpa1,wpa2 wpaakms psk wpaciphers tkip,ccmp wpagroupcipher tkip enc0: flags=0 priority: 0 groups: enc status: active Here's dmesg: OpenBSD 5.7-current (GENERIC.MP) #1008: Sun May 24 19:15:46 MDT 2015 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 8246050816 (7864MB) avail mem = 7992299520 (7622MB) mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xdcd3d000 (61 entries) bios0: vendor LENOVO version GJET80WW (2.30 ) date 10/20/2014 bios0: LENOVO 20B6005RUS acpi0 at bios0: rev 2 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP SLIC DBGP ECDT HPET APIC MCFG SSDT SSDT SSDT SSDT SSDT SSDT SSDT SSDT PCCT SSDT TCPA UEFI MSDM ASF! BATB FPDT UEFI DMAR acpi0: wakeup devices LID_(S4) SLPB(S3) IGBE(S4) EXP2(S4) XHCI(S3) EHC1(S3) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpiec0 at acpi0 acpihpet0 at acpi0: 14318179 Hz acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Core(TM) i5-4300U CPU @ 1.90GHz, 1796.10 MHz cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID cpu0: 256KB 64b/line 8-way L2 cache cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges cpu0: apic clock running at 99MHz cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4, IBE cpu1 at mainbus0: apid 1 (application processor) cpu1: Intel(R) Core(TM) i5-4300U CPU @ 1.90GHz, 1795.84 MHz cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID cpu1: 256KB 64b/line 8-way L2 cache cpu1: smt 1, core 0, package 0 cpu2 at mainbus0: apid 2 (application processor) cpu2: Intel(R) Core(TM) i5-4300U CPU @ 1.90GHz, 1795.84 MHz cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID cpu2: 256KB 64b/line 8-way L2 cache cpu2: smt 0, core 1, package 0 cpu3 at mainbus0: apid 3 (application processor) cpu3: Intel(R) Core(TM) i5-4300U CPU @ 1.90GHz, 1795.85 MHz cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID cpu3: 256KB 64b/line 8-way L2 cache cpu3: smt 1, core 1, package 0 ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 40 pins acpimcfg0 at acpi0 addr 0xf800, bus 0-63 acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus -1 (PEG_) acpiprt2 at acpi0: bus 2 (EXP1) acpiprt3 at acpi0: bus 3 (EXP2) acpiprt4 at acpi0: bus -1 (EXP3) acpicpu0 at acpi0: C3, C1, PSS acpicpu1 at acpi0: C3, C1, PSS acpicpu2 at acpi0: C3, C1, PSS acpicpu3 at acpi0: C3, C1, PSS acpipwrres0 at acpi0: PUBS, resource for XHCI, EHC1 acpipwrres1
problem with configuration npppd/ipsec for road warrior
Hi, i looking for a simple setup for npppd/ipsec for road warriors. We have some clients (road warriors) with dynamic ip-adresses connecting to a gateway by L2TP (macosx/ios/windows). Client (road warriors) -- GATEWAY -- Internet I just looking for a simple configuration for our openbsd5.4 gateway. I read different howtos (like http://de.slideshare.net/GiovanniBechis/npppd-easy-vpn-with-openbsd) and the man page but i do not have a clue where is the problem in my setting. cat /etc/npppd/npppd.conf tunnel L2TP protocol l2tp tunnel PPTP protocol pptp ipcp IPCP { pool-address 10.0.0.2-10.0.0.254 dns-servers 8.8.8.8 } interface pppx0 address 10.0.0.1 ipcp IPCP authentication LOCAL type local { users-file /etc/npppd/npppd-users } bind tunnel from L2TP authenticated by LOCAL to pppx0 bind tunnel from PPTP authenticated by LOCAL to pppx0 cat /etc/npppd-users mika:\ :password=.huuhstetst$oN:\ :framed-ip-address=10.0.0.101: cat /etc/ipsec.conf public_ip = 1.7.15.1 #public ip of gateway ike passive esp transport \ proto udp from $public_ip to any port 1701 \ main auth hmac-sha1 enc aes group modp2048 \ quick auth hmac-sha1 enc 3des \ psk 2h*GL]U?{i2KdneThezZnhezpbm46^kEUyjCoYvVpttM#jMkM(i sysctl | grep net.pipex.enable net.pipex.enable=1 cat /etc/pf.conf pass quick proto { esp, ah } from any to any pass in quick on egress proto udp from any to any port {500, 4500, 1701} keep state pass on enc0 from any to any keep state (if-bound) Can you give me some hints. best regards, Mika
Re : CARP problem
Did you check layer 2 connectivity it seems the secondary firewall do not receive any carp pack et Mike Message original Objet : CARP problem De : Jeff à : misc@openbsd.org Cc : I've been using CARP for years and it's always done exactly what I wanted and expected. We recently added a second ISP and another NIC to each of our firewalls. Each firewall now has 3 NIC's and three CARP interfaces. The original two are working fine, but the third CARP interface (carp2) shows up as MASTER on both the primary and failover firewalls. I have verified password, vhid and pf.conf and still can't figure out what I might have done wrong. Both firewalls have net.inet.carp.preempt=1 Here is some output from tcpdump: firewall-master 10:34:01.697488 CARPv2-advertise 36: vhid=10 advbase=1 advskew=15 demote=0 (DF) [tos 0x10] 10:34:01.975823 CARPv2-advertise 36: vhid=10 advbase=1 advskew=99 demote=0 (DF) [tos 0x10] 10:34:02.767475 CARPv2-advertise 36: vhid=10 advbase=1 advskew=15 demote=0 (DF) [tos 0x10] 10:34:03.375808 CARPv2-advertise 36: vhid=10 advbase=1 advskew=99 demote=0 (DF) [tos 0x10] 10:34:03.837465 CARPv2-advertise 36: vhid=10 advbase=1 advskew=15 demote=0 (DF) [tos 0x10] 10:34:04.776092 CARPv2-advertise 36: vhid=10 advbase=1 advskew=99 demote=0 (DF) [tos 0x10] 10:34:04.907466 CARPv2-advertise 36: vhid=10 advbase=1 advskew=15 demote=0 (DF) [tos 0x10] 10:34:05.977465 CARPv2-advertise 36: vhid=10 advbase=1 advskew=15 demote=0 (DF) [tos 0x10] 10:34:06.176254 CARPv2-advertise 36: vhid=10 advbase=1 advskew=99 demote=0 (DF) [tos 0x10] firewall-backup 10:34:42.225616 CARPv2-advertise 36: vhid=10 advbase=1 advskew=15 demote=0 (DF) [tos 0x10] 10:34:42.449469 CARPv2-advertise 36: vhid=10 advbase=1 advskew=99 demote=0 (DF) [tos 0x10] 10:34:43.295464 CARPv2-advertise 36: vhid=10 advbase=1 advskew=15 demote=0 (DF) [tos 0x10] 10:34:43.849458 CARPv2-advertise 36: vhid=10 advbase=1 advskew=99 demote=0 (DF) [tos 0x10] 10:34:44.365459 CARPv2-advertise 36: vhid=10 advbase=1 advskew=15 demote=0 (DF) [tos 0x10] 10:34:45.249484 CARPv2-advertise 36: vhid=10 advbase=1 advskew=99 demote=0 (DF) [tos 0x10] 10:34:45.435175 CARPv2-advertise 36: vhid=10 advbase=1 advskew=15 demote=0 (DF) [tos 0x10] Suggestions please? Thanks! --
problem between postfix and Courier authdaemond
Hi, i habe a little problem with authdaemond. cat /var/log/maillog May 27 21:12:30 2-2-2-2 postfix/smtps/smtpd[6446]: Anonymous TLS connection established from 1-1-1-1-di.dum.di[1.1.1.1]: TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits) May 27 21:12:30 2-2-2-2 postfix/smtps/smtpd[6446]: warning: SASL authentication failure: cannot connect to Courier authdaemond: Connection refused May 27 21:12:30 2-2-2-2 postfix/smtps/smtpd[6446]: warning: SASL authentication failure: Password verification failed cat /usr/local/lib/sasl2/smtpd.conf pwcheck_method: authdaemond authdaemond_path: courier-authdaemon-socket mech_list: PLAIN LOGIN cat /etc/postfix/main.cf . # Enable SASL authentication in the Postfix SMTP server smtpd_sasl_auth_enable = yes # Only accept mail from trusted networks, authenticated clients or mail with # a 'RCPT TO' address that Postfix is forwarder or final destination for smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination # Enable inter-operability with old SMTP clients broken_sasl_auth_clients = yes # Name of the Postfix SMTP server's local SASL authentication realm smtpd_sasl_local_domain = $mydomain cat /etc/postfix/master.cf .. # == # service type private unpriv chroot wakeup maxproc command + args # (yes) (yes) (yes) (never) (100) # == smtp inet n - n - - smtpd .. smtps inet n - - - - smtpd -o syslog_name=postfix/smtps -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes -o smtpd_client_restrictions=permit_sasl_authenticated,reject -o milter_macro_daemon_name=ORIGINATING ls -la /var/run/courier-auth/ total 16 drwxrwxr-x 2 root wheel 512 May 27 21:05 . drwxr-xr-x 6 root wheel 512 May 27 21:05 .. srwxrwxrwx 1 root wheel0 May 27 20:48 mux -rw--- 1 root wheel0 May 27 20:48 mux.accept -rw-r--r-- 1 root wheel6 May 27 21:05 pid -rw--- 1 root wheel0 May 24 22:24 pid.lock -rw--- 1 root wheel6 May 27 20:48 saslauthd.pid srwxrwxrwx 2 root wheel0 May 27 21:05 socket Everything looks good but there is no connection between postfix and courier authdaemond But where to start to find the problem? Google is not really any help... :-( best regards, Mika
Error while compiling postfix with mysql and sasl2 (stable) on openBSD 5.5 - release
Hi, i tried to compile postfix with mysql and sasl2 from stable (on openBSD 5.5 - fresh install) and ended up this error message: # cd /usr/ports/mail/postfix/stable/ # env FLAVOR=mysql sasl2 make install === Faking installation for postfix-2.11.0-sasl2-mysql install -d -o root -g bin -m 755 /usr/ports/pobj/postfix-2.11.0-sasl2-mysql/fake-amd64-sasl2-mysql/usr/local/share/examples/postfix /bin/sh: cd: /usr/ports/pobj/postfix-2.11.0/postfix-2.11.0 - No such file or directory *** Error 1 in /usr/ports/mail/postfix/stable (../Makefile.inc:109 'do-install': @(cd /usr/ports/pobj/postfix-2.11.0/postfix-2.11.0; sh post...) *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2748 '/usr/ports/pobj/postfix-2.11.0-sasl2-mysql/fake-amd64-sasl2-mysql/.fake_done') *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:1874 '/usr/ports/packages/amd64/all/postfix-2.11.0-sasl2-mysql.tgz') *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2426 '_internal-package') *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2406 'package') *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:1891 '/var/db/pkg/postfix-2.11.0-sasl2-mysql/+CONTENTS') *** Error 1 in /usr/ports/mail/postfix/stable (/usr/ports/infrastructure/mk/bsd.port.mk:2406 'install') I used google to look for a way to solve this problem but did not find one. As far I understand this compiling is fine but installing messed up. It looks like make install is looking in the wrong directory (/usr/ports/pobj/postfix-2.11.0/postfix-2.11.0 instead of /usr/ports /pobj/postfix-2.11.0-sasl2-mysql/fake-amd64-sasl2-mysql/postfix- 2.11.0/). #cat /usr/ports/pobj/postfix-2.* total 144 drwxr-xr-x 5 root wheel 1024 May 24 13:00 . drwxr-xr-x 12 root wheel512 May 24 13:18 .. -rw-r--r-- 1 root wheel 0 May 24 13:00 .build_done -rw-r--r-- 1 root wheel 0 May 24 12:59 .buildwantlibs -rw-r--r-- 1 root wheel 0 May 24 12:59 .configure_done -rw-r--r-- 1 root wheel 22 May 24 12:59 .dep-databases-mysql -rw-r--r-- 1 root wheel 10 May 24 12:48 .dep-devel-pcre -rw-r--r-- 1 root wheel 21 May 24 12:49 .dep-security-cyrus-sasl2 -rw-r--r-- 1 root wheel 0 May 24 12:59 .distpatch_done -rw-r--r-- 1 root wheel 0 May 24 12:59 .extract_done -rw-r--r-- 1 root wheel 0 May 24 12:48 .extract_started -rw-r--r-- 1 root wheel 0 May 24 12:59 .patch_done -rw-r--r-- 1 root wheel 0 May 24 12:59 .spec-c -rw-r--r-- 1 root wheel 0 May 24 12:59 .spec-crypto -rw-r--r-- 1 root wheel 0 May 24 12:59 .spec-lib-mysql-mysqlclient-ge-10 -rw-r--r-- 1 root wheel 0 May 24 12:59 .spec-pcre -rw-r--r-- 1 root wheel 0 May 24 12:59 .spec-pthread -rw-r--r-- 1 root wheel 0 May 24 12:59 .spec-sasl2 -rw-r--r-- 1 root wheel 0 May 24 12:59 .spec-sqlite3 -rw-r--r-- 1 root wheel 0 May 24 12:59 .spec-ssl drwxr-xr-x 2 root wheel512 May 24 12:48 bin drwxr-xr-x 5 root wheel512 May 24 13:00 fake-amd64-sasl2-mysql drwxr-xr-x 16 root wheel 1536 May 24 12:59 postfix-2.11.0 -rw-r--r-- 1 root wheel 57001 May 24 12:48 systrace.policy Any hints how to solve this problem? Thx for your help. Mika # dmesg OpenBSD 5.5 (GENERIC) #271: Wed Mar 5 09:31:16 MST 2014 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC real mem = 17127964672 (16334MB) avail mem = 16663453696 (15891MB) warning: no entropy supplied by boot loader mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.5 @ 0x9f400 (62 entries) bios0: vendor American Megatrends Inc. version 0603 date 09/21/2011 bios0: ASUSTeK Computer INC. M5A78L-M/USB3 acpi0 at bios0: rev 2 acpi0: sleep states S0 S1 S3 S4 S5 acpi0: tables DSDT FACP APIC MCFG OEMB HPET SSDT acpi0: wakeup devices PCE2(S4) PCE3(S4) PCE4(S4) PCE5(S4) PCE6(S4) PCE7(S4) PCE9(S4) PCEA(S4) RLAN(S4) PCEB(S4) PCEC(S4) SBAZ(S4) PS2K(S4) PS2M(S4) UAR1(S4) P0PC(S4) [...] acpitimer0 at acpi0: 3579545 Hz, 32 bits acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: AMD Phenom(tm) II X6 1055T Processor, 2812.98 MHz cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,NODEID,ITSC cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 16-way L2 cache, 6MB 64b/line 48-way L3 cache cpu0: ITLB 32 4KB entries fully associative, 16 4MB entries fully associative cpu0: DTLB 48 4KB entries fully associative, 48 4MB entries fully associative cpu0: AMD erratum 721 detected and fixed cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges cpu0: apic clock running at 200MHz cpu at mainbus0: not configured cpu at mainbus0: not configured cpu at mainbus0: not configured
Re: Error while compiling postfix with mysql and sasl2 (stable) on openBSD 5.5 - release
I tried... but did not work... # cat /etc/mk.conf SUDO=/usr/bin/sudo -E # pwd /usr/ports/mail/postfix/stable # env FLAVOR=mysql sasl2 make install /bin/sh: trap: bad signal -E rm -rf /tmp/dep_cache.hYjum72Vb *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2426 '_internal-package') *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2406 'package') *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:1891 '/var/db/pkg/postfix-2.11.0-sasl2-mysql/+CONTENTS') *** Error 1 in /usr/ports/mail/postfix/stable (/usr/ports/infrastructure/mk/bsd.port.mk:2406 'install') Or did I missed something? Thx, Mika.
Re: Error while compiling postfix with mysql and sasl2 (stable) on openBSD 5.5 - release
Thx, you make my day :D Btw. sometime I'm to blind to see my own mistakes... :-( best regards, Mika
Re: OpenNTPD warning
On Fri, May 22, 2009 at 01:15:56PM +0200, Jordi Espasa Clofent wrote: Config file says? # cat /etc/ntpd.conf # $OpenBSD: ntpd.conf,v 1.9 2008/10/10 11:46:22 sthen Exp $ # sample ntpd configuration file, see ntpd.conf(5) # Addresses to listen on (ntpd does not listen by default) listen on * # sync to a single server server yes ^^^ -- this seems to be wrong. Server line should contain ipaddress/hostname, not 'yes'. server hora.roa.es MW
CCD
I'm trying to get CCD working correctly, but it just doesn't want to. I have two identical 300GB disks that I'm trying to interleave. Here's exactly what I'm doing: # fdisk -i wd1 # fdisk -i wd3 # disklabel -E wd1 - creating one partition of type ccd spaning entire disk # disklabel -E wd3 - creating one partition of type ccd spaning entire disk # ccdconfig ccd0 32 0 /dev/wd1a /dev/wd3a # newfs /dev/ccd0c When I run newfs it only creates a 300GB filesystem, whereas it SHOULD create a 600GB file system. Any ideas? I can send the dmesg or any output if that helps (I didn't to save space). -Chris Mika
Re: CCD
I've read that. That's why I began the offset using disklabel's default setting, which is 63. Sorry, that's why I said you can ask for clarification. As for the second part, it wasn't so clear, but with FreeBSD's ccd you create the file system on /dev/ccd0c so I assumed it was the same. If you use disklabel -E ccd0 it can't get the approrpriate geometry. On Wed, 17 Jan 2007, christian widmer wrote: first: YOU WROTE: - creating one partition of type ccd spanning entire disk i take you're word then you should have a close look at 'man ccd' Note that the `raw' partitions of the disks should not be combined. Each component partition should be offset at least one cylinder from the beginning of the component disk. this is not what you said you did. second: i would use disklabel to create explicitly a partition on ccd0 (not using 'c'). but i'm not sure if this is really necessary. On Wednesday 17 January 2007 19:11, Chris Mika wrote: I'm trying to get CCD working correctly, but it just doesn't want to. I have two identical 300GB disks that I'm trying to interleave. Here's exactly what I'm doing: # fdisk -i wd1 # fdisk -i wd3 # disklabel -E wd1 - creating one partition of type ccd spaning entire disk # disklabel -E wd3 - creating one partition of type ccd spaning entire disk # ccdconfig ccd0 32 0 /dev/wd1a /dev/wd3a # newfs /dev/ccd0c When I run newfs it only creates a 300GB filesystem, whereas it SHOULD create a 600GB file system. Any ideas? I can send the dmesg or any output if that helps (I didn't to save space). -Chris Mika
Re: CCD
I sat down and calculated one cylinder, and it's not 63 sectors, it's 1008. So I redid the disklabel and it seems to be working. I ran newfs and it's reporting 600GB. You can't create a partition on ccd0, you must use ccd0c. On Wed, 17 Jan 2007, Chris Mika wrote: I've read that. That's why I began the offset using disklabel's default setting, which is 63. Sorry, that's why I said you can ask for clarification. As for the second part, it wasn't so clear, but with FreeBSD's ccd you create the file system on /dev/ccd0c so I assumed it was the same. If you use disklabel -E ccd0 it can't get the approrpriate geometry. On Wed, 17 Jan 2007, christian widmer wrote: first: YOU WROTE: - creating one partition of type ccd spanning entire disk i take you're word then you should have a close look at 'man ccd' Note that the `raw' partitions of the disks should not be combined. Each component partition should be offset at least one cylinder from the beginning of the component disk. this is not what you said you did. second: i would use disklabel to create explicitly a partition on ccd0 (not using 'c'). but i'm not sure if this is really necessary. On Wednesday 17 January 2007 19:11, Chris Mika wrote: I'm trying to get CCD working correctly, but it just doesn't want to. I have two identical 300GB disks that I'm trying to interleave. Here's exactly what I'm doing: # fdisk -i wd1 # fdisk -i wd3 # disklabel -E wd1 - creating one partition of type ccd spaning entire disk # disklabel -E wd3 - creating one partition of type ccd spaning entire disk # ccdconfig ccd0 32 0 /dev/wd1a /dev/wd3a # newfs /dev/ccd0c When I run newfs it only creates a 300GB filesystem, whereas it SHOULD create a 600GB file system. Any ideas? I can send the dmesg or any output if that helps (I didn't to save space). -Chris Mika
Re: CCD
Although I did get an error: # newfs /dev/ccd0c newfs: /dev/ccd0c: not a character-special device, but it still ran. Any suggestions anyone? Can this be ignored (I'm guessing since it printed it it can't be)? On Wed, 17 Jan 2007, Chris Mika wrote: I sat down and calculated one cylinder, and it's not 63 sectors, it's 1008. So I redid the disklabel and it seems to be working. I ran newfs and it's reporting 600GB. You can't create a partition on ccd0, you must use ccd0c. On Wed, 17 Jan 2007, Chris Mika wrote: I've read that. That's why I began the offset using disklabel's default setting, which is 63. Sorry, that's why I said you can ask for clarification. As for the second part, it wasn't so clear, but with FreeBSD's ccd you create the file system on /dev/ccd0c so I assumed it was the same. If you use disklabel -E ccd0 it can't get the approrpriate geometry. On Wed, 17 Jan 2007, christian widmer wrote: first: YOU WROTE: - creating one partition of type ccd spanning entire disk i take you're word then you should have a close look at 'man ccd' Note that the `raw' partitions of the disks should not be combined. Each component partition should be offset at least one cylinder from the beginning of the component disk. this is not what you said you did. second: i would use disklabel to create explicitly a partition on ccd0 (not using 'c'). but i'm not sure if this is really necessary. On Wednesday 17 January 2007 19:11, Chris Mika wrote: I'm trying to get CCD working correctly, but it just doesn't want to. I have two identical 300GB disks that I'm trying to interleave. Here's exactly what I'm doing: # fdisk -i wd1 # fdisk -i wd3 # disklabel -E wd1 - creating one partition of type ccd spaning entire disk # disklabel -E wd3 - creating one partition of type ccd spaning entire disk # ccdconfig ccd0 32 0 /dev/wd1a /dev/wd3a # newfs /dev/ccd0c When I run newfs it only creates a 300GB filesystem, whereas it SHOULD create a 600GB file system. Any ideas? I can send the dmesg or any output if that helps (I didn't to save space). -Chris Mika
Re: CCD
Sorry, I was just looking at the other problem to hard to notice the obvious! # newfs ccd0c, not /dev/ccd0c. On Wed, 17 Jan 2007, Chris Mika wrote: Although I did get an error: # newfs /dev/ccd0c newfs: /dev/ccd0c: not a character-special device, but it still ran. Any suggestions anyone? Can this be ignored (I'm guessing since it printed it it can't be)? On Wed, 17 Jan 2007, Chris Mika wrote: I sat down and calculated one cylinder, and it's not 63 sectors, it's 1008. So I redid the disklabel and it seems to be working. I ran newfs and it's reporting 600GB. You can't create a partition on ccd0, you must use ccd0c. On Wed, 17 Jan 2007, Chris Mika wrote: I've read that. That's why I began the offset using disklabel's default setting, which is 63. Sorry, that's why I said you can ask for clarification. As for the second part, it wasn't so clear, but with FreeBSD's ccd you create the file system on /dev/ccd0c so I assumed it was the same. If you use disklabel -E ccd0 it can't get the approrpriate geometry. On Wed, 17 Jan 2007, christian widmer wrote: first: YOU WROTE: - creating one partition of type ccd spanning entire disk i take you're word then you should have a close look at 'man ccd' Note that the `raw' partitions of the disks should not be combined. Each component partition should be offset at least one cylinder from the beginning of the component disk. this is not what you said you did. second: i would use disklabel to create explicitly a partition on ccd0 (not using 'c'). but i'm not sure if this is really necessary. On Wednesday 17 January 2007 19:11, Chris Mika wrote: I'm trying to get CCD working correctly, but it just doesn't want to. I have two identical 300GB disks that I'm trying to interleave. Here's exactly what I'm doing: # fdisk -i wd1 # fdisk -i wd3 # disklabel -E wd1 - creating one partition of type ccd spaning entire disk # disklabel -E wd3 - creating one partition of type ccd spaning entire disk # ccdconfig ccd0 32 0 /dev/wd1a /dev/wd3a # newfs /dev/ccd0c When I run newfs it only creates a 300GB filesystem, whereas it SHOULD create a 600GB file system. Any ideas? I can send the dmesg or any output if that helps (I didn't to save space). -Chris Mika
Re: Wireless Kernel Panic
On Wed, 11 Oct 2006, Damien Bergamini wrote: | Here are the appropriate dmesg lines: | ral0 at pci1 dev 9 function 0 Ralink RT2561S rev 0x00: irq 12, address | 00:16:b6:98:85:1f | ral0: MAC/BBP RT2661B, RF RT2527 Another appropriate dmesg line would have been the OS version and the architecture it runs on ;) 3.9 cpu0: Intel(R) Celeron(R) CPU 1.70GHz (GenuineIntel 686-class) 1.70 GHzB | If I use /etc/hostname.ral0 (up mediaopt hostap nwid seenothing.org chan | 11 nwkey foobarfoobarf) to configure at boot or /sbin/ifconfig (using | the same as above) to configure at runtime the kernel panics with this | message: | uvm_fault(0xd6e45dc4, 0x0, 0, 1) - e | kernel: page fault trap, code=0 | Stopped at i80211_release_node +0x16 movl 0x 01(%esi), %ebx | | Is this a bad card? Is this a memory issue with the card itself? Is this | card not supported in hostap mode (although everything I've read says that | it is)? Am I configuring it incorrectly? Any help would be appreciated. More likely a problem in the ral(4) driver itself. Can you try to modify your /etc/hostname.ral0 like this: mediaopt hostap nwid seenothing.org chan 11 nwkey foobarfoobarf up Nope, same thing. Kernel panics and drops to the debugger. (ie put the up at the end). Otherwise, the card will be reset about 4 times. Thanks, Damien
Wireless Kernel Panic
I'm trying to install a Linksys G (WMP54G) wireless pci adapter. I've checked the man pages for the ral driver and this is one of the cards listed as being supported. Here are the appropriate dmesg lines: ral0 at pci1 dev 9 function 0 Ralink RT2561S rev 0x00: irq 12, address 00:16:b6:98:85:1f ral0: MAC/BBP RT2661B, RF RT2527 Here is the output from /sbin/ifconfig: ral0: flags=8902BROADCAST,PROMISC,SIMPLEX,MULTICAST mtu 1500 lladdr 00:16:b6:98:85:1f media: IEEE802.11 autoselect (DS1) status: no network ieee80211: nwid 100dBm If I use /etc/hostname.ral0 (up mediaopt hostap nwid seenothing.org chan 11 nwkey foobarfoobarf) to configure at boot or /sbin/ifconfig (using the same as above) to configure at runtime the kernel panics with this message: uvm_fault(0xd6e45dc4, 0x0, 0, 1) - e kernel: page fault trap, code=0 Stopped at i80211_release_node +0x16 movl 0x 01(%esi), %ebx Is this a bad card? Is this a memory issue with the card itself? Is this card not supported in hostap mode (although everything I've read says that it is)? Am I configuring it incorrectly? Any help would be appreciated. -Chris Mika