Re: Port ZFS to OpenBSD

2009-01-15 Thread Khalid Schofield

On 16 Jan 2009, at 06:51, Janne Johansson wrote:


Dieter wrote:
What are the chances of getting a port of ZFS to OpenBSD? I can't   
quite bring myself to run solaris since it lacks so much of what  
I  love about OpenBSD and Linux is back to square one because of  
the  reasons I moved to OpenBSD.

Have you ruled out FreeBSD?
Why are so many people so hot for ZFS?  From what little I've read
about it, it sounds very complex, which means bugs and a nasty  
learning

curve.  Not something I'm interested in trusting my data to.


Then again, you give the zfs a name, and throw it a list of raw  
devices and you can have that filesystem 'newfs'ed, writeable,  
nfsexported and running in a more than usual fault-tolerant raided  
mode in mere seconds regardless of size.


Some admins value that. (except the nfs part, but it's optional)


I like nfs!



Re: Port ZFS to OpenBSD

2009-01-15 Thread Janne Johansson

Dieter wrote:
What are the chances of getting a port of ZFS to OpenBSD? I can't  
quite bring myself to run solaris since it lacks so much of what I  
love about OpenBSD and Linux is back to square one because of the  
reasons I moved to OpenBSD.


Have you ruled out FreeBSD?

Why are so many people so hot for ZFS?  From what little I've read
about it, it sounds very complex, which means bugs and a nasty learning
curve.  Not something I'm interested in trusting my data to.


Then again, you give the zfs a name, and throw it a list of raw devices 
and you can have that filesystem 'newfs'ed, writeable, nfsexported and 
running in a more than usual fault-tolerant raided mode in mere seconds 
regardless of size.


Some admins value that. (except the nfs part, but it's optional)



Re: Port ZFS to OpenBSD

2009-01-15 Thread bofh
On Thu, Jan 15, 2009 at 5:06 AM, Dieter  wrote:
> Why are so many people so hot for ZFS?  From what little I've read
> about it, it sounds very complex, which means bugs and a nasty learning
> curve.  Not something I'm interested in trusting my data to.

The amount testing they told us about is pretty incredible.  The
design looks pretty interesting.  After a couple of years of testing
in the wild, there hasn't been too many serious horror stories.  The
one bit flipflop starts becoming more common at the terabyte level.

And it is pretty sexy to bit.


-- 
http://www.glumbert.com/media/shift
http://www.youtube.com/watch?v=tGvHNNOLnCk
"This officer's men seem to follow him merely out of idle curiosity."
-- Sandhurst officer cadet evaluation.
"Securing an environment of Windows platforms from abuse - external or
internal - is akin to trying to install sprinklers in a fireworks
factory where smoking on the job is permitted."  -- Gene Spafford
learn french:  http://www.youtube.com/watch?v=j1G-3laJJP0&feature=related



Re: Port ZFS to OpenBSD

2009-01-15 Thread Dieter
> What are the chances of getting a port of ZFS to OpenBSD? I can't  
> quite bring myself to run solaris since it lacks so much of what I  
> love about OpenBSD and Linux is back to square one because of the  
> reasons I moved to OpenBSD.

Have you ruled out FreeBSD?

Why are so many people so hot for ZFS?  From what little I've read
about it, it sounds very complex, which means bugs and a nasty learning
curve.  Not something I'm interested in trusting my data to.



Re: Mount directories of unmounted disks/partitions

2009-01-15 Thread Paul M

On 16/01/2009, at 10:46 AM, Jon Sjvstedt wrote:


Hello,

On Thu, Jan 15, 2009 at 1:30 PM, Jon Sjvstedt

wrote:


Hello all!
I have an issue with mount. The problem  is that i would like to
create
a
directory with subdirs. On the subdirs I would mount directories of
not
yet mounted disks. Example

mount /stuff/data1 /wd0d/dataa
mount /stuff/data2 /wd0d/datab
mount /stuff/data3 /wd1d
mount /stuff/data4 /wd2d/datad
mount /stuff/data5 /wd2d/datae



Syntax of your mount commands is a bit strange... according to
mount(8) the first argument should be a 'special' device, like
/dev/wd0a, not a regular directory.

Clarification attempt: I know that mount wants a device like /dev/wd0d,
but my example was an atempt to explain what I want to archive. I want
a
mounting point in the root file system to be mounted with a directory
found inside a device that is not yet mounted. I also want this
transparent to samba and NFS (I'll use both).

It would be perfectly ok to use more programs than mount to solve this




I want to do this because datax are all growing fast (it is my music
and
photos). Eventually dataa and datab will need their own disks.

Can this be done in a neat way? I only want to mount disks on the
root
partition



If each datax directory has it's own partition it's perfectly
possible.

The thing is that I want these mounted directories to share a disk (or
partition) until they both cant fit. Then, the biggest one have to move
away. If my ideas get to work, I only have to change the device of the
mounting, not the mounting point.


However, it seems to me that (from your example above) 'dataa' and
'datab' are on the same partition, and, from mount(8): "For disk
partitions, the special device must correspond to a partition
registered in the disklabel(5).", so no deal.



I'm still not understanding what you want or what the problem is. This
appears to me to be a perfectly ordinary mounting situation.

If you have a bunch of dirs, data[1-2], as subdirectories of /stuff,
then you can put whatever you want in these. Then, at some point you
can mount a different volume on any of these and the path will remain
as /stuff/datax. If you wish to then change the mounted volume, just
change your fstab or mount command as appropriate.
This will work with samba and nfs, as long as your smb.conf and exports
are set up correctly, and is a perfectly ordinary situation, as I said.

I'm confused by:

I want a mounting point in the root file system to be mounted with a
directory
found inside a device that is not yet mounted.


Do you want to hierarchically mount filesystems? This seems very odd.

Have I somehow misunderstood?


paulm



Re: Problems with ppp(8) to Verizon EVDO

2009-01-15 Thread Pedro la Peu
On Thursday 15 January 2009 17:44:38 Jason Dixon wrote:
> Normal for what?  I see 2.5Mbps/512Kbps with the same device in OS X.

Normal for me with the devices I have.

> > Have you seen tcp traffic that is not affected?  
> 
> Not by application type per se, only by packet size.

I was wondering if you have ever received a packet larger than 920 (or 
whatever your apparent limit).
 
> When run interactively, both sides say 1500.  And like I mentioned, OS
> X doesn't exhibit any of these problems.  When I have a spare moment
> I'll try Linux under VMware.

Sure, but the ppp lcp negotiation is only between you and your EVDO 
device. It has no correlation to the parameters of the mobile network.

> If I "set mru 900" it's stable.  The download speed is around
> 300-400Kbps, which is to be expected.  But it still sucks.  Verizon
> must be using some sort of voodoo magic in their drivers.  :(

What does at+cgeqreq=? return compared to OSX after it has configured 
the device (don't know if this is applicable to EVDO)?

I suspect that unless told otherwise, my devices negotiate a minimal 
parameter set for the PDP context, which the vendor drivers override. 
Cell congestion is normal here, so achievable throughput is a moving 
target. Difficult to compare like for like.



Re: Mount directories of unmounted disks/partitions

2009-01-15 Thread Jon Sjöstedt
> Hello,
>
> On Thu, Jan 15, 2009 at 1:30 PM, Jon Sjvstedt 
> wrote:
>>
>> Hello all!
>> I have an issue with mount. The problem  is that i would like to create
>> a
>> directory with subdirs. On the subdirs I would mount directories of not
>> yet mounted disks. Example
>>
>> mount /stuff/data1 /wd0d/dataa
>> mount /stuff/data2 /wd0d/datab
>> mount /stuff/data3 /wd1d
>> mount /stuff/data4 /wd2d/datad
>> mount /stuff/data5 /wd2d/datae
>>
>
> Syntax of your mount commands is a bit strange... according to
> mount(8) the first argument should be a 'special' device, like
> /dev/wd0a, not a regular directory.
Clarification attempt: I know that mount wants a device like /dev/wd0d,
but my example was an atempt to explain what I want to archive. I want a
mounting point in the root file system to be mounted with a directory
found inside a device that is not yet mounted. I also want this
transparent to samba and NFS (I'll use both).

It would be perfectly ok to use more programs than mount to solve this

>
>> I want to do this because datax are all growing fast (it is my music and
>> photos). Eventually dataa and datab will need their own disks.
>>
>> Can this be done in a neat way? I only want to mount disks on the root
>> partition
>>
>
> If each datax directory has it's own partition it's perfectly possible.
The thing is that I want these mounted directories to share a disk (or
partition) until they both cant fit. Then, the biggest one have to move
away. If my ideas get to work, I only have to change the device of the
mounting, not the mounting point.
>
> However, it seems to me that (from your example above) 'dataa' and
> 'datab' are on the same partition, and, from mount(8): "For disk
> partitions, the special device must correspond to a partition
> registered in the disklabel(5).", so no deal.
>
>>
>> <>
>> The d00...@dtek.chalmers.se email address will
>> eventually be abandoned during 2009. Please use
>> addresses below instead
>>
>> jonsjost...@gmail.com jonsjost...@hotmail.com
>>
>
> fbscarel
>


<>
The d00...@dtek.chalmers.se email address will
eventually be abandoned during 2009. Please use
addresses below instead

jonsjost...@gmail.com jonsjost...@hotmail.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: mouse cursor is too fast with wsmoused

2009-01-15 Thread Louis V. Lambrecht

Olivier Cherrier wrote:

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


  

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.



Re: cdio: Can't determine media type

2009-01-15 Thread Steven Surdock
> -Original Message-
> Subject: cdio: Can't determine media type
>
> I can't seem to burn CD's with my USB attached drive anymore.  Audio
> CD's seem to play, I can write using a different OS and mount CDs.
> Possibly a change after upgrading to 4.4?

It was suggested that I try cdrecord.  It worked perfectly.  For what it's
worth, here the results:

r...@builder02# cdrecord -v dev=/dev/rcd1c:2,1,0 -data driveropts=burnproof
OpenBSD-4.4-stable.iso
cdrecord: No write mode specified.
cdrecord: Asuming -tao mode.
cdrecord: Future versions of cdrecord may have different drive dependent
defaults.
cdrecord: Continuing in 5 seconds...
Cdrecord-Clone 2.01 (i386-unknown-openbsd4.4) Copyright (C) 1995-2004 Jvrg
Schilling
TOC Type: 1 = CD-ROM
scsidev: '/dev/rcd1c:2,1,0'
devname: '/dev/rcd1c'
scsibus: 2 target: 1 lun: 0
Using libscg version 'schily-0.8'.
Driveropts: 'burnproof'
SCSI buffer size: 61440
atapi: 0
Device type: Removable CD-ROM
Version: 0
Response Format: 1
Vendor_info: 'ATAPI   '
Identifikation : 'CD-R/RW 40X12   '
Revision   : '3.AX'
Device seems to be: Generic mmc CD-RW.
cdrecord: Warning: controller creates hard SCSI failure when retrieving CD
write parameter page.
Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
Driver flags   : MMC-2 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO RAW/R16 RAW/R96R
Drive buf size : 1630208 = 1592 KB
FIFO size  : 4194304 = 4096 KB
Track 01: data   228 MB
Total size:  262 MB (25:58.85) = 116914 sectors
Lout start:  262 MB (26:00/64) = 116914 sectors
Current Secsize: 2048
ATIP info from disk:
  Indicated writing power: 6
  Is not unrestricted
  Is not erasable
  Disk sub type: Medium Type C, low Beta category (C-) (6)
  ATIP start of lead in:  -11231 (97:32/19)
  ATIP start of lead out: 359846 (79:59/71)
Disk type:Short strategy type (Phthalocyanine or similar)
Manuf. index: 27
Manufacturer: Prodisc Technology Inc.
Blocks total: 359846 Blocks current: 359846 Blocks remaining: 242932
Starting to write CD/DVD at speed 40 in real TAO mode for single session.
Last chance to quit, starting real write0 seconds. Operation starts.
Waiting for reader process to fill input buffer ... input buffer ready.
BURN-Free is ON.
Performing OPC...
Starting new track at sector: 0
Track 01:  228 of  228 MB written (fifo 100%) [buf  91%]   4.2x.
Track 01: Total bytes read/written: 239435776/239435776 (116912 sectors).
Writing  time:  446.435s
Average write speed   3.5x.
Min drive buffer fill was 91%
Fixating...
Fixating time:   69.973s
cdrecord: fifo had 3898 puts and 3898 gets.
cdrecord: fifo was 0 times empty and 3826 times full, min fill was 97%.



Re: Port ZFS to OpenBSD

2009-01-15 Thread Abel Camarillo
On Thu, Jan 15, 2009 at 11:26:33AM -0500, bofh wrote:
> On Thu, Jan 15, 2009 at 10:55 AM, Dave Wilson
>  wrote:
> > I would suggest, if you want XFS in OpenBSD[1], set about persuading Sun
> > to re-release the ZFS code as BSD-licensed. Indeed, I think given it
> > would have to be kernel code, I really do mean BSD-licensed rather than
> > BSD-license-compatible.
> 
> I have to ask - if you're not copying the code, but only copying the
> concept/technical requirements over (ie, a rewrite), that new code
> would be bsd licensed, right?
> 

Yea but sun have patents over ZFS `concepts` [see wikipedia, google].
And the CDDL grants you a license. so you can't use another.



Re: Port ZFS to OpenBSD

2009-01-15 Thread johan beisser

On Jan 15, 2009, at 9:38 AM, Sevan / Venture37 wrote:


The hammer FS seems promising from the BSDtalk Will & Matthew did.


Outside of a single person who's doing porting (to an unknown OS),  
there's not been much in the way of updates on the status. It's a BETA  
filesystem at best, and still being tested with the 2.0 release of  
DragonFly.


2.1 seems promising, but HAMMER doesn't seem as well developed as one  
might hope.


http://gitweb.dragonflybsd.org/dragonfly.git?a=search&h=HEAD&st=commit&s=HAMMER

FWIW, there's no license restriction I spotted in DragonflyBSD that  
would prevent it being ported, if one were motivated to.




Re: Port ZFS to OpenBSD

2009-01-15 Thread Jordi Espasa Clofent

Extracted from http://www.dragonflybsd.org/hammer/index.shtml:

"If you are interesting in porting HAMMER to another OS, please drop me 
a line at dillon at backplane.com. I will be creating a new DragonFly 
mailing list specifically for HAMMER porting as well as a git or 
mercurial repository (I haven't decided which yet) separate from the 
DragonFly repository. "


--
Thanks,
Jordi Espasa Clofent



You have been selected!

2009-01-15 Thread Wal-Mart
You have been selected to access the Wal-Mart 2 Steps Survey and win a
$100.00 gift certificate.

Please Click Here and complete the form to receive your reward. Thank
you.

This is an automated message. Please don't reply. Message ID:
0012762174-WMRTSRV.



Re: Port ZFS to OpenBSD

2009-01-15 Thread Jason Dixon
On Thu, Jan 15, 2009 at 05:38:32PM +, Sevan / Venture37 wrote:
> The hammer FS seems promising from the BSDtalk Will & Matthew did.

HAMMER is a completely different beast.  From my understanding, it
attempts to avoid failures through clustering.  But it doesn't have the
resiliency to avoid data corruption, nor the recovery functionality, of
ZFS.

There was a thread recently on dragonfly-users that covered much of
this.

http://leaf.dragonflybsd.org/mailarchive/users/2009-01/msg00058.html

-- 
Jason Dixon
DixonGroup Consulting
http://www.dixongroup.net/



Re: Problems with ppp(8) to Verizon EVDO

2009-01-15 Thread Jason Dixon
On Thu, Jan 15, 2009 at 04:25:54PM +, Pedro la Peu wrote:
> On Thursday 15 January 2009 03:03:12 Jason Dixon wrote:
> > I have a Verizon USB720 dongle that shows up as ucom0.  I intend to
> > use it for connecting remotely with my X40.  I'm having problems when
> > packets exceed a certain size.  When this happens, the return packets
> > never make it back to my system.
> 
> This is (if I understand correctly) normal. 

Normal for what?  I see 2.5Mbps/512Kbps with the same device in OS X.
 
> > I can connect fine with ppp(8).  I can ping remote hosts and do
> > traceroutes.  I can ssh to hosts and perform basic commands.  Only
> > when the payload exceeds ~900 bytes do things start to fail.  This
> > happens with almost all TCP traffic, but is most noticeable with SSH
> > or HTTP. 
> 
> Have you seen tcp traffic that is not affected?  

Not by application type per se, only by packet size.

> > And here are some simple tests.  I've created a test file of zeroes,
> > increasing by 10 bytes each time.  It finally stalls at 930 bytes.
> > I've tried it with and without vjcomp.
> 
> As I understand it, this a characteristic of the underlying (mobile) 
> network, where the MTU is set by the network operator. Thus it may vary 
> depending on who you connect to.

When run interactively, both sides say 1500.  And like I mentioned, OS X
doesn't exhibit any of these problems.  When I have a spare moment I'll
try Linux under VMware.
 
> Once the ppp link is up set the mtu of the corresponding tun device to 
> something smaller than the size that fails (900 works here). I can't 
> find a ppp option that does the same (set mtu etc.) and I'm not clear 
> why the MTU has to be forced. But it's been working fine like this for 
> months so I don't worry about it any more :-)

If I "set mru 900" it's stable.  The download speed is around 300-400Kbps,
which is to be expected.  But it still sucks.  Verizon must be using
some sort of voodoo magic in their drivers.  :(

-- 
Jason Dixon
DixonGroup Consulting
http://www.dixongroup.net/



Re: Port ZFS to OpenBSD

2009-01-15 Thread Sevan / Venture37

The hammer FS seems promising from the BSDtalk Will & Matthew did.


Sevan / Venture37



Re: Mount directories of unmounted disks/partitions

2009-01-15 Thread Ariane van der Steldt
On Thu, Jan 15, 2009 at 04:30:09PM +0100, Jon Sj?stedt wrote:
> I have an issue with mount. The problem  is that i would like to create a
> directory with subdirs. On the subdirs I would mount directories of not
> yet mounted disks. Example
> 
> mount /stuff/data1 /wd0d/dataa
> mount /stuff/data2 /wd0d/datab
> mount /stuff/data3 /wd1d
> mount /stuff/data4 /wd2d/datad
> mount /stuff/data5 /wd2d/datae

I'd use fstab to mount disks, I'm not sure if I understand your question
correctly though.

> I want to do this because datax are all growing fast (it is my music and
> photos). Eventually dataa and datab will need their own disks.

A combination of ccd and growfs may do the trick there. If you use the
serially concatenated option, you may be able to add subsequent disks
(not sure though, never tried it).

> Can this be done in a neat way? I only want to mount disks on the root
> partition

Symlinks often work, although they may fail if your filesystem is
exported with nfs or samba and the link points to an area outside the
exported area.

Ariane



Re: Port ZFS to OpenBSD

2009-01-15 Thread Peter Kay - Syllopsium

From: "bofh" 



I have to ask - if you're not copying the code, but only copying the
concept/technical requirements over (ie, a rewrite), that new code
would be bsd licensed, right?

Probably, but this is filesystem code. The last thing you want to do is to
replace complex, generally well debugged code with new complex not
so well debugged code!

That applies for all software, but doubly so for code that can corrupt
data and crash the entire system.

PK



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: Port ZFS to OpenBSD

2009-01-15 Thread bofh
On Thu, Jan 15, 2009 at 10:55 AM, Dave Wilson
 wrote:
> I would suggest, if you want XFS in OpenBSD[1], set about persuading Sun
> to re-release the ZFS code as BSD-licensed. Indeed, I think given it
> would have to be kernel code, I really do mean BSD-licensed rather than
> BSD-license-compatible.

I have to ask - if you're not copying the code, but only copying the
concept/technical requirements over (ie, a rewrite), that new code
would be bsd licensed, right?


-- 
http://www.glumbert.com/media/shift
http://www.youtube.com/watch?v=tGvHNNOLnCk
"This officer's men seem to follow him merely out of idle curiosity."
-- Sandhurst officer cadet evaluation.
"Securing an environment of Windows platforms from abuse - external or
internal - is akin to trying to install sprinklers in a fireworks
factory where smoking on the job is permitted."  -- Gene Spafford
learn french:  http://www.youtube.com/watch?v=j1G-3laJJP0&feature=related



Re: Port ZFS to OpenBSD

2009-01-15 Thread Jason Dixon
On Thu, Jan 15, 2009 at 03:55:51PM +, Dave Wilson wrote:
> Khalid Schofield wrote:
> > Dev's.
> > 
> > What are the chances of getting a port of ZFS to OpenBSD? I can't quite
> > bring myself to run solaris since it lacks so much of what I love about
> > OpenBSD and Linux is back to square one because of the reasons I moved
> > to OpenBSD.
> 
> Given the Dev's have answered this one before, and have better things to
> do, I shall take it upon myself. I'm sure they will correct me if I'm
> mistaken.
> 
> The ZFS code is under a license which the OpenBSD team have deemed
> incompatible with the BSD License they use. [0]
> 
> Whilst there could be a FUSE-based implementation of ZFS on OpenBSD, and
> indeed I think one may have already been started, to properly take
> advantage of the strength of ZFS the code would have to be in the
> kernel. Performance will suck if nothing else.
> 
> If its not BSD-licensed code, its not going in the kernel. End of
> discussion. Said policy has been a universal truism of OpenBSD since it
> began.

As marco already stated, it could be a kernel module.  But it won't.
Why?  Because nobody will write it.  End of discussion, the rest is
noise.

P.S.  Personally, as much as I'd love to see ZFS in OpenBSD, I think
dtrace would be much more useful.

-- 
Jason Dixon
DixonGroup Consulting
http://www.dixongroup.net/



Re: Problems with ppp(8) to Verizon EVDO

2009-01-15 Thread Pedro la Peu
On Thursday 15 January 2009 03:03:12 Jason Dixon wrote:
> I have a Verizon USB720 dongle that shows up as ucom0.  I intend to
> use it for connecting remotely with my X40.  I'm having problems when
> packets exceed a certain size.  When this happens, the return packets
> never make it back to my system.

This is (if I understand correctly) normal. 

> I can connect fine with ppp(8).  I can ping remote hosts and do
> traceroutes.  I can ssh to hosts and perform basic commands.  Only
> when the payload exceeds ~900 bytes do things start to fail.  This
> happens with almost all TCP traffic, but is most noticeable with SSH
> or HTTP. 

Have you seen tcp traffic that is not affected?  

> Here is my ppp.conf:

Basically identical to mine.

> And here are some simple tests.  I've created a test file of zeroes,
> increasing by 10 bytes each time.  It finally stalls at 930 bytes.
> I've tried it with and without vjcomp.

As I understand it, this a characteristic of the underlying (mobile) 
network, where the MTU is set by the network operator. Thus it may vary 
depending on who you connect to.

I have a couple of Huawei USB HSDPA modems from two UK mobile networks 
and see the exact same symptoms. However, sometimes when roaming on a 
foreign network the problem did not occur.

> Any suggestions are greatly appreciated.

Once the ppp link is up set the mtu of the corresponding tun device to 
something smaller than the size that fails (900 works here). I can't 
find a ppp option that does the same (set mtu etc.) and I'm not clear 
why the MTU has to be forced. But it's been working fine like this for 
months so I don't worry about it any more :-)



Re: looks like bug in awk

2009-01-15 Thread Danix
Hi,

  I think you're missing the fact that the subtruct variable is not
initialized and defaults to 0.
  So, what you get is

0 - 34523 - 9485 - 394 - 3456 = -47858

  not

34523 - 9485 - 394 - 3456 = 21188

  Cheers,

Daniele


igor denisov wrote:
> Hello there.
>
> There is a problem here.
>
> input:
>  34523
>  9485
>  394
>  3456
>
> awk '{subtruct-=$1} END {print subtruct}' input
>
> output:
> -47858
> same thing but without minus with
>
> awk '{sum+=$1} END {print sum}' input
>
> output:
> 47858
>
> Why in both cases the code sums the field?
> -- 
> igor denisov.



Re: cdio: Can't determine media type

2009-01-15 Thread Jesus Sanchez

try cdrecord (port cdrtools) to make sure it's not
a hardware issue.

-Jesus

Steven Surdock escribis:

I can't seem to burn CD's with my USB attached drive anymore.  Audio
CD's seem to play, I can write using a different OS and mount CDs.
Possibly a change after upgrading to 4.4?

builder02$ sudo cdio -f cd1 tao OpenBSD-4.4-stable.iso
cdio: Can't determine media type

builder02$ dmesg |grep cd
cd0 at scsibus1 targ 0 lun 0:  ATAPI
5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2
cd1 at scsibus2 targ 1 lun 0:  ATAPI 5/cdrom
removable


-Steve S.




Re: Port ZFS to OpenBSD

2009-01-15 Thread Dave Wilson
Khalid Schofield wrote:
> Dev's.
> 
> What are the chances of getting a port of ZFS to OpenBSD? I can't quite
> bring myself to run solaris since it lacks so much of what I love about
> OpenBSD and Linux is back to square one because of the reasons I moved
> to OpenBSD.
> 
> Khalid
> 
> 

Given the Dev's have answered this one before, and have better things to
do, I shall take it upon myself. I'm sure they will correct me if I'm
mistaken.

The ZFS code is under a license which the OpenBSD team have deemed
incompatible with the BSD License they use. [0]

Whilst there could be a FUSE-based implementation of ZFS on OpenBSD, and
indeed I think one may have already been started, to properly take
advantage of the strength of ZFS the code would have to be in the
kernel. Performance will suck if nothing else.

If its not BSD-licensed code, its not going in the kernel. End of
discussion. Said policy has been a universal truism of OpenBSD since it
began.

I would suggest, if you want XFS in OpenBSD[1], set about persuading Sun
to re-release the ZFS code as BSD-licensed. Indeed, I think given it
would have to be kernel code, I really do mean BSD-licensed rather than
BSD-license-compatible.

And when you do, be sure to remember to buy Satan some mittens.


-- 

SD



[0] http://marc.info/?l=openbsd-tech&m=110806948606417&w=2
[1] Which I personally would love to see.



Re: Port ZFS to OpenBSD

2009-01-15 Thread Jason Dixon
On Thu, Jan 15, 2009 at 03:21:19PM +, Khalid Schofield wrote:
> Dev's.
>
> What are the chances of getting a port of ZFS to OpenBSD? I can't quite 
> bring myself to run solaris since it lacks so much of what I love about 
> OpenBSD and Linux is back to square one because of the reasons I moved to 
> OpenBSD.

About the same as porting anything substantial to OpenBSD.  The
developer must be passionate about the project and have the resources
(time, money) to accomplish it[1].  There is no way to quantify the odds
of this happening.  I see no code attached to your email, so I presume
you're not volunteering.


[1] Not even taking into account any licensing implications.

-- 
Jason Dixon
DixonGroup Consulting
http://www.dixongroup.net/



Re: Port ZFS to OpenBSD

2009-01-15 Thread Josh Grosse
On Thu, 15 Jan 2009 15:21:19 +, Khalid Schofield wrote
> Dev's.
> 
> What are the chances of getting a port of ZFS to OpenBSD? I can't  
> quite bring myself to run solaris since it lacks so much of what I  
> love about OpenBSD and Linux is back to square one because of the  
> reasons I moved to OpenBSD.
> 
> Khalid

Start here: http://marc.info/?l=openbsd-misc&m=113231622523921&w=2



Re: Port ZFS to OpenBSD

2009-01-15 Thread Khalid Schofield

Ha you flatter me! You really want my code in the OpenBSD kernel!



On 15 Jan 2009, at 15:35, Marco Peereboom wrote:


Why don't you write a port?

You can do the kernel pieces using .ko (like kqemu for example).

On Thu, Jan 15, 2009 at 03:21:19PM +, Khalid Schofield wrote:

Dev's.

What are the chances of getting a port of ZFS to OpenBSD? I can't  
quite
bring myself to run solaris since it lacks so much of what I love  
about
OpenBSD and Linux is back to square one because of the reasons I  
moved to

OpenBSD.

Khalid




Re: Port ZFS to OpenBSD

2009-01-15 Thread Khalid Schofield

Yeh just been reading that actually before I emailed m...@



On 15 Jan 2009, at 15:34, Josh Grosse wrote:


On Thu, 15 Jan 2009 15:21:19 +, Khalid Schofield wrote

Dev's.

What are the chances of getting a port of ZFS to OpenBSD? I can't
quite bring myself to run solaris since it lacks so much of what I
love about OpenBSD and Linux is back to square one because of the
reasons I moved to OpenBSD.

Khalid


Start here: http://marc.info/?l=openbsd-misc&m=113231622523921&w=2




Mount directories of unmounted disks/partitions

2009-01-15 Thread Jon Sjöstedt
Hello all!
I have an issue with mount. The problem  is that i would like to create a
directory with subdirs. On the subdirs I would mount directories of not
yet mounted disks. Example

mount /stuff/data1 /wd0d/dataa
mount /stuff/data2 /wd0d/datab
mount /stuff/data3 /wd1d
mount /stuff/data4 /wd2d/datad
mount /stuff/data5 /wd2d/datae

I want to do this because datax are all growing fast (it is my music and
photos). Eventually dataa and datab will need their own disks.

Can this be done in a neat way? I only want to mount disks on the root
partition


<>
The d00...@dtek.chalmers.se email address will
eventually be abandoned during 2009. Please use
addresses below instead

jonsjost...@gmail.com jonsjost...@hotmail.com



Re: Port ZFS to OpenBSD

2009-01-15 Thread Marco Peereboom
Why don't you write a port?

You can do the kernel pieces using .ko (like kqemu for example).

On Thu, Jan 15, 2009 at 03:21:19PM +, Khalid Schofield wrote:
> Dev's.
>
> What are the chances of getting a port of ZFS to OpenBSD? I can't quite 
> bring myself to run solaris since it lacks so much of what I love about 
> OpenBSD and Linux is back to square one because of the reasons I moved to 
> OpenBSD.
>
> Khalid



Re: Port ZFS to OpenBSD

2009-01-15 Thread Janne Johansson

Khalid Schofield wrote:

Dev's.
What are the chances of getting a port of ZFS to OpenBSD?


If you just sit and wait for it, I'd say: "zero to very-little".



Port ZFS to OpenBSD

2009-01-15 Thread Khalid Schofield

Dev's.

What are the chances of getting a port of ZFS to OpenBSD? I can't  
quite bring myself to run solaris since it lacks so much of what I  
love about OpenBSD and Linux is back to square one because of the  
reasons I moved to OpenBSD.


Khalid



cdio: Can't determine media type

2009-01-15 Thread Steven Surdock
I can't seem to burn CD's with my USB attached drive anymore.  Audio
CD's seem to play, I can write using a different OS and mount CDs.
Possibly a change after upgrading to 4.4?

builder02$ sudo cdio -f cd1 tao OpenBSD-4.4-stable.iso
cdio: Can't determine media type

builder02$ dmesg |grep cd
cd0 at scsibus1 targ 0 lun 0:  ATAPI
5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2
cd1 at scsibus2 targ 1 lun 0:  ATAPI 5/cdrom
removable


-Steve S.



Re: Detecting heavy traffic users

2009-01-15 Thread Wade, Daniel
> Today i was not able to find who is fuck*** the mpls link.
>
> Can you help/teach me how to identify heavy users?
>
> Thanks


pftop  from packages is good for this.  You can sort by rate and see the
highest rate by IP address.



Re: awk

2009-01-15 Thread Andreas Kahari
2009/1/15 igor denisov :
> Hi there
> Can not understand.
>
> input:
> 34523 9348 98493 82983
> 9485 83928 9283 9283
> 394 39934 293 8347
> 3456 9238 9283 9283
>
> awk 'NR==1 { for (i = 1; i <= NF; i++) {n=$i; next}}; {n-=$i} END {print n}'
> input
>
> output:
> 21188 it is first column, why?

You should really take these questions to an awk forum, not to this
mailing list.

Your program reads the first record, and assigns its first column to
'n' in a loop that is immediately exited (with 'next') and goes on to
read the remaining records.

For the remaining records, 'i' being still 1 from the prematurely
exited loop, the first column is subtracted from 'n'.

Regards,
Andreas


-- 
Andreas Kahari
Somewhere in the general Cambridge area, UK



FOSDEM 2009 Call for Papers

2009-01-15 Thread Daniel Seuffert

Hello all,

FOSDEM 2009 will take place February 7-8, 2009 in Brussels,
Belgium. We want to continue the great success from last
year and again we have a booth, and a devroom together with
PostgreSQL.

Please submit your talk(s) to i...@praxis123.de asap
include the topic and the length of the talk. You may choose
between:

- 50 minutes talk (~35 minutes talk + 15 minutes discussion)
- 25 minutes talk (~15 minutes talk + 10 minutes discussion)
- lightning talk (5 minutes, cut short)

Every talk is welcome, from internal hacker discussion to
real-world examples and presentations about new and shiny
features. The talk committee consists of Andreas Scherbaum
(PostgreSQL) and Daniel Seuffert (BSD).

As we have limited capacity we cannot guarantee each talk
can be accepted.

Best regards,

Daniel



Re: Can't get relayd to work for DNS + problem with relayctl reload

2009-01-15 Thread Uwe Werler
Hello Pierre,

I noticed the same behavior on my box with current before I read this
thread. That's why I sent a bug report: 6046/system
(http://cvs.openbsd.org/cgi-bin/query-pr-wrapper?full=yes&numbers=6046).

Regards Uwe


Am Wed, 14 Jan 2009 15:53:50 +0100
schrieb "BARDOU Pierre" :

> Hi,
>
>
>
> I tried to send a bug report with sendbug(1), but I am not very
> familiar with it.
>
> I hope someone will notice...
>
>
>
> --
>
> Cordialement,
>
> Pierre BARDOU
>
>
>
> De : uday [mailto:umoorjani@gmail.com]
> Envoyi : mercredi 14 janvier 2009 15:52
> @ : BARDOU Pierre
> Cc : misc@openbsd.org; Nigel J. Taylor
> Objet : Re: Can't get relayd to work for DNS + problem with relayctl
> reload
>
>
>
> pierre,
>
> i'm seeing the same result with relayctl i don't know where it's
> coming from.
>
> um
>
> On Wed, Jan 14, 2009 at 8:16 AM, BARDOU Pierre 
> wrote:
>
> Shame on me, it didn't worked because I allowed connexion to the real
> IP (10.60.0.10x) and no to relayd IP (10.31.33.254).
>
> Now it works, thanks for the help :)
>
> But I still have the issue I reported a few monthes ago : when I use
> a relay, relayctl reload fails saying "command failed".
> The relayd logs says nothing. Will I be forced to pkill relayd and
> restart it each time ?
>
> --
> Cordialement,
> Pierre BARDOU
>
> -Message d'origine-
> De : Nigel J. Taylor [mailto:njtay...@asterisk.demon.co.uk]
> Envoyi : mercredi 14 janvier 2009 02:22
> @ : BARDOU Pierre
> Objet : Re: Can't get relayd to work for DNS
>
> I have this in my relayd.conf, it's just an extract, only a "pass in"
> in pf.conf
> you use either relay or redirect not both at once redirect requires
> an anchor in
> pf.conf, relay doesn't.
>
> dns protocol dnsudp
>
> tcp protocol dnstcp
>
> relay relaydnsudp {
>   protocol dnsudp
>   listen on $dns_int port domain
>   forward to  \
>   check script "/usr/local/bin/dnscheck"
> }
>
> relay relaydnstcp {
>   protocol dnstcp
>   listen on $dns_int port domain
>   forward to  \
>   check script "/usr/local/bin/dnscheck"
> }
>
>
> dnscheck script does a dig to check dns is up
>
> #!/bin/ksh
> dnsserver=$1
> if ping -n -c1 -w 1 $dnsserver >/dev/null 2>&1 && dig -x \
>  $dnsserver @$dnsserver >/dev/null
> then
>   exit 1
> fi
> exit 0
>
>
> Regards
>
> Nigel Taylor
>
> BARDOU Pierre wrote:
> > Hello,
> >
> > I am trying to setup relayd for loadbalancing on my DNS servers.
> > The problem is that relayd seems to handle only TCP connexions, UDP
> > isn't taken into account.
> > I found a known bug on openBSD 4.2, but I am using openBSD 4.4.
> >
> > I've tried the same setup with a relay, and still have the same
> > problem.
> >
> > Where am I mistaking ?
> >
> > # pfctl -a relayd/DNS -s nat
> > rdr inet proto tcp from any to 10.31.33.254 port = domain
> > (tcp.established 600) ->  port 53 round-robin
> >
> > # cat /etc/relayd.conf
> > node1="10.60.0.101"
> > node2="10.60.0.102"
> > node3="10.60.0.103"
> >
> > squid_int="10.31.33.254"
> > dns_int="10.31.33.254"
> >
> > # Global Options
> > interval 5
> > log updates
> > prefork 10
> > timeout 1500
> >
> > table  { $node1 , $node3 }
> > table  { $node1 , $node3 }
> >
> > redirect "squid" {
> > listen on $squid_int port 3128
> > forward to  mode roundrobin check tcp
> > }
> >
> > redirect "DNS" {
> > listen on $dns_int port 53
> > forward to  mode roundrobin check tcp
> > }
> >
> > Relay config :
> > dns protocol "dnsfilter" {
> >### TCP performance options
> > tcp { nodelay, sack, socket buffer 1024, backlog 1000 }
> > }
> >
> > relay dns {
> >### listen and accept redirected connections from pf
> > listen on $dns_int port 53
> >
> >### apply web filters
> > protocol "dnsfilter"
> >
> >### forward to web server(s)
> > forward to  mode roundrobin check tcp
> > }
> > --
> > Cordialement,
> >
> > Pierre BARDOU
> > CSIM - Bureau 012
> >
> > Midi Picardie Informatique Hospitalihre
> > 12 rue Michel Labrousse
> > BP93668
> > F-31036 Toulouse CEDEX 1
> >
> > Til : 05 67 31 90 84
> > Fax : 05 34 61 51 00
> > Mail : bardo...@mipih.fr
>


--


Mit freundlichen Gruessen

Uwe Werler

OB3SI
Open Source Software Solution Integration

Hosterwitzer Str. 15
D-01259 Dresden
Fon +49 351 41722902

http://www.o3si.de
mailto:i...@o3si.de

Sitz des Unternehmens: 01259 Dresden

Der Austausch von Nachrichten mit OB3SI via E-Mail dient ausschliesslich
Informationszwecken. RechtsgeschC$ftliche ErklC$rungen dC

Re: looks like bug in awk

2009-01-15 Thread Andreas Kahari
2009/1/15 igor denisov :
> Hello there.
>
> There is a problem here.
>
> input:
>  34523
>  9485
>  394
>  3456
>
> awk '{subtruct-=$1} END {print subtruct}' input
>
> output:
> -47858
> same thing but without minus with
>
> awk '{sum+=$1} END {print sum}' input
>
> output:
> 47858
>
> Why in both cases the code sums the field?

Are you expecting '0' since the input file contains a space in front
of the number?  In that case, run awk with "-F '[ ]'", e.g.

awk -F '[ ]' '{sum+=$1} END {print sum}' input

Cheers,
Andreas

-- 
Andreas Kahari
Somewhere in the general Cambridge area, UK



Re: Capturing useful debugging info on a hung machine (T1000)

2009-01-15 Thread Stuart Henderson
On 2009-01-15, Dave Wilson  wrote:
> Is there a magic key sequence I can send to the serial console?
>
> Is there a sysctl I can turn on?

set ddb.console=1 (needs to be done with securelevel<=0; add
to sysctl.conf and reboot), then you can send a BREAK over the
serial port and usually it will put you into DDB.



looks like bug in awk

2009-01-15 Thread igor denisov

Hello there.

There is a problem here.

input:
 34523
 9485
 394
 3456

awk '{subtruct-=$1} END {print subtruct}' input

output:
-47858
same thing but without minus with

awk '{sum+=$1} END {print sum}' input

output:
47858

Why in both cases the code sums the field?
--
igor denisov.



Capturing useful debugging info on a hung machine (T1000)

2009-01-15 Thread Dave Wilson
I have a Sun Fire T1000 (sparc64), which a while ago was occasionally
panicking, and I submitted a bug. kettenis@ commited a fix, and it
stopped panicking. All good.

Now I have a different problem. Every now and then, it just hangs. As
far as I can tell, its a complete hardlock. I can't get it to go to ddb,
I can't ping the box, it just sits there. I've been running screen on a
machine connected to the serial console, running

while true; do uptime; sleep 5; done

for the past few days, and it seems that when it hangs, it does so
whilst updating the various mirrors the box hosts, at around 3am. I
suspect this is more to do with load than the specific task.

My question is this: Is there anything I can do to gather useful
information? At the moment all I have is a dmesg and "It hangs sometimes
under load." which is bugger all use to anyone.

Is there a magic key sequence I can send to the serial console?

Is there a sysctl I can turn on?

Is there a ukc or config knob I can poke?

I don't mind running with crazy debug symbols or silly cronjobs that
chuck debug data to disk once a minute, I just want to be able to put
something helpful in sendbug(1).

Just in case, dmesg below.

-- 

SD


slash:~# dmesg
console is /virtual-devi...@100/cons...@1
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2009 OpenBSD. All rights reserved.
http://www.OpenBSD.org

OpenBSD 4.4-current (GENERIC.MP) #584: Thu Jan  8 18:39:22 MST 2009
t...@sparc64.openbsd.org:/usr/src/sys/arch/sparc64/compile/GENERIC.MP
real mem = 17171480576 (16376MB)
avail mem = 16805117952 (16026MB)
mainbus0 at root: Sun Fire(TM) T1000
cpu0 at mainbus0: SUNW,UltraSPARC-T1 (rev 0.0) @ 1000 MHz
cpu1 at mainbus0: SUNW,UltraSPARC-T1 (rev 0.0) @ 1000 MHz
cpu2 at mainbus0: SUNW,UltraSPARC-T1 (rev 0.0) @ 1000 MHz
cpu3 at mainbus0: SUNW,UltraSPARC-T1 (rev 0.0) @ 1000 MHz
cpu4 at mainbus0: SUNW,UltraSPARC-T1 (rev 0.0) @ 1000 MHz
cpu5 at mainbus0: SUNW,UltraSPARC-T1 (rev 0.0) @ 1000 MHz
cpu6 at mainbus0: SUNW,UltraSPARC-T1 (rev 0.0) @ 1000 MHz
cpu7 at mainbus0: SUNW,UltraSPARC-T1 (rev 0.0) @ 1000 MHz
cpu8 at mainbus0: SUNW,UltraSPARC-T1 (rev 0.0) @ 1000 MHz
cpu9 at mainbus0: SUNW,UltraSPARC-T1 (rev 0.0) @ 1000 MHz
cpu10 at mainbus0: SUNW,UltraSPARC-T1 (rev 0.0) @ 1000 MHz
cpu11 at mainbus0: SUNW,UltraSPARC-T1 (rev 0.0) @ 1000 MHz
cpu12 at mainbus0: SUNW,UltraSPARC-T1 (rev 0.0) @ 1000 MHz
cpu13 at mainbus0: SUNW,UltraSPARC-T1 (rev 0.0) @ 1000 MHz
cpu14 at mainbus0: SUNW,UltraSPARC-T1 (rev 0.0) @ 1000 MHz
cpu15 at mainbus0: SUNW,UltraSPARC-T1 (rev 0.0) @ 1000 MHz
cpu16 at mainbus0: SUNW,UltraSPARC-T1 (rev 0.0) @ 1000 MHz
cpu17 at mainbus0: SUNW,UltraSPARC-T1 (rev 0.0) @ 1000 MHz
cpu18 at mainbus0: SUNW,UltraSPARC-T1 (rev 0.0) @ 1000 MHz
cpu19 at mainbus0: SUNW,UltraSPARC-T1 (rev 0.0) @ 1000 MHz
cpu20 at mainbus0: SUNW,UltraSPARC-T1 (rev 0.0) @ 1000 MHz
cpu21 at mainbus0: SUNW,UltraSPARC-T1 (rev 0.0) @ 1000 MHz
cpu22 at mainbus0: SUNW,UltraSPARC-T1 (rev 0.0) @ 1000 MHz
cpu23 at mainbus0: SUNW,UltraSPARC-T1 (rev 0.0) @ 1000 MHz
cpu24 at mainbus0: SUNW,UltraSPARC-T1 (rev 0.0) @ 1000 MHz
cpu25 at mainbus0: SUNW,UltraSPARC-T1 (rev 0.0) @ 1000 MHz
cpu26 at mainbus0: SUNW,UltraSPARC-T1 (rev 0.0) @ 1000 MHz
cpu27 at mainbus0: SUNW,UltraSPARC-T1 (rev 0.0) @ 1000 MHz
cpu28 at mainbus0: SUNW,UltraSPARC-T1 (rev 0.0) @ 1000 MHz
cpu29 at mainbus0: SUNW,UltraSPARC-T1 (rev 0.0) @ 1000 MHz
cpu30 at mainbus0: SUNW,UltraSPARC-T1 (rev 0.0) @ 1000 MHz
cpu31 at mainbus0: SUNW,UltraSPARC-T1 (rev 0.0) @ 1000 MHz
vbus0 at mainbus0
"nvram" at vbus0 not configured
"flashprom" at vbus0 not configured
vcons0 at vbus0: ivec 0x111
"ncp" at vbus0 not configured
vrtc0 at vbus0
"loop" at vbus0 not configured
"loop" at vbus0 not configured
"echo" at vbus0 not configured
"fma" at vbus0 not configured
"sunvts" at vbus0 not configured
"sunmc" at vbus0 not configured
"explorer" at vbus0 not configured
"led" at vbus0 not configured
vpci0 at mainbus0: bus 2 to 2, dvma map 8000-
pci0 at vpci0
vpci1 at mainbus0: bus 2 to 4, dvma map 8000-
pci1 at vpci1
ppb0 at pci1 dev 0 function 0 "ServerWorks PCIE-PCIX" rev 0xb3
pci2 at ppb0 bus 3
bge0 at pci2 dev 4 function 0 "Broadcom BCM5714" rev 0xa2, BCM5715 A1
(0x9001): ivec 0x7d4, address 00:14:4f:2c:f7:e2
brgphy0 at bge0 phy 1: BCM5714 10/100/1000baseT/SX PHY, rev. 0
bge1 at pci2 dev 4 function 1 "Broadcom BCM5714" rev 0xa2, BCM5715 A1
(0x9001): ivec 0x7d5, address 00:14:4f:2c:f7:e3
brgphy1 at bge1 phy 1: BCM5714 10/100/1000baseT/SX PHY, rev. 0
ppb1 at pci2 dev 8 function 0 "ServerWorks HT-1000 PCIX" rev 0xb3
pci3 at ppb1 bus 4
bge2 at pci3 dev 1 function 0 "Broadcom BCM5704C" rev 0x10, BCM5704 B0
(0x2100): ivec 0x7c2, address 00:14:4f:2c:f7:e4
brgphy2 at bge2 phy 1: BCM5704 10/100/1000baseT PHY, rev. 0
bge3 at pci3 dev 1 function 1 "Broadcom BCM5704C" rev 0x10, BCM5704 B0
(0x2100): ivec 0x7c1, address 00:14:4f:2c:f7:e5
brgphy3 at bge3 phy 1: BCM5704 1

httpd startup: Syntax error on line 1 of /var/www/conf/modules/php5.conf

2009-01-15 Thread jim barchuk

Hi All!

Starting httpd returns:

Syntax error on line 1 of /var/www/conf/modules/php5.conf

Cannot load /usr/local/lib/php/libphp5.so into server: Cannot load 
specified object


Before I added the php packages httpd started fine. (And mysql works 
perfectly too.) I did what seemed to be a fairly intuitive php install 
with no research, and got the error. Then I find a FAQ page at 
openbsd.org that says the same thing. Then I find a web page with the 
same details describing a typical 'OAMP.' They're all about the same, 
a few pkg_add and ln -s no real 'work' to this.


BTW this is a virgin new 4.4 install not an upgrade.

I've also been to ~/patch and installed those and recompiled the 
kernel and httpd -after- the first faulty starts, with still the same 
error both before and after the patches.


I see one long discussion at 
http://kerneltrap.org/mailarchive/openbsd-misc/2008/11/17/4139684/thread 
but at the end there's no definitive answer as to what caused it or 
if/how it was fixed.



From which I tried 'old version check.'

cat /var/www/conf/httpd.conf | grep 'LoadModule php' returns empty

And httpd -u returns the same error

CLI seems to work fine.

Logs. Between good httpd starts without, and bad ones with php 
enabled, I 'zero-lengthed' the logs to make -sure- if I was seeing 
something 'new.' but failed starts produce nothing at all 
/var/www/logs.


I tried php.ini display_startup_errors but that produced nothing 
either.


I also touched /var/www/logs/php.log because there wasn't one but that 
made no difference.


These -look- normal:

# cat /var/www/conf/modules/php5.conf
LoadModule php5_module /usr/local/lib/php/libphp5.so


AddType application/x-httpd-php .php .phtml .php3
AddType application/x-httpd-php-source .phps
# Most php configs require this
DirectoryIndex index.php



# ls -l /usr/local/lib/php/libphp5.so
-r--r--r--  1 root  bin  3968192 Aug 12 14:07 /usr/local/lib/php/libphp5.so


# ll /var/www/conf/modules
lrwxr-xr-x  1 root  daemon   29 Jan 15 03:18 libphp5.so@ -> 
/usr/local/lib/php/libphp5.so


lrwxr-xr-x  1 root  daemon   18 Jan 15 03:18 php@ -> 
/usr/local/lib/php


lrwxr-xr-x  1 root  daemon   38 Jan 14 17:00 php5.conf@ -> 
/var/www/conf/modules.sample/php5.conf



I 'commented out the contents' of php5.conf causing it to load 
nothing, and httpd started fine.


I did a complete pkg_delete of everything php related, and httpd 
started fine. Reinstalled and got the same error.


Maybe I've got a wrong permission or ownership? I wish they'd add to 
the doc pages an ls -l for the installed subdirs just for 
completeness.


Weird all around. TIA. Have a :) day!

Jim

--
jim barchuk
j...@jbarchuk.com