overpartitioning/dump [was Re: following -stable]

2006-12-23 Thread Craig Skinner
On Fri, Dec 22, 2006 at 07:54:00PM -0500, Nick Holland wrote:
 ...
  Or, just skip the usr/obj partition...  Having been stung a few times by
  over partitioning recently,
  
  What's overpartitioning? ;-)
 
 That's when you say, 500M is plenty large for /var, except for this mail
 archive directory, which could grow really big under some failure
 conditions, so you create a 100G /var/archive partition and 500M /var
 partition, then discover that under the OPPOSITE failure conditions,
 massive amounts of mail ends up in /var/spool.  At that point, you realize
 that splitting off the two partitions sounded good, but instead it just
 cost you some embarrassing down time and didn't help you in the slightest,
 AND PROBABLY NEVER WILL (and in fact, I can now think of other failure
 modes where it could bite me).  Should have just put it in one huge /var
 partition.
 
 ...

Yes, agree, except for when slices have different mount options, such as
exec for /var/www - cgi-bin, and for dumping.

I thought it was best pratice to umount a slice before dumping, but a
quick flick thourgh the man page states:

files-to-dump is either a mountpoint of a filesystem or a list of files
and directories on a single filesystem to be backed up as a subset of
the filesystem.  In the former case, either the path to a mounted
filesystem or the device of an unmounted filesystem can be used.  In the
latter case, certain restrictions are placed on the backup: -u is
ignored, the only dump level that is supported is -0, and all of the
files must reside on the same filesystem.


I have been umounting to dump with this in a script:

dump -${level}anu -f - -h 0 ${device} | gzip -9 -o ${file}

$ sort /etc/dumpdates
/dev/rwd0e   0 Mon Dec 18 18:09:20 2006
/dev/rwd0e   4 Wed Dec 20 04:05:21 2006
/dev/rwd0e   5 Tue Dec 19 15:16:13 2006
/dev/rwd0e   6 Fri Dec 22 04:05:22 2006
/dev/rwd0e   7 Thu Dec 21 04:05:19 2006
/dev/rwd0e   9 Sat Dec 23 04:05:21 2006
/dev/rwd0g   0 Mon Dec 18 18:09:22 2006
/dev/rwd0g   4 Wed Dec 20 04:05:23 2006
/dev/rwd0g   5 Tue Dec 19 15:15:23 2006
/dev/rwd0g   6 Fri Dec 22 04:05:25 2006
/dev/rwd0g   7 Thu Dec 21 04:05:28 2006
/dev/rwd0g   9 Sat Dec 23 04:05:24 2006
/dev/rwd1e   0 Mon Dec 18 18:10:29 2006
/dev/rwd1e   4 Wed Dec 20 04:05:20 2006
/dev/rwd1e   5 Tue Dec 19 15:16:47 2006
/dev/rwd1e   6 Fri Dec 22 04:05:21 2006
/dev/rwd1e   7 Thu Dec 21 04:05:19 2006
/dev/rwd1e   9 Sat Dec 23 04:05:21 2006
/dev/rwd1g   0 Sun Dec 17 02:49:24 2006
/dev/rwd1g   3 Mon Dec 18 17:27:05 2006
/dev/rwd1g   4 Wed Dec 20 04:05:21 2006
/dev/rwd1g   5 Tue Dec 19 15:14:35 2006
/dev/rwd1g   6 Fri Dec 22 04:05:21 2006
/dev/rwd1g   7 Thu Dec 21 04:05:19 2006
/dev/rwd1g   9 Sat Dec 23 04:05:21 2006


Am I best not to umount /home, /var/whatever before dumping? Would save
killing apps and interrupting users.



Re: ASUS P5L-MX - powerdown problem

2006-12-23 Thread Frank Bax

At 04:23 PM 12/19/06, Frank Bax wrote:

At 02:19 PM 12/16/06, Frank Bax wrote:

Will OpenBSD 4.0 release run on ASUS P5L-MX?  dmesg includes:

1) Gigabit Lan not recognised on this board.
unknown vendor 0x1969 product 0x1048 (class network subclass ethernet, rev 
0xb0) at pci2 dev 0 function 0 not configured

2) is this a problem:
cpu0: unknown Core FSB_FREQ value 0 (0x41c8)
3) What does this mean?
ioapic0: pin 17 shares different IPL interrupts (40..50), degraded performance
ioapic0: pin 19 shares different IPL interrupts (40..90), degraded performance



Thanks to the various people who responded on each of these issues.

I installed -snapshot; which fixed two of three above issues; then I found 
a new one.

1) dmesg changed to identify chipset
2) dmesg no longer issues a warning
3) ioapic messages are being worked on

I changed powerdown=YES in /etc/rc.shutdown; then issued halt command.

System does powerdown properly with bsd kernel, but not with the bsd.mp 
kernel - which produces:


syncing disks... done
Attempting to power down ...
apm0: APM set power state: interface not connected (3)
apm0: APM set power state: interface not connected (3)
The operating system has halted.
Please press any key to reboot.

And then, it just sits there; but system does reboot if I press a key.  I 
was expecting it to powerdown; reboot works just fine on both 
kernels.  There seems to be numerous differences between dmesg from the two 
kernels, so I've included them both:



OpenBSD 4.0-current (GENERIC) #1312: Fri Dec 22 02:04:34 MST 2006
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz (GenuineIntel 686-class) 1.87 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,VMX,EST,TM2,CX16

real mem  = 2138271744 (2088156K)
avail mem = 1942265856 (1896744K)
using 4256 buffers containing 107036672 bytes (104528K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 08/25/06, BIOS32 rev. 0 @ 
0xf0010, SMBIOS rev. 2.3 @ 0xf04e0 (54 entries)

bios0: ASUSTek Computer INC. P5L-MX
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 30102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf/0x1
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf7a90/240 (13 entries)
pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82801GB LPC rev 0x00)
pcibios0: PCI bus #3 is the last bus
bios0: ROM list: 0xc/0xae00!
acpi at mainbus0 not configured
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 82945GP rev 0x02
vga1 at pci0 dev 2 function 0 Intel 82945G Video rev 0x02: aperture at 
0xdfd0, size 0x1000

wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
azalia0 at pci0 dev 27 function 0 Intel 82801GB HD Audio rev 0x01: irq 5
azalia0: host: High Definition Audio rev. 1.0
azalia0: codec: 0x04x/0x11d4 (rev. 5.0), HDA version 1.0
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x01
pci1 at ppb0 bus 3
ppb1 at pci0 dev 28 function 1 Intel 82801GB PCIE rev 0x01
pci2 at ppb1 bus 2
Attansic Technology L1 rev 0xb0 at pci2 dev 0 function 0 not configured
uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x01: irq 3
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 82801GB USB rev 0x01: irq 10
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 82801GB USB rev 0x01: 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 82801GB USB rev 0x01: irq 5
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 82801GB USB rev 0x01: irq 3
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
ppb2 at pci0 dev 30 function 0 Intel 82801BA AGP rev 0xe1
pci3 at ppb2 bus 1
vr0 at pci3 dev 0 function 0 VIA VT6105 RhineIII rev 0x86: irq 10, 
address 00:15:e9:b5:4b:36
ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 4: OUI 
0x004063, model 0x0034

ichpcib0 at pci0 dev 31 function 0 Intel 82801GB LPC rev 0x01: PM disabled
pciide0 at pci0 dev 31 function 1 Intel 82801GB IDE rev 0x01: DMA, 
channel 0 configured to compatibility, channel 1 configured to compatibility

atapiscsi0 at pciide0 channel 0 drive 1
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: LG, CD-ROM CRD-8521B, 2.00 

fvwm themes for OpenBSD

2006-12-23 Thread Siju George

Hi,

Just wondering if anyone is running the themes from

http://fvwm-themes.sourceforge.net/

on your OpenBSD System.

I installed them and got it right on slamd64 and liked the minimal
theme very much.
But I am not able to run it properly on 4.0 amd64 OpenBSD.

Any help, pointers will be greately appreciated.
I did install fvwm2 from ports.

Thankyou so much

Kind Regards

Siju



Problems with OpenBSD on Intel S3000AH with Intel server chipset 3000

2006-12-23 Thread Matiss Miglans

Hi.

I hawe problems to set up OpenBSD to  fallowing system:
MB: Intel Server Board S3000AH (LX versija)( Intel Server Chipset 3000)
CPU: Intel DualCore PentiumD 3,4GHz/800/2x2MB Socket LGA775(I also 
tested with pentium 4 HT,- single  core, 3GHz/800/1MB   and Intel 
Celeron D 3.33Ghz/533/256kb, but the same problem )

HDD 2 x Samsung 80GB SATAII NCQ
RAM: 2 x 1GB PC5300 DDRII/ECC T667EB1GS MALAB 
I have updated BIOS, but that not helps.
I tested with openbsd release 4.0 - i386, openbsd snapshot from 
22.12.2006 - i386,  and openbsd-release 4.0 - amd64

I tested install to SATA and IDE hard drives.
I attachec SCSI controller with SCSI hard drive and i disabled SATA and 
IDE controllers, but nothing helps.
I think, that the SATA controller is a ICH7R (82801GB /82801GR), but I 
dont now exatly, and i cant find any information in intel.com
After i reset the machine, there is no problem to boot again(afther 
checking hard drive).


I tried FreeBSD 6.2 rc1, and all works fine, the default kernel detected 
both cpu cores and sata raid too. I also compile some packages from 
ports, and all works weel.


When i will compil port or kernel, i get errors and the system crashes.

   There is my dmesg
   # dmesg
   OpenBSD 4.0-current (GENERIC) #1312: Fri Dec 22 02:04:34 MST 2006
   [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
   RTC BIOS diagnostic error ffixed_disk,invalid_time
   cpu0: Intel(R) Pentium(R) D CPU 3.40GHz (GenuineIntel 686-class)
   3.41 GHz
   cpu0:
   
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,A
   CPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,CNXT-ID,CX16
   real mem  = 2144194560 (2093940K)
   avail mem = 1947615232 (1901968K)
   using 4256 buffers containing 107425792 bytes (104908K) of memory
   RTC BIOS diagnostic error ffixed_disk,invalid_time
   mainbus0 (root)
   bios0 at mainbus0: AT/286+(00) BIOS, date 07/11/06, SMBIOS rev. 2.4
   @ 0x7fe0e000 (43 entr
   ies)
   bios0: Intel Corporation S3000AHLX
   pcibios at bios0 function 0x1a not configured
   bios0: ROM list: 0xc/0x9000 0xc9000/0x200 0xc9800/0x6600
   acpi at mainbus0 not configured
   cpu0 at mainbus0
   cpu0: Enhanced SpeedStep disabled by BIOS
   pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
   pchb0 at pci0 dev 0 function 0 Intel E7230 MCH rev 0x00
   ppb0 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x01
   pci1 at ppb0 bus 1
   ppb1 at pci1 dev 0 function 0 Intel PCIE-PCIE rev 0x09
   pci2 at ppb1 bus 2
   ahc0 at pci2 dev 2 function 0 Adaptec AHA-29160 U160 rev 0x02: irq 9
   scsibus0 at ahc0: 16 targets
   sd0 at scsibus0 targ 1 lun 0: IBM, DDYS-T18350N, S96H SCSI3
   0/direct fixed
   sd0: 17501MB, 15110 cyl, 6 head, 395 sec, 512 bytes/sec, 35843670
   sec total
   ppb2 at pci0 dev 28 function 4 Intel 82801G PCIE rev 0x01
   pci3 at ppb2 bus 3
   ppb3 at pci0 dev 28 function 5 Intel 82801G PCIE rev 0x01
   pci4 at ppb3 bus 4
   em0 at pci4 dev 0 function 0 Intel PRO/1000MT (82573E) rev 0x03:
   irq 9, address 00:15:1
   7:13:ae:31
   Intel 82573E AMT rev 0x03 at pci4 dev 0 function 3 not configured
   Intel 82573E KCS (Active Management) rev 0x03 at pci4 dev 0
   function 4 not configured
   uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x01: irq 11
   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 82801GB USB rev 0x01: irq 10
   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 82801GB USB rev 0x01: irq 11
   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 82801GB USB rev 0x01: irq 11
   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 82801GB USB rev 0x01: irq 11
   ehci0: timed out waiting for BIOS
   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 0xe1
   pci5 at ppb4 bus 5
   vga1 at pci5 dev 4 function 0 ATI ES1000 rev 0x02
   wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
   wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
   em1 at pci5 dev 5 function 0 Intel PRO/1000MT (82541GI) rev 0x05:
   irq 9, address 00:15:
   17:13:ae:32
   ichpcib0 at pci0 dev 31 function 0 Intel 82801GB LPC rev 0x01: PM
   disabled
   pciide0 at pci0 dev 31 function 1 Intel 82801GB IDE rev 0x01: DMA,
   channel 0 configured
to compatibility, channel 1 configured to compatibility
   atapiscsi0 at pciide0 

Re: Extract IP to table

2006-12-23 Thread Joachim Schipper
On Fri, Dec 22, 2006 at 10:18:12AM -0700, Bob DeBolt wrote:
 I have a client with a single VOIP connection and a dynamic IP
 shared with the PC. It works.
 
 What I am looking for and I know I've seen it but haven't been able to
 find it again, is to extract the IP address from traffic and put it into
 a table to allow the VOIP phone to reestablish connectivity to the
 border firewall when the IP changes. I have looked through dynamic dns
 but the potential latency to restablish the correct IP is said to be up
 to 20 minutes, that won't do.

I don't really get what you want to do. What connects to what, and which
IP address are we talking about (does the phone get an address from the
firewall? The firewall from the ISP?)?  From which traffic should the IP
be extracted? Are you aware that this is almost certainly not very
secure?

In particular, if at least one side is unlikely to change IP, that
suggests a better solution...

Joachim



Re: overpartitioning/dump [was Re: following -stable]

2006-12-23 Thread Joachim Schipper
On Sat, Dec 23, 2006 at 08:05:58AM +, Craig Skinner wrote:
 I thought it was best pratice to umount a slice before dumping, but a
 quick flick thourgh the man page states:
 
 files-to-dump is either a mountpoint of a filesystem or a list of files
 and directories on a single filesystem to be backed up as a subset of
 the filesystem.  In the former case, either the path to a mounted
 filesystem or the device of an unmounted filesystem can be used.  In the
 latter case, certain restrictions are placed on the backup: -u is
 ignored, the only dump level that is supported is -0, and all of the
 files must reside on the same filesystem.
 
 
 I have been umounting to dump with this in a script:
 
   dump -${level}anu -f - -h 0 ${device} | gzip -9 -o ${file}

 Am I best not to umount /home, /var/whatever before dumping? Would save
 killing apps and interrupting users.

I interpret the above snippet to mean `dump works best on filesystems,
not files'. As to unmounting before dumping, that's possible but, IME,
not usually necessary.

Of course, you *do* have to know what you are doing. Dumping a running
/usr is pretty much okay - it's not going to change, after all. On the
other hand, dump and PostgreSQL aren't friends (which is why pg_dump is
useful, this creates a backup in a file).

My backups run at night, when very little things are using the machines;
but I do not unmount (or mount read-only) any filesystems before dumping
them.

However, if you can get away with unmounting stuff, it might be
preferable. I just never bothered.

Joachim



Re: ASUS P5L-MX - powerdown problem

2006-12-23 Thread Henning Brauer
* Frank Bax [EMAIL PROTECTED] [2006-12-23 18:26]:
 System does powerdown properly with bsd kernel, but not with the bsd.mp 
 kernel - which produces:
 
 syncing disks... done
 Attempting to power down ...
 apm0: APM set power state: interface not connected (3)
 apm0: APM set power state: interface not connected (3)
 The operating system has halted.
 Please press any key to reboot.

expected. powerdown is via apm, and we don't attach apmon mp kernels.

-- 
Henning Brauer, [EMAIL PROTECTED], [EMAIL PROTECTED]
BS Web Services, http://bsws.de
Full-Service ISP - Secure Hosting, Mail and DNS Services
Dedicated Servers, Rootservers, Application Hosting - Hamburg  Amsterdam



weird C program output

2006-12-23 Thread Arun G Nair
Hi,

Am a bit confused by the output of the this C program:

-ptr.c---
#include stdio.h

int
main()
{
int *ptr, x;

x = 2;
ptr = x;

printf(x=%d, *ptr=%d, ptr=%p, x=%p\n, x, *ptr, ptr, x);

*ptr++;
printf(x=%d, *ptr=%d, ptr=%p, x=%p\n, x, *ptr, ptr, x);

++(*ptr);
printf(x=%d, *ptr=%d, ptr=%p, x=%p\n, x, *ptr, ptr, x);

return 0;
}

--

The output I get is this:

$ ./a.out
x=2, *ptr=2, ptr=0xbfbfece0, x=0xbfbfece0
x=2, *ptr=-1077941020, ptr=0xbfbfece4, x=0xbfbfece0
x=2, *ptr=750764012, ptr=0xbfbfece5, x=0xbfbfece0
---

If ++(*ptr) is supposed to increment the value *ptr, then why is there a
change in memory address (0xbfbfece5) ?


Any ideas ? I know that am referring someone else's memory, but still..

-Arun



Re: weird C program output

2006-12-23 Thread Otto Moerbeek
On Sun, 24 Dec 2006, Arun G Nair wrote:

 Hi,
 
 Am a bit confused by the output of the this C program:
 
 -ptr.c---
 #include stdio.h
 
 int
 main()
 {
 int *ptr, x;
 
 x = 2;
 ptr = x;
 
 printf(x=%d, *ptr=%d, ptr=%p, x=%p\n, x, *ptr, ptr, x);
 
 *ptr++;
 printf(x=%d, *ptr=%d, ptr=%p, x=%p\n, x, *ptr, ptr, x);
 
 ++(*ptr);
 printf(x=%d, *ptr=%d, ptr=%p, x=%p\n, x, *ptr, ptr, x);
 
 return 0;
 }
 
 --
 
 The output I get is this:
 
 $ ./a.out
 x=2, *ptr=2, ptr=0xbfbfece0, x=0xbfbfece0
 x=2, *ptr=-1077941020, ptr=0xbfbfece4, x=0xbfbfece0
 x=2, *ptr=750764012, ptr=0xbfbfece5, x=0xbfbfece0
 ---
 
 If ++(*ptr) is supposed to increment the value *ptr, then why is there a
 change in memory address (0xbfbfece5) ?
 
 
 Any ideas ? I know that am referring someone else's memory, but still..

Likely ptr is pointing at itself after the *ptr++;

-Otto



Re: weird C program output

2006-12-23 Thread Miod Vallat
 Am a bit confused by the output of the this C program:
 
 -ptr.c---
 #include stdio.h
 
 int
 main()
 {
 int *ptr, x;
 
 x = 2;
 ptr = x;
 
 printf(x=%d, *ptr=%d, ptr=%p, x=%p\n, x, *ptr, ptr, x);
 
 *ptr++;
 printf(x=%d, *ptr=%d, ptr=%p, x=%p\n, x, *ptr, ptr, x);
 
 ++(*ptr);
 printf(x=%d, *ptr=%d, ptr=%p, x=%p\n, x, *ptr, ptr, x);
 
 return 0;
 }
 
 --
 
 The output I get is this:
 
 $ ./a.out
 x=2, *ptr=2, ptr=0xbfbfece0, x=0xbfbfece0
 x=2, *ptr=-1077941020, ptr=0xbfbfece4, x=0xbfbfece0
 x=2, *ptr=750764012, ptr=0xbfbfece5, x=0xbfbfece0
 ---
 
 If ++(*ptr) is supposed to increment the value *ptr, then why is there a
 change in memory address (0xbfbfece5) ?

Because after the first *ptr++; you actually have ptr == ptr.

Miod



Re: weird C program output

2006-12-23 Thread Arun G Nair
Thanx for the replies. Yeah, its pointing to itself.

x=2, *ptr=2, ptr=0xbfbfece0, x=0xbfbfece0, ptr=0xbfbfece4
x=2, *ptr=-1077941020, ptr=0xbfbfece4, x=0xbfbfece0, ptr=0xbfbfece4
x=2, *ptr=750764012, ptr=0xbfbfece5, x=0xbfbfece0, ptr=0xbfbfece4

Thanx once again.

-Arun

On 12/24/06, Otto Moerbeek [EMAIL PROTECTED] wrote:


 On Sun, 24 Dec 2006, Arun G Nair wrote:

  Hi,
 
  Am a bit confused by the output of the this C program:
 
  -ptr.c---
  #include stdio.h
 
  int
  main()
  {
  int *ptr, x;
 
  x = 2;
  ptr = x;
 
  printf(x=%d, *ptr=%d, ptr=%p, x=%p\n, x, *ptr, ptr, x);
 
  *ptr++;
  printf(x=%d, *ptr=%d, ptr=%p, x=%p\n, x, *ptr, ptr, x);
 
  ++(*ptr);
  printf(x=%d, *ptr=%d, ptr=%p, x=%p\n, x, *ptr, ptr, x);
 
  return 0;
  }
 
 
 --
 
  The output I get is this:
 
  $ ./a.out
  x=2, *ptr=2, ptr=0xbfbfece0, x=0xbfbfece0
  x=2, *ptr=-1077941020, ptr=0xbfbfece4, x=0xbfbfece0
  x=2, *ptr=750764012, ptr=0xbfbfece5, x=0xbfbfece0
 
 ---
 
  If ++(*ptr) is supposed to increment the value *ptr, then why is there a
  change in memory address (0xbfbfece5) ?
 
 
  Any ideas ? I know that am referring someone else's memory, but still..

 Likely ptr is pointing at itself after the *ptr++;

 -Otto




-- 
...Keep Smiling...



Re: weird C program output

2006-12-23 Thread Joachim Schipper
On Sun, Dec 24, 2006 at 12:50:10AM +0530, Arun G Nair wrote:
 Hi,
 
 Am a bit confused by the output of the this C program:
 
 -ptr.c---
 #include stdio.h
 
 int
 main()
 {
 int *ptr, x;
 
 x = 2;
 ptr = x;
 
 printf(x=%d, *ptr=%d, ptr=%p, x=%p\n, x, *ptr, ptr, x);
 
 *ptr++;
 printf(x=%d, *ptr=%d, ptr=%p, x=%p\n, x, *ptr, ptr, x);
 
 ++(*ptr);
 printf(x=%d, *ptr=%d, ptr=%p, x=%p\n, x, *ptr, ptr, x);
 
 return 0;
 }
 
 --
 
 The output I get is this:
 
 $ ./a.out
 x=2, *ptr=2, ptr=0xbfbfece0, x=0xbfbfece0
 x=2, *ptr=-1077941020, ptr=0xbfbfece4, x=0xbfbfece0
 x=2, *ptr=750764012, ptr=0xbfbfece5, x=0xbfbfece0
 ---
 
 If ++(*ptr) is supposed to increment the value *ptr, then why is there a
 change in memory address (0xbfbfece5) ?

Because *ptr++ is equivalent to *(ptr++)? Try:

#include stdio.h

int main(void) {
int *i, x[9] = {0, 1, 2, 3, 4, 5, 6, 7, 8};

for (i = x; i  x + 9; )
printf(%d\n, *i++);

return 0;
}

And note that the equivalent with (*i)++ does something very different.

Joachim



Screen resolution and ACPI

2006-12-23 Thread Passeur
Hi,

I am using OpenBSD 4.0 with KDE 3.5.4
I am looking for how to change the screen resolution which is stuck to
640*480 at the moment.
KDE option to change the screen resolution is greyed out.
I have been pointed out to change the XF86Config file but this file does not
exist on my installation.

Also I would like the PC to actualy shut down when I do shutdown -h now
instead of having to press the power button. This option is supported but
disabled by default as far I have read, but how to enable it ?

Thanks a million in advance


-- 
View this message in context: 
http://www.nabble.com/Screen-resolution-and-ACPI-tf2875353.html#a8036593
Sent from the openbsd user - misc mailing list archive at Nabble.com.



Re: routing 2 identical subnets

2006-12-23 Thread Joachim Schipper
On Fri, Dec 22, 2006 at 11:09:07AM -0600, Jacob Yocom-Piatt wrote:
 at work there are 2 pieces of heavy machinery that each are hard-wired 
 to communicate on the, say, 192.168.101/24 subnet and i would like to 
 access both subnets from a machine in the office on the 172.16.16/24 
 subnet. to avoid the issue of having 2 routes to the same subnet, i plan 
 on having an intermediate machine in front of each subnet that will run 
 ipsec and then NAT the 172.16.16/24 host to a 192.168.101/24 address. 
 this way i should be able to avoid the 2 route issue.
 
 there are likely other solutions to this problem that don't involve 
 ipsec and i am interested in hearing them. could the multiple routing 
 tables feature be useful here?

I don't know about the multiple routing tables, but it can, at the very
worst case, be done with 2 hosts, both of which do NAT.

However, I'm fairly certain that careful abuse of pf's route-to will
allow you to make this work. Although I'd caution against trying to make
it work from the firewall itself, too.

Joachim



Re: Screen resolution and ACPI

2006-12-23 Thread Passeur
Ok found it. I have used the XORGCFG tool to proceed and I have been able to
change the screen resolution.
Also for ACPI I would need to recompile the kernell as it was (Still is ?)
more or less experimental.



Passeur wrote:
 
 Hi,
 
 I am using OpenBSD 4.0 with KDE 3.5.4
 I am looking for how to change the screen resolution which is stuck to
 640*480 at the moment.
 KDE option to change the screen resolution is greyed out.
 I have been pointed out to change the XF86Config file but this file does
 not exist on my installation.
 
 Also I would like the PC to actualy shut down when I do shutdown -h now
 instead of having to press the power button. This option is supported but
 disabled by default as far I have read, but how to enable it ?
 
 Thanks a million in advance
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Screen-resolution-and-ACPI-tf2875353.html#a8036664
Sent from the openbsd user - misc mailing list archive at Nabble.com.



Re: Screen resolution and ACPI

2006-12-23 Thread Joachim Schipper
On Sat, Dec 23, 2006 at 12:22:06PM -0800, Passeur wrote:
 Hi,
 
 I am using OpenBSD 4.0 with KDE 3.5.4
 I am looking for how to change the screen resolution which is stuck to
 640*480 at the moment.
 KDE option to change the screen resolution is greyed out.
 I have been pointed out to change the XF86Config file but this file does not
 exist on my installation.

You'll want to take a look at /etc/X11/xorg.conf, instead.

 Also I would like the PC to actualy shut down when I do shutdown -h now
 instead of having to press the power button. This option is supported but
 disabled by default as far I have read, but how to enable it ?

dmesg, please. ;-)

Joachim



Re: ASUS P5L-MX

2006-12-23 Thread Przemyslaw Nowaczyk
On Wed, Dec 20, 2006 at 08:23:30PM +1100, Jonathan Gray wrote:
 On Tue, Dec 19, 2006 at 04:23:50PM -0500, Frank Bax wrote:
  At 02:19 PM 12/16/06, Frank Bax wrote:
  
  Will OpenBSD 4.0 release run on ASUS P5L-MX?  The asus website does not 
  seem to mention which Gigabit chipset is used on this board.  Anyone using 
  this board?
  
  http://www.asus.com/products.aspx?l1=3l2=11l3=194model=1320modelmenu=2
  
  
  1) Gigabit Lan not recognised on this board.
  unknown vendor 0x1969 product 0x1048 (class network subclass ethernet, rev 
  0xb0) at pci2 dev 0 function 0 not configured
 
 This is an Attsanic L1, a company that was a spinoff of Asus, now
 owned by Atheros.
 
 No wide availability or documentation,  I rather doubt documentation
 will appear from our friends at Atheros somehow...
 

i know it's not documentation but there seems to be a gpl linux driver
for that nic..
http://dlsvr02.asus.com/pub/ASUS/mb/socketAM2/M2V/Linux_LAN.zip
maybe a starting point for a reverse engineered driver..
cheers,

-- 
Przemyslaw Nowaczyk [EMAIL PROTECTED]
CS student @ Poznan University of Technology
http://unixlab.cs.put.poznan.pl/~inf73015/



Re: Extract IP to table

2006-12-23 Thread Bob DeBolt
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Joachim Schipper wrote:

Hi Joachim

 I don't really get what you want to do. What connects to what, and which
 IP address are we talking about (does the phone get an address from the
 firewall? The firewall from the ISP?)?  From which traffic should the IP
 be extracted? Are you aware that this is almost certainly not very
 secure?

The VOIP phone is connnected to a D-Link router which is connected to an
ISP via DHCP. This is connected through the Internet to the head office
firewall which uses a static IP specifically for the VOIP phone.

The VOIP phone is hardwired to call home to the allocated firewall IP at
head office and it uses specific ports to boot and stay alive so they
are easily detected when the phone calls home.

The address of the DHCP Dlink router will change at some point so I want
to be able to detect the IP change at the firewall and automatically
insert the new DLink router IP address into a table on the firewall so
connnectivity is uninterrupted or a least minimized.

What I am hoping to be able to do seamlessly is extract the IP from the
phone traffic when it calls home, basing it on port number and insert
the IP into a table.

I would like to run something like authpf using the $userip macro but
the workstation at the VOIP phone office is an HP terminal.

I had setup an OpenVPN box which worked very well but it was unplugged
for unknown reasons as it is not my network.

A little extra info:

Once the traffic gets through the firewall it is then connected to a
control unit that reads the embedded MAC of the VOIP phone and if it
matches it then moves on to setup a full connection.

The VOIP phone MAC supplied by the phone during the phone boot phase.
If the MAC doesn't match, no connection.

Thanks for your response Joachim

Bob D
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFja/9K35IA5yVGFsRAjFqAKDJMlR2n/DRl0j5mx45GADCQP40GQCeMSfl
At6rfPKjF15mF1jAGpTZAE0=
=8XHI
-END PGP SIGNATURE-



Re: Screen resolution and ACPI

2006-12-23 Thread Passeur
There you go : 
Thank you Joachim

===
OpenBSD 4.0 (GENERIC) #1107: Sat Sep 16 19:15:58 MDT 2006
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) D CPU 3.40GHz (GenuineIntel 686-class) 3.44 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,SSE3,DS-CPL
real mem  = 267939840 (261660K)
avail mem = 236662784 (231116K)
using 3296 buffers containing 13500416 bytes (13184K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(53) BIOS, date 07/29/05, BIOS32 rev. 0 @ 0xfd880,
SMBIOS rev. 2.31 @ 0xe0010 (45 entries)
bios0: VMware, Inc. VMware Virtual Platform
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 30102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xfd880/0x780
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf30/176 (9 entries)
pcibios0: PCI Interrupt Router at 000:07:0 (Intel 82371FB ISA rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc/0x8000 0xc8000/0x1000 0xdc000/0x4000!
0xe/0x4000!
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 82443BX AGP rev 0x01
ppb0 at pci0 dev 1 function 0 Intel 82443BX AGP rev 0x01
pci1 at ppb0 bus 1
pcib0 at pci0 dev 7 function 0 Intel 82371AB PIIX4 ISA rev 0x08
pciide0 at pci0 dev 7 function 1 Intel 82371AB IDE rev 0x01: DMA, channel
0 configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: VMware Virtual IDE Hard Drive
wd0: 64-sector PIO, LBA, 4096MB, 8388608 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: NECVMWar, VMware IDE CDR10, 1.00 SCSI0
5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
piixpm0 at pci0 dev 7 function 3 Intel 82371AB Power rev 0x08: SMBus
disabled
vga1 at pci0 dev 15 function 0 VMware Virtual SVGA II rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
bha3 at pci0 dev 16 function 0 BusLogic MultiMaster rev 0x01: irq 11,
BusLogic 9xxC SCSI
bha3: model BT-958, firmware 5.07B
bha3: sync, parity
scsibus1 at bha3: 8 targets
pcn0 at pci0 dev 17 function 0 AMD 79c970 PCnet-PCI rev 0x10, Am79c970A,
rev 0: irq 9, address 00:0c:29:55:5e:ee
eap0 at pci0 dev 18 function 0 Ensoniq AudioPCI97 rev 0x02: irq 10
ac97: codec id 0x43525913 (Cirrus Logic CS4297A rev 3)
audio0 at eap0
midi0 at eap0: AudioPCI MIDI UART
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
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
pcppi0 at isa0 port 0x61
midi1 at pcppi0: PC speaker
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask e965 netmask eb65 ttymask fbe7
pctr: user-level cycle counter enabled
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
WARNING: / was not properly unmounted


===



Joachim Schipper wrote:
 
 On Sat, Dec 23, 2006 at 12:22:06PM -0800, Passeur wrote:
 Hi,
 
 I am using OpenBSD 4.0 with KDE 3.5.4
 I am looking for how to change the screen resolution which is stuck to
 640*480 at the moment.
 KDE option to change the screen resolution is greyed out.
 I have been pointed out to change the XF86Config file but this file does
 not
 exist on my installation.
 
 You'll want to take a look at /etc/X11/xorg.conf, instead.
 
 Also I would like the PC to actualy shut down when I do shutdown -h now
 instead of having to press the power button. This option is supported but
 disabled by default as far I have read, but how to enable it ?
 
 dmesg, please. ;-)
 
   Joachim
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Screen-resolution-and-ACPI-tf2875353.html#a8037639
Sent from the openbsd user - misc mailing list archive at Nabble.com.



LiveCD

2006-12-23 Thread Passeur
Hi,

I am trying to build a live CD based on the official OpenBSD article.
(http://www.openbsd-wiki.org/index.php?title=LiveCD)

qemu-img create ~/livecd.qemu.hd0 2G
Ran fine, I have got a 2GB virtual drive.

qemu -hda ~/livecd.qemu.hd0 -cdrom /home/cd40.iso -boot d
Error message after validation of the previous command:

Could not initialize SDL - Exiting

I have some articles and they were talking about the fact we need to recomp
the Kernell with SDL support ?
Is that so ?

Thank you


-- 
View this message in context: 
http://www.nabble.com/LiveCD-tf2875827.html#a8038010
Sent from the openbsd user - misc mailing list archive at Nabble.com.



Re: Screen resolution and ACPI

2006-12-23 Thread Steve Shockley

Passeur wrote:

Also I would like the PC to actualy shut down when I do shutdown -h now
instead of having to press the power button. This option is supported but
disabled by default as far I have read, but how to enable it ?


See the first and last message at 
http://www.vmware.com/community/thread.jspa;?messageID=441903.




Re: Screen resolution and ACPI

2006-12-23 Thread Randal L. Schwartz
 Passeur == Passeur  [EMAIL PROTECTED] writes:

Passeur bios0: VMware, Inc. VMware Virtual Platform

Aha... if you get VMWare working nicely, please publish the instructions.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
merlyn@stonehenge.com URL:http://www.stonehenge.com/merlyn/
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!



Re: routing 2 identical subnets

2006-12-23 Thread bofh

Don't even mess with pf, use ssh's port forwarding.

On 12/22/06, Jacob Yocom-Piatt [EMAIL PROTECTED] wrote:

at work there are 2 pieces of heavy machinery that each are hard-wired
to communicate on the, say, 192.168.101/24 subnet and i would like to
access both subnets from a machine in the office on the 172.16.16/24
subnet. to avoid the issue of having 2 routes to the same subnet, i plan
on having an intermediate machine in front of each subnet that will run
ipsec and then NAT the 172.16.16/24 host to a 192.168.101/24 address.
this way i should be able to avoid the 2 route issue.

there are likely other solutions to this problem that don't involve
ipsec and i am interested in hearing them. could the multiple routing
tables feature be useful here?

cheers,
jake




Re: Screen resolution and ACPI

2006-12-23 Thread Passeur
Cool thanks



Steve Shockley wrote:
 
 Passeur wrote:
 Also I would like the PC to actualy shut down when I do shutdown -h now
 instead of having to press the power button. This option is supported but
 disabled by default as far I have read, but how to enable it ?
 
 See the first and last message at 
 http://www.vmware.com/community/thread.jspa;?messageID=441903.
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Screen-resolution-and-ACPI-tf2875353.html#a8038395
Sent from the openbsd user - misc mailing list archive at Nabble.com.



Re: Screen resolution and ACPI

2006-12-23 Thread Passeur
Yes I am using VMWARE workstation 5.5.1 build 19175.
I have not done anything special to run OpenBSD, I have just select type of
OS : Other.



Randal L. Schwartz wrote:
 
 Passeur == Passeur  [EMAIL PROTECTED] writes:
 
 Passeur bios0: VMware, Inc. VMware Virtual Platform
 
 Aha... if you get VMWare working nicely, please publish the instructions.
 
 -- 
 Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777
 0095
 merlyn@stonehenge.com URL:http://www.stonehenge.com/merlyn/
 Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
 See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl
 training!
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Screen-resolution-and-ACPI-tf2875353.html#a8038393
Sent from the openbsd user - misc mailing list archive at Nabble.com.



Re: LiveCD

2006-12-23 Thread Ray Percival

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On Dec 23, 2006, at 3:49 PM, Passeur wrote:


Hi,

I am trying to build a live CD based on the official OpenBSD article.
(http://www.openbsd-wiki.org/index.php?title=LiveCD)


Nothing official' about it.

They do not preach that their God will rouse them a little before the  
nuts work loose.

iD8DBQFFjeL25B7p9jYarz8RAqLMAJ4s96wLOUGy3iFhUjuHRYHgzr/LbQCgkh+w
wMv2MSjaFsiHb9MxZbTyUgs=
=5GYn
-END PGP SIGNATURE-



Weird values in sensors values from it(4)

2006-12-23 Thread Matthew R. Dempsky
When I run ``sysctl hw.sensors'' on one of my machines, I get the
following output:

$ sysctl hw.sensors
hw.sensors.0=it0, Fan1, 5113 RPM
hw.sensors.3=it0, VCORE_A, 1.25 V DC
hw.sensors.4=it0, VCORE_B, 2.56 V DC
hw.sensors.5=it0, +3.3V, 2.38 V DC
hw.sensors.6=it0, +5V, 3.52 V DC
hw.sensors.7=it0, +12V, 10.69 V DC
hw.sensors.8=it0, Unused, -2.75 V DC
hw.sensors.9=it0, -12V, -11.40 V DC
hw.sensors.10=it0, +5VSB, 4.87 V DC
hw.sensors.11=it0, VBAT, 4.08 V DC
hw.sensors.12=it0, Temp 1, 33.00 degC
hw.sensors.13=it0, Temp 2, 35.00 degC
hw.sensors.14=it0, Temp 3, 36.00 degC

It would look like those values are *way* out of range, but the
machine's been otherwise running without problems.  Is the power
supply really that crappy, or is it(4) not reporting correct values?

dmesg on this machine is:

OpenBSD 4.0 (GENERIC) #1107: Sat Sep 16 19:15:58 MDT 2006
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Geode NX (AuthenticAMD 686-class, 256KB L2 cache) 1.40 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
real mem  = 637038592 (622108K)
avail mem = 572289024 (558876K)
using 4256 buffers containing 31952896 bytes (31204K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(1f) BIOS, date 10/18/05, BIOS32 rev. 0 @ 0xfb490, 
SMBIOS rev. 2.2 @ 0xf (33 entries)
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 70102 dobusy 1 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf/0xdef4
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfde60/144 (7 entries)
pcibios0: PCI Exclusive IRQs: 3 5 9 10 11
pcibios0: PCI Interrupt Router at 000:02:0 (SiS 85C503 System rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc/0x8000 0xc8000/0x8000!
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 SiS 741 PCI rev 0x03
ppb0 at pci0 dev 1 function 0 SiS 648FX AGP rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 SiS 6330 VGA rev 0x00: aperture at 0xd800, 
size 0x40
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 2 function 0 SiS 964 ISA rev 0x36
pciide0 at pci0 dev 2 function 5 SiS 5513 EIDE rev 0x01: 741: DMA, channel 0 
configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: ST340015A
wd0: 16-sector PIO, LBA, 38166MB, 78165360 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 1
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: ATAPI-CD, ROM-DRIVE-52MAX, 52PP SCSI0 5/cdrom 
removable
cd0(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2
auich0 at pci0 dev 2 function 7 SiS 7012 AC97 rev 0xa0: irq 5, SiS7012 AC97
ac97: codec id 0x414c4760 (Avance Logic ALC655 rev 0)
audio0 at auich0
ohci0 at pci0 dev 3 function 0 SiS 5597/5598 USB rev 0x0f: irq 10, version 
1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: SiS OHCI root hub, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1 at pci0 dev 3 function 1 SiS 5597/5598 USB rev 0x0f: irq 11, version 
1.0, legacy support
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: SiS OHCI root hub, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
ohci2 at pci0 dev 3 function 2 SiS 5597/5598 USB rev 0x0f: irq 9, version 
1.0, legacy support
usb2 at ohci2: USB revision 1.0
uhub2 at usb2
uhub2: SiS OHCI root hub, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 3 function 3 SiS 7002 USB rev 0x00: irq 3
usb3 at ehci0: USB revision 2.0
uhub3 at usb3
uhub3: SiS EHCI root hub, rev 2.00/1.00, addr 1
uhub3: 8 ports with 8 removable, self powered
sis0 at pci0 dev 4 function 0 SiS 900 10/100BaseTX rev 0x91: irq 11, address 
00:14:2a:b7:c9:17
rlphy0 at sis0 phy 9: RTL8201L 10/100 PHY, rev. 1
rl0 at pci0 dev 11 function 0 Accton MPX 5030/5038 rev 0x10: irq 11, address 
00:e0:29:58:9b:eb
rlphy1 at rl0 phy 0: RTL internal PHY
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
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
it0 at isa0 port 0x290/8: IT87
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask ff4d netmask ff4d ttymask ffcf
pctr: user-level cycle counter enabled
mtrr: Pentium Pro MTRR support
uhidev0 at uhub1 port 1 configuration 1 interface 0
uhidev0: Qtronix Generic USB K/B, rev 1.10/0.01, addr 2, iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub1 port 1 configuration 1 interface 1

Re: Weird values in sensors values from it(4)

2006-12-23 Thread Matthew R. Dempsky
On Sat, Dec 23, 2006 at 09:18:54PM -0600, Matthew R. Dempsky wrote:
 It would look like those values are *way* out of range, [...]

Sorry, I just meant the voltage values.



Asus RS-120-e3 (PA2) Compatibility with OpenBSD 4.0?

2006-12-23 Thread Merp.com Volunteer
I would LIKE to install OpenBSD 4.0 on the new Asus 1u rackmount server we 
just acquired.

This server is going to be replacing our core portal-web server, running 
Python/Zope/Plone with MySQL, and rsync to mirror sites around the globe.

I just joined this list this week, after searching through the FAQs, and 
general web-searching.

I'd like to know if there are going to be any serious compatibility issues.
I've tried to find a comprehensive list mapping OpenBSD 4.0 to the list of 
hardware on this system, but unfortunately I either I'm missing something, or 
else there's a lot on this system that is NOT especially compatible.

I've installed the default bsd.mp just fine, and I'm trying to figure out how 
to use that with the correct Raid drivers. I have been using this as a guide 
for general RAID support, not knowing for certain if this is what I need:
http://www.eclectica.ca/howto/openbsd-software-raid-howto.php
I compiled it with a generic single cpu kernel, but I haven't yet figured out 
(just started on it yesterday) how to merge what I need for RAID support and 
MP support.

We are a total volunteer run community, so please be patient with me/us.

I've used Openbsd on and off over the years, but only for basics like 
firewalling and such, and the last time I actually did any work with OpenBSD 
was at least 2-3 years ago unfortunately.

I've usually used different Linux distros for web-servers, file-servers, etc. 
mostly because OpenBSD didn't support multiple processors back then. 

Now that it does, I'm very glad, since I've liked the default security 
approach, stability, philosophy, etc. of OpenBSD, but it'll take a little 
getting back into it.

If this is the wrong list to post this to, please direct me as to the correct 
one.

Below are the questions I have:
How is the support for RAID1 on this LSI chipset?
Since there are Linux drivers, is there any problem with the LSI raid?
How is the thermal/monitoring support in OpenBSD on such a system?
Does the mp kernel support 64 bit or only 32 bit processing?
Any known issues with the dual core cpus?
How much support is there for dvd burning with dual layer?

Here are the specs for the system. Please either point me to the appropriate 
links/pages for working with the hardware and/or let me know any gotchas 
for that hardware.

ASUS 1u rack mount model: RS120-e3 (PA2)
Processor: Intel Pentium D 820 Dual Core  LGA775 CPU 2.80 Ghz
L2 Cache: 2 MB
FSB: 800Mhz
RAM: 2048 MB (2 GB) (supports up to 8 GB ram)
RAID CHIPSET= LSI, 
Desire to setup RAID1 (mirror) of two 320 GB SATA2 hard drives.
Setup in the LSI RAID bios as 
RAID1
SATA2
Stripe Size= 64KB
Number of Stripes=2
State= Optimal
Spans = 1

hard Drives specs :
Seagate 320 GB Barracuda 7200 RPM 16 MB cache(x2)
SATA2
Model: ST3320620AS

DVDRW= Sony 18x dual layer dvd+r+rw/dvd-r-rw/cdrw ide
model: AW-q170a
Need to be able to burn for archiving/backups.

Asus Motherboard Model= P5MT-R
Rev: 1.03G
Video: ati rage-xl pci-based vga with 8 mb video mem
2x Ethernet ports broadcom BMC5721 gigabit
1x pci express x8 slot 1.0a
1x pci-x 133 mhz/64 bit slot 1.0
1x pci 33 mhz/32 bit/5v slot 2.3
1x mini-pci socket for asus server management board
400 watt ps

RAM Chipset= Supertalent PC5300 DDR2 DIMM 667 Mhz 1GB (x2 = 2 GB total 
supports up to 8 GB total)

Thanks for any guidance, and keep up the great efforts!
Cheers!
-- 
*** Volunteer Team for the completely non-profit, non-revenue, 
non-business-entity dedicated to 
the Middle-earth Role-playing International Community at Merp.com
Fighting the noble battle against the dark forces, trying to keep alive, and 
growing,
the dream and joy of role-playing gaming in J.R.R. Tolkien's Middle-earth
http://www.merp.com
Mailing list subscribe: [EMAIL PROTECTED]
IRC (Internet Relay Chat) Server: irc.merp.com (channel: #merpchat)
Yahoo=merpcom
ICQ=293-163-919
[EMAIL PROTECTED]
Alternate Email: [EMAIL PROTECTED] (in case you're blocked by our spam 
filters).

Be sure to sign up for the 3rd annual International MerpCon (2007):
July 27th, 28th,  29th in Spokane, WA, USA.
This event is not run by merp.com, but by a different group of volunteers,
but merp.com has donated many services to help them out.
Show them your support by signing up, spreading the word, and showing up.
http://www.merpcon.com

I would draw some of the great tales in fullness, 
and leave many only placed in the scheme, and sketched. 
The cycles should be linked to a majestic whole, 
and yet leave scope for other minds and hands, 
wielding paint and music and drama... 
- John Ronald Reuel Tolkien, from a letter written to Milton Waldman, ca. 1951 
-



Re: Weird values in sensors values from it(4)

2006-12-23 Thread Travers Buda
Don't worry, your machine is OK. I've got this behavior on a few of my
machines. I'd expect it's a result of the overall crappiness of the x86
platform rather than a bug in the driver. Seeing how it(4) was added in
3.4, said crappiness probably involves cheap design and hardware as
well as a HUGE diversity in how various vendors implement these
sensors. Figuring out that they are even there on the i2c bus let alone
WHO they are has got to be some tricky work.

Looks like there's some new stuff in -current related to sensors, a
two-level api. I don't know what this does for sensors, but it has to
be good! =)

Travers Buda

On Sat, 23 Dec 2006 21:18:54 -0600
Matthew R. Dempsky [EMAIL PROTECTED] wrote:

 When I run ``sysctl hw.sensors'' on one of my machines, I get the
 following output:
 
 $ sysctl hw.sensors
 hw.sensors.0=it0, Fan1, 5113 RPM
 hw.sensors.3=it0, VCORE_A, 1.25 V DC
 hw.sensors.4=it0, VCORE_B, 2.56 V DC
 hw.sensors.5=it0, +3.3V, 2.38 V DC
 hw.sensors.6=it0, +5V, 3.52 V DC
 hw.sensors.7=it0, +12V, 10.69 V DC
 hw.sensors.8=it0, Unused, -2.75 V DC
 hw.sensors.9=it0, -12V, -11.40 V DC
 hw.sensors.10=it0, +5VSB, 4.87 V DC
 hw.sensors.11=it0, VBAT, 4.08 V DC
 hw.sensors.12=it0, Temp 1, 33.00 degC
 hw.sensors.13=it0, Temp 2, 35.00 degC
 hw.sensors.14=it0, Temp 3, 36.00 degC



Re: overpartitioning/dump [was Re: following -stable]

2006-12-23 Thread Craig Skinner
On Sat, Dec 23, 2006 at 07:58:06PM +0100, Joachim Schipper wrote:
 I interpret the above snippet to mean `dump works best on filesystems,
 not files'. As to unmounting before dumping, that's possible but, IME,
 not usually necessary.
 

Thanks, I'll keep that in mind for when it is not practical, whatever
that means at the time.

 Of course, you *do* have to know what you are doing. Dumping a running
 /usr is pretty much okay - it's not going to change, after all. On the
 other hand, dump and PostgreSQL aren't friends (which is why pg_dump is
 useful, this creates a backup in a file).
 
 My backups run at night, when very little things are using the machines;
 but I do not unmount (or mount read-only) any filesystems before dumping
 them.
 
 However, if you can get away with unmounting stuff, it might be
 preferable. I just never bothered.
 

I've been shutting down postfix @ 4am, umounting /var/mail, dumping.
Similar for /home with courier-imap, /var/www,

I copy /etc, /root, crontabs, /usr/local/site, /var/spool/mailman,
to /var/dumpster  dump that, then ftp the lot off site so there's no
human input needed for tapes, CDs, wotnot.


 
 However, if you can get away with unmounting stuff, it might be
 preferable. I just never bothered.
 

Ta, Merry Xmas if you're not working.

-- 
Craig Skinner | http://www.kepax.co.uk | [EMAIL PROTECTED]