Re: dhcpleased with option dhcp-client-identifier

2021-08-27 Thread Olivier Cherrier
On Wed, Aug 18, 2021 at 07:48:10PM +0200, flor...@openbsd.org wrote:
> > It seems dhcpleased is automatically adding the hostname of the machine
> > in the DHCP message. That's the first instance of "browser" seen above.
> >
> > dhcpd(8) doesn't seem to catch correctly the client identifier. Is it
> > supposed to work like that ?
> 
> They both send the hostname, that's not the problem. Opinions differ on how
> the client ID should be encoded.
> 
> > Aug 13 18:10:11.599556 fe:e1:bb:d1:b2:92 ff:ff:ff:ff:ff:ff 0800 342:
> > 0.0.0.0.68 > 255.255.255.255.67: [udp sum ok] xid:0xba962e2
> > vend-rfc1048 DHCP:REQUEST HN:"browser"
>  hostname
> 
> > CID:0.98.114.111.119.115.101.114 PR:SM+DG+NS+HN+DN+BR+119+121
>   ^^^ client id
> 
> > RQ:192.168.1.98 [tos 0x10] (ttl 128, id 0, len 328)
> 
> > Aug 13 18:12:13.530188 fe:e1:bb:d1:c2:c4 fe:e1:ba:d0:b7:ec 0800 342:
> > 192.168.1.219.68 > 192.168.1.12.67: [udp sum ok] xid:0xfbdfb850
> > secs:4188 C:192.168.1.219 vend-rfc1048 DHCP:REQUEST HN:"rex"
>   ^^^ hostname
> > PR:SM+BR+TZ+121+DG+DN+119+NS+HN+BF+TFTP CID:114.101.120 [tos 0x10]
>   ^^^ client id
> > (ttl 128, id 38490, len 328)
> 
> dhclient sends this as client id:
> CID:114.101.120
> 
> Which is hardware type 114 and hardware address 101.120 (in decimal)
> Interpreted as ascii this is of course "rex".
> 
> RFC 2132 has this:
>The client identifier MAY consist of type-value pairs similar to the
>'htype'/'chaddr' fields defined in [3]. For instance, it MAY consist
>of a hardware type and hardware address. In this case the type field
>SHOULD be one of the ARP hardware types defined in STD2 [22].  A
>hardware type of 0 (zero) should be used when the value field
>contains an identifier other than a hardware address (e.g. a fully
>qualified domain name).
> 
> dhcpleased sends this:
> CID:0.98.114.111.119.115.101.114
> 
> Which is hardware type 0 + "browser"
> 
> dhcpleased.conf has this:
>  send client id client-id
>  Send the dhcp client identifier option with a value of client-id.
>  If client-id consists of a series of octets of two-digit
>  hexadecimal numbers separated by colons, the first octet is used
>  as the type and the rest as value.  The MAC address
>  00:53:FF:AA:BB:CC would be configured as
> 
>send client id "01:00:53:FF:AA:BB:CC"
> 
>  Otherwise the string client-id is sent verbatim with type zero.
>  The default is to send the interface's MAC address as client
>  identifier.
> 
> now, what will probably work for you is:
> 
>   send client id "00:62:72:6f:77:73:65:72"
> 
> So in short, everything is terrible.
> 
> Should dhcpleased do what dhclient does?
> People who actually use this please speak up.
> 


Thanks you Florian for the detailed explanation. Appreciated.
Best.

-- 
Olivier Cherrier
Phone: +352691570680
mailto:o...@symacx.com



dhcpleased with option dhcp-client-identifier

2021-08-18 Thread Olivier Cherrier
Hi,

I have a DHCP setup using dhcp-client-identifier option.

On the DHCP server side, i use something similar to this:
---8< /etc/dhcpd.conf
host rex {
option dhcp-client-identifier "rex";
fixed-address 192.168.1.219;
}
--->8


On the clients, I use to configure them like that:
$ grep -v '^#' /etc/dhclient.conf 
send dhcp-client-identifier "rex";
$


Using -current and dhcpleased, I tried to configure it this way:
---8< /etc/dhcpleased.conf
interface vio0 {
send client id browser
}
--->8


But the generated packet doesn't seem to be well interpreted by dhcpd.
Old packet (from dhclient machine called 'rex') is attached
in packet_dhclient.txt and the new packet (from dhcpleased machine
called 'browser') is attached in packet_dhcpleased.txt.

The diff show some differences:

19,22c19,22
<   0110:    6382 5363 3501 030c 0372  ..c.Sc5r
<   0120: 6578 370b 011c 0279 030f 7706 0c43 423d  ex7y..w..CB=
<   0130: 0372 6578 ff00       .rex
<   0140:          
---
>   0110:    6382 5363 3501 030c 0762  ..c.Sc5b
>   0120: 726f 7773 6572 3d08 0062 726f 7773 6572  rowser=..browser
>   0130: 3708 0103 060c 0f1c 7779 3204 c0a8 0162  7...wy2b
>   0140: ff00         


It seems dhcpleased is automatically adding the hostname of the machine
in the DHCP message. That's the first instance of "browser" seen above.

dhcpd(8) doesn't seem to catch correctly the client identifier. Is it
supposed to work like that ?

Thanks for any advice.
Best.

-- 
Olivier Cherrier
Phone: +352691570680
mailto:o...@symacx.com
Aug 13 18:12:13.530188 fe:e1:bb:d1:c2:c4 fe:e1:ba:d0:b7:ec 0800 342: 
192.168.1.219.68 > 192.168.1.12.67: [udp sum ok]  xid:0xfbdfb850 secs:4188 
C:192.168.1.219 vend-rfc1048 DHCP:REQUEST HN:"rex" 
PR:SM+BR+TZ+121+DG+DN+119+NS+HN+BF+TFTP CID:114.101.120 [tos 0x10] (ttl 128, id 
38490, len 328)
  : fee1 bad0 b7ec fee1 bbd1 c2c4 0800 4510  ..E.
  0010: 0148 965a  8011 1f03 c0a8 01db c0a8  .H.Z
  0020: 010c 0044 0043 0134 aa3e 0101 0600 fbdf  ...D.C.4.>..
  0030: b850 105c  c0a8 01db     .P.\
  0040:    fee1 bbd1 c2c4    
  0050:          
  0060:          
  0070:          
  0080:          
  0090:          
  00a0:          
  00b0:          
  00c0:          
  00d0:          
  00e0:          
  00f0:          
  0100:          
  0110:    6382 5363 3501 030c 0372  ..c.Sc5r
  0120: 6578 370b 011c 0279 030f 7706 0c43 423d  ex7y..w..CB=
  0130: 0372 6578 ff00       .rex
  0140:          
  0150:      ..

Aug 13 18:10:11.599556 fe:e1:bb:d1:b2:92 ff:ff:ff:ff:ff:ff 0800 342: 0.0.0.0.68 
> 255.255.255.255.67: [udp sum ok]  xid:0xba962e2 vend-rfc1048 DHCP:REQUEST 
HN:"browser" CID:0.98.114.111.119.115.101.114 PR:SM+DG+NS+HN+DN+BR+119+121 
RQ:192.168.1.98 [tos 0x10] (ttl 128, id 0, len 328) 
   
  :    fee1 bbd1 b292 0800 4510  ..E.
  0010: 0148   8011 3996     .H..9...
  0020:  0044 0043 0134 9006 0101 0600 0ba9  ...D.C.4
  0030: 62e2         b...
  0040:    fee1 bbd1 b292    
  0050:          
  0060:          
  0070:          
  0080:          
  0090:          
  00a0:          
  00b0:          
  00c0:          
  00d0:          
  00e0:          
  00f0:  

Re: ospf on wg(4)

2021-01-30 Thread Olivier Cherrier
On Fri, Jan 29, 2021 at 10:32:45PM +0100, bast...@durel.org wrote:
> 

Hello Bastien,

> It is possible, I use it myself. You have to allow multicast address on
> wg(4) interface(s):
> 225.0.0.5 for all OSPF routers
> 224.0.0.6 for all DR/BDR
 
Arfff indeed.
Thank you for helping me on this. It works now.

(Note it is 224.0.0.5 and 224.0.0.6 though).

Best. 

-- 
Olivier



ospf on wg(4)

2021-01-29 Thread Olivier Cherrier
Hi,

I'm trying to setup OSPF on a working Wireguard VPN using 6.8 amd64
machines. This is what I get:

# ospfd -dvvv
id = "172.26.1.1"
startup
kr_init: priority filter enabled
orig_rtr_lsa: area 0.0.0.0
orig_rtr_lsa: stub net, interface wg0
if_fsm: event UP resulted in action START and changing state for
interface wg0 from DOWN to P2P
send_packet: error sending packet to 224.0.0.5 on interface wg0: Network
is unreachable
send_hello: Network is unreachable
[...]



# ifconfig wg0
wg0: flags=80c3 mtu 1420
index 23 priority 0 llprio 3
wgport 33222
wgpubkey XXX
wgpeer YYY
wgpka 23 (sec)
wgendpoint A.B.C.D 31502
tx: 4317366604, rx: 382870060
last handshake: 47 seconds ago
wgaip 192.168.1.0/24
wgaip 172.26.1.3/32
wgpeer WWW
wgpka 23 (sec)
wgendpoint E.F.G.H 15776
tx: 609183380, rx: 1523684
last handshake: 1 seconds ago
wgaip 172.26.0.0/24
wgaip 172.26.1.2/32
groups: wg
inet 172.26.1.1 netmask 0xff00 broadcast 172.26.1.255


Is it possible to use a wg(4) interface for ospfd(8)?

Thank you,
Best.

-- 
Olivier Cherrier
Phone: +352691570680
mailto:o...@symacx.com



Re: Alix 2d13 and OpenBSD 6.5 Problems

2019-10-02 Thread Olivier Cherrier
On Wed, Oct 02, 2019 at 11:16:21AM +0200, s...@stsp.name wrote:
> Try adding swap space.
> I have added 2GB of swap space on my alix and it has been running fine ever 
> since.
 
On mine (only 32 MB of swap), I had to disable kernel relinking.
Otherwise, the system more or less collapses at boot time.

-- 
Olivier Cherrier
mailto:o...@symacx.com



PF: divert-to with bridge

2019-08-15 Thread Olivier Cherrier
Hi,

I'm experiencing similar issue than
https://marc.info/?l=openbsd-misc=136934201423696=2
with -current on an i386 APU2.

The problem is the divert-to rule is not working on interfaces that are
part of a bridge(4).

Is it a know issue?

Thank you,
Best

-- 
Olivier Cherrier
Phone: +352691754777
mailto:o...@symacx.com



Re: OpenBSD VMM VMs Crash

2018-04-10 Thread Olivier Cherrier
On Sat, Apr 07, 2018 at 11:46:42AM -0700, mlar...@azathoth.net wrote:
> > So i looked up logs and stuff and came to the point that my issues are
> > exactly this ones:
> > http://openbsd-archive.7691.n7.nabble.com/vmd-VMs-are-stopping-with-vcpu-0-run-ioctl-failed-Invalid-argument-td333259.html
> > 
> > It seems the issue was not further discussed and/or fixed?
> > 
> > Regards,
> > Aaron
> > 
> > -- 
> > Web: https://drkhsh.at/ or http://drkhsh5rv6pnahas.onion/
> > Gopher: gopher://drkhsh.at or gopher://drkhsh5rv6pnahas.onion
> > GPG: 0x7A65E38D55BE96FE
> > Fingerprint: 4688 907C 8720 3318 0D9F AFDE 7A65 E38D 55BE 96FE
> > 
> 
> You are jumping to conclusions.
> 
> All we know is that your VMs failed to run at some point. Whether or not it
> is "exactly the same" as that other post is unknown, since you didn't run 
> with 
> VMM_DEBUG and give us any more info. Or even submit a proper bug report.
> 
> For what it's worth, I'm still working on that other issue.
 
For me, the issue never went away.
I would say it is even more frequent now than before (end of 2017).


-- 
Olivier Cherrier
Phone: +352691754777
mailto:o...@symacx.com



Re: vmd: VMs are stopping with: vcpu 0 run ioctl failed: Invalid argument

2018-01-17 Thread Olivier Cherrier
On Wed, Jan 17, 2018 at 09:30:18AM +, o...@symacx.com wrote:
> > This looks like a custom kernel, can you run the latest snapshot, as-is?
>  
> The only change I made is related to /sys/dev/ic/pckbc.c in order to
> have a working trackpad.
> 
> > Might want to either comment out the interface for "uplink" or remove it
> > altogether.
>  
> OK, commented out.
> I am upgrading the physical machine with VMM_DEBUG.
 

Now, everything is running current.
After reboot, vmd started the am-azure VM.   It worked fine for a few
hours and it just stopped. Here are the kernel messages:

Jan 17 14:35:29 stanislas /bsd: vmx_handle_exit: unhandled exit 0x31 (EPT 
misconfiguration)
Jan 17 14:35:29 stanislas vmd[86737]: vcpu_run_loop: vm 1 / vcpu 0 run ioctl 
failed: Invalid argument
Jan 17 14:35:30 stanislas /bsd: vmm_free_vpid: freed VPID/ASID 1

I hope it helps.
Thanks

-- 
Olivier Cherrier
Phone: +352691754777
mailto:o...@symacx.com



Re: vmd: VMs are stopping with: vcpu 0 run ioctl failed: Invalid argument

2018-01-17 Thread Olivier Cherrier
On Tue, Jan 16, 2018 at 09:20:57PM -0800, cardena...@gmail.com wrote:
> > Only OpenBSD involved here. The physical machine's dmesg is attached.
> > My /etc/vm.conf configuration file is also attached.
> > 
> > I don't think it is related to memory exhaustion since it sometimes
> > happens when the machine is not loaded (cpu and memory).
> > 
> > > I would add:
> > > * What was your "vmctl start ..." command?
> >  
> > Here, I did use : vmd -d
> > 
> > Will try by recompiling with VMM_DEBUG.
> > 
> > Thanks a lot,
> > Best
> > Olivier
> 
> Ok...see comments inline
> 
> > OpenBSD 6.2-current (GENERIC.MP) #2: Thu Dec  7 10:13:35 CET 2017
> > o...@stanislas.symacx.com:/sys/arch/amd64/compile/GENERIC.MP
> This looks like a custom kernel, can you run the latest snapshot, as-is?
 
The only change I made is related to /sys/dev/ic/pckbc.c in order to
have a working trackpad.

> > vm "openbsd.vm" {
> > disable
> > boot $sets "bsd.rd"
> > 
> > # First disk from 'vmctl create "/home/vm/OpenBSD.img" -s 4G'
> > disk "/home/vm/OpenBSD.img"
> > 
> > # Second disk from OpenBSD contains the install sets
> > disk $sets "install60.fs"
> > 
> > # Interface will show up as tap(4) on the host and as vio(4) in the VM
> > interface { switch "uplink" }
> > interface { switch "local" }
> > }
> Might want to either comment out the interface for "uplink" or remove it
> altogether.
 
OK, commented out.

> > vm "puffy1" {
> > owner oc
> > disable
> > memory 512M
> > boot $sets "bsd"
> > disk $sets "puffy1.img"
> > 
> > # Use a specific tap(4) interface with a hardcoded MAC address
> > # local interface tap
> > interface {
> > switch "local"
> > lladdr 00:11:22:33:44:55
> > }
> > }
> > vm "puffy2" {
> > owner oc
> > disable
> > memory 1024M
> > # boot $sets "current/bsd.rd"
> > disk $sets "puffy2.img"
> > disk $sets "puffy2_data0.img"
> > 
> > # Use a specific tap(4) interface with a hardcoded MAC address
> > # local interface tap
> > interface {
> > switch "local"
> > lladdr 00:11:22:33:44:56
> > }
> > }
> > vm "am-azure" {
> > owner oc
> > memory 1024M
> > # boot $sets "current/bsd.rd"
> > disk $sets "am-azure.img"
> > disk $sets "am-azure_data0.img"
> > 
> > # Use a specific tap(4) interface with a hardcoded MAC address
> > # local interface tap
> > interface {
> > switch "local"
> > lladdr 00:11:22:33:44:57
> > }
> > }
> 
> Ok...it's unclear which version the guest(s) are running.  Can you
> have the guest run the latest snapshot (same as the host) so we can
> narrow the variables?
 
Guests are running various versions of current. I have this problem with
the latest snapshot as well:
$ sysctl kern.version   
kern.version=OpenBSD 6.2-current (GENERIC) #359: Mon Jan 15 22:32:02 MST 2018
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC

It happens if I run only puffy1, puffy1 and puffy2 or only am-azure.

> Also, which vm was giving issue?

All of them.
I am upgrading the physical machine with VMM_DEBUG.

BTW, congratulations for the hardware support (ACPI, ...). This laptop
goes to suspend multiple times a day and everything still works after
more than a month:
10:23:43 oc@stanislas $ uptime 
10:23AM  up 41 days, 9 mins, 16 users, load averages: 1.01, 1.23, 0.97
10:23:44 oc@stanislas $ 


Thanks

-- 
Olivier Cherrier
Phone: +352691754777
mailto:o...@symacx.com



Re: vmd: VMs are stopping with: vcpu 0 run ioctl failed: Invalid argument

2018-01-16 Thread Olivier Cherrier
On Tue, Jan 16, 2018 at 06:56:04AM -0800, cardena...@gmail.com wrote:
> > Here is what I typically get :
> >
> > ...
> > vionet queue notify - no space, dropping packet
> > vionet queue notify - no space, dropping packet
> > vionet queue notify - no space, dropping packet
> > vionet queue notify - no space, dropping packet
> > vionet queue notify - no space, dropping packet
> > vionet queue notify - no space, dropping packet
> > vionet queue notify - no space, dropping packet
> > vcpu_run_loop: vm 23 / vcpu 0 run ioctl failed: Invalid argument
> > vmm_sighdlr: handling signal 20
> > vmm_sighdlr: attempting to terminate vm 4
> > terminate_vm: terminating vmid 23
> > vmm_sighdlr: calling vm_remove
> > vm_remove: removing vm id 4 from running config
> > vm_remove: calling vm_stop
> > vm_stop: stopping vm 4
> > vmd_dispatch_vmm: handling TERMINATE_EVENT for vm id 4 ret 22
> > vmd_dispatch_vmm: about to stop vm id 4
> > vm_stop: stopping vm 4
> >
> > > to enable VMM_DEBUG in sys/arch/amd64/amd64/vmm.c and rebuild the kernel.
> >
> > Will try that.
> >
> > Thank you!
> > Best
> > Olivier
> >
> 
> Thanks for reporting the symptoms Olivier.
> 
> In order for us to reproduce this and find the root cause, we're going
> to need the info that Mike was asking:
> * What guest VM are you running here?
> * How much memory are you assigning?
 
Hi Carlos,

Only OpenBSD involved here. The physical machine's dmesg is attached.
My /etc/vm.conf configuration file is also attached.

I don't think it is related to memory exhaustion since it sometimes
happens when the machine is not loaded (cpu and memory).

> I would add:
> * What was your "vmctl start ..." command?
 
Here, I did use : vmd -d

Will try by recompiling with VMM_DEBUG.

Thanks a lot,
Best
Olivier
OpenBSD 6.2-current (GENERIC.MP) #2: Thu Dec  7 10:13:35 CET 2017
o...@stanislas.symacx.com:/sys/arch/amd64/compile/GENERIC.MP
real mem = 4188946432 (3994MB)
avail mem = 4054945792 (3867MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.0 @ 0x87ee6000 (43 entries)
bios0: vendor American Megatrends Inc. version "5.11" date 06/03/2016
bios0: Notebook N24_25JU
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC FPDT FIDT MCFG HPET SSDT SSDT DBGP DBG2 SSDT UEFI 
SSDT DMAR ASF!
acpi0: wakeup devices PEGP(S4) PEG0(S4) PEGP(S4) PEG1(S4) PEGP(S4) PEG2(S4) 
PXSX(S4) RP17(S4) PXSX(S4) RP18(S4) PXSX(S4) RP19(S4) PXSX(S4) RP20(S4) 
PXSX(S4) RP01(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) Pentium(R) CPU 4405U @ 2.10GHz, 2095.80 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,EST,TM2,SSSE3,SDBG,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,ERMS,INVPCID,RDSEED,SMAP,CLFLUSHOPT,PT,SENSOR,ARAT
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 24MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Pentium(R) CPU 4405U @ 2.10GHz, 2095.14 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,EST,TM2,SSSE3,SDBG,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,ERMS,INVPCID,RDSEED,SMAP,CLFLUSHOPT,PT,SENSOR,ARAT
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 1 (application processor)
cpu2: Intel(R) Pentium(R) CPU 4405U @ 2.10GHz, 2095.14 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,EST,TM2,SSSE3,SDBG,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,ERMS,INVPCID,RDSEED,SMAP,CLFLUSHOPT,PT,SENSOR,ARAT
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 1, core 0, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Pentium(R) CPU 4405U @ 2.10GHz, 2095.14 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,EST,TM2,SSSE3,SDBG,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,ERMS,INVPCID,RDSEED,SMAP,CLFLUSHOPT,PT,SENSOR,ARAT
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 

Re: vmd: VMs are stopping with: vcpu 0 run ioctl failed: Invalid argument

2018-01-16 Thread Olivier Cherrier
On Thu, Dec 21, 2017 at 10:57:12AM -0800, mlar...@azathoth.net wrote:
> > Hi,
> > 
> > I am running ~ current on amd64 (dmesg attached) and am experiencing
> > vmd crashes. The processes responsible for operating the VMs are
> > disappearing and I get the following messages in deamon:
> > 
> > Dec 20 12:26:32 stanislas vmd[38693]: vcpu_run_loop: vm 14 / vcpu 0 run 
> > ioctl failed: Invalid argument
> > Dec 20 12:26:32 stanislas vmd[98389]: vcpu_run_loop: vm 15 / vcpu 0 run 
> > ioctl failed: Invalid argument
> > 
> > It happens randomly. Generally the VMs are staying up for a few hours.
> > Is there anything I can do to troubleshoot ?
> > 
> 
> Could be anything. What guest VM are you running here? And how much memory are
> you assigning?
> 
> A useful option is to run vmd manually (rcctl stop vmd && vmd -d), and/or

Here is what I typically get :

...
vionet queue notify - no space, dropping packet
vionet queue notify - no space, dropping packet
vionet queue notify - no space, dropping packet
vionet queue notify - no space, dropping packet
vionet queue notify - no space, dropping packet
vionet queue notify - no space, dropping packet
vionet queue notify - no space, dropping packet
vcpu_run_loop: vm 23 / vcpu 0 run ioctl failed: Invalid argument
vmm_sighdlr: handling signal 20
vmm_sighdlr: attempting to terminate vm 4
terminate_vm: terminating vmid 23
vmm_sighdlr: calling vm_remove
vm_remove: removing vm id 4 from running config
vm_remove: calling vm_stop
vm_stop: stopping vm 4
vmd_dispatch_vmm: handling TERMINATE_EVENT for vm id 4 ret 22
vmd_dispatch_vmm: about to stop vm id 4
vm_stop: stopping vm 4

> to enable VMM_DEBUG in sys/arch/amd64/amd64/vmm.c and rebuild the kernel.

Will try that.

Thank you!
Best
Olivier



vmd: VMs are stopping with: vcpu 0 run ioctl failed: Invalid argument

2017-12-21 Thread Olivier Cherrier

Hi,

I am running ~ current on amd64 (dmesg attached) and am experiencing
vmd crashes. The processes responsible for operating the VMs are
disappearing and I get the following messages in deamon:

Dec 20 12:26:32 stanislas vmd[38693]: vcpu_run_loop: vm 14 / vcpu 0 run ioctl 
failed: Invalid argument
Dec 20 12:26:32 stanislas vmd[98389]: vcpu_run_loop: vm 15 / vcpu 0 run ioctl 
failed: Invalid argument

It happens randomly. Generally the VMs are staying up for a few hours.
Is there anything I can do to troubleshoot ?

Thank you,
Best

-- 
Olivier Cherrier
Phone: +352691754777
mailto:o...@symacx.com
OpenBSD 6.2-current (GENERIC.MP) #2: Thu Dec  7 10:13:35 CET 2017
o...@stanislas.symacx.com:/sys/arch/amd64/compile/GENERIC.MP
real mem = 4188946432 (3994MB)
avail mem = 4054945792 (3867MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.0 @ 0x87ee6000 (43 entries)
bios0: vendor American Megatrends Inc. version "5.11" date 06/03/2016
bios0: Notebook N24_25JU
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC FPDT FIDT MCFG HPET SSDT SSDT DBGP DBG2 SSDT UEFI 
SSDT DMAR ASF!
acpi0: wakeup devices PEGP(S4) PEG0(S4) PEGP(S4) PEG1(S4) PEGP(S4) PEG2(S4) 
PXSX(S4) RP17(S4) PXSX(S4) RP18(S4) PXSX(S4) RP19(S4) PXSX(S4) RP20(S4) 
PXSX(S4) RP01(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) Pentium(R) CPU 4405U @ 2.10GHz, 2095.80 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,EST,TM2,SSSE3,SDBG,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,ERMS,INVPCID,RDSEED,SMAP,CLFLUSHOPT,PT,SENSOR,ARAT
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 24MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Pentium(R) CPU 4405U @ 2.10GHz, 2095.14 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,EST,TM2,SSSE3,SDBG,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,ERMS,INVPCID,RDSEED,SMAP,CLFLUSHOPT,PT,SENSOR,ARAT
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 1 (application processor)
cpu2: Intel(R) Pentium(R) CPU 4405U @ 2.10GHz, 2095.14 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,EST,TM2,SSSE3,SDBG,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,ERMS,INVPCID,RDSEED,SMAP,CLFLUSHOPT,PT,SENSOR,ARAT
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 1, core 0, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Pentium(R) CPU 4405U @ 2.10GHz, 2095.14 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,EST,TM2,SSSE3,SDBG,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,ERMS,INVPCID,RDSEED,SMAP,CLFLUSHOPT,PT,SENSOR,ARAT
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 120 pins
acpimcfg0 at acpi0 addr 0xe000, bus 0-255
acpihpet0 at acpi0: 2399 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG0)
acpiprt2 at acpi0: bus -1 (PEG1)
acpiprt3 at acpi0: bus -1 (PEG2)
acpiprt4 at acpi0: bus -1 (RP17)
acpiprt5 at acpi0: bus -1 (RP18)
acpiprt6 at acpi0: bus -1 (RP19)
acpiprt7 at acpi0: bus -1 (RP20)
acpiprt8 at acpi0: bus 1 (RP01)
acpiprt9 at acpi0: bus 2 (RP02)
acpiprt10 at acpi0: bus -1 (RP03)
acpiprt11 at acpi0: bus -1 (RP04)
acpiprt12 at acpi0: bus -1 (RP05)
acpiprt13 at acpi0: bus -1 (RP06)
acpiprt14 at acpi0: bus -1 (RP07)
acpiprt15 at acpi0: bus -1 (RP08)
acpiprt16 at acpi0: bus 3 (RP09)
acpiprt17 at acpi0: bus -1 (RP10)
acpiprt18 at acpi0: bus -1 (RP11)
acpiprt19 at acpi0: bus -1 (RP12)
acpiprt20 at acpi0: bus -1 (RP13)
acpiprt21 at acpi0: bus -1 (RP14)
acpiprt22 at acpi0: bus -1 (RP15)
acpiprt23 at acpi0: bus -1 (RP16)
acpiec0 at acpi0
acpicpu0 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33), 
C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33), 
C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: C3(200@1034 mwait.1

qla card

2017-11-12 Thread Olivier Cherrier

Hi,

I am trying to use a QLogic ISP2312 card (dual port) on current and it
fails to initialize :

qla0 at pci4 dev 5 function 0 "QLogic ISP2312" rev 0x02: apic 6 int 20
ISP couldn't exec firmware: 2
qla1 at pci4 dev 5 function 1 "QLogic ISP2312" rev 0x02: apic 6 int 21
qla1: firmware load failed


Is there anything special to do ?

Full dmesg attached.
(My X6 kernel config is just GENERIC.MP with «ulpt* at uhub?  disable».)

Thank you !
Best

Olivier
OpenBSD 6.2-beta (X6) #6: Tue Nov  7 22:47:00 CET 2017
o...@x6.symacx.com:/sys/arch/amd64/compile/X6
real mem = 10450632704 (9966MB)
avail mem = 10126848000 (9657MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0x9f400 (70 entries)
bios0: vendor American Megatrends Inc. version "3030" date 07/11/2012
bios0: ASUSTeK Computer INC. M4A89GTD-PRO/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) PCEB(S4) PCEC(S4) SBAZ(S4) P0PC(S4) UHC1(S4) UHC2(S4) 
USB3(S4) UHC4(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 1090T Processor, 2408.63 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,PAGE1GB,RDTSCP,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: TSC frequency 2408631810 Hz
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 200MHz
cpu0: mwait min=64, max=64, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD Phenom(tm) II X6 1090T Processor, 2408.10 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,NODEID,ITSC
cpu1: 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
cpu1: ITLB 32 4KB entries fully associative, 16 4MB entries fully associative
cpu1: DTLB 48 4KB entries fully associative, 48 4MB entries fully associative
cpu1: AMD erratum 721 detected and fixed
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: AMD Phenom(tm) II X6 1090T Processor, 2408.10 MHz
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,NODEID,ITSC
cpu2: 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
cpu2: ITLB 32 4KB entries fully associative, 16 4MB entries fully associative
cpu2: DTLB 48 4KB entries fully associative, 48 4MB entries fully associative
cpu2: AMD erratum 721 detected and fixed
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: AMD Phenom(tm) II X6 1090T Processor, 2408.10 MHz
cpu3: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,NODEID,ITSC
cpu3: 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
cpu3: ITLB 32 4KB entries fully associative, 16 4MB entries fully associative
cpu3: DTLB 48 4KB entries fully associative, 48 4MB entries fully associative
cpu3: AMD erratum 721 detected and fixed
cpu3: smt 0, core 3, package 0
cpu4 at mainbus0: apid 4 (application processor)
cpu4: AMD Phenom(tm) II X6 1090T Processor, 2408.10 MHz
cpu4: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,NODEID,ITSC
cpu4: 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
cpu4: ITLB 32 4KB entries fully associative, 16 4MB entries fully associative
cpu4: DTLB 48 4KB entries fully associative, 48 4MB entries fully associative
cpu4: AMD erratum 721 detected and fixed
cpu4: smt 0, core 4, package 0

Re: CGI script to see collectd stats

2017-05-14 Thread Olivier Cherrier
On Wed, May 10, 2017 at 04:24:44PM +0530, ajitabhpan...@gmail.com wrote:
> Hello,
> 
> I am running collectd server on my OpenBSD 6.1 box and various clients are
> sending stats to this box. I see /var/collectd that various RRDs are
> getting created. However, I am not sure what should I used to see the
> graphs. I looked at RRDCGI but it looks way complicated to setup. I could
> not find collectd-web package also.
> 
> Searching on web I see that for a non-chrooted web server there are
> straight forward scripts available. Most of the instructions are for linux.
> 
> I would prefer to use OpenBSD httpd and not resort to non-chrooted apache
> or nginx. I am finding it really difficult to find something suitable which
> works under chroot.
> 
> I am able to run a hello world cgi script in chroot.
> 
> If any of you guys have some information/config/tool etc to share for
> collectd graphs, it would be of great help.
> 
> Thanks & Regards.
> -- 
> Ajitabh Pandey
> http://ajitabhpandey.info/


Hi,

I'm using http://web.taranis.org/drraw/ for years.
It is very simple but quite powerfull with its regexp feature.


-- 
Olivier Cherrier
mailto:o...@symacx.com



Re: getting data from degraded RAID 1 boot disk

2017-02-01 Thread Olivier Cherrier
On Wed, Feb 01, 2017 at 08:32:44AM -0500, ji...@devio.us wrote:
> On Wed, Feb 01, 2017 at 01:33:54PM +0100, Stefan Sperling wrote:
> > On Wed, Feb 01, 2017 at 04:12:26AM -0500, Jiri B wrote:
> > > Should have kernel automatically create 'sd4' for degraded RAID 1
> > > but it does not?
> > 
> > I believe it will auto assemble if the disk is present at boot time.
> 
> ^^ This does work, I tried to plug the disk as boot device into QEMU VM.
> 
> > But not when you hotplug the disk.
> 
> Pity. Could it be reconsidered? It would ease data recovery (ie. trying
> to get a box to boot the disk or using VM.)

It will be particularly usefull at installation time when you plan
to create a RAID1 / RAID5 setup and you don't have all the disks yet.
RAIDframe had the 'absent' device name that could be used for this
particular case.



iscsid setup

2016-10-19 Thread Olivier Cherrier
Hi,

I am trying to setup an iscsi setup but the iscsid daemon is exiting 
very early.

The target is also an OpenBSD machine running netbsd-iscsi-target.
Its config is quite simple:

$ rcctl get iscsi_target flags
-p 1999
$ grep -v '^#'  /etc/iscsi/targets
extent0 /home/data/targets/target0  0   6GB
target0 rw  extent0 x.x.x.x/32



On the initiator, I have:
$ cat /etc/iscsi.conf
target1="y.y.y.y"
target "disk1" {
targetaddr $target1 inet port "1999"
targetname "iqn.1994-04.org.netbsd.iscsi-target:target:0"
}

# iscsid -dv
startup

[ then I issue 'iscsictl reload' in another terminal and i get ... ]

session_fsm[disk1]: INIT ev start timeout 0
sess_fsm[disk1]: INIT ev start
new connection to 158.167.97.39:1999
conn_fsm[disk1]: FREE ev connect
conn_fsm[disk1]: new state XPT_WAIT
sess_fsm[disk1]: new state FREE
sess_fsm: done
conn_fsm[disk1]: XPT_WAIT ev connected
conn_fsm[disk1]: new state IN_LOGIN
conn_parse_kvp: AuthMethod = None
conn_parse_kvp: TargetPortalGroupTag = 1
SET_NUM: TargetPortalGroupTag = 1
conn_parse_kvp: MaxConnections = 1
SET_NUM: MaxConnections = 1
conn_parse_kvp: MaxRecvDataSegmentLength = 65536
SET_NUM: MaxRecvDataSegmentLength = 65536
conn_fsm[disk1]: IN_LOGIN ev logged in
session_fsm[disk1]: FREE ev connection logged in timeout 0
conn_fsm[disk1]: new state LOGGED_IN
sess_fsm[disk1]: FREE ev connection logged in
conn_fsm[disk1]: new state LOGGED_IN
[0/1939]
sess_fsm[disk1]: FREE ev connection logged in
sess_fsm[disk1]: new state LOGGED_IN
sess_fsm: done
ISCSI_OP_TEXT_RESPONSE
TargetName  =>  iqn.1994-04.org.netbsd.iscsi-target:target0
TargetAddress   =>  x.x.x.x:1999,1
session[disk1] going down
conn_fsm[disk1]: LOGGED_IN ev logout
conn_fsm[disk1]: new state IN_LOGOUT
initiator_logout_cb: response 0, Time2Wait 0, Time2Retain 0
conn_fsm[disk1]: IN_LOGOUT ev logged out
conn_fsm[disk1]: new state FREE
session_fsm[disk1]: LOGGED_IN ev session closed timeout 0
conn_fsm[disk1]: FREE ev closed
c_do_fail
session_fsm[disk1]: LOGGED_IN ev connection fail timeout 0
conn_fsm[disk1]: new state FREE
sess_fsm[disk1]: LOGGED_IN ev session closed
conn_free
sess_fsm[disk1]: new state FREE
sess_fsm: done
sess_fsm[disk1]: FREE ev connection fail
It can only be attributable to human error.
fatal: sess_fsm: action failed


Is it normal the iscsid daemon does exit so early?  Is it a problem with
my config? 


Thanks a lot,
Best

-- 
Olivier Cherrier
mailto:o...@symacx.com



Re: piping password to vnconfig(8)

2014-10-13 Thread Olivier Cherrier
On Mon, Oct 13, 2014 at 04:40:34PM +0200, va...@fido.cz wrote:
 I see this question appeared a few times in the past, but without a complete
 answer. Is there a trick, preferrably a simple one, to make vnconfig(8) read
 the password from stdin? Thank you.

Since encrypted vnconfig devices will be disabled soon, it seems to be
the time to switch to bioctl(8).

--
oc



relayd url redirection

2014-10-05 Thread Olivier Cherrier
Hi,

Following http://marc.info/?l=openbsd-miscm=140508090726719w=2,
I'm trying to implement a similar setup.

relayd(8) is listening on a public IP.
httpd(8) is listening on localhost:80 and apache-httpd-openbsd is
listening on localhost:81.

I would like to handle all traffic with httpd(8) and only UserDir URLs
(/~user) with apache-httpd-openbsd.

I tried :

ext_addr=x.x.x.x
table web_httpd { 127.0.0.1 }
table web_apache { 127.0.0.1 }
http protocol filters {
return error
# pass # not needed.

# tried these forms:
match request quick path /~* forward to web_apache
match request quick path /~user/* forward to web_apache

match request path * forward to web_httpd
}
relay site1 {
listen on $ext_addr port 80
protocol filters
forward to web_httpd check tcp port 80
forward to web_apache check tcp port 81
}


But it half works. Sometimes it works and sometimes the UserDir traffic
is sent to httpd(8) and the non-UserDir traffic is sent to Apache.

I tried to use a public IP for binding web_apache (still on port
81) but it failed in the exact same way. 
In case there is a problem with the '~' character, I also tried to use
something like /user for the string. But it did the same.


Does anybody have any idea how to get it working ?

Thanks for any hint !
Best.
Olivier








-- 
Olivier Cherrier - Symacx.com
Phone: +352691754777
mailto:o...@symacx.com



Adding 'special devices' to an existing RAID1

2014-05-29 Thread Olivier Cherrier
Hi,

Is there a way (without backup/restore) to add a 'special device' to an
existing softraid RAID1 array?

For instance:


$ sudo bioctl -ih sd4
Volume  Status   Size Device
softraid0 1 Online  39.0M sd4 RAID1
  0 Online  39.0M 1:0.0   noencl sd2d
  1 Online  39.0M 1:1.0   noencl sd2e
$ 
$ sudo disklabel sd2c | grep RAID
a:419441021   64RAID
d:80325419441085RAID
e:80325419521410RAID
f:80325419601735RAID
$ 
$ # Here I would like to add /dev/sd2f as a third device in the RAID1 set
$ sudo bioctl -R /dev/sd2f sd4
softraid0: volume not degraded
$ 


Thanks,
Olivier.



Re: ffs2

2013-03-18 Thread Olivier Cherrier
You could also try this not so usefull tool:
  http://www.symacx.com/data/software/OpenBSD/fstyp.tgz   (ports)
  http://www.symacx.com/data/software/OpenBSD/fstyp-0.1.tar.gz (source)


Later,
oc


On Sun, Mar 17, 2013 at 07:45:35PM -0500, thelette...@gmail.com wrote:
 Sweet, didn't know about dumpfs, exactly what I was looking for.
 
 Thanks also, for the confirmation!
 
 
 On Sun, Mar 17, 2013 at 7:07 PM, Philip Guenther guent...@gmail.com wrote:
 
  On Sun, Mar 17, 2013 at 4:13 PM, Brandon Tanner thelette...@gmail.com
  wrote:
   How do I know if I'm using ffs2 on a partition.
 
  sudo dumpfs /storage | head -1
 
 
  ...
   However, I think I read that  2TB volumes automatically use FFS2 when
   using newfs, yet mount only shows ffs (is it transparent or something?).
 
  Yes, it's transparent: they're just different versions of the same
  layout, so the same programs handle both.
 
 
  Philip Guenther



Re: httpd and php-mapi

2013-02-21 Thread Olivier Cherrier
On Wed, Feb 20, 2013 at 06:28:05PM -0500, gregoi...@hotmail.com wrote:
 For those interested. Zarafa needs to be recompiled and 1 WANTLIB
 line of its Makefile must be amended to remove 'z gmp gnutls hogweed
 nettle p11-kit tasn1'.
 
   1) pkg_delete libvmime zarafa zarafa-webaccess zarafa-webapp
   2) cd /usr/ports/devel/libvmime
   3) patch Makefile
   4) make install
   5) cd ../../mail/zarafa
   6) patch Makefile
   7) make install
 
 I guess this is what I was suppose to understand by 'make
 port-lib-depends check'.
 
 
 @ajacoutot You should definitely review your approach to user
 support. You obviously run -current but not everyone do and not

You should better review the way you are asking help and not being
so virulent to somebody so helpfull and talented than Antoine!



Re: CPU max frequency

2012-10-30 Thread Olivier Cherrier
On Tue, Oct 30, 2012 at 03:53:21AM +0100, rusty...@gmx.fr wrote:
 that's maybe a stupid question, but how can I get the max frequency of
 my cpu ?
 
 I saw sysctl has hw.cpuspeed and hw.setperf, but can I get the maximum
 frequency
 without setting setperf to 100%, getting cpuspeed and then restoring
 setperf to
 the value it has before ?

Yes you can try : sysctl hw.setperf=200
But you need oil cooling !  ;-)



Re: radicale package, error authentication

2012-09-12 Thread Olivier Cherrier
On Thu, Sep 06, 2012 at 09:06:29AM +0400, open...@e-solutions.re wrote:
 Le 2012-09-06 0:47, Stuart Henderson a écrit :
 Moved to ports@ where it should be.
 
 Thank's!
 
 I suspect your calendar path is incorrect, typically it would be
 something like https://localhost:5232/username/calendar
 
 Using ical (from imac), i follow this :
 http://radicale.org/user_documentation/#ical
 It works great without auth-htpasswd. But with, no way.
 
I use successfully Radicale.

Here is the procedure I wrote to deploy it :


/---\
|   How to setup Radicale   |
\---/


$Id: radicale,v 1.2 2011/10/25 20:23:17 oc Exp $



To install Radicale on OpenBSD, do the following:
-

$ sudo -E pkg_add radicale
$ less
/usr/local/share/doc/pkg-readmes/radicale*
$ cd /etc/radicale
$ cp -p config config.orig
$ vi config
$ sudo htpasswd -cs
/etc/radicale/users USER
$ sudo openssl genrsa -out /etc/radicale/private/server.key 1024
$ sudo openssl req -new -key \ 
 /etc/radicale/private/server.key \
 -out /etc/radicale/private/server.csr
$ 
$ sudo openssl x509 -req -days 1024 -in \
 /etc/radicale/private/server.csr \
 -signkey /etc/radicale/private/server.key \
 -out /etc/radicale/server.crt
$
$ sudo chown _radicale server.crt private
$ sudo chmod 750 private
$ sudo chmod 640 server.crt 
$ sudo chmod 640 private/server.*

But, SSL fails to work ...
(For non-SSL, it works quite well but is not very speedy).



Re: install questions

2012-03-21 Thread Olivier Cherrier
On Wed, Mar 21, 2012 at 03:01:46PM +0800, romaby...@gmail.com wrote:
  No idea how well OpenBSD does in xen.
 
 Last time I tried OpenBSd in Xen ~2 years it worked like crap.
 Couldn't get networking
 to work at all and it was slow as a dog.

I am running OpenBSD on Xen and it works very well:

$ sysctl kern.version  
kern.version=OpenBSD 5.1 (VICTOR) #2: Mon Feb 13 10:03:45 CET 2012
oc@localhost:/usr/src/sys/arch/amd64/compile/VICTOR

$ dmesg | grep '^bios0:'  
bios0: vendor Xen version 3.4.2 date 11/16/2009
bios0: Xen HVM domU
$ 


I use Panix (http://www.panix.com/corp/v-colo/) and am happy.
You just have to apply the 2 following patches (credit to Brian Marcotte):


--- ./sys/dev/acpi/acpi.c.orig  Mon Jan 10 15:04:33 2011
+++ ./sys/dev/acpi/acpi.c   Wed May  4 20:13:47 2011
@@ -609,6 +609,7 @@
return;
}
 
+#if 0
/*
 * Check if we are able to enable ACPI control
 */
@@ -617,6 +618,7 @@
printf(, ACPI control unavailable\n);
return;
}
+#endif
 
/*
 * Set up a pointer to the firmware control structure
@@ -696,6 +698,7 @@
 * This may prevent thermal control on some systems where
 * that actually does work
 */
+#if 0
acpi_write_pmreg(sc, ACPIREG_SMICMD, 0, sc-sc_fadt-acpi_enable);
idx = 0;
do {
@@ -704,7 +707,20 @@
return;
}
} while (!(acpi_read_pmreg(sc, ACPIREG_PM1_CNT, 0)  ACPI_PM1_SCI_EN));
-
+#else
+   if (sc-sc_fadt-smi_cmd  sc-sc_fadt-acpi_enable) {
+   acpi_write_pmreg(sc, ACPIREG_SMICMD, 0,
+  sc-sc_fadt-acpi_enable);
+   idx = 0;
+   do {
+   if (idx++  ACPIEN_RETRIES) {
+   printf(, can't enable ACPI\n);
+   return;
+   }
+   } while (!(acpi_read_pmreg(sc, ACPIREG_PM1_CNT, 0) 
+   ACPI_PM1_SCI_EN));
+   }
+#endif
printf(\n%s: tables, DEVNAME(sc));
SIMPLEQ_FOREACH(entry, sc-sc_tables, q_next) {
printf( %.4s, entry-q_table);


--- ./sys/dev/acpi/acpicpu.c.orig   Wed Jul 21 19:24:01 2010
+++ ./sys/dev/acpi/acpicpu.cWed May  4 20:13:47 2011
@@ -394,7 +394,11 @@
sc-sc_flags |= FLAGS_NOPCT;
else if (sc-sc_pss_len  0) {
/* Notify BIOS we are handing p-states */
+#if 0
if (sc-sc_acpi-sc_fadt-pstate_cnt)
+#else
+   if (sc-sc_acpi-sc_fadt-smi_cmd  
sc-sc_acpi-sc_fadt-pstate_cnt) 
+#endif
acpi_write_pmreg(sc-sc_acpi, ACPIREG_SMICMD, 0,
sc-sc_acpi-sc_fadt-pstate_cnt);
 



Later,

-- 
Olivier Cherrier - Symacx.com
mailto:o...@symacx.com



new laptop (with non working touchpad)

2011-11-10 Thread Olivier Cherrier
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 Intel 6 Series PCIE rev 0xb5: msi
pci1 at ppb0 bus 1
ppb1 at pci0 dev 28 function 2 Intel 6 Series PCIE rev 0xb5: msi
pci2 at ppb1 bus 2
Realtek 8188CE rev 0x01 at pci2 dev 0 function 0 not configured
ppb2 at pci0 dev 28 function 3 Intel 6 Series PCIE rev 0xb5: msi
pci3 at ppb2 bus 3
jme0 at pci3 dev 0 function 0 JMicron JMC250 rev 0x05: apic 2 int 17, address 
00:90:f5:c1:b5:22
jmphy0 at jme0 phy 1: JMP211 10/100/1000 PHY, rev. 1
JMicron SD/MMC rev 0x90 at pci3 dev 0 function 1 not configured
sdhc0 at pci3 dev 0 function 2 JMicron SD Host Controller rev 0x90: apic 2 
int 16
sdmmc0 at sdhc0
JMicron Memory Stick rev 0x90 at pci3 dev 0 function 3 not configured
ehci1 at pci0 dev 29 function 0 Intel 6 Series USB rev 0x05: apic 2 int 23
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 Intel EHCI root hub rev 2.00/1.00 addr 1
pcib0 at pci0 dev 31 function 0 Intel HM65 LPC rev 0x05
ahci0 at pci0 dev 31 function 2 Intel 6 Series AHCI rev 0x05: msi, AHCI 1.3
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0: ATA, ST9500325AS, 0001 SCSI3 0/direct fixed 
naa.5000c5002b0f0306
sd0: 476940MB, 512 bytes/sector, 976773168 sectors
cd0 at scsibus0 targ 2 lun 0: MATSHITA, DVD-RAM UJ8B0, 1.00 ATAPI 5/cdrom 
removable
ichiic0 at pci0 dev 31 function 3 Intel 6 Series SMBus rev 0x05: apic 2 int 18
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 4GB DDR3 SDRAM PC3-10600 SO-DIMM
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
mtrr: Pentium Pro MTRR support
uhub2 at uhub0 port 1 Intel Rate Matching Hub rev 2.00/0.00 addr 2
uhub3 at uhub1 port 1 Intel Rate Matching Hub rev 2.00/0.00 addr 2
uhidev0 at uhub3 port 1 configuration 1 interface 0 Fujitsu Component Type 6 
Mouse rev 1.00/1.02 addr 3
uhidev0: iclass 3/1
ums0 at uhidev0: 3 buttons
wsmouse0 at ums0 mux 0
uvideo0 at uhub3 port 6 configuration 1 interface 0 BISON Corporation 
BisonCam, NB Pro rev 2.00/6.08 addr 4
video0 at uvideo0
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
root on sd0a (b541c9593ed92946.a) swap on sd0b dump on sd0b



-- 
Olivier Cherrier - Symacx.com
mailto:o...@symacx.com



Re: rebuild RAID1

2011-08-17 Thread Olivier Cherrier
On Tue, Aug 16, 2011 at 06:08:48PM +0400, open...@e-solutions.re wrote:
 Hi, 
 
 I'm trying to test softraid. 
 I use OpenBSD 4.8 Release, i have 2 disks : 
 
 wd0 250G Openbsd is installed ; wd0k slice is part of RAID (200G) 
 wd1 500G wd1k slice is part of RAID (200G) 
 
 I built my RAID using this : bioctl -c 1 -l wd0k,wd1k softraid0 
 All is ok, sd0c is mounted in /home (cf /etc/fstab) 
^
do not use sd0c here. See disklabel(8).


-- 
Olivier Cherrier - Symacx.com
mailto:o...@symacx.com



Re: Need some input about: OpenBSD 4.9/amd64 and Dell PowerEdge Server R210,R410,R610,R710

2011-06-08 Thread Olivier Cherrier
On Wed, Jun 08, 2011 at 09:16:19AM +0200, patf...@davenulle.org wrote:
 We use two R610 with 4.8/amd64 (PF firewall) since february with two
 Intel cards (one Intel PRO/1000 QP 82571EB and one Intel PRO/1000 QP
 82575GB). It looks like solid as a rock.
 
 ipmi does not attach, I don't know if it should work:
 ipmi at mainbus0 not configured
 
$ grep ipmi /sys/arch/amd64/conf/GENERIC
ipmi0   at mainbus? disable # IPMI


-- 
Olivier Cherrier - Symacx.com
mailto:o...@symacx.com



opencvs problem fetching current source

2011-05-27 Thread Olivier Cherrier
Hi,

For some months now, I have exactly the same problem than:
http://marc.info/?t=12985968427r=1w=2
and I carefully read the post of Philip.

I have a local repo (synced through cvsync) and it seems that updating
sources with a local repo triggers a problem.

I checked out /usr/src this way:
cd /usr  opencvs -d /home/OpenBSD_cvsync co src -P
and I used this command to update:
cd /usr/src  opencvs up -CAPd


/home/OpenBSD_cvsync is my local OpenBSD repo:
$ ls -l /home/OpenBSD_cvsync/
total 72
drwxr-xr-x   4 oc  wsrc  2048 May 26 14:09 CVSROOT
drwxr-xr-x   6 oc  wsrc   512 Sep 22  2009 X11
drwxr-xr-x   7 oc  wsrc   512 Sep 22  2009 XF4
drwxr-xr-x   2 oc  wsrc   512 Sep 22  2009 cvsync
drwxr-xr-x  61 oc  wsrc  1536 May 16 14:09 ports
drwxr-xr-x  19 oc  wsrc   512 Apr 25 14:10 src
drwxr-xr-x  46 oc  wsrc  5632 May 26 14:13 www
drwxr-xr-x  16 oc  wsrc   512 May  8 14:12 xenocara
$ pwd
/usr/src/lib/libssl/src/crypto/pqueue
$ cat CVS/Root 
/home/OpenBSD_cvsync
$ rm pqueue.h
$ opencvs up pqueue.h 
opencvs update: warning: pqueue.h was lost
U pqueue.h
opencvs update: failed to open history file
$ grep compat pqueue.h 
#include openssl/pq_compat.h
$ md5 pqueue.h 
MD5 (pqueue.h) = a1fd3f944a2777bb249d0e420d965c7f
$ rm pqueue.h 
$ cvs -d :ext:anon...@anoncvs.fr.openbsd.org:/cvs up pqueue.h
U pqueue.h
$ grep compat pqueue.h 
$ md5 pqueue.h 
MD5 (pqueue.h) = 08e291548d9a920f534ea0717ee3ed88


As you see, using remote (:ext:) mode gives me the right version of the
file but not using local mode.
However, it says it is fetching version 1.1.1.2 :

$ rm pqueue.h 
$ opencvs -t up pqueue.h 
C- cvs_parse_configfile()
C- cvs_parse_modules()
C- cvs_file_walklist: element 'pqueue.h'
C-
cvs_repository_lock(/home/OpenBSD_cvsync/src/lib/libssl/src/crypto/pqueue,
0)
C- cvs_update_local(pqueue.h)
C- cvs_file_classify(pqueue.h, none)
C- cvs_ent_open(.)
opencvs update: warning: pqueue.h was lost
C- cvs_checkout_file(pqueue.h, 1.1.1.2, 0) - to disk
C- cvs_ent_open(.)
C- cvs_ent_remove(./CVS/Entries, pqueue.h)
C- cvs_ent_add(./CVS/Entries, /pqueue.h/1.1.1.2/Fri May 27 08:05:19
2011//)
U pqueue.h
C- cvs_history_add(`U', `pqueue.h', `(null)')
opencvs update: failed to open history file
C- cvs_cleanup: removing locks
C- cvs_cleanup: removing temp files
C- cvs_ent_close(./CVS/Entries.Backup, 1)
$ 

but it doesn't get the content of the version 1.1.1.2:


Any idea ?

Thanks,

-- 
Olivier Cherrier - Symacx.com
mailto:o...@symacx.com



Re: Why does GENERIC kernel for OpenBSD 4.8 and 4.9 not support software RAID

2011-05-05 Thread Olivier Cherrier
On Thu, May 05, 2011 at 01:01:27AM +0200, rob...@openbsd.pap.st wrote:
 On Wed, 04 May 2011 15:38:46 -0700
 Tyler Morgan tyl...@tradetech.net wrote:
 
  On 5/4/2011 10:04 AM, Josh Grosse wrote:
  http://www.ec
 
 (plz all stop pushing that links search engine rank.)
 
  I think this is mainly due to the fact that softraid can't be used
  for the root partition (or booted off of, for now). This leads
  everyone to follow RAIDFrame guides to install OpenBSD onto software
  RAID1, but nobody bothers to mention that RAIDFrame isn't actually
  maintained anymore.
  
  And I have a feeling it's why my routers crash once every few months
  or so with some odd, sd0/sd1 related FIFO errors (using SSDs too...).
  I'm currently pulling RAIDFrame out of various routers and not using
  any RAID at all anymore -- CARP + pfsync + duplicate hardware is
  enough for what these routers do.
  
  In no way am I blaming anyone here -- it's obviously my fault that I 
  didn't read the 4.7 FAQ closer and learn about softraid -- but I
  think large amounts of people are being lead to RAIDFrame via Google
  without fully realizing what they are using or why they might be
  making a bad decision.
 
 Along the line of: Why tf doesn't my root-partition change often
 enough, so that i am not ok by simply using ALTROOT? Didn't expect me
 to read the afterboot manpage as i was prompted, didn't you?
 
BTW, I setup a server with ALTROOT feature. After 3 months, the root
disk (where / lives) partially broke and the daily job screw up my
/dev/r$rootbak with the dd(1) command ... 

-- 
Olivier Cherrier - Symacx.com
mailto:o...@symacx.com



Re: How to mount usb disk at boot

2011-05-03 Thread Olivier Cherrier
On Tue, May 03, 2011 at 10:56:44AM +0300, open...@bgone.net wrote:
 On 2.5.2011 P3. 14:03 Q., Olivier Cherrier wrote:
 On Mon, May 02, 2011 at 12:31:47PM +0300, open...@bgone.net wrote:
 Dmesg:
 OpenBSD 4.8-stable (GENERIC) #1: Wed Apr  6 17:51:44 EEST 2011
  r...@mail.bgone.bg:/usr/src/sys/arch/i386/compile/GENERIC
 cpu0: Geode(TM) Integrated Processor by AMD PCS (AuthenticAMD
 586-class) 499 MHz
 [snip]
 mount_ffs: /dev/sd0a on /data: Device not configured
 [snip]
 sd0 at scsibus0 targ 1 lun 0:WD, My Book 1130, 1012  SCSI4 0/direct
fixed
 sd0: 953837MB, 512 bytes/sec, 1953458176 sec total
 ses0 at scsibus0 targ 1 lun 1:WD, SES Device, 1012  SCSI4 13/enclosure

 Your USB disk seems to take a lot of time to start and it is discovered
 after /etc/rc issues the 'mount -a' command.  Try to put a 'sleep 10'
 before mounting the FS.

 Hi Olivier,
 This solved the problem.
 I put sleep 30 before mount -a in /etc/rc
 I works perfect.
 Thanks for the help.
 Ivo

Yes, it works.
But as stated by other people, it is much more elegant (and will not
delay your normal boot process) to use hotplugd(8).
It depends also if the data stored on your USB disk are directly
accessed by daemons your start at boot. You may have to tune it.

Modifying /etc/rc is not really recommended and that file may be
overwritten during upgrades...

--
Olivier Cherrier - Symacx.com
mailto:o...@symacx.com



Re: How to mount usb disk at boot

2011-05-02 Thread Olivier Cherrier
On Mon, May 02, 2011 at 12:31:47PM +0300, open...@bgone.net wrote:
 Dmesg:
 OpenBSD 4.8-stable (GENERIC) #1: Wed Apr  6 17:51:44 EEST 2011
 r...@mail.bgone.bg:/usr/src/sys/arch/i386/compile/GENERIC
 cpu0: Geode(TM) Integrated Processor by AMD PCS (AuthenticAMD  
 586-class) 499 MHz
[snip]
 mount_ffs: /dev/sd0a on /data: Device not configured
[snip]
 sd0 at scsibus0 targ 1 lun 0: WD, My Book 1130, 1012 SCSI4 0/direct fixed
 sd0: 953837MB, 512 bytes/sec, 1953458176 sec total
 ses0 at scsibus0 targ 1 lun 1: WD, SES Device, 1012 SCSI4 13/enclosure  

Your USB disk seems to take a lot of time to start and it is discovered
after /etc/rc issues the 'mount -a' command.  Try to put a 'sleep 10'
before mounting the FS.

-- 
Olivier Cherrier - Symacx.com
mailto:o...@symacx.com



softraid recovery

2011-01-02 Thread Olivier Cherrier
Hi,

I have a machine with 2 disks and created some softraid (4 RAID1 and 1 RAID0)
volumes.  One of the disks died.

At the origin, I setup both disks with this layout:
16 partitions:
#size   offset  fstype [fsize bsize  cpg]
  a:   176640   64  4.2BSD   2048 163841 
  b:  2088461   176704swap
  c:   39070291680  unused
  d:419441085  2265165RAID
  e:293603940421706250RAID
  f:293603940715310190RAID
  g:293603940   1008914130RAID
  h:293603940   1302518070RAID


I connected the good disk to another machine (amd64 too, with already 2
disks and some softraid) and expected to see my 4 RAID1 volumes configured.
But, I only get one and some error messages :

softraid0: not all chunks were provided; attempting to bring volume 2
online
softraid0: chunk wd2h\^B already in use
softraid0: not all chunks were provided; attempting to bring volume 3
online
softraid0: chunk wd2h\^B already in use
softraid0: not all chunks were provided; attempting to bring volume 3
online
softraid0: chunk wd2h\^B already in use



How can I solve that and bring them online ?
Here is a full dmesg.
Thanks a lot,

-- 
Olivier Cherrier - Symacx.com
mailto:o...@symacx.com
OpenBSD 4.8-current (GENERIC.MP) #1: Sat Jan  1 15:55:56 CET 2011
o...@x2.symacx.com:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 1072627712 (1022MB)
avail mem = 1030098944 (982MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.2 @ 0xf (41 entries)
bios0: vendor Phoenix Technologies, LTD version 6.00 PG date 05/17/2006
bios0: EPoX COMPUTER CO., LTD nForce4 DDR2: MF4 Series
acpi0 at bios0: rev 0
acpi0: sleep states S0 S1 S4 S5
acpi0: tables DSDT FACP SSDT MCFG APIC
acpi0: wakeup devices HUB0(S5) XVR0(S5) XVR1(S5) XVR2(S5) XVR3(S5) USB0(S4) 
USB2(S3) MMAC(S5) MMCI(S5) UAR1(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Athlon(tm) 64 X2 Dual Core Processor 4200+, 2420.36 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,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 
16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: apic clock running at 220MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD Athlon(tm) 64 X2 Dual Core Processor 4200+, 2420.07 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 
16-way L2 cache
cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu1: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 11, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (HUB0)
acpicpu0 at acpi0: PSS
acpicpu1 at acpi0: PSS
acpitz0 at acpi0: critical temperature 85 degC
acpibtn0 at acpi0: PWRB
cpu0: PowerNow! K8 2420 MHz: speeds: 2200 2000 1800 1000 MHz
pci0 at mainbus0 bus 0
NVIDIA nForce4 DDR rev 0xa4 at pci0 dev 0 function 0 not configured
pcib0 at pci0 dev 1 function 0 NVIDIA nForce4 ISA rev 0xb1
nviic0 at pci0 dev 1 function 1 NVIDIA nForce4 SMBus rev 0xa2
iic0 at nviic0
spdmem0 at iic0 addr 0x50: 1GB DDR2 SDRAM non-parity PC2-5300CL5
iic1 at nviic0
ohci0 at pci0 dev 2 function 0 NVIDIA nForce4 USB rev 0xa2: apic 2 int 12 
(irq 12), version 1.0, legacy support
ehci0 at pci0 dev 2 function 1 NVIDIA nForce4 USB rev 0xa4: apic 2 int 10 
(irq 10)
ehci0: timed out waiting for BIOS
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 NVIDIA EHCI root hub rev 2.00/1.00 addr 1
auich0 at pci0 dev 4 function 0 NVIDIA nForce4 AC97 rev 0xa2: apic 2 int 5 
(irq 5), nForce4 AC97
ac97: codec id 0x414c4760 (Avance Logic ALC655 rev 0)
audio0 at auich0
pciide0 at pci0 dev 6 function 0 NVIDIA nForce4 IDE rev 0xf3: DMA, channel 0 
configured to compatibility, channel 1 configured to compatibility
pciide0: channel 0 disabled (no drives)
pciide0: channel 1 disabled (no drives)
pciide1 at pci0 dev 7 function 0 NVIDIA nForce4 SATA rev 0xf3: DMA
pciide1: using apic 2 int 11 (irq 11) for native-PCI interrupt
wd0 at pciide1 channel 0 drive 0: ST3320620AS
wd0: 16-sector PIO, LBA48, 305245MB, 625142448 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 6
wd1 at pciide1 channel 1 drive 0: ST3320620AS
wd1: 16-sector PIO, LBA48, 305245MB, 625142448 sectors
wd1(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 6
pciide2 at pci0 dev 8 function 0 NVIDIA nForce4 SATA rev 0xf3: DMA
pciide2: using apic

nfs server not responding

2010-09-16 Thread Olivier Cherrier
Hi,

Under some NFS load, I experience some NFS hang and get messages
on the client side like those ones:
nfs server atom:/home/oc: not responding
nfs server atom:/home/oc: is alive again

I am running quite current machines (dmesg below). 
This issue seems to be an ancient one
(http://marc.info/?l=openbsd-techm=124286250525285w=2).

I have a NFS server (called atom) and 2 NFS clients (esther and x2) and
experience the same behavior on both clients. On the NFS server, nothing
happens in the logs.  As opposed to
http://marc.info/?l=openbsd-sparcm=101290758108872w=2, I do not have
to reboot the server to fix the problem. After a period of time (around
2 minutes), it becomes alive again.  As the problem occurs on both
clients at the same time, it seems to be NFS *server* related. !?


The 'esther' machine is fully diskless.  So when it happens, the
whole machine freezes for some minutes ...


Here are some messages:
===
Sep 16 14:53:12 x2 /bsd: nfs server atom:/usr/ports/packages: is alive again
Sep 16 14:53:45 x2 /bsd: receive error 60 from nfs server atom:/home/oc
Sep 16 14:54:55 x2 /bsd: nfs server atom:/usr/ports/packages: is alive again
Sep 16 14:54:58 x2 /bsd: nfs server atom:/usr/ports/packages: not responding
Sep 16 14:56:38 x2 /bsd: nfs server atom:/usr/ports/packages: is alive again
Sep 16 14:56:43 x2 /bsd: nfs server atom:/usr/ports/packages: not responding
Sep 16 14:58:22 x2 /bsd: nfs server atom:/usr/ports/packages: is alive again
Sep 16 14:58:26 x2 /bsd: nfs server atom:/usr/ports/packages: not responding
Sep 16 15:00:05 x2 /bsd: nfs server atom:/usr/ports/packages: is alive again
Sep 16 15:00:10 x2 /bsd: nfs server atom:/home/oc: is alive again
Sep 16 15:00:10 x2 last message repeated 2 times 
Sep 16 15:00:09 esther /bsd: nfs server atom:/data/clients/esther: not 
responding
Sep 16 15:00:09 esther /bsd: receive error 60 from nfs server atom:/home/oc
Sep 16 15:00:09 esther /bsd: nfs server atom:/data/clients/esther: is alive 
again
Sep 16 15:00:09 esther /bsd: nfs server atom:/data/clients/esther: is alive 
again
Sep 16 15:00:15 esther /bsd: nfs server atom:/home/oc: is alive again
Sep 16 18:54:52 esther /bsd: nfs server atom:/home/oc: not responding
Sep 16 18:54:52 esther /bsd: nfs server atom:/home/oc: is alive again


I tried to grow up (and shrink down)
net.inet.{tcp,udp}.{recvspace,sendspace} without success.

PF is enabled on the machines with very basic rules but no scrub is
enabled:
atom:
pass in log quick on re0 inet proto tcp from any to any \
port = www flags S/SA keep state rdr-to 127.0.0.1 port 3128
pass all flags S/SA keep state
block drop in on ! lo0 proto tcp from any to any port 6000:6010
x2 and esther:
pass all flags S/SA keep state
block drop in on ! lo0 proto tcp from any to any port 6000:6010


Thanks,

-- 
Olivier Cherrier - Symacx.com
mailto:o...@symacx.com
OpenBSD 4.8-current (GENERIC.MP) #0: Mon Aug 16 22:48:09 CEST 2010
o...@atom.symacx.com:/usr/src/sys/arch/amd64/compile/GENERIC.MP
RTC BIOS diagnostic error 80clock_battery
real mem = 3470512128 (3309MB)
avail mem = 3364311040 (3208MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xe43c0 (27 entries)
bios0: vendor Intel Corp. version MOPNV10J.86A.0175.2010.0308.0620 date 
03/08/2010
bios0: Intel Corporation D510MO
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP APIC MCFG HPET SSDT
acpi0: wakeup devices SLPB(S4) PS2M(S4) PS2K(S4) UAR1(S4) UAR2(S4) P32_(S4) 
ILAN(S4) PEX0(S4) PEX1(S4) PEX2(S4) PEX3(S4) UHC1(S3) UHC2(S3) UHC3(S3) 
UHC4(S3) EHCI(S3) 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: Intel(R) Atom(TM) CPU D510 @ 1.66GHz, 1667.00 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,SBF,SSE3,MWAIT,DS-CPL,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,NXE,LONG
cpu0: 512KB 64b/line 8-way L2 cache
cpu0: apic clock running at 166MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Atom(TM) CPU D510 @ 1.66GHz, 1666.69 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,SBF,SSE3,MWAIT,DS-CPL,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,NXE,LONG
cpu1: 512KB 64b/line 8-way L2 cache
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Atom(TM) CPU D510 @ 1.66GHz, 1666.69 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,SBF,SSE3,MWAIT,DS-CPL,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE,NXE,LONG
cpu2: 512KB 64b/line 8-way L2 cache
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Atom(TM) CPU D510 @ 1.66GHz, 1666.69 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

Re: how to fix fstab in single user mode for bootable Live USB drive

2010-08-28 Thread Olivier Cherrier
On Fri, Aug 27, 2010 at 05:04:57PM +0200, we...@weirdnet.nl wrote:
 Don't. There's no need. Here's how you do it even easier (requires
 recent snap / source)
 
 [ -f /dev/diskmap ] || ( cd /dev; sudo MAKEDEV diskmap ) 
 echo wq | disklabel -E YOURDISK
 UID=`disklabel YOURDISK | grep ^uid: | cut -f2 -d' '`
 { echo ,s#/dev/YOURDISK#${UID}.#; echo w; } | ed - /etc/fstab
 
 Do not try this until you understand what it does.  You'll have to
 edit it to your needs anyway.
 
 This new uid stuff is really cool, thanks jsing@ !

Yes, it's great... especially with softraid volumes!
Thanks Joel!

$ grep '\.' /etc/fstab
08552bb5b53ec2df.a /usr ffs rw,nodev 1 2
08552bb5b53ec2df.g /usr/X11R6 ffs rw,nodev 1 2
08552bb5b53ec2df.b /usr/local ffs rw,nodev 1 2
08552bb5b53ec2df.e /usr/obj ffs rw,nodev,nosuid 1 2
08552bb5b53ec2df.h /usr/ports ffs rw,nodev,nosuid 1 2
08552bb5b53ec2df.d /usr/src ffs rw,nodev,nosuid 1 2
08552bb5b53ec2df.f /usr/xenocara ffs rw,nodev,nosuid 1 2
08552bb5b53ec2df.i /var ffs rw,nodev,nosuid 1 2
08552bb5b53ec2df.j /home ffs rw,nodev,nosuid 1 2
482c4eac2228bc96.a /data/tmp ffs rw,nodev,nosuid 1 2
482c4eac2228bc96.b /var/squidffs rw,nodev,nosuid 1 2
c3b17d16762bcaf9.a /data/clients ffs rw 1 2

-- 
Olivier Cherrier - Symacx.com
mailto:o...@symacx.com



Re: slow down dd - how?

2010-07-09 Thread Olivier Cherrier
On Thu, Jul 08, 2010 at 06:52:26PM +0200, jozsi.avad...@gmail.com wrote:
 How can I slow down dd?
 
 I don't want to slow down the pc, when generating a big file [~40
 GByte].
 
 Does ionice work properly?
 
 Thank you for any help! :\
 
Look for a small utility called disknice and written by Tedu...

-- 
Olivier Cherrier - Symacx.com
mailto:o...@symacx.com



Re: Resilient RAID

2010-05-22 Thread Olivier Cherrier
On Fri, May 21, 2010 at 10:45:01PM -0500, sl...@peereboom.us wrote:
 
 I've lost 3 due to washing...
 
So, stop washing your clothes ;-)


 On Fri, May 21, 2010 at 05:28:06PM -0700, Greg Thomas wrote:
 On Fri, May 21, 2010 at 7:11 AM, Marco Peereboom sl...@peereboom.us
 wrote:
  
   USB sticks primary cause of death is the washing machine and/or dryer.
   Second one probably is sitting out in the sun.
   I have yet to see the USB stick that dies because it was written to.
  
 Funny thing is I still haven't killed one by washing machine or dryer, 
  and
 I've sent many through the wash/dry cycle.
  
 Greg
 

-- 
Olivier Cherrier - Symacx.com
mailto:o...@symacx.com



Re: HA: pair of firewalls, 2 switches and 1 server

2010-05-21 Thread Olivier Cherrier
On Fri, May 21, 2010 at 12:22:10AM +0200, r...@openbsd.org wrote:
  Linux's bonding module has an arp monitor which solves some of these
  problems, but the implementation is so hackish (as usual there...) that
  I'd rather not use it in production. arping and ifstated might do the
  same on openbsd, but I'm not sure if that will work when the interfaces
  are trunk ports. I'll need to check this when I have time.
  
 
 why not?  trunk is just a normal ethernet interface.
 
 the linux bondage trick sounds hackish, but link detection protocols
 like udld or bfd should help here on the ethernet level.  many managed
 switches support one of these protocols and i'd like to do this on the
 openbsd side at some point to alter the link state based on optional
 uni-/bidirectional link detection.

If one of the 2 ports of the switch where you are connected is badly
configured (wrong VLAN, ...), you may have problems.  The link can be
up but being unusable.  In that case, having something like the arp
monitor seems to not be so stupid; doesn't it ?

-- 
Olivier Cherrier - Symacx.com
mailto:o...@symacx.com



Re: OpenBSD virtualization

2010-04-04 Thread Olivier Cherrier
On Thu, Apr 01, 2010 at 05:47:07PM +0530, reachta...@hotmail.com wrote:
  I am very much new to OpenBSD. I have two Sun UltraSparcT2( Niagara2)
 servers.
  I have install OpenBSD4.6 on that. But my intention is to install KVM/XEN
 on
  those box.
 
  Can anyone help me to do so
 
 
  Thanks,
  dE
 
 How about NetBSD
 
NetBSD on Niagara ?
Xen on UltraSparc ?

What else ?


-- 
Olivier Cherrier 
mailto:o...@symacx.com



Re: Mini PCI Wireless Card

2010-01-11 Thread Olivier Cherrier
On Mon, Jan 11, 2010 at 10:26:45PM -0500, freebsdwo...@gmail.com wrote:
 Thanks will order one.

Try 'apropos wireless'

 Anyone have an img file for soekris net5501?
 Or where I can download one.

A great one:
https://www.soekris.com/shop/images/net5501_70_BO_front_big.jpg
;-)

-- 
Olivier Cherrier - Symacx.com
mailto:o...@symacx.com



Re: Which laptops do the developers use?

2010-01-07 Thread Olivier Cherrier
On Thu, Jan 07, 2010 at 04:50:48PM -0500, nixmli...@gmail.com wrote:
  MacBook? MacBook Air? PowerBook? Supported at all?
 
  PowerBook? Sure. But I don't see how this is related to i386-laptop.html.
 
 
 Oops. Meant MacBook Pro. Sorry.
 
Yes, it works.

-- 
Olivier Cherrier - Symacx.com
mailto:o...@symacx.com



Re: how to fresh raidframe install on an already raidframe system?

2010-01-05 Thread Olivier Cherrier
On Tue, Jan 05, 2010 at 11:36:11AM -0500, k...@watsen.net wrote:
 Jurgen/Pete - thanks for your replies, but it seems that I wasn't clear  
 - my question is how to do fresh-install of OpenBSD with the new kernel  
 discovering and trying to use the old RAID partition.  I ultimately  
 solved this problem by rebooting using the old kernel and running  
 `raidctl -A no raid0`.  This way the new kernel doesn't try the  
 automatically mount the old RAID partition anymore...

Build and boot a bsd.rd with RAIDFrame and raidctl included.

 BTW, I'm wondering if I'm wrong about SoftRAID - can it now contain the  
 root partition like RAIDframe?  - looking at softraid(4), I don't see  

no.

 anything like `raidctl -A root dev` and I thought I read Marco saying  
 that it's planned but a thing called life keeps getting in the way:  
 (http://www.mail-archive.com/misc@openbsd.org/msg69397.html)

The boot chain can not load kernel on softraid sets.
You can put the root fs on a disk and store the rest of your system on
softraid sets.  Use the altroot mechanism to maintain a backup of your
root fs on another disk; the day the main disk breaks, you just have to
change a line in the fstab to boot.

$ df -h
Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/wd0a  157M   69.2M   79.9M46%/
mfs:2 72.6M4.0K   68.9M 0%/tmp
/dev/sd0d  1.1G583M521M53%/usr
/dev/sd0e  3.9G2.6G1.0G71%/usr/local
/dev/sd0f  1.9G761M1.1G40%/usr/src
/dev/sd0g  1.9G1.2G637M66%/usr/obj
/dev/sd0h  3.0G887M2.0G30%/var
/dev/sd0i  1.1G500M603M45%/usr/xenocara
/dev/sd0j  482M189M270M41%/usr/X11R6
/dev/sd0k  231G   73.9G146G34%/home
/dev/sd0l 19.4G3.2G   15.2G17%/usr/ports
$ grep alt /etc/fstab
/dev/wd1a /altroot ffs xx 0 0
$ sudo bioctl -ih sd0
Volume  Status   Size Device  
softraid0 0 Online   298G sd0 RAID1
  0 Online   298G 0:0.0   noencl wd0d
  1 Online   298G 0:1.0   noencl wd1d
$ sudo disklabel wd0c | tail -n 4
#size   offset  fstype [fsize bsize  cpg]
  a:   327537   63  4.2BSD   2048 16384  324 
  c:6251424480  unused   
  d:624809745   327600RAID   
$ sudo disklabel wd1c | tail -n 4
#size   offset  fstype [fsize bsize  cpg]
  a:   327537   63  4.2BSD   2048 163841 
  c:6251424480  unused   
  d:624809745   327600RAID   


Later,

-- 
Olivier Cherrier - Symacx.com
mailto:o...@symacx.com



Re: Question regarding to dsniff.

2009-11-24 Thread Olivier Cherrier
On Tue, Nov 24, 2009 at 10:11:57PM +0100, mateusz.gierblin...@gmail.com wrote:
 @Nick: It seems that you're right. OpenBSD creates *.tgz package from source
 and stores it in /usr/ports/packages/i386/all and after that the package is
 automatically installed, but the problem is that  package is not installed
 in the end. Even tryied to install the package manually but this also did
 not work.
 
 @Olivier: Yes, I did and found something about it in OpenBSD FAQ, but
 nothing that could actually help me out.
 
As Nick said, something is broken in the chain.
It would be useful to post your /etc/mk.conf, your environment and the
full log of the command cd /usr/ports/security/dsniff/  make install.

 I think it would be a good idea to contact Dug Song about this issue.

$ cd /usr/ports/security/dsniff/
$ make show=MAINTAINER
The OpenBSD ports mailing-list po...@openbsd.org
$ 


-- 
Olivier Cherrier - Symacx.com
mailto:o...@symacx.com



Re: Question regarding to dsniff.

2009-11-23 Thread Olivier Cherrier
On Mon, Nov 23, 2009 at 06:39:02PM +0100, mateusz.gierblin...@gmail.com wrote:
 I'm playing around with some security tools and I would like to test out the
 dsniff package. I have tried to install dsniff using ports, db, libnet 
 dsniff had been compiled but on the end of the installation process log file
 told me that the installation of dsniff had been faked. Why?

You can read ports(7) and bsd.port.mk(5)

-- 
Olivier Cherrier - Symacx.com
mailto:o...@symacx.com



Re: CVS problems OpenBSD 4.5

2009-11-17 Thread Olivier Cherrier
On Mon, Nov 16, 2009 at 08:23:40PM -0600, alv...@dydnetworks.com wrote:
  1) with cvsroot=anon...@anga.funkfeuer.at:/cvs
 
  # cvs -d$CVSROOT up -rOPENBSD_4_5 -Pd
 ssh_exchange_identification: Connection closed by remote host
 cvs [update aborted]: end of file from server (consult above messages if
 any)
 
Remote host closed the connection for whatever reason.

  2) with cvsroot=anon...@anoncvs.de.openbsd.org:/cvs

Since version 1.303 of the anoncvs.html file (2009/08/19 12:47:10), this
server is not listed anymore. So pick up another one from
http://www.openbsd.org/anoncvs.html#CVSROOT


-- 
Olivier Cherrier
mailto:o...@symacx.com



Re: a way to specify a specific scsi number at bioctl?

2009-10-22 Thread Olivier Cherrier
On Thu, Oct 22, 2009 at 11:02:26AM +1000, simplersolut...@gmail.com wrote:
 
  But, for sd on USB, it becomes more difficult to predict where do you
  plan to plug your USB keys.
  An alternative could be to use hotplugd(8) and to mount your just
  identified sd using its label on top of the wanted mount point. You
  just need to set a unique label per disk and rely on it.
 
 
 You can do all of this in config(8) without haing to recompile at all.
 
Not really.
Read hotplugd(8) and look for 'disklabel'.

-- 
Olivier Cherrier
mailto:o...@symacx.com



Re: a way to specify a specific scsi number at bioctl?

2009-10-21 Thread Olivier Cherrier
On Wed, Oct 21, 2009 at 02:22:18PM +0200, obs...@crudp.ath.cx wrote:
 the problem is, that if something is mounted at a wrong place (or i've  
 got an additional usb-device attached) the whole numbering gets messed  
 up and nothing is mounted correctly.
 this is why i am asking if it's not possible to force a devicename upon  
 a device!

To fix sd numbering on multiple SCSI busses, you have to build a custom
kernel like:
scsibus0 at isp?
scsibus1 at esp?
scsibus2 at siop?
sd0 at scsibus0
sd1 at scsibus0
sd2 at scsibus0
sd3 at scsibus0
sd4 at scsibus0
sd10 at scsibus2
sd11 at scsibus2
sd12 at scsibus2
sd13 at scsibus2
sd14 at scsibus2
sd15 at scsibus2
sd16 at scsibus2
sd17 at scsibus2
...

But, for sd on USB, it becomes more difficult to predict where do you
plan to plug your USB keys.
An alternative could be to use hotplugd(8) and to mount your just
identified sd using its label on top of the wanted mount point. You
just need to set a unique label per disk and rely on it.


-- 
Olivier Cherrier
mailto:o...@symacx.com



Re: Web GUI for named(8) ?

2009-07-23 Thread Olivier Cherrier
On Thu, Jul 23, 2009 at 09:38:42AM +0400, rolf.sommerhal...@alumni.ethz.ch 
wrote:
 Can you recommend any GUI that enables junior IT staff to maintain
 basic DNS Resource Records (such as for ex.. A, PTR, CNAME,...) for
 BIND 9 running on OpenBSD?
 
Sauron (http://sauron.jyu.fi/) is quite good for that job!
The migration is handy. It also have cli tools for most operations.

Later,

-- 
Olivier Cherrier
mailto:o...@symacx.com



Re: Snapshots built against 4.6 tag?

2009-07-13 Thread Olivier Cherrier
On Mon, Jul 13, 2009 at 04:58:55PM -0400, jeremych...@gmail.com wrote:
 Are the snapshots currently being built using the OPENBSD_4_6 tag?
 
 Ultimately what I want to know is when the snapshots are no longer 4.6
 and are what will be 4.7

Snapshots are based on HEAD + some patches from developpers that
are not yet committed.
You can read mailing-list archive.

-- 
Olivier Cherrier
mailto:o...@symacx.com



Re: VIA chipsets: support of CN700, VT8237R, VT1708/A

2009-07-08 Thread Olivier Cherrier
 by CPUID; using exception 16
mtrr: Pentium Pro MTRR support
uhidev0 at uhub1 port 2 configuration 1 interface 0 Logitech USB Optical 
Mouse rev 2.00/43.01 addr 2
uhidev0: iclass 3/1
ums0 at uhidev0: 3 buttons, Z dir
wsmouse0 at ums0 mux 0
softraid0 at root
PXE boot MAC address 00:1b:b9:99:f2:13, interface rl0
nfs_boot: using interface rl0, with revarp  bootparams
nfs_boot: client_addr=192.168.1.3
nfs_boot: server_addr=192.168.1.2 hostname=esther
root on c3:/home/esther
nfs_boot: bootparam get swap: 60
WARNING: no swap
swapmount: no device

-- 
Olivier Cherrier
mailto:o...@symacx.com



Re: doubts on NFS [solved]

2009-07-07 Thread Olivier Cherrier
On Tue, Jul 07, 2009 at 12:14:07AM -0300, mar...@ipv4networks.com wrote:
 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
  ^^^ should be nfs


-- 
Olivier Cherrier - Symacx.com
mailto:o...@symacx.com



Re: Sierra Wireless MC5725 Cell Modem Not Working on OpenBSD 4.5

2009-06-11 Thread Olivier Cherrier
On Wed, Jun 10, 2009 at 07:34:31PM -0700, eclip...@gmail.com wrote:
 I just installed OpenBSD 4.5 i386 on my Lenovo X61s Thinkpad, and even
 though dmesg shows that it detects the internal Sierra Wireless MC5725
 Cell Modem I am unable to get ppp to dialout on it. The modem is
 activated and was able to connect using Verizon Wireless software in
 Windows, the option do not disable when application is closed was
 checked, and the LED is on which means it should be powered on under
 OpenBSD. The modem detects as:
 
 umsm0 at uhub5 port 1 configuration 1 interface 0 Sierra Wireless,
 Incorporated Sierra Wireless MC5725 Modem rev 1.10/0.02 addr 2
 
 I've read the man pages for umsm devices and have tried to setup ppp
 using the devices /dev/cuaU0, cuaU1, cuaU2, cuaU3, as well as others
 cu* devices, but it always fails to dial. Here's my ppp.conf file:
 
 evdo
  set device /dev/cuaU0
  set speed 230400
  set dial TIMEOUT 30 \\ ATZ OK-ATZ-OK ATDT\\T TIMEOUT 60 CONNECT
  set phone #777
  set login
  set authname ##...@vzw3g.com
  set authkey vzw
  set timeout 12000
  add! default HISADDR
  enable dns
 
 This config worked on a PC card Pantech modem and was able to dial up
 to the Verizon network, so I would think a similar one would work with
 the internal Sierra Wireless one. I've also tried to troubleshoot ppp
 manually by using it interactively and issuing AT commands, but
 whenever I enter term mode it doesn't show appear to do anything
 except when I do a ~. to exit.
 
 Here's the ppp log when I do: sudo ppp -background evdo
 
 Jun 10 19:25:42 navi ppp[8362]: Phase: Using interface: tun0
 Jun 10 19:25:42 navi ppp[8362]: Phase: deflink: Created in closed state
 Jun 10 19:25:42 navi ppp[4413]: Phase: PPP Started (background mode).
 Jun 10 19:25:42 navi ppp[4413]: Phase: bundle: Establish
 Jun 10 19:25:42 navi ppp[4413]: Phase: deflink: closed - opening
 Jun 10 19:25:42 navi ppp[4413]: Phase: deflink: Connected!
 Jun 10 19:25:42 navi ppp[4413]: Phase: deflink: opening - dial
 Jun 10 19:26:43 navi ppp[4413]: Warning: Chat script failed

What is your chat script?

-- 
Olivier Cherrier
mailto:o...@symacx.com



Re: Booting from softraid

2009-05-12 Thread Olivier Cherrier
On Tue, May 12, 2009 at 12:47:32PM +0200, stefan+open...@rg-me.it wrote:
 I've recently started playing around with the softraid(4) driver, as I
 recently noticed that bsd.rd already comes with support for it. What I
 want to accomplish is to place as much as possible into the RAID set
 (RAID 1, of course), ideally (almost) booting from it.
 
 Up until now I have used ccd(4). Since it isn't possible to create
 ccd-containers at install, I've always made disklabel with some space
 for the root mount, then one big slice for the rest, and as soon as
 the base install was done bring up the ccd-container, set up the real
 disklabel there, and move /usr, /var, etc. there, relying on daily(8) to
 keep my / mirrored in /altroot.
 
 Now I'm wondering if this whole process could be simplified precisely
 with softraid. I've already been able to construct a mirror set at
 install. My first naive try was to make a sort of pseudo-disklabel on
 the real disks, so that the 'a' slice just spans the entire disk,
 typed RAID. Then I instructed bioctl to build a RAID 1-set out of
 those two slices. Reboot, bsd.rd still finds it, and now install into
 the new sd0.
 
 Of course, this didn't work and fails first thing at boot giving
 ERR M. Reading up about the boot process, I'm now quite sure that it
 coulnd't possibly work this way ever since /boot has no way of knowing
 about the softraid-container until the kernel is loaded, which precisely
 would be /boot's function.
 
 What I now tried was allocating just a very tiny boot slice (just
 enough space for boot and the kernel), and having installboot(8)
 instructed to use *this* bootloader (outside of the RAID-set) to boot.
 I now get the kernel to load without problem, just as expected, and the
 kernel also finds the RAID-set at sd0 as bsd.rd did, so in theory it
 could just go on and boot from there. But instead, it tries to use this

RAIDframe users use this same scenario since years...
-- raidctl(8) and /Root on RAID

 boot-slice (wd0a) as it's root device, which of course must fail (and
 does so, quite spectacularily).
 
 The boot(8) manpage gives the hint of using '-a' to be able to specify
 which drive the kernel should use as it's root drive. This way, I *am*
 able to successfully boot into my newly installed system. So this looks
 like my idea could at least theoretically work. However, I have not yet
 found any way of somehow storing this device somewhere so that I *don't*
 have to physically sit there and type in 'sd0' whenever I just happen to
 be wanting to boot.
 
 Now, what I want to ask: Is there a way to somehow force the root
 device of my choice into the kernel, e.g. ` la config(8)? Or is there
 maybe a way of specifying it into a boot.conf-stub placed into my
 boot-slice? Or am I simply wasting my time and should stick to a root
 *outside* the RAID-set which daily mirroring into /altroot?

As already pointed out, you have to recompile a kernel with a special
config (config bsd root on sd0a swap on sd0b dumps on xxx)

BTW, can the dumps be saved on a softraid RAID1 discipline?  Otherwise,
you have to use a real disk.

-- 
Olivier Cherrier - Symacx.com
mailto:o...@symacx.com



Re: E220 as 3G Internet Access

2009-04-25 Thread Olivier Cherrier
On Fri, Apr 24, 2009 at 11:08:54PM +0300, donc...@elmed.pub.ro wrote:
 Unfortunately you can't use OpenBSD yet to connect to Vodafone's 3G internet
 mobile even if there is already an Huawei E220 shiny new driver. That is
 because OBSD has an archaic pppd implementation (ver. 2.3.5) wich lacks some
 important parameters like usepeerdns, noipv6, etc. Ask the developers to
 update pppd at latest version 2.4.4 so we can all enjoy our favorite OS with
 Vodafone's 3G. Cheers !
 
Fortunately it works for me. Change your archaic mind.

-- 
Olivier Cherrier
mailto:o...@symacx.com



Re: E220 as 3G Internet Access

2009-04-25 Thread Olivier Cherrier
On Sat, Apr 25, 2009 at 05:36:08PM +0300, donc...@elmed.pub.ro wrote:
 
 Wow ! It would be very nice if you could post your setup files for pppd to 
 m...@. There are many people interested. Thank you in advance !

Wow, it would be also nice if you could learn to search before asking.
http://marc.info/?l=openbsd-misc
http://marc.info/?l=openbsd-tech

-- 
Olivier Cherrier
mailto:o...@symacx.com



Re: Changing the daily / weekly scripts

2009-04-15 Thread Olivier Cherrier
On Wed, Apr 15, 2009 at 03:26:46PM +0200, jfsimon1...@gmail.com wrote:
 I will move the following on my local box from daily to weekly.local so that 
 this part of code is executed once a week only. It will therefore not be sent 
 by mail since it seems to me that the weekly is not logged via local email as 
 the daily is. This loss of information is not a problem but executing daily
 df -kl for some particular reason is a problem, while executing it once a 
 week 
 is acceptable.
 
 Code in daily Quote//
 echo 
 echo Checking subsystem status:
 echo 
 echo disks:
 df -kl
 echo 
 dump W
 echo 
 //Unquote
 
 If anyone sees that this might be an issue, since I do not know exactly if 
 moving this part of code might have side effects 

Sure, do not do that!!  Otherwise your computer may take fire.

-- 
Olivier Cherrier
mailto:o...@symacx.com



Re: sftp chroot ?

2009-02-24 Thread Olivier Cherrier
On Mon, Feb 23, 2009 at 07:33:23PM +0100, jfsimon1...@gmail.com wrote:
 If I understand this will chroot any user. Am I correct ?
 - Is root chrroted as well ?
 - Is it possible to chrrot only some users ?


What man page is not clear?


-- 
Olivier Cherrier



Re: Share a LUN

2009-02-20 Thread Olivier Cherrier
On Fri, Feb 20, 2009 at 03:59:19PM +0100, elbibliotecarioci...@gmail.com wrote:
 I am planning to connect by a fiber card one OpenBSD server to that
 LUN and offer this data to the web servers by a NFS share. But I that
 single NFS host dies, all the web servers stop accessing the data.
 
 As fas as I know, there is no possibility of connecting more than a
 machine simoultaneously to the same LUN in a SAN, am I right? If that
 is so, I need some kind of failover.
 
From the SAN (zoning) and storage point of view, you can expose the
same LUN to many HBA (host controllers).  It means multiple OpenBSD
servers can see the same LUNs.  To mount them on more than one node
requires a global FS, beast that does not exist on OpenBSD.
You may want to setup some 'cluster' logic to mount a LUN on one node at
a time, tacking care about fsck, ...

 If I get a second server with a fiber card, how can I implement a
 failover mechanism so that when the first server dies, the spare
 server connects to the LUN and exports the data by NFS to the web
 servers? Can CARP be used for that?

This is really a NFS cluster scenario.
With OpenBSD and CARP, you could also setup 2 web servers with their
own storage and sync them with some home made scripts. Yeah, you need
100% more storage.

-- 
Olivier Cherrier



Re: mouse cursor is too fast with wsmoused

2009-01-15 Thread Olivier Cherrier
On Thu, Jan 15, 2009 at 01:07:15AM +0100, lvl...@skynet.be wrote:
 Microsoft IntelliMouse Optical (USB) on Dell PE1950,
 wsmoused_flags= in /etc/rc.conf.local

 Mouse cursor is very fast, almost unusable.
 man for wsmoused nor Mr. Google gave me any clue,
 is there any way to slow the mouse down?
   

   
 Not a joke, first try this cheapest tip:
 change your mousepad.
 

 Probably cheap and fastest solution, but not system one.
 Later I will connect the server to KVM switch.
 But generally, is there any wsmoused_flags solution for this?
 Or any other setting?


   
 You could check man mousedrv and play with some options as
 SampleRate, Resolution, Sensitivity, ...
 Other info in the /usr/xenocara/driver/x86-input-mouse/README
 and various Linux forums.
 Spend hours.

X11 != console


-- 
Olivier Cherrier
mailto:o...@symacx.com



Re: mouse cursor is too fast with wsmoused

2009-01-15 Thread Olivier Cherrier
On Thu, Jan 15, 2009 at 08:54:53PM +0100, lvl...@skynet.be wrote:
 Hence re-read the paragraph you cut when quoting.

 Use that trick in politics, where incomplete or edited quotes or quotes out 
 of context  are
 what business is.

 Also, as member of this list, you do not need to CC me at my mail account.

Who cares?  Correctly configure your MUA.

-- 
oc



Re: E220 as 3G Internet Access

2009-01-13 Thread Olivier Cherrier
On Fri, Jan 09, 2009 at 02:15:21PM +0700, sonj...@gmail.com wrote:
 i have E220 from Huawei for mobile internet connection . Now i want
 using E220 as internet sharing from my obsd 4.4 box.
 i have found good link  obsd 4.4 and E220  http://www.jensolsson.se/?p=123
 when i try connect get error like this bellow :
 
 Jan  9 13:54:15 bsd pppd[28000]: pppd 2.3.5 started by root, uid 0
 Jan  9 13:54:20 bsd pppd[28000]: Connect: ppp0 -- /dev/ttyU0
 Jan  9 13:54:23 bsd pppd[28000]: Could not determine remote IP address
 Jan  9 13:54:23 bsd pppd[28000]: Connection terminated.
 Jan  9 13:54:25 bsd pppd: Exit.
 
 here my ppp conf :
 
 # cat /etc/ppp/qiandra
 /dev/ttyU0
 crtscts
 defaultroute
 noauth
 connect '/usr/sbin/chat -v -f /etc/ppp/qiandra.chat'
 #
 chat
 # cat /etc/ppp/qiandra.chat
 ABORT NO CARRIER
 ABORT NO DIALTONE
 ABORT ERROR
 ABORT NO ANSWER
 ABORT BUSY
 ABORT Username/Password Incorrect
 TIMEOUT 15
  ATZ
 OK ATE1
 OK ATQ0V1E1S0=0C1D2+FCLASS=0
 OK 'AT+CGDCONT=1,IP,apnisp'
 OK ATDT*99***1#
 TIMEOUT 30
 CONNECT \d\c
 #
 options
 
 # cat /etc/ppp/options
 modem
 defaultroute
 netmask 255.255.255.0

?

 ipcp-accept-local
 ipcp-accept-remote
 noipdefault
 lock
 auth
 usehostname
 #
 basic my isp using dhcp for ip address and  i must set static dns for tunning.
 
 so how to solved my problem with E220 and OBSD 4.4 do i missing something ?

There are some configuration examples in the mailing-list archives. You
may have a look.


-- 
Olivier Cherrier
mailto:o...@symacx.com



Re: OpenBSD 4.4 - fdisk issue

2008-11-04 Thread Olivier Cherrier
On Tue, Nov 04, 2008 at 04:31:57PM +0100, [EMAIL PROTECTED] wrote:
 I just try to install OpenBSD 4.4 on a serveur (HP DL120 G5) to test the
 functionality of the raid (seens it works again .).
 
 I configure the first disk without any issue, and then try following
 commands:
 
 disklabel wd0  disklabel.wd1
 fdisk -i wd1
 disklabel -R -r wd1 disklabel.wd1
 newfs /dev/wd1a
 
 Error: 
 newfs: /dev/wd1a: block device

Second section of the newfs(8) manpage.


-- 
Olivier Cherrier
mailto:[EMAIL PROTECTED]



Re: configuration

2008-10-03 Thread Olivier Cherrier
On Fri, Oct 03, 2008 at 07:24:55AM +0400, [EMAIL PROTECTED] wrote:
 I do not know how to configuer the following from dmesg.boot

 acpi at mainbus0 not configured

What is you version of OpenBSD? dmesg?

 TI TSB43AB21 FireWire rev 0x00 at pci2 dev 14 function 0 not configured

FireWire is not supported on OpenBSD.

 Intel 82801CA/CAM Modem rev 0x02 at pci0 dev 31 function 6 not configured

It could be a winmodem...

 My internet provider send me the following:

 VPI:   0
 VCI:   35
 Connection type: PPPoE
 Username:  some
 Password:   some
 DNS: xxx.xxx.xxx.x
 yyy.yyy.yyy.y
 No idea how to connect. Hope for help.

What is your question? If you want to make a ADSL/PPPoE connection, see
'man -k pppoe'.

-- 
Olivier Cherrier
mailto:[EMAIL PROTECTED]



Re: question about raidframe getting stuck

2008-08-08 Thread Olivier Cherrier
On Thu, Aug 07, 2008 at 12:33:40PM +0200, [EMAIL PROTECTED] wrote:
 Seems we have some misunderstanding here. I am talking about
 future events. Of course I don't know in advance which disk
 fails when. If a disk dies, then its the job of raidframe to
 detect this event, to mark the disk as bad, and to provide the
 basic service with the remaining disks, as far as possible.
 And yet the machine became unresponsive for 30 minutes.
 This took much too long.

Couldn't it be related to the IDE bus? What for noise can a deffective
disk on an IDE controller generate when it is failling.
I would suggest to you to use SCSI controllers and disks with
hot-swappable functionnalities.

-- 
Olivier Cherrier - Symacx.com
mailto:[EMAIL PROTECTED]



Re: Cronolog Apache?

2008-07-03 Thread Olivier Cherrier
On Thu, Jul 03, 2008 at 01:54:45PM -0500, [EMAIL PROTECTED] wrote:
 Seems like Cronolog would be a good solution for rotating Apache logs when 
 running Chroot'd, as it eliminates the need for stopping/restarting Apache.

 Can't seem to find any info on configuring, .. is anyone using it? Or, is 

Yes, what's missing in cronolog(1) ?

-- 
Olivier Cherrier
mailto:[EMAIL PROTECTED]



Re: Sendmail question

2008-06-26 Thread Olivier Cherrier
On Tue, Jun 24, 2008 at 09:20:03PM -0400, [EMAIL PROTECTED] wrote:
 I have an OpenBSD machine that will handle outbound mail using Sendmail. 
 I'd like Sendmail to scan the messages, and any messages with a certain 
 word in the subject will be sent to a specific server instead of the 
 Internet.  I've figured out how to *block* messages based on the subject 
 using LOCAL_RULESETS, but not how to re-route them.  I'd rather not rewrite 
 the From: address, but I can if I must.  Can someone give me a pointer on 
 how to do this?  Thanks.

You may need a milter. There is one which fits in ports (milter-regex).
Scanning email bodies will impact performances.
 
-- 
Olivier Cherrier
mailto:[EMAIL PROTECTED]



Re: fdisk automation scripts? Autopartition?

2006-12-06 Thread Olivier Cherrier
On Mon, Dec 04, 2006 at 01:55:20PM +0200, [EMAIL PROTECTED] wrote:
 Might anyone have any pointers to sources of fdisk automation scripts for 
 OpenBSD that that can determine the size of a disk and follow a set of 
 partitioning guidelines? Scenario: cookie-cutter systems with different drive 
 sizes. Options like use the remainder for /usr are always handy.
 
It seems that you are mixing fdisk(8) and disklabel(8).

-- 
Olivier Cherrier



Re: Via EPIA boards

2006-04-18 Thread Olivier Cherrier
On Mon, Apr 17, 2006 at 02:12:03PM -0400, [EMAIL PROTECTED] wrote:
 My home firewall is running on a PD1.  Similar to the M1, except with
 two NICs.  NICs are supported.  I don't think Xorg supports the VIA graphics
 chip, but doesn't matter to me.

Both the old X11 and new Xorg work great on the VIA graphics adaptator
commonly found on EPIA boards.

The vr(4) nics suck quite often for me. I have to power off the box to
recover a functionnal network interface.

-- 
Olivier Cherrier



Re: additional features in bsd.rd

2005-11-23 Thread Olivier Cherrier
On Tue, Nov 22, 2005 at 01:08:24PM +0100, [EMAIL PROTECTED] wrote:
 3. Restore a  'disk image' from above...
 #  nc -l 1234 | dd of=/dev/rwd0c
 
 You can already do those things with 'ftp -o -'..
 
 unless I read ftp(1) incorrectly, then it supports retrieve only,  
 with no ability to send - which was my main desire.
 
You can download and upload files using ftp(1).
I use to do it since OpenBSD 2.9, using standard floppies.

-- 
oc



Re: LSISAS1068 driver support

2005-10-27 Thread Olivier Cherrier
On Thu, Oct 27, 2005 at 08:12:43AM -0700, [EMAIL PROTECTED] wrote:
 Hello, I am trying to get OpenBSD 3.8 running on a
 stock HP Proliant DL-320 server (bge network, SATA 
 drives, no floppy, no cd, P4, 1G RAM, HP iLo) with the
 HP 8 Internal Port SAS Host Bus Adapter with RAID
 (link:
 http://h18004.www1.hp.com/products/...-hba/index.html
 
 
 HP part number: 347786-B21
 
 The chipset is LSI SAS 1068, and according to LSI,
 supported with the mpt driver.  Here is the link to
 LSI's information:
 
 http://www.lsilogic.com/products/sas_ics/lsisas1068.html
 
Where do you see it is supported on the OpenBSD website?

 When I try to install OBSD 3.8 (via USB CDROM Drive
 with cd38.iso downloaded from current), I get to the
 Proceed with Install, then no disks found.  I
 realize that the hardware isnt currently supported,
 but was wondering  if anyone would want to take a
 crack at adding support for this to the mpt driver
 (assuming it isnt already being worked on).  I am
 willing to test, or do whatever I can to help, I just
 can't write code (especially drivers), because I dont
 know how to.   I was able to get network connectivity,
 so I wrote my dmesg output to a file, and sent it to
 myself.  Here it is:
 
 OpenBSD 3.8-current (RAMDISK_CD) #853: Tue Oct 25
 23:25:14 MDT 2005

 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/RAMDISK_CD
 cpu0: Intel(R) Pentium(R) 4 CPU 3.40GHz
 (GenuineIntel 686-class) 3.40 GHz
 cpu0:
 FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,CNXT-ID
 real mem  = 1073270784 (1048116K)
 avail mem = 973828096 (951004K)
 using 4278 buffers containing 53768192 bytes (52508K)
 of memory
 mainbus0 (root)
 bios0 at mainbus0: AT/286+(00) BIOS, date 12/31/99,
 BIOS32 rev. 0 @ 0xf
 pcibios0 at bios0: rev 2.1 @ 0xf/0x2000
 pcibios0: PCI BIOS has 6 Interrupt Routing table
 entries
 pcibios0: PCI Interrupt Router at 000:31:0 (Intel
 82801FB LPC rev 0x00)
 pcibios0: PCI bus #5 is the last bus
 bios0: ROM list: 0xc/0x8000 0xc8000/0x4800
 0xcc800/0x1600 0xee000/0x2000!
 cpu0 at mainbus0
 pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
 pchb0 at pci0 dev 0 function 0 Intel E7221 MCH Host
 rev 0x05
 ppb0 at pci0 dev 1 function 0 Intel E7221 PCIE rev
 0x05
 pci1 at ppb0 bus 1
 ppb1 at pci1 dev 0 function 0 Intel PCIE-PCIE rev
 0x09
 pci2 at ppb1 bus 2
 bge0 at pci2 dev 1 function 0 Broadcom BCM5704C rev
 0x10, BCM5704 B0 (0x2100): irq 5, address
 00:14:c2:3b:f1:77
 brgphy0 at bge0 phy 1: BCM5704 10/100/1000baseT PHY,
 rev. 0
 bge1 at pci2 dev 1 function 1 Broadcom BCM5704C rev
 0x10, BCM5704 B0 (0x2100): irq 7, address
 00:14:c2:3b:f1:76
 brgphy1 at bge1 phy 1: BCM5704 10/100/1000baseT PHY,
 rev. 0
 vendor Symbios Logic, unknown product 0x0054 (class
 mass storage subclass SCSI, rev 0x00) at pci2 dev 3
 function 0 not configured
 ppb2 at pci1 dev 0 function 2 Intel PCIE-PCIE rev
 0x09
 pci3 at ppb2 bus 3
 ppb3 at pci0 dev 28 function 0 Intel 82801FB PCIE
 rev 0x03
 pci4 at ppb3 bus 4
 uhci0 at pci0 dev 29 function 0 Intel 82801FB USB
 rev 0x03: irq 5
 usb0 at uhci0: USB revision 1.0
 uhub0 at usb0
 uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
 uhub0: 2 ports with 2 removable, self powered
 uhci1 at pci0 dev 29 function 1 Intel 82801FB USB
 rev 0x03: irq 7
 usb1 at uhci1: USB revision 1.0
 uhub1 at usb1
 uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1
 uhub1: 2 ports with 2 removable, self powered
 uhci2 at pci0 dev 29 function 2 Intel 82801FB USB
 rev 0x03: irq 10
 usb2 at uhci2: USB revision 1.0
 uhub2 at usb2
 uhub2: Intel UHCI root hub, rev 1.00/1.00, addr 1
 uhub2: 2 ports with 2 removable, self powered
 uhci3 at pci0 dev 29 function 3 Intel 82801FB USB
 rev 0x03: irq 10
 usb3 at uhci3: USB revision 1.0
 uhub3 at usb3
 uhub3: Intel UHCI root hub, rev 1.00/1.00, addr 1
 uhub3: 2 ports with 2 removable, self powered
 ehci0 at pci0 dev 29 function 7 Intel 82801FB USB
 rev 0x03: irq 5
 usb4 at ehci0: USB revision 2.0
 uhub4 at usb4
 uhub4: Intel EHCI root hub, rev 2.00/1.00, addr 1
 uhub4: 8 ports with 8 removable, self powered
 ppb4 at pci0 dev 30 function 0 Intel 82801BA AGP rev
 0xd3
 pci5 at ppb4 bus 5
 vendor Compaq, unknown product 0xb203 (class system
 subclass miscellaneous, rev 0x01) at pci5 dev 2
 function 0 not configured
 vendor Compaq, unknown product 0xb204 (class system
 subclass miscellaneous, rev 0x01) at pci5 dev 2
 function 2 not configured
 vga1 at pci5 dev 3 function 0 ATI Rage XL rev 0x27
 wsdisplay0 at vga1 mux 1: console (80x25, vt100
 emulation)
 ichpcib0 at pci0 dev 31 function 0 Intel 82801FB LPC
 rev 0x03: PM disabled
 pciide0 at pci0 dev 31 function 1 Intel 82801FB IDE
 rev 0x03: DMA, channel 0 configured to compatibility,
 channel 1 configured to compatibility
 pciide0: channel 0 disabled (no drives)
 pciide0: channel 1 disabled (no drives)
 isa0 at ichpcib0
 isadma0 at isa0
 pckbc0 at isa0 port 0x60/5
 pckbd0 at pckbc0 (kbd slot)
 pckbc0: using irq 1 for kbd slot
 

Re: AMD Cool 'n Quiet

2005-10-18 Thread Olivier Cherrier
On Tue, Oct 18, 2005 at 05:55:10PM +1000, [EMAIL PROTECTED] wrote:
 I've searced the archives and couldn't find an answer. Does anyone know
 if OpenBSD supports AMD cool and quiet ?
 
 
 
 not right now.
   
 
 Thanks Ted.
 
 When is it planned for inclusion ?

When you write the code.

-- 
oc



Re: Amanda port WO gnuplot?

2005-07-20 Thread Olivier Cherrier

On Jul 20, 2005, at 3:43 AM, stan wrote:

I'm building several new 3.7 machines. These machines will be Amanda
clients (only, not servers)/ Looks like the amanda port depends on 
gnuplot,

which depends on X11.



Use packages or do the build using a X11 box.

Now, I really don;t want X on these machines. Is there a way to tell 
the
port build provess to make the client side only? Or just that I don't 
want

amplt? Which id the only peice that requires gnuplot.


To build only the client part, see ports(7).  env SUBPACKAGE=-client 
make

To not depend on gnuplot, modify the Makefile or use pre-built packages.


Please, use correct mailing list for ports related questions:
ports@openbsd.org

--
Olivier Cherrier



Re: Compile time on old i386

2005-06-11 Thread Olivier Cherrier
On Sun, Jun 05, 2005 at 04:57:56PM -0400, [EMAIL PROTECTED] wrote:
 On Sunday 05 June 2005 16:46, Richard P. Koett wrote:
  I'm running make build on a Pentium 100 with 64M and an old IDE drive.
  Any guesses as to how long this might take?
 
  And, out of curiosity, how fast can a fast i386 box do it?
 
 I wouldn't be surprised if it took 40 hours.  The lack of memory is going
 to affect things--if you can, stuff 128m in it.
 
 My 1.8G p4 laptop can do a make build in about 2 hours.

Wouha! I understand that you have slow disks in a laptop but my Via C3
with only 1GHz and 128K CPU cache is quite better:

His best make build performance is 1:46:01.


-- 
Olivier Cherrier - Symacx.com