Mount USB disk

2008-11-17 Thread Christophe Rioux
I try to mount an USB disk using FAQ14
(http://www.openbsd.org/faq/faq14.html)

dmesg:
umass0 at uhub0 port 4 configuration 1 interface 0 Cypress Semiconductor
USB2.0 Storage Device rev 2.00/0.01 addr 2
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets
sd0 at scsibus1 targ 1 lun 0: HTS72101, 0G9AT00,  SCSI0 0/direct fixed
sd0: 95396MB, 12161 cyl, 255 head, 63 sec, 512 bytes/sec, 195371568 sec
total

Disklabel sd0
disklabel: warning, DOS partition table with no valid OpenBSD partition
# /dev/rsd0c:
type: SCSI
disk: SCSI disk
label: 0G9AT00 
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 12161
total sectors: 195371568
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0   # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0 

16 partitions:
#size   offset  fstype [fsize bsize  cpg]
  c:1953715680  unused  0 0  
  i:195366402   63NTFS   

mount /dev/sd0i /mnt
mount_ntfs: /dev/sd0i on /mnt: Operation not supported

What is wrong ?



Re: HP DL180 hangs on boot

2008-11-07 Thread Christophe Rioux
 I'm going to try upgrading the BIOS firmware (there was some update 
 regarding newer intel CPUs; dont know if it applies to the Xeon E5420 
 but I suppose they wouldn't ship a machine with that processor with a 
 non-working BIOS). Could be worth testing though.
 
 Anyway, thanks and don't hesitate to mention anything I might 
 have missed.
 
 /Alexander
 
I made a test this morning with a DL 360 G5 with P400i controller: work
without any issue (disk declared as RAID-1 and also as RAID-5).



Re: HP DL180 hangs on boot

2008-11-06 Thread Christophe Rioux
I had some similar issue on the HP DL 120 G5.

Solution is: desactivate the RAID controler in the BIOS. If you need the use
some raid, use raidctl which is working again in version 4.4

-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de
Alexander Hall
Envoyi : jeudi 6 novembre 2008 14:44
@ : misc@openbsd.org; [EMAIL PROTECTED]
Objet : HP DL180 hangs on boot

Hi!

I have issues booting a HP ProLiant DL180 G5 (456830-421) [1] which I hope
someone can shed some light on.

[ While writing thie email I've done some more testing and realized that the
behaviour is not really consistent, but what I describe below is a typical
case ]

1. The machine takes loong pauses (usually two; sometimes more) while
   loading the kernel.
   - The first long pause is after entry point at ... line,
 and is about 90s. [noticed now that pressing any key on the
 keyboard makes it go on... interrupt issues?]
   - Second pause is after pckbd0 at isa0... and lasts
 approximately 3 to 5 minutes.

Dunno if it means anything, but somewhere in between the pauses described
first above, the machine beeps once. I get similar beeps when adding or
removing an usb stick, so it might be related to usb.

2. Sometimes the machine shuts down and restarts slightly after the
   kernel is loaded (might have time to show the (I)nstall...
   prompt). I don't have serial console for now so I cannot tell
   exactly. A few times I have seen the capital letter F being
   printed out (gray on blue) prior to the reboot.

disabling isa and pci seems to make it not hang but makes it rather
unusable... :-d

If the machine gets past loading and initializing the kernel without
rebooting, it seems fine but all I've done so far is installing 4.4.

The HP product id is 456830-421 with 1G RAM replaced by 4G (2+2) and a
250GB SATA drive. The machine has no proper raid AFAICT (ie no E200 or P400)
but some (likely crappy) built-in semi-raid. Reinserting the original memory
stick did not improve anything, nor did removing the harddrive.

The diagnostics test showed no errors, but i'm running it now over the
weekend. I'm going to try a firmware upgrade too.

Any clues are appreciated. dmesg from after the succesful install (bsd.rd)
follows.

Thanks,
Alexander

[1]
http://h10010.www1.hp.com/wwpc/uk/en/sm/WF06b/15351-15351-3328412-3328421-33
28421-3580698-3673202.html

==

OpenBSD 4.4-current (RAMDISK_CD) #203: Sun Nov  2 13:41:35 MST 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/RAMDISK_CD
real mem = 3745857536 (3572MB)
avail mem = 3635634176 (3467MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xfc4b0 (65 entries)
bios0: vendor HP version O19 date 08/20/2008
bios0: HP ProLiant DL180 G5
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP APIC MCFG SPMI SLIC OEMB HPET SSDT EINJ BERT ERST
HEST acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (NPE2)
acpiprt2 at acpi0: bus 2 (NPE3)
acpiprt3 at acpi0: bus 3 (NPE4)
acpiprt4 at acpi0: bus 5 (NPE6)
acpiprt5 at acpi0: bus 10 (P0P1)
acpiprt6 at acpi0: bus 9 (P0PE)
acpiprt7 at acpi0: bus 8 (P0P3)
acpiprt8 at acpi0: bus 7 (BCM_)
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel(R) Xeon(R) CPU E5420 @ 2.50GHz, 2494.12 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLU
SH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX1
6,xTPR,NXE,LONG
cpu0: 6MB 64b/line 16-way L2 cache
pci0 at mainbus0 bus 0: configuration mode 1 pchb0 at pci0 dev 0 function 0
Intel 5100 Host rev 0x80 ppb0 at pci0 dev 2 function 0 Intel 5100 PCIE
rev 0x80
pci1 at ppb0 bus 1
ppb1 at pci0 dev 3 function 0 Intel 5100 PCIE rev 0x80
pci2 at ppb1 bus 2
ppb2 at pci0 dev 4 function 0 Intel 5100 PCIE rev 0x80
pci3 at ppb2 bus 3
ppb3 at pci0 dev 5 function 0 Intel 5100 PCIE rev 0x80
pci4 at ppb3 bus 4
ppb4 at pci0 dev 6 function 0 Intel 5100 PCIE rev 0x80
pci5 at ppb4 bus 5
ppb5 at pci0 dev 7 function 0 Intel 5100 PCIE rev 0x80
pci6 at ppb5 bus 6
pchb1 at pci0 dev 16 function 0 Intel 5100 FSB rev 0x80
pchb2 at pci0 dev 16 function 1 Intel 5100 FSB rev 0x80
pchb3 at pci0 dev 16 function 2 Intel 5100 FSB rev 0x80
pchb4 at pci0 dev 17 function 0 Intel 5100 Reserved rev 0x80
pchb5 at pci0 dev 19 function 0 Intel 5100 Reserved rev 0x80
pchb6 at pci0 dev 21 function 0 Intel 5100 DDR rev 0x80
pchb7 at pci0 dev 22 function 0 Intel 5100 DDR rev 0x80 uhci0 at pci0 dev
26 function 0 Intel 82801I USB rev 0x02: irq 11
uhci1 at pci0 dev 26 function 1 Intel 82801I USB rev 0x02: irq 14
uhci2 at pci0 dev 26 function 2 Intel 82801I USB rev 0x02: irq 5 ehci0 at
pci0 dev 26 function 7 Intel 82801I USB rev 0x02: irq 15 usb0 at ehci0:
USB revision 2.0 uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb6 at pci0 dev 28 function 0 Intel 82801I PCIE rev 0x02: irq 11
pci7 at ppb6 bus 9
ppb7 at pci0 dev 28 function 4 Intel 82801I PCIE rev 0x02: irq 11
pci8 at ppb7 bus 8
vga1 at pci8 dev 0 function 0 Matrox MGA G200e 

Re: OpenBSD 4.4 - fdisk issue

2008-11-05 Thread Christophe Rioux
  Hi
  
  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
  
  Same message when I try a mount.
  
  Not a problem I continue and made a new installation on wd1 
 (with the CD)
  
  Then I build my raid0 configuration (by compiling the 
 kernel) and try to
  create the new disk:
  
  fdisk -i raid0
  disklabel -E -raid0
  newfs /dev/raid0a
  
  = same error by newfs and mount
  
  What do I wrong ?
  
  Regards
  

Thanks for all the answer. The answer should be

  disklabel wd0  disklabel.wd1
  fdisk -i wd1
  disklabel -R -r wd1 disklabel.wd1
  newfs /dev/rwd1a instead of newfs /dev/wd1a
  mount /dev/wd1a /mnt

And

  fdisk -i raid0
  disklabel -E -raid0
  newfs /dev/rraid0a instead of newfs /dev/raid0a
  mount /dev/raid0a /mnt



Re: Softraid activation on OpenBSD 4.4

2008-11-05 Thread Christophe Rioux
  I redone the procedure with the new released version, and 
 it seems to be
  better:
  
  Extraction of dmesg:
  
  softraid0 at root
  root on wd0a swap on wd0b dump on wd0b
  raid0: Component /dev/wd0d being configured at row: 0 col: 0
   Row: 0 Column: 0 Num Rows: 1 Num Columns: 2
   Version: 2 Serial Number: 100 Mod Counter: 128
   Clean: Yes Status: 0
  raid0: Component /dev/wd1d being configured at row: 0 col: 1
   Row: 0 Column: 1 Num Rows: 1 Num Columns: 2
   Version: 2 Serial Number: 100 Mod Counter: 128
   Clean: Yes Status: 0
  raid0 at root
  
  The last question I have is: it seems that I actually boot 
 on wd0a, which is
  not a RAID disk. How can I boot on raid0a ?
  
 
 It seems the raid autoconfig does not work.
 What does raidctl -vs raid0 say? 
= same as your result

raid0 Components:
   /dev/wd0d: optimal
   /dev/wd1d: optimal
No spares.
Component label for /dev/wd0d:
   Row: 0, Column: 0, Num Rows: 1, Num Columns: 2
   Version: 2, Serial Number: 100, Mod Counter: 143
   Clean: No, Status: 0
   sectPerSU: 128, SUsPerPU: 1, SUsPerRU: 1
   Queue size: 100, blocksize: 512, numBlocks: 17799936
   RAID Level: 1
   Autoconfig: Yes
   Root partition: Yes
   Last configured as: raid0
Component label for /dev/wd1d:
   Row: 0, Column: 1, Num Rows: 1, Num Columns: 2
   Version: 2, Serial Number: 100, Mod Counter: 143
   Clean: No, Status: 0
   sectPerSU: 128, SUsPerPU: 1, SUsPerRU: 1
   Queue size: 100, blocksize: 512, numBlocks: 17799936
   RAID Level: 1
   Autoconfig: Yes
   Root partition: Yes
   Last configured as: raid0
Parity status: clean
Reconstruction is 100% complete.
Parity Re-write is 100% complete.
Copyback is 100% complete.


 Did you build your kernel with RAID autoconfig support?

I build the kernel with following options:
option RAID_AUTOCONFIG
pseudo-device raid 4
 
And my /etc/raid0.conf:

START array
1 2 0
START disks
/dev/wd0d
/dev/wd1d
START layout
128 1 1 1
START queue
fifo 100

The creation of the RAID:
raidctl -C /etc/raid0.conf raid0
raidctl -I 100 raid0
raidctl -iv raid0



Softraid activation on OpenBSD 4.4

2008-11-05 Thread Christophe Rioux
Hi

I follow my mail from september were I tried to install the soft raid on
OpenBSD 4.3. As we saw, this couldn't work.

I redone the procedure with the new released version, and it seems to be
better:

Extraction of dmesg:

softraid0 at root
root on wd0a swap on wd0b dump on wd0b
raid0: Component /dev/wd0d being configured at row: 0 col: 0
 Row: 0 Column: 0 Num Rows: 1 Num Columns: 2
 Version: 2 Serial Number: 100 Mod Counter: 128
 Clean: Yes Status: 0
raid0: Component /dev/wd1d being configured at row: 0 col: 1
 Row: 0 Column: 1 Num Rows: 1 Num Columns: 2
 Version: 2 Serial Number: 100 Mod Counter: 128
 Clean: Yes Status: 0
raid0 at root

The last question I have is: it seems that I actually boot on wd0a, which is
not a RAID disk. How can I boot on raid0a ?

I made a test: creating a file after booting on hd0a, and this file doesn't
exist in hd1a.

The commands I done to build the raid:

raidctl -C /etc/raid0.conf raid0
raidctl -I 100 raid0
raidctl -iv raid0
disklabel -E raid0
newfs /dev/rraid0a
newfs /dev/rraid0d
mount /dev/raid0a /mnt
cd /mnt
dump -0f - / | restore -rf -
raidctl -A yes raid0
raidctl -A root raid0
echo /dev/raid0a / ffs rw 1 1  /mnt/etc/fstab
echo /dev/raid0b none swap sw 0 0  /mnt/etc/fstab
echo /dev/raid0d /home ffs rw,nodev,nosuid,softdep 1 2  /mnt/etc/fstab
umount /mnt
Reboot

Thanks for the reply

Regards



Re: : Softraid activation on OpenBSD 4.4

2008-11-05 Thread Christophe Rioux
 Note that you can still create a setup that does not
 raid the root disk, just all others. And then use
 the /altroot backup for the root disk, preferably
 /altroot on wd1a. Raided root disk might be regarded
 as a doubtful feature anyway since the kernel will
 be loaded from wd0 anyway, and if it dies you need
 a bootable wd1.

Nice information. I know what I'll do:
* wd0a  wd1a: OpenBSD 4.4
* raid0a: mount point /etc
* raid0d: mount point /home
* raid0e: mount point /usr
* raid0f: mount point /root
* raid0g: mount point /var

= so I can start on both wd0a and wd1a and after booting my mount points
are on the raid disk.

Thanks for the information and idea



OpenBSD 4.4 - fdisk issue

2008-11-04 Thread Christophe Rioux
Hi

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

Same message when I try a mount.

Not a problem I continue and made a new installation on wd1 (with the CD)

Then I build my raid0 configuration (by compiling the kernel) and try to
create the new disk:

fdisk -i raid0
disklabel -E -raid0
newfs /dev/raid0a

= same error by newfs and mount

What do I wrong ?

Regards



Re: OpenBSD 4.4 - fdisk issue

2008-11-04 Thread Christophe Rioux
 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.
 
Great ... This worked in 4.3 without any thing else;

I didn't find anything in this section.

http://www.openbsd.org/cgi-bin/man.cgi?query=newfsapropos=0sektion=0manpa
th=OpenBSD+4.4arch=i386format=html

What should I search for ?



Re: root acount unable to mail gmail.com - vers. 4.3

2008-10-15 Thread Christophe Rioux
Hi

I found the issue. I had to add a route like

Route -q add 127.0.0.1 -netmask 255.0.0.0 localhost

= and after this, the box is able to send mails  !!!

Next issue if someone has an idea:

Interface1 = dmz one with the mail server of the company
Interface2 = Public IP, which is also the IP of my MX server
= I can send mails locally, but not to my mail server. I'm using sendmail
(I don't need more)

I try to change the host IP via the /etc/hosts file (with the DMZ IP
Address) but the system still try to reach the real IP, means to go out of
the interface2; and this is not working.

Regards

 -Message d'origine-
 De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 De la part de Christophe Rioux
 Envoyi : vendredi 10 octobre 2008 17:15
 @ : misc@openbsd.org
 Objet : Re: root acount unable to mail gmail.com - vers. 4.3

 HI

 I have more or less the same issue. I try to send a
 monitoring mail via
 root, and if I do a tcpdump I see:

 pass out on em2: public_ip.17782  127.0.0.1.25:

 What means, the firewall try to send a mail to outside.

 I try the same thing with the command:
  mail [EMAIL PROTECTED]
  subject: toto
  .
 And I see exactly the same result. What is wrong ?

 Regards



Re: root acount unable to mail gmail.com - vers. 4.3

2008-10-11 Thread Christophe Rioux
/var/spool/clientmqueue is not empty. There are all the mails waiting and
there are spooled every 15 minutes.

What I don't also understand is that the command mailq returns after 30-40
secondes the result: 0

Mail -v takes the same result.


-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de
Jesus Sanchez
Envoyi : vendredi 10 octobre 2008 19:47
@ : misc@openbsd.org
Objet : Re: root acount unable to mail gmail.com - vers. 4.3

Christophe Rioux escribis:
 HI

 I have more or less the same issue. I try to send a monitoring mail
 via root, and if I do a tcpdump I see:

 pass out on em2: public_ip.17782  127.0.0.1.25:


pf activated? it may be a rule. Try looking your pf.conf
 What means, the firewall try to send a mail to outside.

 I try the same thing with the command:
  mail [EMAIL PROTECTED]
  subject: toto
  .


are /var/spool/mqueue or /var/spool/clientmqueue empty??

try using # mail -v [EMAIL PROTECTED]
 And I see exactly the same result. What is wrong ?

 Regards



Re: root acount unable to mail gmail.com - vers. 4.3

2008-10-10 Thread Christophe Rioux
HI

I have more or less the same issue. I try to send a monitoring mail via
root, and if I do a tcpdump I see:

pass out on em2: public_ip.17782  127.0.0.1.25:  

What means, the firewall try to send a mail to outside.

I try the same thing with the command:
 mail [EMAIL PROTECTED]
 subject: toto
 .
And I see exactly the same result. What is wrong ?

Regards



Re: OpenBSD 3.9 - 4.3: pfctl Cannot allocate memory

2008-10-07 Thread Christophe Rioux
Hi

I check some information on my system:

vmstat -m

NameSize Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg
Idle
...
pfrktable   1240 54345 4434   334 0   334   334 0   334
0
...
The rest seems to be OK.

I try to increase the memory for the table in pf.conf
set limit tables  1 # default   1000

But nothing is changed.

By doing a pfctl -F rules -f /etc/pf.conf the rules are implemented.

Which value do I need to change so that it can work without problems ?

Regards


 -Message d'origine-
 De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 De la part de Christophe Rioux
 Envoyi : mardi 16 septembre 2008 17:33
 @ : misc@openbsd.org
 Objet : OpenBSD 3.9 - 4.3: pfctl Cannot allocate memory

 Hi,

 During a manual migration (installation with 4.3 CD, and renew the
 configuration manually), I get this error message:

 # pfctl -f pf.conf
 pfctl: failed to create table __automatic_e11ee055_282 in :
 Cannot allocate
 memory
 pfctl in free(): error: chunk is already free
 Abort trap (core dumped)

 I check some informations:

 New system:
 pfctl -sm
 stateshard limit1
 src-nodes hard limit1
 frags hard limit 5000
 tableshard limit 1000
 table-entries hard limit   20
 Top:
 27 processes:  26 idle, 1 on processor
 CPU states:  2.7% user,  0.0% nice,  0.1% system,  0.1%
 interrupt, 97.1%
 idle
 Memory: Real: 19M/95M act/tot  Free: 401M  Swap: 0K/518M used/tot

 Old system:
 pfctl -sm
 stateshard limit1
 src-nodes hard limit1
 frags hard limit 5000
 tableshard limit 1000
 table-entries hard limit   10
 Top:
 31 processes:  1 running, 29 idle, 1 on processor
 CPU states:  0.0% user,  0.0% nice,  100% system,  0.0%
 interrupt,  0.0%
 idle
 Memory: Real: 16M/67M act/tot  Free: 179M  Swap: 0K/2002M used/tot

 Somebody an idea ?

 As next, I found another issue. I try to send mail from the
 new serveur: I
 get the error message (in /var/spool/clientmqueue). Actually
 pf is disable.
 T1221580802
 K1221580802
 N1
 P31471
 I0/0/130550
 MDeferred: [127.0.0.1]: Network is unreachable
 Frs
 $_localhost
 $r
 $slocalhost
 ${daemon_flags}c u
 SMAILER-DAEMON
 MDeferred: [127.0.0.1]: Network is unreachable
 C:root

 Thanks for help
 Christophe



Re: OpenBSD 3.9 - 4.3: pfctl Cannot allocate memory

2008-10-07 Thread Christophe Rioux
The workaround work fine ... thanks

 -Message d'origine-
 De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 De la part de Stuart Henderson
 Envoyi : mardi 7 octobre 2008 15:10
 @ : misc@openbsd.org
 Objet : Re: OpenBSD 3.9 - 4.3: pfctl Cannot allocate memory

 On 2008-10-07, Christophe Rioux [EMAIL PROTECTED] wrote:
  # pfctl -f pf.conf
  pfctl: failed to create table __automatic_e11ee055_282 in :
  Cannot allocate
  memory
  pfctl in free(): error: chunk is already free
  Abort trap (core dumped)

 that's a PF ruleset optimizer bug. I think it was fixed after 4.3
 but without a copy of your pf.conf (ideally reduced to the minimum
 that shows the fault) we can't test this, so you'd have to try it
 with newer pfctl code.

  Which value do I need to change so that it can work without
 problems ?

 workaround:
 set ruleset-optimization none



Re: ascii bandwidth report

2008-09-17 Thread Christophe Rioux
Hi

I use cacti to monitor my routers, servers and firewalls. I also build the
associated report (templates) thanks to
http://www.packetmischief.ca/openbsd/snmp/): interfaces and temperature.

You can install cacti under Windows or under Linux. May be this can also
work on OpenBsd (never test it)

Regards

 -Message d'origine-
 De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 De la part de Joe S
 Envoyi : mercredi 17 septembre 2008 17:20
 @ : misc@openbsd.org
 Objet : ascii bandwidth report

 Now that my ISP is imposing bandwidth caps, I need to start measuring
 my usage. Graphs are nice, but I've found that graphs are not really
 that useful to me. I need something to report what my cummalative
 usage is in a 30 day period. I'd like the data in some sort of ascii
 format, but html is ok too. I think I need something that can poll
 snmp stats from fxp0, which is attached to my cable modem. Something
 small would be preferred. I'm not interested in cacti or other large
 installations. My needs are very modest...I hope.

 After googling for a little bit, I only found 2 apps that might work
 on my OpenBSD 4.3-stable firewall, vmnet and rtg. There is port or
 package available for either though. The output of vmnet -m is what
 I'm looking for, so I'll try that first. I was happy to see that rtg
 is now in current-ports, so I should be able to use it once I get my
 preordered CDs.

 If you have any suggestions, or you have a perl/python script that you
 would like to share, it would be appreciated.



OpenBSD 3.9 - 4.3: pfctl Cannot allocate memory

2008-09-16 Thread Christophe Rioux
Hi,

During a manual migration (installation with 4.3 CD, and renew the
configuration manually), I get this error message:

# pfctl -f pf.conf
pfctl: failed to create table __automatic_e11ee055_282 in : Cannot allocate
memory
pfctl in free(): error: chunk is already free
Abort trap (core dumped) 

I check some informations:

New system: 
pfctl -sm
stateshard limit1
src-nodes hard limit1
frags hard limit 5000
tableshard limit 1000
table-entries hard limit   20
Top:
27 processes:  26 idle, 1 on processor
CPU states:  2.7% user,  0.0% nice,  0.1% system,  0.1% interrupt, 97.1%
idle
Memory: Real: 19M/95M act/tot  Free: 401M  Swap: 0K/518M used/tot

Old system: 
pfctl -sm
stateshard limit1
src-nodes hard limit1
frags hard limit 5000
tableshard limit 1000
table-entries hard limit   10
Top:
31 processes:  1 running, 29 idle, 1 on processor
CPU states:  0.0% user,  0.0% nice,  100% system,  0.0% interrupt,  0.0%
idle
Memory: Real: 16M/67M act/tot  Free: 179M  Swap: 0K/2002M used/tot

Somebody an idea ?

As next, I found another issue. I try to send mail from the new serveur: I
get the error message (in /var/spool/clientmqueue). Actually pf is disable.
T1221580802
K1221580802
N1
P31471
I0/0/130550
MDeferred: [127.0.0.1]: Network is unreachable
Frs
$_localhost
$r
$slocalhost
${daemon_flags}c u
SMAILER-DAEMON
MDeferred: [127.0.0.1]: Network is unreachable
C:root

Thanks for help
Christophe



Re: Pre-Order 4.4

2008-09-04 Thread Christophe Rioux
Hi,

How can I test it ? In the snapshots/i386 I have all I need for the
installation, but I don't find the sys.tar.gz (needed to recompile the
kernel with the raid features).

As next I have actuelly 2 possibilities
* go in production with the 4.3 version, without raid (may be with a rsync
scheduled)
* go in production with the 4.4 Beta, and doing the beta tester: how can I
switch by the come out of the 4.4 to the official release ? Will I get some
patches ?

Regards

 -Message d'origine-
 De : K WESTERBACK [mailto:[EMAIL PROTECTED]
 Envoyi : mercredi 3 septembre 2008 19:05
 @ : Ted Unangst; [EMAIL PROTECTED]
 Cc : misc@openbsd.org
 Objet : Re: Pre-Order 4.4

 Just to be clear - this is/should be fixed in 4.4.

  Ken



 - Original Message 
 From: Ted Unangst [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Cc: misc@openbsd.org
 Sent: Wednesday, September 3, 2008 11:31:15 AM
 Subject: Re: Pre-Order 4.4

 On 9/3/08, Christophe Rioux [EMAIL PROTECTED] wrote:
   Do you know if the raid logic has being corrected in this
 new release. By
   corrected, I means following answer:
 
   http://marc.info/?l=openbsd-miscm=120855938821758w=2
 
   This is currently broken (deliberately) as changes are made to the
   logic concerning mounting the root disk. There are some
 more changes
   that need to be made before a fix to raidframe can be committed.

 http://marc.info/?l=openbsd-cvsm=121150396015435w=2



Re: Pre-Order 4.4

2008-09-03 Thread Christophe Rioux
Hi

Do you know if the raid logic has being corrected in this new release. By
corrected, I means following answer:

http://marc.info/?l=openbsd-miscm=120855938821758w=2

This is currently broken (deliberately) as changes are made to the
logic concerning mounting the root disk. There are some more changes
that need to be made before a fix to raidframe can be committed.

 Ken

Regards

 -Message d'origine-
 De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 De la part de Francisco Valladolid Hdez.
 Envoyi : mardi 2 septembre 2008 02:48
 @ : Jim Razmus; misc@openbsd.org
 Objet : Re: Pre-Order 4.4

 --- Jim Razmus [EMAIL PROTECTED] wrote:

  * Paul de Weerd [EMAIL PROTECTED] [080901 12:57]:
   On Mon, Sep 01, 2008 at 10:43:26AM -0600, Theo de
  Raadt wrote:
   |  When can 4.4 be pre-ordered?
   |

 I think that misc@ will be the first in announce the
 news.

 Please be patient.!

 Regards

   | Soon.
  
   \o/
  
   Sleepless nights watching
  [EMAIL PROTECTED] start now...
  
 
  for the coveted title First 4.4 CD Set Purchaser.
  Might be cool to
  have Theo sign it.
 
  Jim
 
 


 ---
 Therefore, if anyone is in Christ, he is a new creation; the
 old has gone, the new has come! - 2 Corinthians 5:17 (NIV)
 ---
 Francisco Valladolid Hdez.
 http://blog.bsdguy.net - http://flickr.com/photos/sigueme/



Re: Implementation example of snmp

2008-08-26 Thread Christophe Rioux
Thanks, but if I look at the different documentation available there are:

* the standard snmp configuration included in the new version since version
3.9 as I read in some documents (seems to answer only in v1 mode).
Configuration file: /etc/snmp.conf (with creation of the user _snmp)
* the package net-snmp-5.4.1p0.tgz to be added . Configuration file
/etc/snmp/snmpd.conf
* some port package with all the MIBs to be installed

Are this 3 different methods, is this the same method ?
In which case do I need to activate the rc.conf ?
In which case do I need to modify the rc.local ?
With the new version 4.3, what do i need to configure an snmp agent:
* for snmp v1 ?
* for snmp v3 ?

 -Message d'origine-
 De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 De la part de Sean Malloy
 Envoyi : mardi 26 ao{t 2008 02:38
 @ : misc@openbsd.org
 Objet : Re: Implementation example of snmp

 On Mon, Aug 25, 2008 at 05:20:02PM +0200, Christophe Rioux wrote:
  Does somebody find a good documentation on internet to
 implement an snmp on
  OpenBSd 4.3 ?
 
  I try to start a snmp v1 monitoring with the
 net-snmp-5.4.1p0.tgz package,
  but didn't find some easylier documentation to follow
 
  Regards
  Christophe

 Start with snmpctl(8), snmpd(8), and snmpd.conf(5).

 --
 Sean Malloy
 www.spmalloy.com
 GPG KeyID: 0x13EEB747
 GPG Fingerprint: D059 5076 ABB3 1E08 9965 1958 F820 CE83 13EE B747



Implementation example of snmp

2008-08-25 Thread Christophe Rioux
Does somebody find a good documentation on internet to implement an snmp on
OpenBSd 4.3 ?

I try to start a snmp v1 monitoring with the net-snmp-5.4.1p0.tgz package,
but didn't find some easylier documentation to follow

Regards
Christophe



Understanding issue in building raid with raidctl

2008-08-20 Thread Christophe Rioux
I follow some documentation for building the software raid on my system:
http://www.argon18.com/raid_openbsd.html
http://www.openbsd-france.org/documentations/OpenBSD-raid1.html#deux

And the result is, I have 2 disk which are working in RAID-1. I build
following configuration:

Physical disk: 250 Go (2 x)

Disklabel: wd0 and wd1
wdXa: 10 Gb
wdXb: 512m
wdXd: the rest of the disk

= as far I undestand, the wdXa disk are needed to boot before starting the
RAID. This are more or less lost disk place ?


I build again the same disklabel on the raid0 disk:
  a: 20971853235680435  4.2BSD   2048 163841 
  b:  1048576 256652288 swap   
  c:4663507200  unused  0 0  
  d:208649856257700864  4.2BSD   2048 163841 
  i:  1000974136512000  MSDOS   
  j: 4017235676418  unknown

But the result is:
a: 10 Gb
d: 100 Gb
i 
j 

When I start the system, I have the feeling that I'm booting on the wd0a
disk, and not on the raid0a disk

Questions:
* how can I be sure I'm booting on the right disk ?
* where are my 130 Gb lost place ?
* where will the system write the logs down ? Wd0a or raid0a ? If those
information are writing to raid0a, that means, I can reduce the wdXa disk to
the minimum requirements (1 Gb for example)

Christophe



Re: Installation OpenBsd under HP DL120 - dmesg

2008-08-14 Thread Christophe Rioux
OpenBSD 4.3 (RAMDISK_CD) #645: Wed Mar 12 11:31:03 MDT 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/RAMDISK_CD
cpu0: Intel(R) Celeron(R) CPU 420 @ 1.60GHz (GenuineIntel 686-class) 1.61
GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLU
SH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,SBF,SSE3,MWAIT,DS-CPL,TM2,CX16,xTPR
real mem  = 534974464 (510MB)
avail mem = 511098880 (487MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 12/31/99, BIOS32 rev. 0 @ 0xfdc20,
SMBIOS rev. 2.5 @ 0xdc010 (43 entries)
bios0: vendor HP version O22 date 07/03/2008
bios0: HP ProLiant DL120 G5
acpi0 at bios0: rev 2, can't enable ACPI
bios0: ROM list: 0xc/0x8000 0xc8000/0x1000 0xc9000/0x5000 0xce000/0x1a00
0xdc000/0x4000!
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 vendor Intel, unknown product 0x29f0 rev
0x01
ppb0 at pci0 dev 1 function 0 vendor Intel, unknown product 0x29f1 rev
0x01: irq 5
pci1 at ppb0 bus 1
uhci0 at pci0 dev 26 function 0 Intel 82801I USB rev 0x02: irq 5
uhci1 at pci0 dev 26 function 1 Intel 82801I USB rev 0x02: irq 10
uhci2 at pci0 dev 26 function 2 Intel 82801I USB rev 0x02: irq 3
ehci0 at pci0 dev 26 function 7 Intel 82801I USB rev 0x02: irq 3
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb1 at pci0 dev 28 function 0 Intel 82801I PCIE rev 0x02: irq 5
pci2 at ppb1 bus 5
ppb2 at pci0 dev 28 function 4 Intel 82801I PCIE rev 0x02: irq 5
pci3 at ppb2 bus 13
vga1 at pci3 dev 0 function 0 Matrox MGA G200e (ServerEngines) rev 0x02
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
ppb3 at pci0 dev 28 function 5 Intel 82801I PCIE rev 0x02: irq 10
pci4 at ppb3 bus 14
bge0 at pci4 dev 0 function 0 Broadcom BCM5722 rev 0x00, BCM5755 C0
(0xa200): irq 10, address 00:1f:29:0e:48:e4
brgphy0 at bge0 phy 1: BCM5722 10/100/1000baseT PHY, rev. 0
uhci3 at pci0 dev 29 function 0 Intel 82801I USB rev 0x02: irq 5
uhci4 at pci0 dev 29 function 1 Intel 82801I USB rev 0x02: irq 10
uhci5 at pci0 dev 29 function 2 Intel 82801I USB rev 0x02: irq 3
ehci1 at pci0 dev 29 function 7 Intel 82801I USB rev 0x02: irq 5
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb4 at pci0 dev 30 function 0 Intel 82801BA Hub-to-PCI rev 0x92
pci5 at ppb4 bus 17
ichpcib0 at pci0 dev 31 function 0 Intel 82801IR LPC rev 0x02: PM disabled
pciide0 at pci0 dev 31 function 2 Intel 82801H RAID rev 0x02: DMA, channel
0 wired to native-PCI, channel 1 wired to native-PCI
pciide0: using irq 10 for native-PCI interrupt
Intel 82801I SMBus rev 0x02 at pci0 dev 31 function 3 not configured
pciide1 at pci0 dev 31 function 5 Intel 82801I SATA rev 0x02: DMA, channel
0 wired to native-PCI, channel 1 wired to native-PCI
pciide1: using irq 3 for native-PCI interrupt
atapiscsi0 at pciide1 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: TEAC, DV-28E-V, C.AB SCSI0 5/cdrom removable
cd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 2
usb2 at uhci0: USB revision 1.0
uhub2 at usb2 Intel UHCI root hub rev 1.00/1.00 addr 1
usb3 at uhci1: USB revision 1.0
uhub3 at usb3 Intel UHCI root hub rev 1.00/1.00 addr 1
usb4 at uhci2: USB revision 1.0
uhub4 at usb4 Intel UHCI root hub rev 1.00/1.00 addr 1
usb5 at uhci3: USB revision 1.0
uhub5 at usb5 Intel UHCI root hub rev 1.00/1.00 addr 1
usb6 at uhci4: USB revision 1.0
uhub6 at usb6 Intel UHCI root hub rev 1.00/1.00 addr 1
usb7 at uhci5: USB revision 1.0
uhub7 at usb7 Intel UHCI root hub rev 1.00/1.00 addr 1
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
biomask ffed netmask ffed ttymask ffef
rd0: fixed, 3800 blocks
uhidev0 at uhub5 port 2 configuration 1 interface 0 ServerEngines SE USB
Device rev 1.10/0.01 addr 2
uhidev0: iclass 3/1
ukbd0 at uhidev0
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub5 port 2 configuration 1 interface 1 ServerEngines SE USB
Device rev 1.10/0.01 addr 2
uhidev1: iclass 3/1
uhid at uhidev1 not configured
root on rd0a swap on rd0b dump on rd0b
umass0 at uhub0 port 3 configuration 1 interface 0 Kingston DataTraveler
2.0 rev 2.00/1.10 addr 2
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets
sd0 at scsibus1 targ 1 lun 0: Kingston, DataTraveler 2.0, PMAP SCSI0
0/direct removable
sd0: 954MB, 121 cyl, 255 head, 63 sec, 512 bytes/sec, 1953792 sec total

-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de
Stuart Henderson
Envoyi : mercredi 13 ao{t 2008 10:35
@ : misc@openbsd.org
Objet : Re: Installation OpenBsd under HP DL120

On 2008-08-13, Christophe Rioux [EMAIL PROTECTED] wrote:
 I just try to install OpenBSD on a HP DL120 Server (big PC in Rack form).
 But I have the following

Installation OpenBsd under HP DL120

2008-08-13 Thread Christophe Rioux
Hi

I just try to install OpenBSD on a HP DL120 Server (big PC in Rack form).
But I have the following issues:

* version 3.9: can't boot: no compatible PCI ICU found

= no problem, let's try with the new version (4.3)

* version 4.3: disk/disk controler non found = no installation possible

Can somebody help me to continue. I may have the drivers (I have a
diagnotics DVD from HP under Linux, so I may have the drivers), but I don't
know how to proceed.

Thanks for your help

Christophe



Re: Installation OpenBsd under HP DL120

2008-08-13 Thread Christophe Rioux
Same error with the install44.iso
= No disk found.

-Message d'origine-
De : Peter N. M. Hansteen [mailto:[EMAIL PROTECTED]
Envoyi : mercredi 13 ao{t 2008 10:44
@ : [EMAIL PROTECTED]
Cc : [EMAIL PROTECTED]
Objet : Re: Installation OpenBsd under HP DL120

Christophe Rioux [EMAIL PROTECTED] writes:

 The RAID controler is: Intel. 82801IR Integrated Serial ATA Host
Controller
 (like I said, this is a big PC in rack form), so has a RAID controler from
A
 PC. This controler seems to be in the supported HW but not detected.

http://www.openbsd.org/i386.html lists Intel 82801 as supported but
does not mention the IR variety specifically, but I'm not sure how big
the differences are between the various subtypes.  If there are
relevant BIOS settings, you could try twiddling those and see what
happens.  Then again recent snapshots are apparently still quite close
to what will be 4.4 and likely worth checking.

- P
--
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
http://bsdly.blogspot.com/ http://www.bsdly.net/ http://www.nuug.no/
Remember to set the evil bit on all malicious network traffic
delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.



Re: : Installation OpenBsd under HP DL120

2008-08-13 Thread Christophe Rioux
Raimo Niskanen wrote:
 On Wed, Aug 13, 2008 at 12:04:26PM +0200, Christophe Rioux wrote:
 Same error with the install44.iso
 = No disk found.
 
 Check bios settings if there is some way to configure the disk
 controller in legacy mode or something like that.

Alexander Sabourenkov wrote:
I just solved this very problem with the opposite actions: disable all 
legacy and compatibility stuff and enable AHCI instead.

If found something, but this is not the result I wanted:

BIOS: Phoenix cME Pro
- natural module: SATA (instead of AUTO)
- SATA RAID: disable
- Harddisk configuration: 32 bits I/O: DISABLE (instead of ENABLE)
- IDE 32 Bits compatibility)

= that means I could install the 4.3 (or 4.4-beta) on the server, but If I
try to reconnect the SATA RAID, the system boots and hang after the boot
with the message Boot device:. With hang, I mean, the keyboard doesn't
work any more

I'll try to get the dmesg out of the server

Regards



OpenBSD as host for VMWare Server

2008-06-26 Thread Christophe Rioux
Hello,

I googled many hours to find out that some people did the following
configuration:

* OpenBSD as Host (last version if possible)
* VMWare server installed (VMWare server 1.0.4 - 1.0.6 if possible)
- Linux Virtual Server
- Windows Virtuel Server

But I didn't find any recent document on this. Did somebody do the
configuration or know, where I can find some documentation to implement this
solution ?

Thanks for your feedback
Regards