Re: tty's and no login

2006-03-08 Thread Matteo Riondato
On Wed, Mar 08, 2006 at 12:37:00AM +0200, Cole wrote:
 Yeah.
 
 That does help quite a lot. However, I did find something regarding this 
 called own-tty, but that
 was for linux, and also written in like 1998.
 http://www.canonical.org/~kragen/sw/usershell.html
 
 I was actually hoping to do something similar. In that I was hoping to just 
 write a single program
 to take control of the terminal and all me to use it for my input/output 
 directly. Ive tried the
 above program, but it does complain about TIOCSCTTY: Operation not 
 permitted. Anyone have any
 ideas about what exactly needs to be done to get the own-tty.c program to 
 function correctly under
 FreeBSD?

Is watch(8) what you need?

Best Regards
-- 
Matteo Riondato
FreeBSD Volunteer (http://freebsd.org)
G.U.F.I. Staff Member (http://www.gufi.org)
FreeSBIE Developer (http://www.freesbie.org)
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: HP Smart Array 6i opinions

2006-03-08 Thread kama

I have used the whole range (or somewhat) for internal SA's. Starting with
the internal one in DL380R1 and up to G4.

Performance of 6i in freebsd is better than 5i, but worse than if you
insert a external card (6402/6404). I mostly use the internal SA as
systemdisk only on systems with a lot of disk IO. A single write is OK,
but multiple rw's are not its best side. I had some performance data a
year ago regarding the different setups, but Im afraid they are long gone
now.

I have not have any problems with a recover. But it takes time. 18GB
~15-20 mins on 5i. dunno on 6i... I have yet to get a failure on those
servers.

http://people.freebsd.org/~jcagle/ is available. But it screams to the
console and logs when something occurs, so there are other options to
report an error.

/Bjorn

On Mon, 27 Feb 2006, Steven Hartland wrote:

 Has anyone had any dealings with the HP Smart Array 6i?

  Specifically looking for info on:
 * Performance
 * Disk failure recover
 * Available tools for monitoring etc.

Regards
Steve


 
 This e.mail is private and confidential between Multiplay (UK) Ltd. and the 
 person or entity to whom it is addressed. In the event of misdirection, the 
 recipient is prohibited from using, copying, printing or otherwise 
 disseminating it or any information contained in it.

 In the event of misdirection, illegible or incomplete transmission please 
 telephone (023) 8024 3137
 or return the E.mail to [EMAIL PROTECTED]

 ___
 freebsd-performance@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-performance
 To unsubscribe, send any mail to [EMAIL PROTECTED]

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: find(1) -d vs -prune; /etc/periodic/daily/100.clean-disks

2006-03-08 Thread Jilles Tjoelker
On Wed, Mar 08, 2006 at 02:21:51AM +0300, Yar Tikhiy wrote:
 On Mon, Mar 06, 2006 at 06:40:58PM +0100, Jilles Tjoelker wrote:
  Possible solutions/workarounds:
  1. do still call -prune and some primaries without side effects
 in pre-order even if -d is in effect, even though this does not
 fit at all in find(1)'s design.
  2. document the bug and run a find -x over all local r/w filesystems
 in 100.clean-disks (-x and -d work together properly).
  
  What would be the best way to go on?

 The property of -prune with respect to -d is already documented on the
 find(1) manpage.

Oh, didn't read that bit. Too busy reading the source code :P

 As for 100.clean-disks, I fail to see why -prune is needed there.
 One can mount a file system read-write at a directory of a read-only
 file system.  Some bullet-proof installations have their / mounted
 read-only.  Perhaps the invocation of find(1) in 100.clean-disks
 should be as follows:

   find / -fstype local ! -fstype rdonly \( $args \) ...

 Does it make sense?

No, as that still searches through all the NFS filesystems, so I get the
daily output mail at 4 PM or such. (The effect is the same as the
original command.)

My idea of doing a find -x over each applicable filesystem seems even
better in the light of this. It is just a little hard to get the list of
local read-write filesystems in a shell script (df -l to get the locals,
mount -p to get the read-writes, intersect these). Will look at it
later.

-- 
Jilles Tjoelker
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: HP Smart Array 6i opinions

2006-03-08 Thread Matt Hartzell
I have used the 6i n the same situation. RAID5 performance with 3 - 36 
GB SCSI disk is acceptable.


I have never had a disk fail on these controllers so I can't comment on 
fail over.


The util's on http://people.freebsd.org/~jcagle/ don't seen to work 
under 6.x, however status messages are sent to the console and can be 
sent to syslog.  camcontrol devlist will give you a quick status (OK or 
REBUILDING)


For me it is workable solution.





kama wrote:


I have used the whole range (or somewhat) for internal SA's. Starting with
the internal one in DL380R1 and up to G4.

Performance of 6i in freebsd is better than 5i, but worse than if you
insert a external card (6402/6404). I mostly use the internal SA as
systemdisk only on systems with a lot of disk IO. A single write is OK,
but multiple rw's are not its best side. I had some performance data a
year ago regarding the different setups, but Im afraid they are long gone
now.

I have not have any problems with a recover. But it takes time. 18GB
~15-20 mins on 5i. dunno on 6i... I have yet to get a failure on those
servers.

http://people.freebsd.org/~jcagle/ is available. But it screams to the
console and logs when something occurs, so there are other options to
report an error.

/Bjorn

On Mon, 27 Feb 2006, Steven Hartland wrote:

 


Has anyone had any dealings with the HP Smart Array 6i?

Specifically looking for info on:
* Performance
* Disk failure recover
* Available tools for monitoring etc.

  Regards
  Steve



This e.mail is private and confidential between Multiplay (UK) Ltd. and the 
person or entity to whom it is addressed. In the event of misdirection, the 
recipient is prohibited from using, copying, printing or otherwise 
disseminating it or any information contained in it.

In the event of misdirection, illegible or incomplete transmission please 
telephone (023) 8024 3137
or return the E.mail to [EMAIL PROTECTED]

___
freebsd-performance@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-performance
To unsubscribe, send any mail to [EMAIL PROTECTED]

   


___
freebsd-performance@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-performance
To unsubscribe, send any mail to [EMAIL PROTECTED]

 


___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: NetBSD disk backup over network

2006-03-08 Thread Eric Anderson

Ashley Moran wrote:
I just saw this slashdotted article: 
http://ezine.daemonnews.org/200603/dermouse.html


Just to satisfy my curiosity, is it the sort of thing that can be implemented 
as a GEOM layer?  The idea is bloody clever but sounds like a bit of a hack 
right now.
  


You can already do this with GEOM. 

On your server node, create a sparse file using dd, that is the same 
size or bigger than the partition you would like to back up.  Then set 
it up with ggated.  Now, on your machine with the partition that needs 
mirroring (backing up), use ggatec to connect to the backup node's 
shared sparse file you previously created.  Then, use gmirror to mirror 
your partition to the now local ggatec'ed device. 



Eric





--

Eric AndersonSr. Systems AdministratorCentaur Technology
Anything that works is better than anything that doesn't.


___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Patches for bootparamd for multiple subnets of interest?

2006-03-08 Thread Eric Anderson

Brian J. McGovern wrote:

All,
I've done some hacking on bootparamd to support multiple subnets
(along with applying some patches to allow some Sun-specific behavior) that
I'm using for jumpstarting Solaris/Sparc boxes across a boatload of small 
subnets.


The most obvious change is adding a -R parameter, that allows you to
specify a router and netmask (and multiple -R's are accepted), so that 
bootparamd can build an internal list of subnets and gateways when multihomed,

or supporting VLANs via the vlan(4) driver.

	I can provide patches against 6.0, and with a bit of work, -current 
(I doubt there is much change). Is there sufficient interest to make it worth

bundling up the diffs?
  


Patches to 6- are definitely of interest!  We've recently banged our 
heads against this problem..


Thanks!!

Eric




--

Eric AndersonSr. Systems AdministratorCentaur Technology
Anything that works is better than anything that doesn't.


___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


userland access to mountpoint's struct mount

2006-03-08 Thread Eric Anderson
Sorry if this is a very basic question, but I'm trying to extend the 
struct mount (sys/sys/mount.h) to contain a lot of statistics, and then 
use a userland tool to read those statistics on a per mounted file 
system basis.  I can't seem to figure out exactly how to do this, and 
even if this really is what I want.  Life might be easier if I wedge it 
into the struct statfs per file system - but is that ok to do?



Thanks in advance, pointers to docs/hints/examples are welcome,
Eric


--

Eric AndersonSr. Systems AdministratorCentaur Technology
Anything that works is better than anything that doesn't.


___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: find(1) -d vs -prune; /etc/periodic/daily/100.clean-disks

2006-03-08 Thread Yar Tikhiy
On Wed, Mar 08, 2006 at 03:43:51PM +0100, Jilles Tjoelker wrote:
 On Wed, Mar 08, 2006 at 02:21:51AM +0300, Yar Tikhiy wrote:
  On Mon, Mar 06, 2006 at 06:40:58PM +0100, Jilles Tjoelker wrote:
   Possible solutions/workarounds:
   1. do still call -prune and some primaries without side effects
  in pre-order even if -d is in effect, even though this does not
  fit at all in find(1)'s design.
   2. document the bug and run a find -x over all local r/w filesystems
  in 100.clean-disks (-x and -d work together properly).
   
   What would be the best way to go on?
 
  The property of -prune with respect to -d is already documented on the
  find(1) manpage.
 
 Oh, didn't read that bit. Too busy reading the source code :P
 
  As for 100.clean-disks, I fail to see why -prune is needed there.
  One can mount a file system read-write at a directory of a read-only
  file system.  Some bullet-proof installations have their / mounted
  read-only.  Perhaps the invocation of find(1) in 100.clean-disks
  should be as follows:
 
  find / -fstype local ! -fstype rdonly \( $args \) ...
 
  Does it make sense?
 
 No, as that still searches through all the NFS filesystems, so I get the
 daily output mail at 4 PM or such. (The effect is the same as the
 original command.)

 My idea of doing a find -x over each applicable filesystem seems even
 better in the light of this. It is just a little hard to get the list of
 local read-write filesystems in a shell script (df -l to get the locals,
 mount -p to get the read-writes, intersect these). Will look at it
 later.

In the good old days when NFS was the only remote file system, the
following trick would do:

localrw=$(mount -p -t nonfs | awk '$4 == rw {print $2}')
find -x $localrw \( $args \) ...

But today some hackery around ${netfs_types} should be added, as in
/etc/rc.d/mountcritlocal.

-- 
Yar
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: HP Smart Array 6i opinions

2006-03-08 Thread Wilko Bulte
On Wed, Mar 08, 2006 at 09:27:50AM -0600, Matt Hartzell wrote..
 I have used the 6i n the same situation. RAID5 performance with 3 - 36 
 GB SCSI disk is acceptable.
 
 I have never had a disk fail on these controllers so I can't comment on 
 fail over.
 
 The util's on http://people.freebsd.org/~jcagle/ don't seen to work 
 under 6.x, however status messages are sent to the console and can be 

Well, you need to put libc.so.5 plus libpthread.so.mumble from a RELENG_5
machine on your RELENG_6 machine and then they work.

ldd hpasm* tells you which libraries exactly you need.  One of the
2 is statically linked by the way (I forgot which one)

 sent to syslog.  camcontrol devlist will give you a quick status (OK or 
 REBUILDING)
 
 For me it is workable solution.
 
 
 
 
 
 kama wrote:
 
 I have used the whole range (or somewhat) for internal SA's. Starting with
 the internal one in DL380R1 and up to G4.
 
 Performance of 6i in freebsd is better than 5i, but worse than if you
 insert a external card (6402/6404). I mostly use the internal SA as
 systemdisk only on systems with a lot of disk IO. A single write is OK,
 but multiple rw's are not its best side. I had some performance data a
 year ago regarding the different setups, but Im afraid they are long gone
 now.
 
 I have not have any problems with a recover. But it takes time. 18GB
 ~15-20 mins on 5i. dunno on 6i... I have yet to get a failure on those
 servers.
 
 http://people.freebsd.org/~jcagle/ is available. But it screams to the
 console and logs when something occurs, so there are other options to
 report an error.
 
 /Bjorn
 
 On Mon, 27 Feb 2006, Steven Hartland wrote:
 
  
 
 Has anyone had any dealings with the HP Smart Array 6i?
 
 Specifically looking for info on:
 * Performance
 * Disk failure recover
 * Available tools for monitoring etc.
 
   Regards
   Steve
 
 
 
 This e.mail is private and confidential between Multiplay (UK) Ltd. and 
 the person or entity to whom it is addressed. In the event of 
 misdirection, the recipient is prohibited from using, copying, printing 
 or otherwise disseminating it or any information contained in it.
 
 In the event of misdirection, illegible or incomplete transmission 
 please telephone (023) 8024 3137
 or return the E.mail to [EMAIL PROTECTED]
 
 ___
 freebsd-performance@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-performance
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]
 

 
 ___
 freebsd-performance@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-performance
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]
 
  
 
 ___
 freebsd-hackers@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
 To unsubscribe, send any mail to [EMAIL PROTECTED]
--- end of quoted text ---

-- 
Wilko Bulte [EMAIL PROTECTED]
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: HP Smart Array 6i opinions

2006-03-08 Thread Matt Hartzell

Wilko Bulte wrote:


On Wed, Mar 08, 2006 at 09:27:50AM -0600, Matt Hartzell wrote..
 

I have used the 6i n the same situation. RAID5 performance with 3 - 36 
GB SCSI disk is acceptable.


I have never had a disk fail on these controllers so I can't comment on 
fail over.


The util's on http://people.freebsd.org/~jcagle/ don't seen to work 
under 6.x, however status messages are sent to the console and can be 
   



Well, you need to put libc.so.5 plus libpthread.so.mumble from a RELENG_5
machine on your RELENG_6 machine and then they work.

ldd hpasm* tells you which libraries exactly you need.  One of the
2 is statically linked by the way (I forgot which one)
 

Would using the libpthread from 5 have any negative affect on MySQL 
performance?



 

sent to syslog.  camcontrol devlist will give you a quick status (OK or 
REBUILDING)


For me it is workable solution.





kama wrote:

   


I have used the whole range (or somewhat) for internal SA's. Starting with
the internal one in DL380R1 and up to G4.

Performance of 6i in freebsd is better than 5i, but worse than if you
insert a external card (6402/6404). I mostly use the internal SA as
systemdisk only on systems with a lot of disk IO. A single write is OK,
but multiple rw's are not its best side. I had some performance data a
year ago regarding the different setups, but Im afraid they are long gone
now.

I have not have any problems with a recover. But it takes time. 18GB
~15-20 mins on 5i. dunno on 6i... I have yet to get a failure on those
servers.

http://people.freebsd.org/~jcagle/ is available. But it screams to the
console and logs when something occurs, so there are other options to
report an error.

/Bjorn

On Mon, 27 Feb 2006, Steven Hartland wrote:



 


Has anyone had any dealings with the HP Smart Array 6i?

Specifically looking for info on:
* Performance
* Disk failure recover
* Available tools for monitoring etc.

Regards
Steve



This e.mail is private and confidential between Multiplay (UK) Ltd. and 
the person or entity to whom it is addressed. In the event of 
misdirection, the recipient is prohibited from using, copying, printing 
or otherwise disseminating it or any information contained in it.


In the event of misdirection, illegible or incomplete transmission 
please telephone (023) 8024 3137

or return the E.mail to [EMAIL PROTECTED]

___
freebsd-performance@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-performance
To unsubscribe, send any mail to 
[EMAIL PROTECTED]


 

   


___
freebsd-performance@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-performance
To unsubscribe, send any mail to 
[EMAIL PROTECTED]




 


___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]
   


--- end of quoted text ---

 



___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


sshd (or global) max-connections-per-user setting under FreeBSD ?

2006-03-08 Thread Joe Schmoe

I am running a stock FreeBSD 6.0-RELEASE system, with
the built-in ssh/sshd.

I am interested in limiting the number of ssh
connections any particular user can make to the system
... for instance, if limited to 3, they could login
interactively, commence an rsync over ssh, and
commence an scp file transfer, but could not initiate
a fourth ssh transaction of any sort.

I don't see an obvious way to do this, and further, I
am not particularly interested in running sshd out of
inetd, which _might_ help me accomplish this...

I am wondering the following:

- is there a general max connections per user
mechanism in FreeBSD that I could use ?  I only allow
ssh connections, so I don't need it to be sshd
specific - I would be happy with a global max conn
mechanism...

- (if there isn't a global maxconn) is there an
elegant way to limit max connection for sshd ?  I feel
like I could do this with pam.conf, based on the
documentation, but I don't see how, and further, there
is no pam.conf in a default install ... so perhaps I
add it to /etc/pam.d/sshd (or perhaps
/etc/pam.d/system for global ?)

I am sorry to ramble - all comments and suggestions
are greatly appreciated.

thanks.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: HP Smart Array 6i opinions

2006-03-08 Thread Ivan Voras

Matt Hartzell wrote:

Would using the libpthread from 5 have any negative affect on MySQL 
performance?


Not if MySQL is compiled on 6.x (libpthread was in libpthread.so.1 in 
5.3+ but in libpthread.so.2 in 6.x).

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: scsi-target and the buffer cache

2006-03-08 Thread Eric Anderson

Nate Lawson wrote:

Scott Long wrote:

Eric Anderson wrote:


Nate Lawson wrote:
Agree 100%.  While having it in usermode means there are boundary 
crossings that increase per-transaction latency, the actual bulk 
data transfer is via zero-copy IO and you should be able to exceed 
the data transfer rates of several 10K RPM drives on decent hardware.


Ok, great.. Now, will scsi_target work ok with raw devices, or only 
files?  (although I'm not sure theres all that much difference really).




You can write your userland code to use whatever files or devices you
want.  Are you talking about the scs_target.c code in
/usr/share/examples?  That's just a skeletal example that you can use
as a starting point for your own work.


No, it's not just a skeletal example.  You can point it at a raw 
device as the backing store file and it will work as a block device 
(i.e. RBC command set).  It has been tested as working at least 
moderately fast over SCSI, FC, and firewire.




I'm finally getting around to playing with this, and I'm having some 
problems.  First, I can't seem to make one isp card in target mode and 
the other an initiator.  I've messed with adding the following to 
loader.conf:


hint.isp.0.role=initiator
hint.isp.1.role=target

that still doesn't show my currently connected fiber channel devices on 
the initiator side.


I've tried a few different kernel options, currently I have:

options ISP_TARGET_MODE=1
device  targ

I've also tried just:

options ISP_TARGET_MODE

and that doesn't seem to allow me to select one either.

Anyhow, I've compiled scsi_target (from 
/usr/share/examples/scsi_target), and tried to run it using a 20gb file 
as the target, and still I can't seem to get it working. 


Is there a doc somewhere I need to read?

Also - as a side note, the Makefile for scsi_target seems like it's 
missing a path variable in order to do a make install, but that's not a 
real issue.



Thanks!
Eric



--

Eric AndersonSr. Systems AdministratorCentaur Technology
Anything that works is better than anything that doesn't.


___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


(no subject)

2006-03-08 Thread fuz3
  

-
Apakah Anda Yahoo!?
Kunjungi halaman depan Yahoo! Indonesia yang baru!
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Infrequent disk system hang on 5.4-RELEASE-p8

2006-03-08 Thread Steve Watt
(OK, I'm *waaay* behind on -hackers.)

In  [EMAIL PROTECTED] you write:
We have an older server, running 5.4-RELEASE-p8 and used primarily
for email, which hangs every couple of weeks.  The hang seems to
be in the disk I/O system.  Based on the times of the hangs, the
triggering event seems to be running dump.

We have a serial console set up, I broke to the debugger and got the 
following.  Since the hang is in the disk I/O system, a dump is not
possible.  The many versions of inetd are likely due to users attempting
to POP their email.

Any suggestions or tips on how to track this down and get it resolved
would be appreciated.

This looks very much like a bug I ran across a while ago.  Look for
snapshots and innds in the subject line.

It doesn't seem like this has been resolved.  You may slap my
hand for not filing a bug report previously; I'm about to do
that.

The solution, so far, seems to be upgrade to 6.x.  Whee.

-- 
Steve Watt KD6GGD  PP-ASEL-IA  ICBM: 121W 56' 57.8 / 37N 20' 14.9
 Internet: steve @ Watt.COM  Whois: SW32-ARIN
   Free time?  There's no such thing.  It just comes in varying prices...
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]